B

build

by @juliusbrusseev
4.4(120)

The "build" skill defines a single-threaded plan-execute process for an AI agent to implement specifications. It involves reading specs, parsing tasks, formulating detailed implementation plans (citing invariants, interfaces, files, and tests), then executing code modifications and running verifications. Upon failure, the agent triggers a backpropagation mechanism to analyze the root cause, deciding whether to fix the code or update the specification, ensuring each commit is verified and adheres to a strict policy.

agent-workflowcode-executionverificationdevopsspec-implementationGitHub
Installation
npx skills add https://github.com/juliusbrussee/cavekit --skill build
compare_arrows

Before / After Comparison

1 组
Before

Manual developer process for task planning, coding, testing, and debugging based on specifications, which is time-consuming and error-prone, leading to longer task completion cycles and inconsistent quality, averaging 4 hours for a medium-complexity task.

After

AI agent automates the specification implementation workflow, including intelligent planning, code modification, automatic verification, and error backpropagation, significantly reducing task completion time and improving code quality and consistency, completing tasks in 1 hour.

SKILL.md

build — implement spec

Single-thread native plan→execute. You are main Claude. No swarm.

LOAD

  1. Read SPEC.md. If missing → tell user to invoke the spec skill first. Stop.
  2. Read FORMAT.md once if not loaded.
  3. 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):

  1. Cite every §V invariant that applies. Plan must respect all.
  2. Cite every §I interface touched. Plan must preserve shape.
  3. List files to create / edit.
  4. List tests to add or update (one per invariant touched).
  5. Name verification command (test, build, lint).

Show plan. Wait for user OK unless auto mode.

EXECUTE

Per task in order:

  1. Flip §T.n status cell . → ~. Just write to SPEC.md.
  2. Edit code per plan.
  3. Run verification command.
  4. Pass → flip ~ → x. Next task.
  5. Fail → invoke backprop skill. Do NOT retry blindly.

FAIL → BACKPROP

On test/build failure:

  1. Read failure output.
  2. Ask: is failure (a) my code bug, (b) spec wrong, or (c) unspecified edge case?
  3. If (a) → fix code, re-run. No spec change.
  4. If (b) or (c) → invoke spec skill with bug: <cause> first, let it update §V and §B, then resume build against updated spec.

Rule: never silently fix root-cause without considering backprop. §B is the memory that stops recurrence.

WRITE POLICY

  • Only flip §T status. No other SPEC.md edits from build.
  • Other spec edits → invoke spec skill.
  • Commit after each §T completes. Message: T<n>: <goal line> + §V cites.

VERIFICATION

Task x only if:

  • Verification command exits 0.
  • New test(s) added per plan.
  • No §V invariant regressed (run full test suite at end).

NON-GOALS

  • No sub-agents. No parallel workers. Main thread only.
  • No progress dashboards. cat SPEC.md | grep §T is the dashboard.
  • No speculative work beyond chosen task scope.

User Reviews (0)

Write a Review

Effect
Usability
Docs
Compatibility

No reviews yet

Statistics

Installs2.7K
Rating4.4 / 5.0
Version
Updated2026年9月7日
Comparisons1

User Rating

4.4(120)
5
37%
4
43%
3
13%
2
5%
1
2%

Rate this Skill

0.0

Compatible Platforms

🤖claude-code

Timeline

Created2026年5月19日
Last Updated2026年9月7日
🎁 Agent Knowledge Cards
Survey