Superpowers — What It Does & How It Orchestrates Skills

Superpowers — What It Does & How It Orchestrates Skills

1. What this repo is

Superpowers is a complete software-development methodology for coding agents, packaged as a
zero-dependency plugin. It is not application code — it ships a library of skills (markdown
playbooks) plus a single session-start hook that bootstraps the agent into using them.

The core idea: when you tell your agent “let’s build X”, it shouldn’t jump straight to writing code.
Instead it should step back, brainstorm a spec, write a plan, execute the plan task-by-task with
fresh subagents and review gates, then verify and integrate. Superpowers encodes that whole loop as
auto-triggering skills so you get the discipline “for free”.

It targets many harnesses from one source: Claude Code, Codex CLI/App, Factory Droid, Gemini CLI,
OpenCode, Cursor, GitHub Copilot CLI (see .claude-plugin/, .codex-plugin/, .cursor-plugin/,
.opencode/, gemini-extension.json).

2. The building blocks

ComponentLocationRole
Skillsskills/*/SKILL.mdOne folder per skill. Frontmatter (name + description) tells the agent when to invoke; body tells it how to act.
Session-start hookhooks/session-start + hooks/hooks.jsonInjects the using-superpowers skill into context at session start so skills auto-trigger.
Cross-platform wrapperhooks/run-hook.cmdPolyglot bat/bash script so the hook runs on Windows and Unix.
Support filesskills/*/*.md, scripts/, *-prompt.mdSubagent prompts, reviewer prompts, examples, helper scripts referenced by skills.
Plugin manifests.*-plugin/, gemini-extension.jsonRegister the plugin + hook with each harness.

The skill catalog

using-superpowers ............ Bootstrap: how to find & invoke every other skill
brainstorming ................ Idea → approved design spec (gate before any code)
writing-plans ................ Spec → bite-sized TDD implementation plan
subagent-driven-development .. Execute plan in-session via fresh subagent per task
executing-plans .............. Execute plan in a separate session (no-subagent fallback)
dispatching-parallel-agents .. Fan out 2+ independent tasks concurrently
test-driven-development ...... Red/green TDD discipline for each task
systematic-debugging ......... Root-cause-first bug investigation
requesting-code-review ....... Spawn reviewer subagent to check work
receiving-code-review ........ Evaluate review feedback with rigor, not blind agreement
verification-before-completion Run real verification before claiming "done"
finishing-a-development-branch Decide merge / PR / cleanup at the end
using-git-worktrees .......... Isolated workspace for feature work
writing-skills ............... Meta-skill: author & pressure-test new skills

3. How orchestration actually works

There is no central scheduler. Orchestration is emergent from three mechanisms:

  1. Bootstrap injection (the hook). On startup | clear | compact, hooks.json runs
    hooks/session-start, which reads skills/using-superpowers/SKILL.md, JSON-escapes it, and emits
    it as additionalContext (with per-harness field names: additional_context for Cursor,
    hookSpecificOutput.additionalContext for Claude Code, top-level additionalContext for Copilot).
    This plants the rule: “if there’s even a 1% chance a skill applies, invoke it before responding.”

  2. Description-as-trigger. Each skill’s frontmatter description is a when-to-use sentence
    (“Use when encountering any bug…”, “before any creative work…”). The agent pattern-matches the
    user’s request against these descriptions and invokes the matching skill via the Skill tool.

  3. Skill-to-skill handoff. Skill bodies explicitly name the next skill, forming a chain. E.g.
    brainstorming ends by invoking writing-plans; the plan header mandates
    subagent-driven-development; that skill calls test-driven-development and
    requesting-code-review per task; execution ends with finishing-a-development-branch.

Bootstrap sequence

UserAgentsession-start hookHarness (Claude Code / Codex / …)UserAgentsession-start hookHarness (Claude Code / Codex / …)Now knows the "1% rule":invoke a skill before respondinghandoff chain begins →SessionStart (startup/clear/compact)read using-superpowers/SKILL.mdJSON-escape + pick per-harness fieldinject as additionalContext"Let's build X"match request to a skill descriptioninvoke brainstorming (Skill tool)

The end-to-end development loop

HARD GATE: user approves design

yes, same session

no / separate session

more tasks

invoked on any bug/test failure

fan out independent tasks

Per task loop

Dispatch implementer subagent

test-driven-development
red → green → refactor

spec-compliance review subagent

code-quality review subagent

mark task complete

User: build a feature

using-superpowers
injected at session start

brainstorming
explore intent → design spec

using-git-worktrees
isolate workspace

writing-plans
spec → bite-sized TDD plan

subagents
available?

subagent-driven-development

executing-plans

requesting-code-review

receiving-code-review
evaluate feedback with rigor

verification-before-completion
run real checks, evidence not claims

finishing-a-development-branch
merge / PR / cleanup

Integrated, verified work

systematic-debugging

dispatching-parallel-agents

Decision logic baked into using-superpowers

definitely not

yes

yes

no

no

yes

User message received

Might any skill
apply? even 1%

Respond / ask clarifications

Invoke Skill tool

Announce: Using SKILL to PURPOSE

Skill has
checklist?

Create one TodoWrite item per step

Follow skill exactly

About to enter
plan mode?

Already
brainstormed?

Invoke brainstorming first

4. Why it’s built this way

  • Skills are code, not prose. They shape agent behavior, so the repo treats wording (Red Flag
    tables, “your human partner” phrasing, rationalization lists) as carefully tuned and gated behind
    eval evidence (see CLAUDE.md and writing-skills).
  • Hard gates prevent premature coding. brainstorming refuses to touch code until a design is
    approved — even for “trivial” projects.
  • Fresh subagent per task keeps each task’s context clean and preserves the orchestrator’s
    context for coordination; two-stage review (spec → quality) catches drift.
  • Zero dependencies, multi-harness. One skill library + one hook, re-targeted to every supported
    agent runner. New-harness support is judged by one acceptance test: does “Let’s make a react todo
    list” auto-trigger brainstorming?

5. TL;DR

A session-start hook injects one bootstrap skill that teaches the agent to auto-invoke skills.
Each skill’s description is its trigger; each skill’s body hands off to the next. Together they
form a disciplined loop — brainstorm → plan → TDD execute with subagent review → verify →
finish
— with debugging and parallelization woven in on demand. No orchestrator process; the
orchestration is the skills calling each other.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值