Discipline incremental build
Skill yli769227-jpg/awesome-claude-code-cn/skills/discipline-incremental-build
Karpathy 教你 LLM 会犯什么错。我教你 LLM 在我这犯了什么错、怎么治。8 条铁律 + 真实反例 + 中文 Claude Code 实战包
npx -y skills add yli769227-jpg/awesome-claude-code-cn --skill discipline-incremental-buildAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
What its author says it does
Copied from the file, not written here
增量编译验证与接口变更协议 —— 每编辑完一个文件立即 build,不要批量编辑多文件后再验证;改接口前先 Grep 所有实现(含 mock/test),一次性全改。触发: 即将连续编辑 3+ 文件、即将修改一个被多处实现的接口、即将派 agent 做多文件改造时。错误会互相掩盖,修复成本指数增长。
SKILL.md
1.5 KB, as published. Nobody here has run it
六、增量验证与接口变更协议
增量编译验证
- 每编辑完一个文件,立即运行对应的 build 命令验证编译通过。
- 禁止连续编辑 3+ 文件后才首次 build——错误会互相掩盖,修复成本指数增长。
- Agent 任务描述中也要明确要求"每文件编辑后 build 验证"。
接口变更协议
- 先搜:用 Grep 搜索所有实现该接口的类型(含 mock/test double)。
- 列清单:列出每个需要修改的文件和行号。
- 一次性全改:接口定义 + 所有实现在同一个编辑批次内完成。
- 立即验证:改完后立即 build,确认零编译错误。
加载时机
- 即将连续编辑 3+ 文件
- 即将修改一个被多处实现的接口 / trait / abstract class / protocol
- 即将派 agent 子任务做多文件改造(任务描述必须含"每文件 build")
- 已经改完一批文件、还没 build 过的时候(强制停下来先 build)
配套
具体反面例子 / 正面例子见 EXAMPLES.md。