什麼是 controller-patterns?
審查和更新現有的 Rails 控制器,並按照專業模式和最佳實踐產生新的控制器。涵蓋 RESTful 約定、授權模式、正確的錯誤處理和可維護的程式碼組織。 來源:rolemodel/rolemodel-skills。
審查和更新現有的 Rails 控制器,並按照專業模式和最佳實踐產生新的控制器。涵蓋 RESTful 約定、授權模式、正確的錯誤處理和可維護的程式碼組織。
透過命令列快速安裝 controller-patterns AI 技能到你的開發環境
來源:rolemodel/rolemodel-skills。
Purpose This skill helps AI agents review existing Rails controllers and generate new controllers following professional patterns and best practices. It covers RESTful conventions, authorization patterns, proper error handling, and maintainable code organization that can be applied to any Rails application.
Implement authorization checks for all actions that interact with resources. This example uses Pundit, but the pattern applies to any authorization framework (CanCanCan, ActionPolicy, etc.).
Use beforeaction to DRY up your controllers by extracting common setup logic.
審查和更新現有的 Rails 控制器,並按照專業模式和最佳實踐產生新的控制器。涵蓋 RESTful 約定、授權模式、正確的錯誤處理和可維護的程式碼組織。 來源:rolemodel/rolemodel-skills。
為搜尋與 AI 引用準備的穩定欄位與指令。
npx skills add https://github.com/rolemodel/rolemodel-skills --skill controller-patterns審查和更新現有的 Rails 控制器,並按照專業模式和最佳實踐產生新的控制器。涵蓋 RESTful 約定、授權模式、正確的錯誤處理和可維護的程式碼組織。 來源:rolemodel/rolemodel-skills。
開啟你的終端機或命令列工具(如 Terminal、iTerm、Windows Terminal 等) 複製並執行以下指令:npx skills add https://github.com/rolemodel/rolemodel-skills --skill controller-patterns 安裝完成後,技能將自動設定到你的 AI 程式設計環境中,可以在 Claude Code、Cursor 或 OpenClaw 中使用
https://github.com/rolemodel/rolemodel-skills