build
「build」スキルは、AIエージェントが仕様を実装するための単一スレッドの計画→実行プロセスを定義します。仕様の読み込み、タスクの解析、詳細な実装計画(不変条件、インターフェース、ファイル、テストの引用を含む)の策定、コード修正の実行、検証を行います。検証が失敗した場合、エージェントは失敗の原因を分析し、コードを修正するか仕様を更新するかを決定するバックプロパゲーションメカニズムをトリガーし、各コミットが検証され、厳格なポリシーに従うことを保証します。
npx skills add https://github.com/juliusbrussee/cavekit --skill buildBefore / After 効果比較
1 组開発者が手動で仕様に基づいたタスク計画、コーディング、テスト、デバッグを行うため、時間がかかりエラーが発生しやすく、タスク完了サイクルが長くなり品質が不安定になります。中程度の複雑さのタスクを完了するのに平均 4 時間かかります。
AIエージェントが仕様実装ワークフローを自動化し、インテリジェントな計画、コード修正、自動検証、エラーバックプロパゲーションを含めることで、タスク完了時間を大幅に短縮し、コード品質と一貫性を向上させ、タスク完了時間を 1 時間に短縮します。
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.mdonce if not loaded. - Parse invocation args:
§T.n→ that task only--next→ lowest-numbered row with status.or~--allor 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: <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 §Tis the dashboard. - No speculative work beyond chosen task scope.
ユーザーレビュー (0)
レビューを書く
レビューなし
統計データ
ユーザー評価
この Skill を評価