implement
Use this to execute a written implementation plan inside a Kata run, step by step, with strict TDD via subagents. Dispatches a Sonnet implementer per step, verifies with a Haiku test-runner, reviews with a Sonnet reviewer, and escalates blockers through `ask_user` instead of guessing. Stays inside the plan's scope.
- License 许可
- MIT
- 最近更新
- 2026-11-14
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- implement
- description
- Use this to execute a written implementation plan inside a Kata run, step by step, with strict TDD via subagents. Dispatches a Sonnet implementer per step, verifies with a Haiku test-runner, reviews with a Sonnet reviewer, and escalates blockers through `ask_user` instead of guessing. Stays inside the plan's scope.
- user-invocable
- true
03 SKILL.md 正文
Implement (plan execution)
Work a written plan to completion, one step at a time, keeping the tree green at every boundary. You are the conductor, not the pianist: subagents write the code and run the suites; you sequence, judge reports, and handle exceptions.
Interaction contract
A Kata run is headless: a question typed as prose ends the run unanswered. When a blocker needs the operator — the plan is wrong, a fork appeared it does not cover, a gate will not go green for a reason outside scope — ask through the ask_user tool (never prose, never the built-in AskUserQuestion). Kata wires ask_user into every run, interactive or not. Only if the tool is genuinely missing from your toolset, stop at the blocker and write up exactly where and why in your report — a clean stop beats improvising past the plan.
Model policy
Route every piece of work to the cheapest mind that can do it well:
kata-implementer(Sonnet) — writes the code, one plan step per dispatch. Implementation is judgment work.kata-test-runner(Haiku) — runs the verify commands and reports verbatim. Watching a test suite scroll by is mechanical; never burn driver turns on it.kata-reviewer(Sonnet) — reviews a completed step against its text. Skepticism is judgment work.- You (Sonnet) — read the plan, brief the subagents, weigh their reports, decide what happens next.
The flow
- Read the plan the task names, end to end, plus the workspace CLAUDE.md (binding: commands, TDD rules, commit rules). Extract the repo's exact verify commands. Create a task per plan step.
- Per step, in order:
- Dispatch
kata-implementerwith the step's full text, the plan path, and the verify commands. Full text — the subagent has no memory of this conversation and cannot fill gaps you leave. - On its report, dispatch
kata-test-runnerto run the repo's gates independently. The implementer saying "green" is a claim; this is the check. - Dispatch
kata-reviewerwith the step text and the implementer's report. On needs-work, send the findings back to a freshkata-implementerdispatch; after two failed rounds on the same step, stop and escalate (viaask_user, or a written blocker) instead of grinding. - Mark the step done in the plan file (checkbox or status note) so progress survives the run.
- Dispatch
- Blockers. A step that is wrong, ambiguous, or blocked stops the line — escalate per the interaction contract. Do not reinterpret the plan, skip steps, or invent scope; report what you found and what you recommend.
- Close. After the last step, run the full gate suite once more through
kata-test-runner(per CLAUDE.md — e.g. fmt check, clippy, build, workspace tests). Then report: steps completed, deviations and blockers, final gate results, files touched. Commit only if the task and CLAUDE.md's rules say to — and never claim green without the runner's output to show.
Anti-patterns
- Doing the work in the driver. The driver edits no source files; steps go through
kata-implementer, or the model policy is dead. - Trusting "it passes". Every green claim gets an independent
kata-test-runnercheck before the step closes. - Grinding a failing step. Two needs-work rounds, then escalate. The plan may be wrong — that is information, not an obstacle to bulldoze.
- Scope creep. "While I'm here" refactors, unrequested features, drive-by fixes: no. The plan's scope is the run's scope.
- Ending with a red tree and a shrug. Either every boundary is green or the report says precisely what is red and why.
04 同仓库更多 Skills
probe
Use when the task says to invoke the probe skill. Test fixture only.
proof-skill
Proof skill for the web folder. Use whenever editing files under web/. Marker PROOF-SKILL-NESTED-7431.
spartan
Manages spartan/ui, the Angular UI library - adding, composing, fixing, debugging, and styling UI with the Brain (headless primitives) and Helm (styled) layers. Provides project context, component APIs, and usage examples. Applies when working with spartan/ui, @spartan-ng/brain, @spartan-ng/helm, the @spartan-ng/cli generators, or any Angular project with a components.json file. Also triggers for "spartan init", "add a spartan component", or "set up spartan/ui".
house-style
The house frontend conventions for this repo, layered on top of the SpartanNG docs. Read before writing or editing any template or component stylesheet. Covers the layout grammar (grid for regions, flex for inline runs, no nested flex faking a grid) and the no-raw-literals rule for hand-written CSS. These extend the spartan docs where spartan is silent; they never contradict them.
spartan
Manages spartan/ui, the Angular UI library - adding, composing, fixing, debugging, and styling UI with the Brain (headless primitives) and Helm (styled) layers. Provides project context, component APIs, and usage examples. Applies when working with spartan/ui, @spartan-ng/brain, @spartan-ng/helm, the @spartan-ng/cli generators, or any Angular project with a components.json file. Also triggers for "spartan init", "add a spartan component", or "set up spartan/ui".
house-style
The house frontend conventions for this repo, layered on top of the SpartanNG docs. Read before writing or editing any template or component stylesheet. Covers the layout grammar (grid for regions, flex for inline runs, no nested flex faking a grid) and the no-raw-literals rule for hand-written CSS. These extend the spartan docs where spartan is silent; they never contradict them.