controller
Installation
SKILL.md
Controller Builder
When to use
Use this skill when asked to create a new controller or add actions to an existing controller in any Rails app under apps/.
Working Directory
Determine which app the controller belongs to. Default is apps/rails_application/ unless specified.
Step-by-step process
1. Gather requirements
Before writing any code, clarify:
- Which read model the controller queries (must already exist)
- Which domain commands the controller dispatches (must already exist)
- What actions are needed (index, show, new, create, edit, update, destroy, custom)
- Whether it lives in a namespace (e.g.
admin/,client/)