doubt-driven-development
Skill1 starsChanged 2 months agoMITView on GitHub
Cross-examine one non-trivial in-flight decision before it stands — name the claim, hand a fresh code-cold agent the artifact and its contract with your reasoning stripped, classify what comes back, stop at three cycles. Not the merge-gate diff pass (code-review) or a failure already in hand (debugging-and-error-recovery).
64 other projects use a version of this.
Adopted by
Most recently taken up by
- thistleknot/skillstheir own version, first seen Nov 8, 2026
- ishandutta2007/Awesome-Agent-Skillstheir own version, first seen Nov 8, 2026
- dmoreq/agent-grimoiretheir own version, first seen Nov 8, 2026
- MMACABRE/SKILLStheir own version, first seen Nov 8, 2026
- etr/groundworktheir own version, first seen Nov 8, 2026
- steven123397/nexuskit-skillstheir own version, first seen Nov 1, 2026
Used with
Projects with it also use constraint-driven-development, api-and-interface-design and 2 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
MrCipherSmithSkillconstraint-driven-development
Use when a project needs a persistent, measurable quality bar — starting a project without documented standards, 'set up constraints', or when coverage/perf/a11y thresholds get re-debated per-PR. Produces CONSTRAINTS.md with enforceable numbers, ratchets, and a guard against silent weakening. NOT for throwaway prototypes or a one-off CI setup.
Also in 17 projects that use this
LLl0k0laDSkillapi-and-interface-design
Use when designing APIs, module boundaries, or any public interface. Use when creating REST or GraphQL endpoints, defining type contracts between modules, or establishing boundaries between frontend and backend.
Also in 47 projects that use this
LLl0k0laDSkillgit-workflow-and-versioning
Use when making any code change. Use when committing, branching, resolving conflicts, or when you need to organize work across multiple parallel streams.
Also in 35 projects that use this
- +1 more from LLl0k0laD
Other versions64 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 64
- addyosmani/agent-skills★ 114ksame name
- mycelium-hq/ai-brain-starter★ 50same name
- drvoss/everything-copilot-cli★ 48same name
- vinvcn/addyosmani-agent-skills-zh★ 46same name
- etr/groundwork★ 45same name
- valpere/session-indexer★ 42same name
- sampleXbro/agentsmesh★ 27same name
- jaskirat1616/grok-skills★ 22same name
- ishandutta2007/Awesome-Agent-Skills★ 21same name
- robertoatila/jarvis-skill-registry★ 8same name
54 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository41 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- acceptance-criteriaSkill
- aim-higherSkill
- api-designSkill
- architecture-designSkill
- browser-testing-with-devtoolsSkill
- ci-cdSkill
- codebase-designSkill
- codebase-researchSkill
- code-reviewSkill
- code-simplificationSkill
- comprehension-quizSkill
- debugging-and-error-recoverySkill
- deprecation-and-migrationSkill
- documentation-and-adrsSkill
- environment-manifestSkill
- gauntlet-loopSkill
- git-workflowSkill
- handoffSkill
- idea-refineSkill
- incremental-implementationSkill
- interview-meSkill
- literate-explainerSkill
- observability-and-instrumentationSkill
- orchestratorSkill
- performance-optimizationSkill
- plan-breakdownSkill
- preflight-readinessSkill
- project-setupSkill
- pull-requestSkill
- quality-verificationSkill
- security-and-hardeningSkill
- shipping-and-launchSkill
- source-driven-developmentSkill
- spec-grillingSkill
- spec-reviewSkill
- test-driven-developmentSkill
- to-prdSkill
- using-agent-skillsSkill
- worktreeSkill
The file
We split this skill into the rules it gives an agent
3 rules. 0 are common, 1 is distinctive, and 2 are very specific to this project.
0
Common
Most of the 55 edited versions we read keep these.
1
Distinctive
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 50
Run the cycle where a subagent can still be spawned.
- Very specific: line 91
Run the tool read-only (codex exec --sandbox read-only, gemini --approval-mode plan -p "", where the empty -p is what makes it read stdin) …
- Very specific: line 111
Fold the result back into the caller's work: Every actionable finding is resolved before the slice reaches a gate — firing here rather than …
“Common” is measured: kept by at least 6 in 10 of the 55 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Doubt-Driven Development
Purpose
Stage: cross-cutting. Principles 6, 7, 8.
Cross-examines one non-trivial decision while it is still in flight: a fresh code-cold agent tries to disprove it, and you classify what comes back. It writes no chain artifact — the findings are working data the caller folds into its own artifact. A confident answer is not a correct one, and a long session turns assumptions into facts quietly.
When to use / when to skip
- About to commit non-trivial code, settle an architectural decision under uncertainty, or assert a non-obvious fact — "this is safe", "this scales", "this matches the spec".
- Non-trivial means it branches, crosses a module or service boundary, asserts a property no compiler checks (thread safety, idempotence, ordering), rests on context the next reader cannot see, or is irreversible.
- In flight during Plan and Implement, while reversing still costs little — not at the merge gate, and not one of the gates a slice passes on its way to a pull request.
- Working in code you do not fully understand, or feeling certain.
- Skip a mechanical edit, an unambiguous instruction, read-only work or a plainly correct one-liner: say which it is and hand it back.
- Near-miss — a finished diff at the merge gate:
code-review. A failure already in hand:debugging-and-error-recovery. A framework fact against its docs:source-driven-development. Rerunning a throwaway until it wins:gauntlet-loop.
Inputs
Two things come from the caller, no upstream artifact is owed, and one fact is about where you run:
- the artifact — helps: the diff, the function, the proposal in three to five sentences, or the
claim plus its evidence · without it: take the smallest unit in flight and name which, marked
derived - the contract — helps: the invariants or the
acceptance.mdscenario the decision has to honour · without it: rebuild it fromdocs/features/<slug>/prd.md, the ADRs and the surrounding conventions, markedderived - whether a person is present — helps: a second model is theirs to authorise · without it: assume nobody is and stay single-model
With a person present, ask at most three questions, and only where the gap changes what gets examined.
Loading Constraints
Run the cycle where a subagent can still be spawned. Nested spawn is blocked, so a cycle buried inside one degrades quietly into self-questioning: surface that to the caller rather than press on. Going on alone, re-read the artifact against the Step 3 prompt below from a clean slate and label the result degraded — your own context travels with you.
The Process
- Name the claim in two or three lines — what stands, and what it costs if it is wrong. Where it will not compress that far you hold a vibe rather than a decision; surface it before scrutinising it.
- Extract the smallest reviewable unit — the artifact and the contract, your reasoning taken out. Hand over conclusions and you get your conclusions validated back. An artifact too large to hold in one read is decomposed here; the bound in Step 6 does not move for it.
Dispatch a fresh subagent that never saw your context (maker ≠ checker — principle 8), carrying this, verbatim, and nothing else:
Find what is wrong with this artifact. Assume the author is overconfident. Look for unstated assumptions, unhandled edge cases, hidden coupling or shared state, ways the contract could be violated, conventions this breaks, and failure modes under unexpected input. Do not validate, do not summarise: report issues, or state that you can find none after thorough examination. ARTIFACT: <the artifact> CONTRACT: <the contract>The artifact and the contract only — never the claim, never your reasoning, never the session: your conclusion pulls the reader toward agreement, and its untended instinct is a balanced verdict where this needs issues. Re-dispatching on an unchanged artifact returns the same findings, so change something or stop.
A second model is the person's call. With one present, offer it — Gemini CLI, Codex CLI, or a paste into whatever they use — and record the answer; skipping is fine, skipping in silence is not. Alone in a run, say "cross-model skipped, nobody present".
- Each invocation is its own authorisation: confirm command, flags and auth every time, and check the
binary runs — one that passes
whichcan still fail on real input. - Pipe the prompt from a file on stdin; a backtick or
$(…)in a quoted argument truncates it or executes inside it. - Run the tool read-only (
codex exec --sandbox read-only,gemini --approval-mode plan -p "", where the empty-pis what makes it read stdin) — an artifact can carry instructions of its own. - Name a missing or failing tool and offer manual or skip, rather than a cross-model pass nobody got.
- Each invocation is its own authorisation: confirm command, flags and auth every time, and check the
binary runs — one that passes
Classify every finding against the artifact text, first match winning — you are still the one deciding.
Class What it is What you do Contract misread the contract you sent was unclear or incomplete repair it, re-classify next cycle Valid + actionable a real issue the artifact has to change for change it, re-loop Valid trade-off real, and costlier to fix than to accept log it where the person reviews Noise correct under context the reader lacked note it, and ask whether the contract should have carried it - Stop on one of four conditions — only trivial or already-considered findings come back, three cycles are done, the person says ship it, or two cycles of substantive findings have gone by with nothing classified actionable. That last one is doubt theater, and it goes back to the caller the same way a fourth cycle would. Three unresolved cycles is information about the artifact rather than an argument for a fourth: hand it back saying so.
- Fold the result back into the caller's work. Every actionable finding is resolved before the
slice reaches a gate — firing here rather than at the merge gate is the whole point. Route a real
failure mode to
debugging-and-error-recovery. A behavioural claim already has its cycle in the failing testtest-driven-developmentwrites first. Append an accepted trade-off yourself as onedocs/session-log.mdentry, matching the Decided-for-you row in the pull request.
Rationalizations
| Rationalization | Reality |
| "I am confident — skip the cycle" | On a novel problem confidence tracks familiarity, not correctness. |
| "I will doubt it at the end, in review" | By pull-request time the wrong direction is built, tested and defended. |
| "Doubt every step and I never ship" | The scope is the non-trivial decision; a rename goes straight back. |
| "It disagreed, so I was wrong" | A fresh reader lacks your context: disagreement is data, and the classification is yours. |
| "They said yes to the CLI last time" | Each run carries a different artifact, prompt and flags; that yes covered none of them. |
Red flags
- A cycle spent on a rename, a format run or an unambiguous instruction.
- The claim, or the author's reasoning, sitting inside the reviewer's prompt.
- A fresh pass re-dispatched on an artifact nothing changed in.
- Findings adopted or waved off wholesale, with no class decided against the artifact text.
- Doubt theater: two or more cycles of substantive findings, nothing classified actionable.
- A fourth cycle; an external CLI run on last cycle's yes; a failed CLI absorbed in silence.
Verification
- The claim was named in two or three lines before anything was handed over.
- A code-cold pass read the artifact and the contract, and neither the claim nor your reasoning.
- Every finding carries one class from the precedence table, decided against the artifact text.
- A stop condition is named with the cycle count beside it, and no fourth cycle ran.
- A second model is accounted for: authorised and run, declined, or skipped with its reason.
- Every derived input is marked
derivedwherever it was written or handed back. - Actionable findings are resolved in the caller's artifact before the slice reaches a gate, and an accepted trade-off is logged.
Outputs & handoff
- No file under
docs/features/<slug>/and noSTATE.mdrow. Findings are working data the caller consumes at once, and the caller owns the slice's transition (state-schema.md). Anything about the artifact that must outlive the cycle goes into the caller's own work — the plan section, the diff, the test. The log entry below is the one file this pass writes. docs/session-log.md— one appended entry per accepted trade-off, cap 60 words, shape and append rules instate-schema.md, matching the pull request's Decided-for-you row. Report the entry's measured word count against that cap; an over-cap entry is trimmed, never handed on as if it fit.- Returned in conversation — the claim, the classified findings, the cycle count and the stop
condition that ended the loop, whether a second model ran, and what each
derivedinput came from. - Verdict — only a finding landing on the stop list
(
safety-rails.md) returnsblock, and the caller ends the slice on it. This pass grades nothing, so it returns nopassand noconcerns.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

