doubt-driven-development
Subjects every non-trivial decision to a fresh-context adversarial review before it stands. Use when you want every assumption cross-examined before proceeding, when stress-testing a plan for hidden failure modes, when correctness matters more than speed, when working in unfamiliar code, when stakes are high (production auth, security-sensitive logic, a high-stakes migration, irreversible operations), or any time a confident output would be cheaper to verify now than to debug later.
1实现原理 · 为什么它能做到
对所有非琐碎决策在立项生效前强制引入全新上下文的对抗性审查(Fresh-context Adversarial Review)
A confident answer is not a correct one. Long sessions accumulate context that quietly turns assumptions into "facts" without anyone noticing. Doubt-driven development is the discipline of materializing a fresh-context reviewer — biased to **disprove**, not approve — before any non-trivial output stands.
严格限定应用范围于非平凡决策(Non-trivial decisions),防止陷入每步都怀疑导致无法交付的泥潭
If you doubt every keystroke, you ship nothing. The skill applies only to non-trivial decisions as defined above.
实施标准五步怀疑闭环(CLAIM → EXTRACT → DOUBT → RECONCILE → STOP)
Doubt cycle: - [ ] Step 1: CLAIM — wrote the claim + why-it-matters - [ ] Step 2: EXTRACT — isolated artifact + contract, stripped reasoning - [ ] Step 3: DOUBT — invoked fresh-context reviewer with adversarial prompt - [ ] Step 4: RECONCILE — classified every finding against the artifact text - [ ] Step 5: STOP — met stop condition (trivial findings, 3 cycles, or user override)
信息剥离铁律:仅向审查者传递产物与契约(ARTIFACT + CONTRACT),严禁传入主观声明(CLAIM)与思考过程
**Pass ARTIFACT + CONTRACT only. Do NOT pass the CLAIM.** Handing the reviewer your conclusion biases it toward agreement. The reviewer must independently determine whether the artifact satisfies the contract.
采用纯对抗性 Prompt(Adversarial Prompt)重载角色设定,强制只找缺陷与证伪
**The adversarial prompt above takes precedence over the persona's default response shape.** Personas like `code-reviewer` are written to produce balanced verdicts with both strengths and weaknesses; doubt-driven needs issues-only output.
规范跨模型二级升级机制(Cross-model escalation),强制在交互会话中向用户询问并使用只读沙箱
**Interactive sessions: always offer. Never silently skip.** **Step 1: Ask the user** After the single-model review in Step 3 above, but before RECONCILE, pause and ask: > *"Single-model review complete. Want a cross-model second opinion? Options: Gemini CLI, Codex CLI, manual external review (you paste it elsewhere), or skip."*
四级优先级意见对齐规则(Contract misread > Valid+actionable > Valid trade-off > Noise)与 3 轮上限硬阻断
For each finding, classify in this **precedence order** (first matching class wins): 1. **Contract misread**… 2. **Valid + actionable**… 3. **Valid trade-off**… 4. **Noise**… Stop when: - Next iteration returns only trivial or already-considered findings, **or** - 3 cycles completed (escalate to user, don't grind a fourth alone)
2核心能力
4管控建议与判定依据
5第二遍独立确认
- [ok] 零自执行脚本核实 — 目录内无任何 scripts/ 或二进制文件,仅有单个 SKILL.md 文档,无任何代码执行行为
- [ok] 信息剥离原则核验 — SKILL.md 第 134 行严格规定仅传入 ARTIFACT 与 CONTRACT,严禁把主观 CLAIM 传入以防偏差
- [ok] 跨模型 CLI 交互授权核验 — 第 146-180 行详细规定了必须在交互会话询问用户、必须验证 CLI 是否可用、且必须通过 stdin 和只读沙箱传递
- [ok] 意见对齐四级分类核验 — 第 200-206 行清晰规范了 Contract misread > Valid+actionable > Valid trade-off > Noise 的优先级
- [ok] 硬性 3 轮终止条件核验 — 第 213-220 行明确限定 3 轮未收敛必须停机上报用户,防止死循环耗费 token
6结论
Preview this skill in an interactive chat playground. Generic LLM evaluation trial.
💬 Open Chat Trial (Preview)