doubt-driven-development

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

1|Updated Jul 5, 2026
One-click install
npx skills add https://github.com/yersonargotev/packy --skill doubt-driven-development-yersonargotev
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: doubt-driven-development
Source: https://github.com/yersonargotev/packy/tree/main/bundle/skills/doubt-driven-development
Command: npx skills add https://github.com/yersonargotev/packy --skill doubt-driven-development-yersonargotev

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Confident answers are not always correct ones, and long sessions quietly turn assumptions into accepted 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 at a bounded condition (trivial findings, 3 cycles, or user override). - Cross-model escalation: In interactive sessions it always offers a second opinion via external CLIs such as Gemini or Codex, with PATH checks, read-only sandboxing, and stdin piping to avoid shell injection. - 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 contract misread, actionable, trade-off, or noise, and iterate until the stop condition is met. ## Quick Start Ask the agent to apply doubt-driven development to the architectural decision or non-trivial code change you are about to commit.

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 non-trivial code decision before committing it?▼

Name the decision as a compact CLAIM, extract the smallest reviewable artifact plus its contract, and spawn a fresh-context reviewer with an adversarial prompt that asks it to find issues rather than validate. Classify each finding against the artifact text, then stop after trivial findings, three cycles, or user override.

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

Doubt-driven development is an in-flight posture applied per decision while changes are still cheap to reverse, whereas 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 changes?▼

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 this skill run inside a subagent or persona context?▼

No, it is designed for the main-session orchestrator because spawning a fresh-context reviewer from a persona would create nested subagents, which platforms like Claude Code forbid. A degraded self-questioning fallback exists but must be flagged as degraded and escalated when possible.

How does cross-model second opinion work with Gemini or Codex CLI?▼

In interactive sessions the agent must always offer a cross-model review after the single-model pass. If accepted, it verifies the CLI exists and runs, writes the prompt to a file, pipes it via stdin with a read-only sandbox, and never invokes the CLI without explicit per-call user authorization.

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

Passing the original claim or the author's reasoning biases the reviewer toward agreement. Supplying only the artifact and contract forces the reviewer to independently determine whether the artifact satisfies the contract, which is the point of fresh-context review.