build — implement spec
Single-thread native plan→execute. You are main Claude. No swarm.
LOAD
Read
SPEC.md
. If missing → tell user to invoke the spec skill first. Stop.
Read
FORMAT.md
once if not loaded.
Parse invocation args:
§T.n
→ that task only
--next
→ lowest-numbered row with status
.
or
~
--all
or empty → every
.
row in §T order
PLAN
Native plan mode. For chosen task(s):
Cite every §V invariant that applies. Plan must respect all.
Cite every §I interface touched. Plan must preserve shape.
List files to create / edit.
List tests to add or update (one per invariant touched).
Name verification command (test, build, lint).
Show plan. Wait for user OK unless auto mode.
EXECUTE
Per task in order:
Flip §T.n status cell
.
→
~
. Just write to SPEC.md.
Edit code per plan.
Run verification command.
Pass
→ flip
~
→
x
. Next task.
Fail
→ invoke backprop skill. Do NOT retry blindly.
FAIL → BACKPROP
On test/build failure:
Read failure output.
Ask: is failure (a) my code bug, (b) spec wrong, or (c) unspecified edge case?
If (a) → fix code, re-run. No spec change.
If (b) or (c) → invoke spec skill with
bug:
build
安装
npx skills add https://github.com/juliusbrussee/cavekit --skill build