plan
Use when a spec is ready, even if the work seems obvious; split it into tasks, each with its files, one test command and which tasks block it, then get the plan approved. Do NOT use for writing the spec (use `spec`), a new or vague request (use `grill`) or building an approved task (use `build`).
- License 许可
- Apache-2.0
- 最近更新
- 2026-11-09
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- plan
- description
- Use when a spec is ready, even if the work seems obvious; split it into tasks, each with its files, one test command and which tasks block it, then get the plan approved. Do NOT use for writing the spec (use `spec`), a new or vague request (use `grill`) or building an approved task (use `build`).
02 资源文件 1
- 参考文档references/slice.md2.1 KB
03 SKILL.md 正文
Plan
Overview
Turns a spec with no open questions into tasks a fresh session can build test-first, and gets the human's approval recorded by hash. Template: data.content of anneal playbook show plan-template; structure: anneal playbook show plan-schema.
- You MUST write the plan from the template and run
anneal lint plan <file>until it exits 0, applying each finding'sfix. - You MUST give every task its
Files:, oneTest:command and itsBlocked by:line;anneal lint planrejects a task without them, a blocker that is not a task, and a cycle. - You MUST run
anneal plan approve <file>only after the human approves the plan you showed them; it refuses while the spec has any[NEEDS CLARIFICATION]marker. - You MUST run
anneal plan check <file>before building from a plan; exit 4 means it changed since approval, so it goes back to the human.
When to use
- A spec passes
anneal lint specwithdata.needs_clarificationat 0, and it has no approved plan yet. - Not when the request is new or vague (use
grill), nor when the spec is unwritten (usespec), nor when an approved task is next (usebuild).
Process
- Read the spec. Read it whole, and the code its requirements touch. It's working if you can name the files each acceptance criterion changes.
- Slice. Cut tracer-bullet tasks: each one a thin path through every layer, ending in a test that passes (references/slice.md). It's working if every task ends green on its own.
- Write each task.
### T<n>: <title>, its three lines, then test-first steps: failing test, run it red, code, run it green. It's working if a session with only this task and the spec could build it. - Block sparingly. Add a blocker only where a task needs another's output. It's working if most tasks can run in parallel.
- Write the Review focus. Where a reviewer should look hardest, and why. It's working if each item names a file or a task.
- Lint. Run
anneal lint plan docs/plans/<feature>.mdand apply each fix. It's working if it exits 0. - Approve. Show the human the plan; on their explicit yes, run
anneal plan approve. It's working if it exits 0. - Keep it current. Any edit voids the approval; on exit 4 from
anneal plan check, show the change and approve again. It's working if the check exits 0 when building starts.
Rationalizations
| Excuse | Reality |
|---|---|
| "The tasks are obvious from the spec" | Then writing them down is quick, and the review sees them. |
| "One big task is simpler" | One big task has no tracer bullet and no early green. |
| "I'll pick the test command later" | A task without a command cannot prove it is done. |
| "The lead said skip the tests" | Keep every Test:; don't offer to drop it. |
| "Everything depends on everything" | Then the slices are horizontal layers. Cut through them. |
| "A small edit doesn't need re-approval" | The hash changed; plan check exits 4. Ask again. |
Red flags
- Approving while the spec still has a
[NEEDS CLARIFICATION]marker. - A task whose files are "various" or whose test is "run the tests".
- Editing the plan after approval without running
anneal plan check.
Verification
anneal lint plan docs/plans/<feature>.mdexits 0.anneal plan check docs/plans/<feature>.mdexits 0.anneal ledger query --type plan_approvedshows the plan's path and itssha256:hash.
04 同仓库更多 Skills
write-skill
Use to write or change a skill test-first, even if the change looks like a wording fix; watch a case fail with no guidance, then pass Tiers 0 to 3 before merge. Do NOT use for turning a correction into a check (use `correct`) or building code (use `build`).
verify
Use when asked "is it fixed?", "tested?" or "can we close it?", or to check a claim, and before calling work done or fixed, even if told to skip tests; prove it fresh, failing before the fix and passing after, and doubt it. Do NOT use for an unknown failure (use `diagnose`) or the PR (use `ship`).
spec
Use when requirements are agreed, even if the spec seems obvious; write the spec or its acceptance criteria (EARS, SHALL), Out of Scope and the constitution check of its gates. Do NOT use for a new or vague request (use `grill`) or splitting a spec into tasks (use `plan`).
ship
Use when a change needs a pull request, review verdict or depth, merge, schema migration, rollout, canary or rollback, even if it looks safe; decide GO or NO-GO only with a rollback ready. Do NOT use for proving work done or passing (use `verify`) or a failure with an unknown cause (use `diagnose`).
orchestrate
Use to run an approved plan's ready tickets across subagents, even when fanning out looks obvious; park one-way calls in weigh-in and rule on the rest. Do NOT use for one task (use `build`) or splitting work into tickets (use `plan`).
handoff
Use at a phase boundary or when the context monitor warns, even if the context still seems roomy; choose continue, clear, hand off, a subagent or compact, and put what must survive on disk. Do NOT use for proving work done (use `verify`) or splitting work into tasks (use `plan`).