doubt-driven-development

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

Updated Sep 5, 2026
One-click install
npx skills add https://github.com/pohlai88/afenda-xforge-v5 --skill doubt-driven-development-pohlai88
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: doubt-driven-development
Source: https://github.com/pohlai88/afenda-xforge-v5/tree/main/.agents/skills/doubt-driven-development
Command: npx skills add https://github.com/pohlai88/afenda-xforge-v5 --skill doubt-driven-development-pohlai88

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 reviewer, RECONCILE findings by precedence, and STOP at a bounded condition (trivial findings, 3 cycles, or user override). - Cross-Model Escalation: Optionally routes the artifact and contract to external CLI reviewers (Gemini CLI, Codex CLI) via stdin with read-only sandboxes, always with explicit user authorization. - Use Case: Before committing a caching layer you believe is thread-safe, name the claim, hand the diff and its contract to a fresh-context reviewer with an adversarial prompt, classify each finding as contract misread, 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 review a code decision before committing it?

Use the doubt cycle: write a compact CLAIM, extract the smallest reviewable artifact plus its contract, and hand both to a fresh-context reviewer with an adversarial prompt that asks for issues only. Classify each finding against the artifact text, then iterate up to three cycles.

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

Doubt-driven development is an in-flight posture applied per non-trivial decision while changes are still cheap, whereas a code review is a post-hoc verdict on a finished artifact such as a pull request. The two are complementary and can both be used.

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.

Can I use Gemini CLI or Codex CLI for a second opinion on code?

Yes, the skill supports cross-model escalation by writing the adversarial prompt, artifact, and contract to a file and piping it via stdin to the CLI in a read-only sandbox. Each invocation requires a PATH check, a working-binary test, and explicit user authorization.

Why should the reviewer not receive my original claim or reasoning?

Passing your conclusion biases the reviewer toward agreement, defeating the purpose of fresh-context review. The reviewer must independently determine whether the artifact satisfies the contract, so only ARTIFACT and CONTRACT are passed.

What are the limitations of fresh-context adversarial review?

A fresh reviewer lacks session context and can produce false flags, so findings must be re-classified against the artifact text rather than rubber-stamped. The loop is bounded at three cycles, and large artifacts must be decomposed before review.