doubt-driven-development

Subject non-trivial decisions to fresh-context adversarial review before proceeding.

113k|11.8k|Updated Feb 15, 2026
Ready to run
npx skills add https://github.com/addyosmani/agent-skills --skill doubt-driven-development-addyosmani
💬 Prompt for ChatGPT / Claude Chat▼
Please help me install this Agent Skill.
Skill: doubt-driven-development
Source: https://github.com/addyosmani/agent-skills/tree/main/skills/doubt-driven-development
Command: npx skills add https://github.com/addyosmani/agent-skills --skill doubt-driven-development-addyosmani

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Long development sessions accumulate context that quietly transforms assumptions into unstated "facts" without anyone noticing. This Skill materializes a fresh-context reviewer—biased to disprove, not approve—before any non-trivial decision stands, catching hidden failure modes early when course-correction is cheap. ## Core Features & Use Cases - Adversarial Review Process: Spawn a fresh-context reviewer with an adversarial prompt to find unstated assumptions, edge cases, and hidden coupling in architectural decisions and code. - Cross-Model Escalation: Offer a different model architecture to catch blind spots the original author shares with itself, with full user control over when to invoke. - Structured Reconciliation: Classify every finding against the artifact text using precedence rules (contract misread / actionable / trade-off / noise) before deciding. - Bounded Looping: Stop after 3 cycles or trivial findings to prevent grinding; escalate to the user if substantive issues persist. - Use Case: Before committing thread-safe caching logic in a production system, invoke doubt-driven to surface race conditions, shared state, and ordering assumptions a confident author might miss. ## Quick Start When about to make an architectural decision or commit non-trivial code, name your claim, extract the smallest reviewable artifact plus its contract, and ask a fresh-context reviewer to find what is wrong with it.

Frequently Asked Questions about doubt-driven-development

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
When should I use doubt-driven development versus just shipping code?▼

Use doubt-driven for decisions introducing branching logic, crossing module boundaries, asserting unchecked properties (thread safety, idempotence), depending on hidden context, or carrying irreversible blast radius. Mechanical operations like renaming, formatting, and following explicit instructions do not require doubt.

How do I avoid getting stuck in an infinite doubt loop?▼

Stop when findings become trivial or already-considered, after 3 cycles complete, or when the user explicitly approves. If 3 cycles surface substantive issues, escalate to the user—this indicates the artifact may not be ready, not that you should grind a fourth cycle.

What is the difference between doubt-driven and the `/review` command?▼

`/review` is a post-hoc verdict on finished artifacts before merge. Doubt-driven is in-flight per-decision scrutiny while course-correction is cheap. Use both: doubt-driven catches wrong directions early, `/review` gates the final PR.

How does cross-model review work, and when should I use it?▼

After single-model review, pause and explicitly ask the user whether a different model architecture should review the artifact to catch shared blind spots. The user decides whether cost justifies the benefit. In non-interactive contexts, skip cross-model and announce the skip.

Why must I strip my reasoning before sending the artifact to the reviewer?▼

Handing the reviewer your conclusions biases it toward agreement. The artifact plus contract must be self-contained and independently reviewable so the reviewer can determine whether the artifact satisfies the contract without inheriting your assumptions.

What counts as a non-trivial decision that needs doubt-driven review?▼

Non-trivial decisions introduce branching, cross module boundaries, assert unchecked invariants, depend on unstated context, or have irreversible blast radius. One-line changes, mechanical operations, and following explicit user instructions are trivial and do not require doubt.