Superpowers 是一个完整的 AI 编码代理软件开发方法论,通过 14 个可组合 Skills 覆盖从头脑风暴到代码交付的完整生命周期。
- 🧩 14-Skill 组合系统:每个 Skill 专注一个开发环节,可灵活组合成完整工作流
- 👁️ 可视化头脑风暴伴侣:基于浏览器的交互式服务器,辅助需求探索与设计讨论
- 🤖 Subagent 驱动开发:将任务分解为并行子代理执行,支持代码审查、规范审查
- 🔄 TDD 工作流:测试驱动开发集成,包含测试反模式指南
- 🔌 多平台支持:Claude Code、Codex CLI、Gemini CLI、OpenCode、Cursor、Copilot CLI
- 146 个文件,14 个独立 Skills,完整测试套件
- Version 5.1.0,npm 包格式
- 零外部依赖政策
- 6 平台支持(插件 + 扩展配置)
One-Line Summary
Section titled “One-Line Summary”Superpowers is a complete software development methodology for AI coding agents, covering the full lifecycle from brainstorming to code delivery through 14 composable skills.
Core Capabilities
Section titled “Core Capabilities”- 🧩 14-Skill Composite System: Each skill focuses on one development phase, flexibly composable into complete workflows
- 👁️ Visual Brainstorming Companion: Browser-based interactive server for requirement exploration and design discussion
- 🤖 Subagent-Driven Development: Decompose tasks into parallel sub-agents for execution, supporting code review and spec review
- 🔄 TDD Workflow: Test-driven development integration with testing anti-pattern guide
- 🔌 Multi-Harness Support: Claude Code, Codex CLI, Gemini CLI, OpenCode, Cursor, Copilot CLI
Key Metrics
Section titled “Key Metrics”- 146 files, 14 independent skills, comprehensive test suites
- Version 5.1.0, npm package format
- Zero external dependency policy
- 6-platform support (plugins + extension config)
File Inventory
Section titled “File Inventory”- superpowers
- CLAUDE.md
- README.md
- GEMINI.md
- CODE_OF_CONDUCT.md
- RELEASE-NOTES.md
- package.json
- gemini-extension.json
- .version-bump.json
- .github
- .claude-plugin
- .codex-plugin
- .cursor-plugin
- docs
- README.opencode.md
- testing.md
- windows
- plans
- superpowers
- plans
- specs
- hooks
- scripts
- skills
- brainstorming
- dispatching-parallel-agents
- executing-plans
- finishing-a-development-branch
- receiving-code-review
- requesting-code-review
- subagent-driven-development
- systematic-debugging
- test-driven-development
- using-git-worktrees
- using-superpowers
- SKILL.md
- references
- verification-before-completion
- writing-plans
- writing-skills
- tests
- brainstorm-server
- claude-code
- codex-plugin-sync
- explicit-skill-requests
- opencode
- skill-triggering
- subagent-driven-dev
- run-test.sh
- go-fractals
- svelte-todo
14-Skill 可组合系统架构
Section titled “14-Skill 可组合系统架构”Superpowers 不是一个单一的 Skill,而是一个 Skill 框架——14 个独立 Skill 形成一个完整的开发方法论。每个 Skill 专注一个环节,通过 CLAUDE.md 引导加载器在会话启动时自动装载。
Skill 生命周期
Section titled “Skill 生命周期”核心开发流程由 7 个 Skill 组成一个管道:
- brainstorming → 需求探索与设计讨论(含可视化伴侣服务器)
- writing-plans → 编写实施计划(含计划文档审查器)
- subagent-driven-development → 将任务分解为并行子代理执行
- requesting-code-review → 请求代码审查(含审查者提示)
- receiving-code-review → 接收并处理审查反馈
- verification-before-completion → 完成前验证清单检查
- finishing-a-development-branch → 清理、提交、合并
辅助 Skills
Section titled “辅助 Skills”另有 7 个辅助 Skill 提供支撑:
- using-superpowers:框架引导加载器——在会话启动时自动装载所有 Skill
- using-git-worktrees:Git Worktree 隔离开发
- test-driven-development:测试驱动开发指南(含测试反模式)
- systematic-debugging:系统性调试方法论(含 git bisect 封装)
- writing-skills:编写和修改 Skill 的元 Skill(含 Graphviz 渲染器)
- dispatching-parallel-agents:并行 Agent 调度器
- executing-plans:计划的批量执行
多平台支持架构
Section titled “多平台支持架构”Superpowers 同时支持 6 种编码代理平台,通过各自的插件机制实现:
- Claude Code:原生通过
.claude-plugin/plugin.json注册,使用 Skill 工具 - Codex CLI:通过
.codex-plugin/plugin.json注册,using-superpowers引导加载 - Gemini CLI:通过
gemini-extension.json注册 - OpenCode:通过
.opencode/plugin注册 - Cursor:通过
.cursor-plugin/plugin.json和hooks-cursor.json注册 - Copilot CLI:通过
using-superpowers/references/copilot-tools.md的参考提示支持
每种平台的引导方式不同,但核心都是让 using-superpowers Skill 在会话启动时自动装载。
CLAUDE.md 引导机制
Section titled “CLAUDE.md 引导机制”Superpowers 的 CLAUDE.md 是一个独特的”守门文档”——它不直接包含工作指令,而是设置了严格的贡献者准入标准。它包含:
- AI Agent 行为守则(94% PR 拒绝率的警示)
- 必须阅读 PR 模板并填写每个章节的要求
- 变更前的真实问题验证流程
- Skill 修改必须附带评估结果的硬性要求
- 新平台支持必须提交完整会话记录的验收测试
14-Skill Composable System Architecture
Section titled “14-Skill Composable System Architecture”Superpowers is not a single skill but a Skill Framework — 14 independent skills forming a complete development methodology. Each skill focuses on one phase, auto-loaded at session start via the CLAUDE.md bootstrap loader.
Skill Lifecycle
Section titled “Skill Lifecycle”The core development pipeline consists of 7 skills:
- brainstorming → Requirement exploration and design discussion (with visual companion server)
- writing-plans → Implementation plan writing (with plan document reviewer)
- subagent-driven-development → Task decomposition into parallel sub-agents
- requesting-code-review → Request code review (with reviewer prompts)
- receiving-code-review → Receive and process review feedback
- verification-before-completion → Pre-completion checklist verification
- finishing-a-development-branch → Cleanup, commit, merge
Support Skills
Section titled “Support Skills”7 additional support skills provide infrastructure:
- using-superpowers: Framework bootstrap loader — auto-loads all skills at session start
- using-git-worktrees: Git Worktree isolation for development
- test-driven-development: TDD guide (with testing anti-patterns)
- systematic-debugging: Systematic debugging methodology (with git bisect wrapper)
- writing-skills: Meta-skill for creating and modifying skills (with Graphviz renderer)
- dispatching-parallel-agents: Parallel agent dispatcher
- executing-plans: Batch plan execution
Multi-Harness Architecture
Section titled “Multi-Harness Architecture”Superpowers supports 6 coding agent platforms through respective plugin mechanisms:
- Claude Code: Native via
.claude-plugin/plugin.json, using the Skill tool - Codex CLI: Via
.codex-plugin/plugin.json,using-superpowersbootstrap loading - Gemini CLI: Via
gemini-extension.json - OpenCode: Via
.opencode/pluginregistration - Cursor: Via
.cursor-plugin/plugin.jsonandhooks-cursor.json - Copilot CLI: Supported via
using-superpowers/references/copilot-tools.mdreference prompts
Each platform has a different bootstrap mechanism, but the core principle is that using-superpowers auto-loads at session start.
CLAUDE.md Bootstrap Mechanism
Section titled “CLAUDE.md Bootstrap Mechanism”Superpowers’ CLAUDE.md is a unique “gatekeeper document” — it doesn’t contain direct work instructions but sets strict contributor admission standards. It includes:
- AI Agent code of conduct (94% PR rejection rate warning)
- Requirement to read the PR template and fill every section
- Real-problem verification process before changes
- Hard requirement for evaluation results with skill changes
- New platform support must include complete session transcripts for acceptance testing
Superpowers Skill 生命周期流程
graph LR BS[brainstorming] --> WP[writing-plans] WP --> SDD[subagent-driven-development] SDD --> RCR[requesting-code-review] RCR --> RCVR[receiving-code-review] RCVR --> VBC[verification-before-completion] VBC --> FDB[finishing-a-development-branch] US[using-superpowers] -.->|引导装载| BS TDD[test-driven-development] -.->|测试支撑| SDD SD[systematic-debugging] -.->|调试支撑| SDD WS[writing-skills] -.->|元技能| WP GW[using-git-worktrees] -.->|隔离开发| FDB DPA[dispatching-parallel-agents] -.->|并行调度| SDD EP[executing-plans] -.->|批量执行| SDD style BS fill:#4fc3f7,stroke:#0288d1,color:#000 style WP fill:#4fc3f7,stroke:#0288d1,color:#000 style SDD fill:#81c784,stroke:#388e3c,color:#000 style RCR fill:#81c784,stroke:#388e3c,color:#000 style RCVR fill:#81c784,stroke:#388e3c,color:#000 style VBC fill:#ffb74d,stroke:#f57c00,color:#000 style FDB fill:#ffb74d,stroke:#f57c00,color:#000 style US fill:#ce93d8,stroke:#7b1fa2,color:#000
关键脚本清单
Section titled “关键脚本清单”Key Scripts Inventory
Section titled “Key Scripts Inventory”| 脚本 | 路径 | 行数 | 功能 |
|---|---|---|---|
start-server.sh | brainstorming/scripts/ | ~149 | 启动可视化头脑风暴 HTTP 服务器,支持多平台后台进程管理 |
helper.js | brainstorming/scripts/ | ~120 | 浏览器端选区录制与 WebSocket 交互脚本 |
stop-server.sh | brainstorming/scripts/ | ~30 | 安全停止运行中的头脑风暴服务器 |
render-graphs.js | writing-skills/ | ~169 | 从 SKILL.md 中提取 dot 图并渲染为 SVG |
find-polluter.sh | systematic-debugging/ | ~60 | git bisect 自动封装,定位引入问题的提交 |
bump-version.sh | scripts/ | ~50 | 项目版本号自动升级脚本 |
sync-to-codex-plugin.sh | scripts/ | ~80 | 同步项目配置到 Codex 插件格式 |
| Script | Path | Lines | Purpose |
|---|---|---|---|
start-server.sh | brainstorming/scripts/ | ~149 | Launches the visual brainstorming HTTP server with multi-platform daemon support |
helper.js | brainstorming/scripts/ | ~120 | Browser-side selection recording and WebSocket interaction script |
stop-server.sh | brainstorming/scripts/ | ~30 | Safely stops the running brainstorming server |
render-graphs.js | writing-skills/ | ~169 | Extracts dot graphs from SKILL.md and renders them as SVG |
find-polluter.sh | systematic-debugging/ | ~60 | git bisect automation wrapper to locate the commit introducing a bug |
bump-version.sh | scripts/ | ~50 | Automated project version bumping script |
sync-to-codex-plugin.sh | scripts/ | ~80 | Syncs project configuration to Codex plugin format |
start-server.sh — 可视化头脑风暴服务器
Section titled “start-server.sh — 可视化头脑风暴服务器”start-server.sh 是 Superpowers 可视化头脑风暴系统的核心启动脚本。它启动一个 Node.js HTTP 服务器,为浏览器端提供设计协作界面。脚本处理了多平台兼容性、后台守护进程管理、会话隔离和自动停止逻辑。
start-server.sh is the core startup script for Superpowers’ visual brainstorming system. It launches a Node.js HTTP server providing a browser-based design collaboration interface. The script handles multi-platform compatibility, daemon process management, session isolation, and auto-stop logic.
render-graphs.js — Graphviz 可视化渲染
Section titled “render-graphs.js — Graphviz 可视化渲染”render-graphs.js 是 Superpowers 中 Skill 流程图的自动渲染工具。它从 SKILL.md 文件中提取 ```dot 代码块,调用系统 graphviz (dot) 命令渲染为 SVG 文件。支持单图渲染和合并渲染两种模式。
render-graphs.js is the automated diagram renderer for Superpowers skills. It extracts ```dot code blocks from SKILL.md files, invokes the system graphviz (dot) command to render SVG files. Supports both individual and combined rendering modes.
find-polluter.sh — Git Bisect 封装
Section titled “find-polluter.sh — Git Bisect 封装”find-polluter.sh 是 systematic-debugging Skill 中的核心调试工具。它封装了 git bisect 命令,自动执行二分搜索定位引入问题的提交。用户只需提供一个判断脚本(返回 0 表示”好”,非 0 表示”坏”),工具自动完成二分查找。
find-polluter.sh is the core debugging tool in the systematic-debugging skill. It wraps git bisect to automatically perform binary search locating the commit that introduced a problem. The user only provides a judgment script (returning 0 for “good”, non-zero for “bad”), and the tool handles the entire bisect process.
脚本间关系图
Section titled “脚本间关系图”Superpowers 关键辅助脚本关系
graph TD SBS["brainstorming/scripts/start-server.sh"] -->|启动| SERVER["server.cjs - Node HTTP"] SBS -->|管理| PIDF["PID File / 进程追踪"] SBS -->|检测| ENV["Codex / Windows 环境"] HJ["brainstorming/scripts/helper.js"] -->|浏览器端| UI["交互式 UI / 选区"] RGS["writing-skills/render-graphs.js"] -->|调用| DOT["System graphviz dot"] FPS["systematic-debugging/find-polluter.sh"] -->|封装| BISECT["git bisect"] FPS -->|用户提供| SCRIPT["判断脚本"] style SBS fill:#4fc3f7,stroke:#0288d1,color:#000 style RGS fill:#81c784,stroke:#388e3c,color:#000 style FPS fill:#ffb74d,stroke:#f57c00,color:#000
- 可组合 Skills 模式:14 个独立 Skill 各自专注一个开发环节,通过 CLAUDE.md 引导加载器自动编排成完整流水线——这是”微服务架构”在 AI 编码代理领域的映射
- 渐进式信息披露:每个 Skill 的 SKILL.md 遵循”metadata → body → resources”结构:先通过 YAML frontmatter(name + description)暴露触发点,再通过 Skill 体内容指导行为,最后通过引用文件提供深度支撑
- 多平台适配模式:一套代码库同时支持 6 种编码代理平台(Claude Code、Codex CLI、Gemini CLI、OpenCode、Cursor、Copilot CLI),每个平台通过各自的插件机制集成
- 可视化伴侣模式:brainstorming Skill 附带一个基于浏览器的 HTTP 服务器,在开发过程中提供交互式可视化界面——这是”编码代理 + 浏览器”协同工作的典范
- Subagent 驱动开发:将复杂任务分解为可并行执行的子任务,每个子任务由独立 subagent 完成——这是一种新颖的 AI 编码执行模型
- 零依赖设计哲学:整个框架不依赖任何外部 npm 包或系统库(除了可选的 graphviz),安装即用
- CLAUDE.md 作为守门员:通过严格的 PR 验收标准和行为准则,确保贡献质量和项目方向可控
如何构建自己的 Skill 框架
Section titled “如何构建自己的 Skill 框架”“如果你想为你的团队或领域构建一套类似的 Skill 框架…”
- 从 using-superpowers 开始:这是整个框架的入口点。创建一个引导 Skill,在会话启动时加载所有其他 Skill
- 定义你的开发阶段:识别你领域中的关键环节,为每个环节创建一个 Skill(如 brainstorming → planning → execution → review)
- 设计 Skill 关系图:明确每个 Skill 的输入/输出和前驱/后继关系
- 实现 Skill 内容:按”metadata → body → resources”结构编写每个 SKILL.md
- 添加辅助脚本:为 Skill 编写配套脚本(shell、Node.js、Python 等)
- 配置多平台支持:根据目标平台创建对应的插件配置文件(.claude-plugin、.codex-plugin 等)
- 构建测试体系:为每个 Skill 创建触发测试和功能测试
- 编写 CLAUDE.md 守则:建立贡献标准,确保 AI 代理遵守框架规范
- ⚠️ 不要让 Skills 之间冲突:多个 Skill 可能对同一场景有不同指令,需要明确优先级规则(用户指令 > Superpowers Skills > 默认系统提示)
- ⚠️ 引导加载器必须可靠:如果 using-superpowers 没有在会话启动时加载,所有 Skill 都不会自动触发
- ⚠️ 不要过度设计 Skill 粒度:Skill 太多会让引导加载器变慢,Skill 太少又不够灵活——14 个是一个经过实践验证的平衡点
- ⚠️ 多平台测试要完整:每个平台的插件机制不同,同一个 Skill 在不同平台上的触发行为可能不同,需要逐一验证
- ⚠️ Skill 修改必须附带评估:Superpowers 要求任何行为修改必须附带 before/after eval 结果——这是确保质量的有效手段
Design Highlights
Section titled “Design Highlights”- Composable Skills Pattern: 14 independent skills each focus on one development phase, automatically orchestrated into a complete pipeline by the CLAUDE.md bootstrap loader — a “microservices architecture” mapped to the AI coding agent domain
- Progressive Disclosure: Each skill’s SKILL.md follows “metadata → body → resources” structure: trigger points exposed first via YAML frontmatter (name + description), then behavioral guidance via skill body, then deep support via reference files
- Multi-Harness Pattern: Single codebase supporting 6 coding agent platforms (Claude Code, Codex CLI, Gemini CLI, OpenCode, Cursor, Copilot CLI), each integrated through their respective plugin mechanisms
- Visual Companion Pattern: The brainstorming skill includes a browser-based HTTP server providing interactive visual interfaces during development — a model for “coding agent + browser” collaboration
- Subagent-Driven Development: Complex tasks decomposed into parallel sub-tasks, each completed by an independent subagent — a novel AI coding execution model
- Zero-Dependency Philosophy: The entire framework depends on no external npm packages or system libraries (except optional graphviz) — install and use instantly
- CLAUDE.md as Gatekeeper: Strict PR acceptance standards and behavioral guidelines ensure contribution quality and project direction control
Reusable Patterns
Section titled “Reusable Patterns”How to Build Your Own Skill Framework
Section titled “How to Build Your Own Skill Framework”“If you want to build a similar Skill framework for your team or domain…”
- Start with using-superpowers: This is the framework entry point. Create a bootstrap skill that loads all other skills at session start
- Define your development phases: Identify key phases in your domain, create one skill per phase (e.g., brainstorming → planning → execution → review)
- Design skill relationship graph: Clarify each skill’s inputs/outputs and predecessor/successor relationships
- Implement skill content: Write each SKILL.md following “metadata → body → resources” structure
- Add supporting scripts: Write companion scripts for skills (shell, Node.js, Python, etc.)
- Configure multi-platform support: Create corresponding plugin config files per target platform (.claude-plugin, .codex-plugin, etc.)
- Build test infrastructure: Create trigger tests and functional tests for each skill
- Write CLAUDE.md rules: Establish contribution standards to ensure AI agents follow framework norms
Common Pitfalls
Section titled “Common Pitfalls”- ⚠️ Don’t let skills conflict: Multiple skills may have different instructions for the same scenario. Clear priority rules are needed (user instructions > Superpowers Skills > default system prompt)
- ⚠️ Bootstrap loader must be reliable: If using-superpowers doesn’t load at session start, no skills will auto-trigger
- ⚠️ Don’t over-design skill granularity: Too many skills slow the bootstrap loader, too few lacks flexibility — 14 is a proven balance point
- ⚠️ Complete multi-platform testing required: Each platform has different plugin mechanisms; the same skill may trigger differently on different platforms
- ⚠️ Skill changes must include evaluation: Superpowers requires any behavioral modification to include before/after eval results — an effective quality assurance measure
| 模式 | 说明 | 适用于... |
|---|---|---|
| 可组合 Skills | 多个独立 Skill 形成开发流水线 | 任何需要多阶段流程的 AI 编码场景 |
| 多平台适配 | 一套代码支持 6 种编码代理 | 需要跨平台分发的 Skill 框架 |
| 可视化伴侣 | 浏览器端界面辅助开发过程 | 需要交互式设计的 Skill |
| Subagent 驱动 | 任务分解为并行子代理执行 | 大规模、多模块的编码任务 |
| CLAUDE.md 守门 | 严格贡献标准确保质量 | 开源项目或团队协作 |
| Pattern | Description | Applies to... |
|---|---|---|
| Composable Skills | Multiple independent skills form a development pipeline | Any AI coding scenario needing multi-phase workflow |
| Multi-Harness | Single codebase supporting 6 coding agents | Skill frameworks needing cross-platform distribution |
| Visual Companion | Browser-based interface assisting development | Skills needing interactive design |
| Subagent-Driven | Task decomposition into parallel sub-agent execution | Large-scale, multi-module coding tasks |
| CLAUDE.md Gatekeeping | Strict contribution standards ensuring quality | Open source projects or team collaboration |