Superpowers is a complete software development methodology that provides AI agents with a structured, repeatable workflow. Ported from the obra/superpowers project, it breaks down the software development process into 7 core phases, each with dedicated skills and checkpoints to ensure high-quality, maintainable code output.
Superpowers follows a strict 7-phase workflow. Each phase is mandatory and cannot be skipped:
Trigger: Automatically activates at the start of any development task.
Goal: Clarify the user's real needs through questioning, explore alternatives, and produce a verifiable design document.
Key Actions:
design.mdTrigger: After Brainstorming completes.
Goal: Ensure the design is complete, feasible, and meets user expectations.
Key Actions:
Trigger: After design validation passes.
Goal: Decompose the design into executable, fine-grained development tasks.
Key Actions:
plan.mdTrigger: Automatically activates during implementation.
Goal: Enforce the Red-Green-Refactor cycle.
Key Actions:
Trigger: After plan approval.
Goal: Use subagents to execute tasks in parallel or sequentially.
Key Actions:
Trigger: Between tasks or upon completion.
Goal: Ensure code meets plan and quality standards.
Key Actions:
review.mdTrigger: After all tasks complete.
Goal: Cleanly finish the development cycle.
Key Actions:
Superpowers is a mandatory workflow, not an optional suggestion. When any of the following is detected, the corresponding skill must activate:
Each phase produces documentation to ensure traceability:
| Phase | Output File | Purpose |
|---|---|---|
| ------- | ------------ | --------- |
| Brainstorming | design.md | Complete design document |
| Planning | plan.md | Detailed implementation plan |
| Development | code/ | Source code |
| Review | review.md | Code review report |
| Finish | final_report.md | Project summary |
User Request: "Build me a todo app"
Issue: Subagent deviates from plan
Solution: Stop immediately, analyze the deviation, adjust plan or re-dispatch
Issue: Tests failing
Solution: Return to Red phase, analyze failure cause, fix tests or code
Issue: Requirements change
Solution: Return to Brainstorming phase, re-evaluate design
For detailed workflow guides and best practices, see references/workflow.md and references/best_practices.md.
This skill includes bundled resource directories for organizing different types of content:
Executable code (Python/Bash/etc.) that can be run directly to perform specific operations.
Examples from other skills:
fill_fillable_fields.py, extract_form_field_info.py - utilities for PDF manipulationdocument.py, utilities.py - Python modules for document processingAppropriate for: Python scripts, shell scripts, or any executable code that performs automation, data processing, or specific operations.
Documentation and reference material intended to be loaded into context to inform the agent's process and thinking.
Examples from other skills:
communication.md, context_building.md - detailed workflow guidesAppropriate for: In-depth documentation, API references, database schemas, comprehensive guides, or any detailed information to reference while working.
Files not intended to be loaded into context, but rather used within the output produced.
Examples from other skills:
Appropriate for: Templates, boilerplate code, document templates, images, icons, fonts, or any files meant to be copied or used in the final output.
Any unneeded directories can be deleted. Not every skill requires all three types of resources.
共 2 个版本