B
build
by @juliusbrusseev
4.4(120)
"build" 技能定义了 AI 智能体实现规范的单线程计划-执行流程。它负责读取规范、解析任务、制定详细的实施计划(包括引用不变式、接口、文件和测试),然后按计划修改代码、运行验证。如果验证失败,智能体将触发回溯机制,分析失败原因并决定是修复代码还是更新规范,确保每次提交都经过验证,并遵循严格的提交策略。
安装方式
npx skills add https://github.com/juliusbrussee/cavekit --skill buildcompare_arrows
Before / After 效果对比
1 组使用前
开发者手动根据规范进行任务规划、编码、测试和调试,耗时且易出错,导致任务完成周期长,质量不稳定,平均需要 4 小时完成一个中等复杂度的任务。
使用后
AI 智能体自动化执行规范实现流程,包括智能规划、代码修改、自动验证和错误回溯,显著缩短任务完成时间,提高代码质量和一致性,将任务完成时间缩短至 1 小时。
SKILL.md
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)
发表评价
效果
易用性
文档
兼容性
暂无评价
统计数据
安装量2.7K
评分4.4 / 5.0
版本
更新日期2026年9月7日
对比案例1 组
用户评分
4.4(120)
5
37%
4
43%
3
13%
2
5%
1
2%
为此 Skill 评分
0.0
兼容平台
🤖claude-code
时间线
创建2026年5月19日
最后更新2026年9月7日