/superpowers-rails:writing-plansfrom superpowers-rails
Turns a spec into an ordered list of vertical slices, each shippable and end-to-end testable on its own. Loads Rails convention skills before planning Rails work.
Ships in superpowers-rails. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Turn a spec into a short, ordered list of vertical slices. A slice is one user-facing capability cut through every layer it needs (migration + model + controller + view + test) — shippable on its own and testable end-to-end on its own.
The spec already says WHAT and WHY. The plan adds only three things: how the work is sliced, in what order, and the end-to-end behavior that proves each slice works. Assume a skilled executor with the codebase and the convention skills — they know HOW. Do not script it.
Announce at start: "I'm using the writing-plans skill to create the implementation plan."
Each task is a vertical slice, never a technical layer.
❌ HORIZONTAL — nothing works or ships until the last task
Task 1: all migrations
Task 2: all models
Task 3: all controllers + policies
Task 4: all views
Task 5: write the tests
✅ VERTICAL — each task ships and is end-to-end tested on its own
Slice 1: View the reading list (migration + model + index action + view + system spec)
Slice 2: Add a link (create action + form + validation + Turbo Stream + system spec)
Slice 3: Mark a link read/unread (LinkRead record + toggle action + UI + system spec)
A slice is correct only when all three are YES:
If a task produces only a model, only policies, only a component, or only migrations, it is a layer — fold it into the first slice that uses it.
digraph rails_check {
rankdir=LR;
check [label="Rails project?", shape=diamond];
load [label="Load ALL Rails\nconvention skills", shape=box, style=filled, fillcolor="#ffcccc"];
write [label="Write plan\nwith conventions", shape=box, style=filled, fillcolor="#ccffcc"];
proceed [label="Write plan", shape=box];
check -> load [label="yes"];
check -> proceed [label="no"];
load -> write;
}
Before writing ANY task for a Rails project, you MUST load ALL convention skills:
superpowers-rails:rails-controller-conventions
superpowers-rails:rails-model-conventions
superpowers-rails:rails-view-conventions
superpowers-rails:rails-policy-conventions
superpowers-rails:rails-job-conventions
superpowers-rails:rails-migration-conventions
superpowers-rails:rails-stimulus-conventions
superpowers-rails:rails-testing-conventions
The executor will load these skills and apply them. Plans reference conventions by name, not by duplicating their content.
| Rationalization | Reality |
|---|---|
| "I already know Rails conventions" | These are PROJECT conventions. Load them. |
| "I only need controller conventions" | A slice touches every layer. Load all. |
| "Too many skills" | ~2500 words total. 10 seconds to load. |
Save plans to: docs/superpowers/plans/YYYY-MM-DD-<feature-name>.md
If the spec covers multiple independent subsystems, it should have been broken into sub-project specs during brainstorming. If it wasn't, suggest separate plans — one per subsystem. Each plan must produce working, testable software on its own.
Every plan MUST start with this header:
# [Feature Name] Implementation Plan
> **For agentic workers:** REQUIRED SUB-SKILL: Use superpowers-rails:subagent-driven-development (recommended) or superpowers-rails:executing-plans. Each slice below is one unit of work — implement them in order, one subagent per slice. Slices use checkbox (`- [ ]`) syntax for tracking.
**Goal:** [One sentence describing what this builds]
**Architecture:** [2-3 sentences about approach]
**Spec:** [path to the spec/design doc this plan implements — the plan
argues from the spec, so the spec travels with it; executors read both]
## Global Constraints
[The spec's project-wide requirements — version floors, dependency limits,
naming and copy rules, platform requirements — one line each, with exact
values copied verbatim from the spec. Every task's requirements implicitly
include this section.]
## Review Focus
[The five input classes or failure modes the spec implies but no slice's
tests exercise that are most likely to bite a person using this software
— one line each, naming the input or condition and the behavior a
reasonable person would expect, most likely first. The spec is a vision
document: it says what the software must do, not everything it will
meet, and its silence on an input is not permission for that input to
break the program. Write the list here, once, with the spec in front of
you. Then, for each line, add the test that pins it to the slice that
owns the code.]
---
Each slice is the whole task. There is no per-step ceremony.
### Slice N: [Capability — "A member can …"]
- [ ] **Delivers:** [the user-visible behavior this slice adds]
- [ ] **Touches:** `db/migrate/...`, `app/models/x.rb`, `app/controllers/y_controller.rb`, `app/views/...`, `spec/system/..._spec.rb`
- [ ] **End-to-end test (write first, watch it fail, then build the slice to green):**
[The system/request scenario that proves the whole path: what the user does, what they should see. This is the slice's definition of done.]
- [ ] **Notes:** [Only what's non-obvious — intent level. Include EXACT code ONLY for: migrations & data migrations, destructive operations, or non-obvious config (cron syntax, middleware registration, API-specific handling).]
Do not expand a slice into "write failing test → run to confirm fail → implement → run to confirm pass → commit" steps. The executor runs TDD and commits per slice as a matter of course — the slice's end-to-end test IS the failing test they start from.
Every slice must carry real content. These are plan failures:
Some work is genuinely infrastructural — a refactor, or a shared abstraction nothing uses yet. Do not let it relapse into layer tasks. In order of preference:
### Slice N: Groundwork — … like any other unit, so executors extract it as its own unit.Never split foundational work back into model / controller / view layers.
| Rationalization | Reality |
|---|---|
| "The spec has a data-model section, so I'll make a model task" | The data model is split across the slices that use it. No model-only task. |
| "Build the foundation first, then features" | Foundation-first = nothing ships until the end. Fold foundations into Slice 1. |
| "Test everything at the end" | Each slice ships with its own e2e test, or it isn't a slice. |
| "Spelling out every step is safer" | It suppresses the executor's judgment and bloats the plan. State intent. |
| "This layer is shared, it deserves its own task" | Put it in the first slice that needs it; later slices extend it. |
After writing the plan, check it against the spec with fresh eyes (a checklist you run yourself, not a subagent):
Fix issues inline.
After saving and self-reviewing the plan, link it for your human partner to read. If they have already explicitly supplied an execution method, ask them to review the plan and confirm it captures what they want; wait for that review before implementation, then use the preserved method. Otherwise, ask them to review the plan and choose an execution method before implementation.
When no execution method has already been supplied:
"Plan complete and saved to docs/superpowers/plans/<filename>.md. Please review the plan. Which execution approach would you prefer?
For this plan I recommend , because <one sentence from the plan: how much the slices build on each other, how many there are, what a shipped mistake would cost>. Does the plan capture what you want, and which approach should we use?"
When an execution method has already been supplied:
"Plan complete and saved to docs/superpowers/plans/<filename>.md. Please review the plan. Does it capture what you want?"
If Subagent-driven chosen: REQUIRED SUB-SKILL: Use superpowers-rails:subagent-driven-development If Native chosen: REQUIRED SUB-SKILL: Use superpowers-rails:executing-plans
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
23 skills in this plugin
/brainstormingYou MUST use this before any creative work - creating features, building components, adding functionality, or modifying behavior. Explores user intent, requirements and design before implementation./diagnosing-superpowersUse when a superpowers session went wrong and your human partner wants to know why — repeated work, ignored plans, stumbles, poor results, a skill that didn't fire, "it took too long", "why is it so expensive", "what is it doing" — or wants to build a bug report for the superpowers maintainers, for the current session or a past one identified by id or path, on any harness./dispatching-parallel-agentsUse when facing 2+ independent tasks that can be worked on without shared state or sequential dependenciesnpx claudepluginhub fryga-io/superpowers-rails --plugin superpowers-railsOther plugins' skills for the same job