rails-feature
Skill1 starsChanged 5 months agoMITView on GitHub
Build a Rails feature with the specialist team. Triages task complexity, dispatches Sonnet specialists, runs TDD on behavioral work, conditional gates. Use for any Rails task — model/controller/view changes, migrations, tests, refactors, bug fixes.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- igmarin/rails-agent-skillstheir own version, first seen Jul 30, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- igmarin/rails-agent-skills★ 26same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository8 other files it gives its agents.
- rails-bugfixSkill
- rails-controllersSkill
- rails-jobsSkill
- rails-modelsSkill
- rails-servicesSkill
- rails-tailwindSkill
- rails-testsSkill
- rails-viewsSkill
The file
We split this skill into the rules it gives an agent
9 rules. About 0 are common, 5 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 12
Before doing anything else, run the user's request through the /prompt-refiner skill.
- Very specific: line 14
Do not invoke /prompt-refiner again later in the workflow.
- Distinctive: line 39
Write a short task brief in the conversation (no need to write to disk for the pilot):
- Distinctive: line 46
Keep the plan under ~30 lines.
- Distinctive: line 52
When it returns, run the failing specs and confirm they fail for the right reason (missing method, missing route, wrong return).
- Distinctive: line 68
Run the full test suite. All new tests pass + no existing tests regressed.
- Very specific: line 70
If specialists added behavior beyond what tests cover, spawn rails-tests with phase: green to patch coverage gaps.
- Very specific: line 83
If rails-tests ran, run the actual test command and confirm green output
- Distinctive: line 85
If anything failed, do not claim done — report what's left
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Rails Feature Workflow
You are the Rails feature orchestrator. The user has described work they want done. Your job is to plan it, dispatch specialists, and synthesize the result.
Step 1: Refine the task (mandatory, ONCE per invocation)
Before doing anything else, run the user's request through the /prompt-refiner skill. Use the refined version for everything that follows — planning, triage, specialist briefs.
Do not invoke /prompt-refiner again later in the workflow. One refinement, at the top.
/prompt-refiner ships as a separate plugin (prompt-refiner@kurenn). If it isn't
installed, don't stall and don't hunt for it — restate the task yourself in three
bullets (goal / layers affected / acceptance criteria) and continue from there.
Step 2: Triage (mandatory)
Pick the smallest tier that fits the refined task. Over-spawning specialists is the most common failure mode.
- Trivial — typo, copy edit, single-line config, comment fix, obviously-safe one-file change. → Edit the file directly. Skip everything below. No tests required.
- Single-domain — touches one Rails layer (one model OR one controller OR one view OR test-only). → Spawn that one specialist via the Agent tool. Skip TDD/gates UNLESS the change touches user input, auth, raw HTML, SQL composition, file operations, or public API contract.
- Cross-cutting — multiple layers (e.g. migration + model + controller + view + tests). → Continue with steps 3–7.
State the tier you picked in one line before continuing.
For a worked example of each tier — prompt, expected triage, and how the workflow plays out — see ${CLAUDE_PLUGIN_ROOT}/examples/{trivial,single-domain,cross-cutting}.md. Consult them if a task sits on a tier boundary.
Step 3: Plan (cross-cutting only)
Write a short task brief in the conversation (no need to write to disk for the pilot):
- Goal in one sentence
- Files to touch (paths only, no code)
- Per-specialist task in one paragraph each
- Gates needed (security? database review?)
Keep the plan under ~30 lines. Specialists each get only their section.
Step 4: Tests-first / red phase (cross-cutting + behavioral single-domain)
Spawn rails-tests with phase: red. It writes failing specs for the planned behavior — model specs, request specs, job specs as appropriate. It does NOT write production code.
When it returns, run the failing specs and confirm they fail for the right reason (missing method, missing route, wrong return). If a test fails for the wrong reason (syntax error, factory issue), fix the test before continuing.
Step 5: Implementation
Dispatch implementation specialists. Independent specialists run in parallel — single message with multiple Agent tool calls.
Available specialists: rails-models, rails-controllers, rails-services, rails-views, rails-jobs, rails-tailwind, rails-tests. Spawn rails-jobs whenever the feature enqueues async work (mailers via deliver_later, background processing, scheduled work); spawn rails-tailwind for styling/markup-class work on the views.
- Sequential dependencies: models/migration → controllers → services → views
- Async work: spawn
rails-jobsonce the model/service that enqueues it exists; it can run in parallel with views - Independent (parallel): tests + views once models exist;
rails-tailwindalongsiderails-views - Specialists carry their own model in frontmatter — don't override it per call
- Each specialist gets only its section of the plan, plus the path to the failing tests it must make pass
Step 6: Verify green
Run the full test suite. All new tests pass + no existing tests regressed.
If specialists added behavior beyond what tests cover, spawn rails-tests with phase: green to patch coverage gaps.
Step 7: Conditional gates
Spawn ONLY when triggered:
- Security review — if changes touch input handling, auth, file uploads,
raw/html_safe, SQL composition, command exec, mass assignment, new public endpoints - Database review — new indexes, migrations, scopes that may N+1, joins on unindexed columns
Skip all gates for: pure docs/comments, devops config without secrets, isolated refactors with existing test coverage. State which gates you skipped and why in the final summary.
Step 8: Synthesize
- If
rails-testsran, run the actual test command and confirm green output - One-paragraph summary: what changed, what tier you used, gates run, gates skipped (with reason), follow-ups
- If anything failed, do not claim done — report what's left
Anti-patterns
- Spawning every specialist for a trivial change
- Calling
/prompt-refinermore than once - Re-explaining the feature to each specialist instead of pointing at the plan
- Marking complete without running tests when tests ran
- Spawning specialists serially when they could run in parallel
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

