implementation-discipline
强制列出假设、减少误实现,适合自动化编码
规范编码代理的行为以避免自信但错误的实现
把代码实现的流程规范化,避免代理自信但错写代码:先把假设和歧义说清,再只做最小可行改动且每行改动都可追溯。通常在接手任务、写补丁或实现需求前启动。核心在于四条纪律——公开假设、最小实现、不做额外改动、先写可验证的成功标准——防止看起来合理却错误的提交。
▸ 展开 SKILL.md 英文原文
How a coding agent conducts itself while implementing a change — the four disciplines that stop plausible-but-wrong work before it is written: surface assumptions and competing interpretations before coding (present them and stop rather than pick one silently); build the minimum that solves the stated problem (no speculative abstraction, configurability, or handling for scenarios that cannot occur — fail loud instead); change only what the task requires (every changed line traces to the request; unrequested improvements become issues, not diff hunks); and restate the task as verifiable success criteria with a step-then-verify plan before starting. Use at pickup time on any issue, before the first line of any change, in any repo executed by coding agents — and as the standard a reviewer holds a diff to. Pairs with agent-tiered-planning (the escalation rule is where a surfaced tier mismatch goes), design-direction-lock (the deviation protocol is the design-side channel for the same stop-
帮我安装这个 skill:https://raw.githubusercontent.com/boshuthebuilder/ai-tradecraft-skills/main/plugins/coding/skills/implementation-discipline/SKILL.mdcurl -fsSL "https://raw.githubusercontent.com/boshuthebuilder/ai-tradecraft-skills/main/plugins/coding/skills/implementation-discipline/SKILL.md"# implementation-discipline An agent that codes first fails *confidently*. It resolves ambiguity silently instead of naming it, invents scope the task never asked for, wraps the result in structure nothing needs — and the diff it produces reads plausibly and merges wrong. None of these are failures of capability; they are failures of conduct, and they occur at every capability level. The other development-process skills move judgment upstream into artifacts — tiers, the design lock, the review gate. This skill moves it upstream *within the change itself*: the judgment happens before the first line is written, not after the review finds its absence. Conduct is also what makes review possibl