/harness-build:doubt-driven-developmentfrom harness-build
Cross-examines non-trivial decisions with a fresh-context, adversarial reviewer before they stand. Use when stakes are high (auth, security logic, migrations, irreversible operations), when working in unfamiliar code, when stress-testing a plan, or whenever a confident answer is cheaper to challenge now than to debug later.
Ships in harness-build. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
A confident answer is not a correct one. Long sessions turn assumptions into "facts" without anyone noticing. This skill puts a fresh-context reviewer, whose job is to disprove rather than approve, in front of each non-trivial output while changing course is still cheap. It is an in-flight posture, not a verdict on a finished artifact; harness-verify:code-review-and-quality is the final gate and this is the earlier check.
A decision is non-trivial when any of these holds:
Apply it before an architectural choice under uncertainty, before committing non-trivial code, before claiming something non-obvious ("this is safe", "this scales"), and when working in code you do not fully understand.
Skip it for renames, formatting, file moves, following an unambiguous instruction, reading or summarizing code, one-line changes with obvious correctness, running tools, or when the user asked for speed. Doubting every keystroke ships nothing.
Run this from the main session, where a fresh reviewer can be spawned. A subagent that applies it would be spawning another subagent, which should not happen. If you are already inside a subagent, tell the user doubt-driven review cannot run nested and let the main session handle it. Only as a last resort, self-question by restating ARTIFACT and CONTRACT as a new prompt with a hard break from your earlier reasoning, and label the result degraded, since you still carry your own context.
Doubt cycle:
- [ ] 1 CLAIM state the claim and why it matters
- [ ] 2 EXTRACT isolate artifact + contract, strip reasoning
- [ ] 3 DOUBT adversarial fresh-context review
- [ ] 4 RECONCILE classify every finding against the artifact text
- [ ] 5 STOP trivial findings, 3 cycles, or user override
Write the decision in two or three lines, plus why it matters ("The cache layer is thread-safe under the read-heavy workload in the spec; a race corrupts user data and is hard to catch in QA"). If you cannot say it compactly you have a vibe, not a decision.
Give the reviewer the artifact and the contract, not the journey: the diff or function (not the file), or the proposal in 3 to 5 sentences with its constraints, or the assertion with its supposed evidence. Strip your reasoning, since handing over conclusions returns validation of them. Keep the evidence that cuts against you (a caller, guard or test that contradicts the claim). If the unit cannot be held in one read, such as a 500-line change, decompose it first.
The prompt must be adversarial. Framing decides the answer:
Adversarial review. 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 it may break, failures under
unexpected input. Do NOT validate or summarize. Report issues, or say
explicitly that you found none after thorough examination.
ARTIFACT: <artifact>
CONTRACT: <contract>
Send ARTIFACT and CONTRACT only. Never send the CLAIM; it biases the reviewer toward agreement. If you use a reviewer role defined for balanced verdicts, paste the adversarial prompt verbatim so issues-only output overrides the default; if it cannot be overridden, use a generic subagent.
Second opinion from a different model. A different model family catches blind spots the author's model shares. In interactive sessions, after the first review and before reconciling, ask the user whether they want one: a model CLI they have installed, a manual review they paste elsewhere, or skip. Never skip silently, and never run an external tool without their go-ahead. If they choose a CLI, check it is installed and runs, confirm the exact invocation and credentials with them, send only the adversarial prompt, ARTIFACT and CONTRACT, and prefer a read-only mode so instructions hidden in the artifact cannot act on the workspace. Never splice the artifact into a shell-quoted argument; write the prompt to a file and feed it on stdin. Each run needs its own confirmation. If the tool fails, say so and offer alternatives. If the user skips, state "proceeding with single-model findings". In non-interactive contexts (CI, scheduled, autonomous loops) skip it and announce "cross-model skipped: non-interactive context".
You remain the orchestrator. Re-read the artifact against each finding; rubber-stamping the reviewer is as bad as ignoring it. Classify in this precedence:
A fresh reviewer can be wrong precisely because it is fresh.
Stop when a cycle yields only trivial or already-considered findings, after three cycles (then escalate to the user), or when the user says to ship. Three cycles with substantive findings still open says the artifact may not be ready. If three cycles seem too few because the artifact is big, decompose it; do not lift the bound.
| Rationalization | Reality |
|---|---|
| "I'm confident, skip it" | Certainty is where blind spots hide. |
| "A reviewer is expensive" | A wrong commit in production costs more; the check is bounded. |
| "It will just nitpick" | Only if unscoped. Ask for issues that would break the contract. |
| "I'll review at the end" | By then correcting course is expensive. |
| "I'd never ship if I doubted everything" | It applies to non-trivial decisions only. |
| "Two opinions beat one" | Not if the second has less context. Reconcile, do not defer. |
| "The reviewer disagreed so I was wrong" | Disagreement is information; re-read and classify. |
| "The user said yes once to the CLI" | Each invocation needs fresh confirmation. |
What SKILL.md sets; muted values are Claude Code's defaults
2 plugins ship this exact skill · first indexed Nov 17, 2026
8 skills in this plugin
/api-and-interface-designGuides design of stable interfaces that are hard to misuse, covering REST and GraphQL endpoints, module boundaries, type contracts, errors, pagination and idempotency. Use when designing or changing any public interface, or when drawing the boundary between frontend and backend or between modules./code-simplificationReduces complexity in working code while preserving exact behaviour, so it is easier to read, change and debug. Use when code works but is deeply nested, overlong, unclearly named or duplicated, when review flags readability, or when asked to simplify, clean up or flatten a function or module./Other plugins' skills for the same job
npx claudepluginhub nx1-org/platformnex-abilities --plugin harness-build