executing-plans
它能做什么
它指导 AI 智能体在一个会话中逐项完成计划中的任务,每一步前先进行测试,最后做一次总体审阅。它适合已经有计划、希望仔细执行计划的开发者。
适用场景
- ✓你已有一份书面计划,希望智能体在这个会话中执行的时候。
- ✓你希望每一步都先通过测试证明,才算完成的时候。
- ✓你希望在最后对整个更改做一次审阅,而不是每完成一项任务就审阅一次的时候。
技能链接
https://github.com/obra/superpowers/blob/main/skills/executing-plans/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请按步骤执行这个文件中的计划,逐部分测试,并在整个更改可以审阅时告诉我。”
每周 5 个新技能,1 分钟读完。
工作原理
技能按顺序处理计划,在每项更改之前先编写一个失败的测试,并确认它能通过。它会持续记录进度,并在最后对完整分支做一次审阅。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Executing Plans
Execute the plan yourself, task by task, in this session: no implementer subagent per task, no reviewer per task. One fresh-context review of the whole branch at the end.
Why inline: Subagent-driven development pays for a fresh implementer and a fresh reviewer on every task, each re-reading the codebase from zero. Inline execution pays for one context (yours) plus one reviewer at the end. What it gives up is a fresh context per task and a second pair of eyes per task. This skill keeps what those two things bought, by other means: the brief is the spec, the ledger is your memory, TDD is the per-task gate, and the final reviewer is the second pair of eyes.
Core principle: The plan already did the thinking. Execute it exactly, prove each step with a test you watched fail and then pass, and leave a record that survives your own forgetting.
Narration: between tool calls, narrate at most one short line — the ledger and the tool results carry the record.
Continuous execution: Do not pause to check in with your human partner between tasks. They chose inline execution to spend less, not to answer "should I continue?" after every task. Execute all tasks from the plan without stopping.
Rulings, not stalls. Conflicts, ambiguities, plan defects — decide them.
The spec is the binding authority, the plan is its argument, and your
judgment settles what neither answers. Record every decision in the ledger
as Ruling: <what you decided> — <why> — <what it costs if wrong>, and keep
going. Deviating from the plan without a ledgered ruling is a decision made
in secret.
Four things stop you, and only these: an irreversible or destructive operation; a security-sensitive action; a side effect outside this worktree that norms say you ask about first (a merge, a push to a shared branch, a publish); and a plan so broken that every path forward is a guess. For those, stop and ask.
When to Use
- You have a plan from superpowers:writing-plans and your human partner chose inline execution at the handoff.
- Your harness has no subagent tool (see the per-platform references in
../using-superpowers/references/). Never fabricate a dispatch; run the plan here. - Tasks are mostly independent — the same precondition as superpowers:subagent-driven-development.
A fully specified plan makes inline execution transcription plus testing: it runs well on a mid-tier session model, and the one place the most capable model earns its cost is the final review, which this skill dispatches separately. Tell your human partner so when they choose inline.
Prefer superpowers:subagent-driven-development when your human partner wants a review gate on every task, or when the plan is long enough that its later tasks would run on a compacted context. Inline execution over a long plan still works — the ledger is what makes it recoverable — but the last tasks get the least of you.
The Process
digraph process {
rankdir=TB;
subgraph cluster_per_task {
label="Per Task";
"task-start: brief + BASE; read the brief" [shape=box];
"Work the steps in order: TDD, run every verification, read every output" [shape=box];
"Step output matches plan's Expected?" [shape=diamond];
"Plan wrong? Rule and ledger. Code wrong? systematic-debugging" [shape=box];
"Commit as the plan's commit steps say" [shape=box];
"Completion contract met?" [shape=diamond];
"task-done: run tests, ledger the result; mark todo complete" [shape=box];
}
"Setup: worktree, workspace + ledger, read plan + spec, pre-flight scan" [shape=box];
"More tasks remain?" [shape=diamond];
"Final whole-branch review (fresh reviewer if you have one)" [shape=box];
"Re-grade, then: Critical/Important → ONE fix pass, each fix RED→GREEN + green suite; Minor → ledger" [shape=box];
"Final review clean: delete this plan's workspace" [shape=box];
"Use superpowers:finishing-a-development-branch" [shape=box style=filled fillcolor=lightgreen];
"Setup: worktree, workspace + ledger, read plan + spec, pre-flight scan" -> "task-start: brief + BASE; read the brief";
"task-start: brief + BASE; read the brief" -> "Work the steps in order: TDD, run every verification, read every output";
"Work the steps in order: TDD, run every verification, read every output" -> "Step output matches plan's Expected?";
"Step output matches plan's Expected?" -> "Plan wrong? Rule and le
常见问题
它会在每项任务后都停下来问我吗?
不会。它会持续完成各项任务,并自行处理小的冲突,而不是每完成一项就暂停。
这和为每项任务使用单独的工作进程一样吗?
不一样。这种方法在一个会话中完成,而其他方法会为每项任务使用单独的工作进程。
什么证明每一步是完成的?
一个先看到失败、之后又通过的测试。
详情
作者的原始描述
Use when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available
repo: obra/superpowers
热度
- GitHub 星标
- 311k
- 排名
- #92
- 许可证
- MIT
- 更新时间
- 2026/11/2
评论
- …
同一仓库的更多技能
brainstorming
311k帮你的智能体在构建任何新东西之前,先通过有针对性的问题和清晰的方案,弄清楚你真正想要什么。
finishing-a-development-branch
311k帮你的智能体收尾已完成的代码:先运行测试,再提供合并、发起拉取请求或保留分支等清晰选项。
receiving-code-review
311k帮你的智能体认真评估代码审阅意见,在改动任何内容之前,先对照代码逐条核实。
test-driven-development
311k教你的智能体在构建任何功能或修复之前,先编写一个失败的测试,看着它失败,然后编写能让它通过的最少代码。