doubt-driven-development

Subjects non-trivial decisions to fresh-context adversarial review before they stand.

Updated May 13, 2026
One-click install
npx skills add https://github.com/sapatamuku-creator/mastersapatamuku --skill doubt-driven-development-sapatamuku-creator
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: doubt-driven-development
Source: https://github.com/sapatamuku-creator/mastersapatamuku/tree/main/releases/v2.7/.agents/skills/doubt-driven-development
Command: npx skills add https://github.com/sapatamuku-creator/mastersapatamuku --skill doubt-driven-development-sapatamuku-creator

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Confident answers are not always correct ones, and long sessions quietly turn assumptions into facts. This Skill catches wrong decisions early by forcing every non-trivial decision through an adversarial fresh-context review while course-correction is still cheap. ## Core Features & Use Cases - Five-step doubt cycle: CLAIM the decision, EXTRACT the smallest reviewable artifact plus contract, DOUBT it with an adversarial fresh-context reviewer, RECONCILE findings by precedence, and STOP within a bounded three-cycle loop. - Cross-model escalation: Optionally routes the artifact to external CLI reviewers (Gemini CLI, Codex CLI) with read-only sandboxing and explicit user authorization for each invocation. - Use Case: Before committing a new caching layer claimed to be thread-safe, extract the diff and its contract, spawn an adversarial reviewer instructed to find issues rather than validate, classify each finding as actionable, trade-off, or noise, and iterate until findings are trivial. ## Quick Start Apply doubt-driven development to the architectural decision I am about to make and run an adversarial review of the artifact against its contract.

Frequently Asked Questions about doubt-driven-development

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

FAQPage Schema
How do I verify a code decision before committing it?▼

Use the doubt cycle: state the claim, extract the smallest reviewable artifact plus its contract, and spawn a fresh-context reviewer with an adversarial prompt that finds issues rather than validates. Classify each finding against the artifact text, then iterate up to three cycles.

What is the difference between doubt-driven development and code review?▼

Doubt-driven development is an in-flight posture that cross-examines individual non-trivial decisions while course-correction is cheap. A code review is a post-hoc verdict on a finished artifact such as a pull request. The two are complementary and can be used together.

When should I not use adversarial review on my code?▼

Skip it for mechanical operations like renaming or formatting, one-line changes with obvious correctness, reading or summarizing code, pure tooling operations, and when the user explicitly prioritizes speed over verification. It applies only to non-trivial decisions.

Can I use a second AI model to review my code changes?▼

Yes, cross-model escalation pipes the artifact and contract to external CLIs like Gemini or Codex in read-only sandbox mode. Each invocation requires explicit user authorization, a PATH check, and stdin piping to avoid shell injection from artifact content.

Why does the reviewer only receive the artifact and contract?▼

Passing your claim or reasoning biases the reviewer toward agreement with your conclusions. The reviewer must independently determine whether the artifact satisfies the contract, so only those two inputs are provided.

What are the limitations of fresh-context review?▼

A fresh reviewer lacks session context and can produce false positives classified as noise or contract misreads. It also cannot run nested inside a subagent persona, where only a degraded self-questioning fallback is available.