← the whole session plugin/skills/superpowers-use/SKILL.md
MANDATORY orchestrator that forces the full Superpowers workflow chain. Invoke at the start of ANY non-trivial task. Enforces brainstorm → plan → worktree → execute (TDD + subagents) → verify → review → finish. No skipping phases.
Superpowers Full Chain Orchestrator
This skill forces the complete Superpowers development workflow as a sequential pipeline. Each phase is a hard gate — you cannot advance without completing the current phase.
When to Use
ANY task that involves writing or modifying code. The only exemptions:
- Pure questions with no code output
- Single-line typo fixes the user pointed to explicitly
- Reading/researching with no implementation
If you're unsure, use it. The cost of an unnecessary brainstorm is 2 minutes. The cost of skipping planning on a complex task is hours of rework.
Availability Check (run once, before Phase 1)
This chain was originally built entirely on the third-party superpowers plugin (superpowers:brainstorming, superpowers:writing-plans, superpowers:using-git-worktrees, superpowers:executing-plans, superpowers:subagent-driven-development, superpowers:test-driven-development, superpowers:verification-before-completion, superpowers:requesting-code-review, superpowers:finishing-a-development-branch, superpowers:systematic-debugging, superpowers:dispatching-parallel-agents — MIT-licensed, by Jesse Vincent, not part of this harness). It is genuinely excellent for this and is worth installing from the official Claude Code plugin marketplace if you don't have it — but this skill must not silently pretend a phase ran when its target skill doesn't exist.
Before Phase 1, check whether the superpowers plugin's skills resolve (for example, via ListSkills/SearchSkills, or by noting whether they appear in your available-skills listing). Then:
- If installed: run the chain exactly as written below — every "Invoke:" line refers to the real
superpowers:skill, unmodified. - If not installed: say so plainly ("the
superpowersplugin isn't installed — I'll run the same seven phases using this harness's own equivalents instead, or I can help you install it first if you'd rather have the original"), then use the harness-native fallback named in each phase's "Otherwise:" line below instead of thesuperpowers:skill. Never invoke a skill name that doesn't resolve and never fabricate output as if a phase ran when its target wasn't available.
The Chain
Phase 1: BRAINSTORM ──→ Phase 2: PLAN ──→ Phase 3: WORKTREE ──→ Phase 4: EXECUTE ──→ Phase 5: VERIFY ──→ Phase 6: REVIEW ──→ Phase 7: FINISH
Each phase invokes a specific Superpowers skill. You MUST use the Skill tool to invoke each one — do not attempt to "do the spirit of the skill" from memory.
Phase 1: BRAINSTORM
Invoke: superpowers:brainstorming
Otherwise: /align (surface what's observed vs. imagined about the request, propose 2-3 approaches with tradeoffs, get explicit confirmation before writing the spec) followed by /ask for any open question that needs the person's input before proceeding.
Gate: Do NOT proceed until:
- You explored project context (files, docs, commits)
- You asked clarifying questions (one at a time)
- You proposed 2-3 approaches with trade-offs
- You presented the design in sections
- The user approved the design
- You wrote a spec to
docs/superpowers/specs/YYYY-MM-DD-<topic>-design.md - You ran the spec self-review (placeholders, consistency, scope, ambiguity)
- The user reviewed and approved the written spec
Print to user at start: "Phase 1/7: BRAINSTORMING — exploring your idea before any code."
Exit condition: User approves the written spec.
Phase 2: PLAN
Invoke: superpowers:writing-plans
Otherwise: /superpowers-writing-plans-v2 (ships with this harness — same bite-sized-task, no-placeholder discipline)
Gate: Do NOT proceed until:
- You mapped the file structure (what files get created/modified)
- You decomposed into bite-sized tasks (2-5 min each)
- Each task has: exact file paths, complete code blocks, test code, run commands with expected output
- No placeholders ("TBD", "TODO", "similar to Task N")
- You ran the plan self-review (spec coverage, placeholder scan, type consistency)
- Plan saved to
docs/superpowers/plans/YYYY-MM-DD-<feature-name>.md - You offered execution choice (subagent-driven vs inline)
Print to user at start: "Phase 2/7: PLANNING — writing implementation plan for the approved spec."
Exit condition: Plan written, self-reviewed, user chose execution mode.
Phase 3: WORKTREE
Invoke: superpowers:using-git-worktrees
Otherwise: /worktree-pr-workflow (ships with this harness)
Gate: Do NOT write any implementation code on main/master without explicit user consent.
- Created isolated worktree for the feature
- Verified worktree is clean and on correct base branch
Print to user at start: "Phase 3/7: WORKTREE — isolating work from main branch."
Exit condition: Working in an isolated worktree.
Skip condition: User explicitly says to work on current branch, OR task is small enough that worktree isolation adds no value AND user confirms.
Phase 4: EXECUTE
Invoke one of:
superpowers:subagent-driven-development(recommended — if user chose subagent mode in Phase 2)superpowers:executing-plans(if user chose inline mode)
Otherwise: /execute or /execute2 (both ship with this harness) for inline execution; for subagent-driven execution, dispatch one general-purpose implementer Agent per task directly, following the same per-task sequence described below (implementer → spec reviewer → quality reviewer).
During execution, EVERY code change MUST follow TDD:
- Invoke
superpowers:test-driven-developmentfor each task (otherwise: follow standard red-green-refactor TDD directly — this project's own testing conventions, or/test-fixtures-and-mockingif this harness's copy is installed, cover the mechanics) - Write failing test FIRST
- Watch it fail (mandatory — never skip)
- Write minimal code to pass
- Watch it pass
- Refactor only after green
- Commit after each task
For subagent-driven mode, per task:
- Dispatch implementer subagent with full task text + context
- Dispatch spec reviewer subagent — confirms code matches spec
- Dispatch code quality reviewer subagent — confirms code quality
- Fix any issues found by reviewers before advancing
Gate: Do NOT advance to Phase 5 until:
- All tasks from the plan are complete
- Every task followed red-green-refactor TDD cycle
- Spec compliance confirmed for each task
- Code quality confirmed for each task
Print to user at start: "Phase 4/7: EXECUTING — implementing plan with TDD and review gates."
Exit condition: All plan tasks complete, all reviews passed.
Phase 5: VERIFY
Invoke: superpowers:verification-before-completion
Otherwise: /verification-gate or /verify (both ship with this harness) — same iron law, run the real commands and show the real output.
The Iron Law: NO COMPLETION CLAIMS WITHOUT FRESH VERIFICATION EVIDENCE.
Gate: Do NOT proceed until:
- You identified verification commands for every claim
- You ran EVERY verification command (fresh, in this message)
- You read full output and checked exit codes
- You confirmed output matches expected results
- You stated results WITH evidence (not "should work")
Verification checklist:
- Test suite passes (show output: X/X pass, 0 failures)
- Build succeeds (show exit code 0)
- Linter clean (show 0 errors)
- Original requirements met (line-by-line check against spec)
- No regressions (existing tests still pass)
Red flags — STOP if you catch yourself:
- Using "should", "probably", "seems to"
- Saying "Done!" before running verification
- Thinking "partial check is enough"
Print to user at start: "Phase 5/7: VERIFYING — running all verification commands before claiming completion."
Exit condition: All verification commands run, all pass, evidence shown.
Phase 6: REVIEW
Invoke: superpowers:requesting-code-review
Otherwise: the built-in /code-review skill if your Claude Code version ships one, or dispatch a general-purpose review Agent directly with the git SHAs and full context, instructed to review independently rather than rubber-stamp.
Gate: Do NOT proceed until:
- You dispatched a code-reviewer subagent with git SHAs and context
- Reviewer returned findings
- All Critical issues fixed
- All Important issues fixed
- Minor issues noted (fix or acknowledge)
Print to user at start: "Phase 6/7: CODE REVIEW — dispatching independent reviewer before finishing."
Exit condition: Code review passed or all issues addressed.
Phase 7: FINISH
Invoke: superpowers:finishing-a-development-branch
Otherwise: /commit (ships with this harness) for the commit step, then present the same 4 integration options manually.
Process:
- Verify tests pass (again — fresh run)
- Present exactly 4 options:
- Merge locally
- Push and create PR
- Keep branch as-is
- Discard
- Execute user's choice
- Clean up worktree if applicable
Print to user at start: "Phase 7/7: FINISHING — integrating completed work."
Exit condition: User chose integration path, work integrated or preserved.
Phase Tracking
At the START of each phase, print this status bar:
SUPERPOWERS CHAIN: [1-BRAINSTORM] → [2-PLAN] → [3-WORKTREE] → [4-EXECUTE] → [5-VERIFY] → [6-REVIEW] → [7-FINISH]
^^^^^^^^^^^^
YOU ARE HERE
Update the pointer for each phase. This gives the user a persistent visual of where you are in the pipeline.
Handling Bugs During Execution
If you encounter a bug during Phase 4 (EXECUTE):
- Invoke
superpowers:systematic-debugging(otherwise: apply the same discipline directly — find root cause before attempting any fix, per whatever debugging skill this project has, e.g./superpowers-systematic-debuggingif a copy of it is installed elsewhere) - Find root cause BEFORE attempting fixes
- Write a failing test that reproduces the bug (TDD)
- Fix minimally
- Verify the fix
- Resume execution
Handling Parallel Tasks
If Phase 2 (PLAN) reveals 2+ independent tasks:
- Invoke
superpowers:dispatching-parallel-agents(otherwise: dispatch one general-purpose Agent per independent problem domain directly, in a single message so they run concurrently) - One agent per independent problem domain
- Each agent follows TDD independently
- Coordinate results before advancing to Phase 5
Anti-Patterns This Skill Prevents
| Without this skill | With this skill |
|---|---|
| Jump straight to code | Must brainstorm and get approval first |
| Write code, then tests | Must write failing test first (TDD) |
| Claim "it works" without running tests | Must show verification output |
| Self-assess quality | Independent reviewer subagent assesses |
| Work on main branch | Isolated worktree by default |
| Skip planning for "simple" tasks | Every task gets a plan |
| Merge without review | Code review gate before finish |
User Overrides
The user can override any phase:
- "Skip brainstorming" → jump to Phase 2
- "Skip planning" → jump to Phase 3 (only if requirements are crystal clear)
- "No worktree needed" → skip Phase 3
- "Skip TDD" → execute without test-first (user must explicitly say this)
- "Skip review" → jump to Phase 7
These overrides must be EXPLICIT. You cannot infer them. "Just do it" does NOT mean skip phases — it means execute the phases efficiently.
Quick Reference
| Phase | Skill to Invoke | Otherwise (superpowers plugin not installed) | Key Gate |
|---|---|---|---|
| 1. Brainstorm | superpowers:brainstorming |
/align + /ask |
User approves spec |
| 2. Plan | superpowers:writing-plans |
/superpowers-writing-plans-v2 |
Plan written + self-reviewed |
| 3. Worktree | superpowers:using-git-worktrees |
/worktree-pr-workflow |
Isolated branch created |
| 4. Execute | superpowers:subagent-driven-development or superpowers:executing-plans |
/execute / /execute2, or direct Agent dispatch |
All tasks done + reviewed |
| 5. Verify | superpowers:verification-before-completion |
/verification-gate or /verify |
All checks pass with evidence |
| 6. Review | superpowers:requesting-code-review |
Built-in /code-review, or a direct review Agent dispatch |
Reviewer approved |
| 7. Finish | superpowers:finishing-a-development-branch |
/commit + manual integration choice |
User chose integration path |