AgentSkillsCN

superpowers-reference

Superpowers 模式、代理、配方及反模式的完整参考表

SKILL.md
--- frontmatter
name: superpowers-reference
description: "Complete reference tables for Superpowers modes, agents, recipes, and anti-patterns"

Reference: The Superpowers Pipeline

The full development workflow:

code
/brainstorm  ->  Design document (user validates each section)
     |
/write-plan  ->  Implementation plan (bite-sized TDD tasks)
     |
/execute-plan  ->  Subagent-driven development (implement -> spec-review -> quality-review per task)
     |
/verify  ->  Fresh evidence that everything works
     |
/finish  ->  Merge / PR / Keep / Discard

At any point, if bugs arise: /debug (4-phase systematic debugging).

Priority order when multiple modes could apply:

  1. Process modes first (/brainstorm, /debug) -- determine HOW to approach the task
  2. Implementation modes second (/write-plan, /execute-plan) -- guide execution
  3. Completion modes last (/verify, /finish) -- close out work

Reference: Mode Tool

The mode tool allows programmatic mode transitions. Use mode(operation="set", name="write-plan") to request a mode change. The first request will be blocked with a reminder — call again to confirm. This is useful when agents need to request transitions during automated workflows.

Reference: Modes

ModeShortcutPurposeWho Does The Work
Brainstorm/brainstormDesign refinement through collaborative dialogueYou (main agent)
Write Plan/write-planCreate detailed implementation plan with TDD tasksYou (main agent)
Execute Plan/execute-planSubagent-driven development with three-agent pipelineSubagents (you orchestrate)
Debug/debug4-phase systematic debuggingYou (main agent)
Verify/verifyEvidence-based completion verificationYou (main agent)
Finish/finishComplete branch -- verify, merge/PR/keep/discardYou (main agent)

Reference: Agents

AgentPurposeWhen to Use
superpowers:brainstormerDesign refinement specialistMANDATORY — after brainstorm conversation, delegate document creation
superpowers:plan-writerDetailed plan creationMANDATORY — after write-plan conversation, delegate plan creation
superpowers:implementerImplements tasks following strict TDDMANDATORY -- every task in /execute-plan
superpowers:spec-reviewerReviews implementation against specMANDATORY -- every task in /execute-plan, after implementer
superpowers:code-quality-reviewerReviews code quality and best practicesMANDATORY -- every task in /execute-plan, after spec-reviewer

Delegation rules:

  • Brainstorm and Write-Plan: YOU own the conversation. When it's time to write the artifact, delegate to the brainstormer/plan-writer agent. The back-and-forth with the user is what makes these phases effective. The agent writes the document after you've validated everything.
  • Execute-Plan: YOU delegate everything. You are the orchestrator. Every task goes through the three-agent pipeline (implementer -> spec-reviewer -> code-quality-reviewer). You never write code in this mode.
  • Debug, Verify, Finish: YOU do the work directly. You may delegate to foundation:bug-hunter for multi-file investigation in debug mode, but you own the process.

Why fresh subagents per task:

  • Clean context — No pollution from previous work
  • Focused attention — Single task, single responsibility
  • Quality gates — Review checkpoints catch issues early
  • Parallel safety — Subagents don't interfere with each other

Reference: Recipes

Execute these workflows using the recipes tool:

RecipePurposeWhen to Use
superpowers:recipes/superpowers-full-development-cycle.yamlEnd-to-end: idea to merged codeComplete feature development
superpowers:recipes/brainstorming.yamlRefine ideas into designsStarting a new feature
superpowers:recipes/writing-plans.yamlCreate detailed implementation plansAfter design is approved
superpowers:recipes/executing-plans.yamlExecute plans in batchesFor batch execution with checkpoints
superpowers:recipes/subagent-driven-development.yamlFresh agent per task + reviewsFor same-session execution with foreach
superpowers:recipes/git-worktree-setup.yamlCreate isolated workspaceBefore implementation
superpowers:recipes/finish-branch.yamlComplete development branchAfter implementation done

Reference: Anti-Rationalization Table

Your ExcuseWhy It's WrongWhat You MUST Do
"This is a simple/trivial change"Simple changes cause production outages. They still need tests and review.Follow the appropriate mode's process.
"I can do this faster myself"Speed is not the goal. Tested, reviewed, quality code is the goal.In /execute-plan: delegate. In /brainstorm: follow the process.
"The user seems to want a quick response"The user chose the Superpowers methodology. They want quality.Give them the full process for the active mode.
"I'll write the test after"That's not TDD. Test FIRST defines what you need, not confirms what you wrote.RED-GREEN-REFACTOR. Always.
"This doesn't need a review"Everything in /execute-plan needs review. Both reviews.Delegate to spec-reviewer, then code-quality-reviewer.
"I need to debug this myself"Use /debug mode and follow the 4-phase framework.Activate debug mode. Phase 1 before any fixes.
"I already know what to build"Then the brainstorming questions will be fast. That's not a reason to skip design.Follow /brainstorm process. Assumptions kill designs.
"The plan is obvious"If it's obvious, writing exact code will be fast. Vague plans produce bad implementations.Follow /write-plan process. Every task needs complete code.
"Should work now"Run the verification. "Should" is not evidence.Use /verify. Run the command. Read the output. THEN claim.
"Just one more fix attempt"3+ failed fixes = architectural problem. Stop fixing symptoms.Question the architecture. Discuss with user.
"No mode applies here"If there's even a 1% chance, suggest it. Let the user decide.State which mode might apply and why.

Reference: Key Rules

  1. Standing Order First -- Check which mode applies before starting any work. Suggest it even if you're only 1% sure.
  2. Own Design Conversations, Delegate Artifacts -- You brainstorm and write plans through conversation. When it's time to produce the document, delegate to the brainstormer/plan-writer agent.
  3. Delegate in Execution -- Every task in /execute-plan goes through the three-agent pipeline. No exceptions.
  4. TDD Always -- No production code without failing test first.
  5. Verify Everything -- Evidence before claims, fresh commands before assertions.
  6. Systematic Debugging -- Root cause before fixes, 4 phases in order.
  7. Human Checkpoints -- Validate designs section by section, approval gates at critical points.
  8. Two-Stage Review -- Spec compliance first, then code quality -- for EVERY task in execution.

Reference: Skills

Load these for reference using the skills tool:

SkillPurpose
test-driven-developmentTDD methodology and rules
systematic-debugging4-phase debugging framework
verification-before-completionGate Function for verification — no claims without fresh evidence

Philosophy Reference

For deep understanding of the principles, see:

  • superpowers:context/philosophy.md -- Core principles, anti-patterns, and the two-stage review pattern