blackbelttechnology/pi-agent-dashboard/doubt-driven-review
Claude Code and agent skill by blackbelttechnology/pi-agent-dashboard
- community
Checking that the SKILL.md file is still in the repository.
In-flight adversarial check on a non-trivial decision BEFORE it stands — distinct from post-hoc review of a finished diff. Use on "stress-test this decision", "are we sure about this", "verify before commit", "poke holes in this", when working in unfamiliar code, or before an irreversible step (migration, prod deploy, public API). Runs earlier than code-review, while course-correction is cheap.
Install
npx vskill@latest install blackbelttechnology/pi-agent-dashboard/doubt-driven-reviewSKILL.md
The same SKILL.md was published earlier as blackbelttechnology/pi-agent-dashboard/doubt-driven-review.
Doubt-Driven Development
Overview
A confident answer is not a correct one. Long sessions accumulate context that quietly turns assumptions into "facts" without anyone noticing. Doubt-driven development is the discipline of materializing a fresh-context reviewer — biased to disprove, not approve — before any non-trivial output stands.
This is not post-hoc review (review-code, code-review). Those are a verdict on a finished artifact. This is an in-flight posture: non-trivial decisions get cross-examined while course-correction is still cheap.
When to Use
A decision is non-trivial when at least one of these is true:
- It introduces or modifies branching logic
- It crosses a module or service boundary
- It asserts a property the type system or compiler cannot verify (thread safety, idempotence, ordering, invariants)
- Its correctness depends on context the future reader cannot see
- Its blast radius is irreversible (production deploy, data migration, public API change)
Apply the skill when:
- About to make an architectural decision under uncertainty
- About to commit non-trivial code
- About to claim a non-obvious fact ("this is safe", "this scales", "this matches the spec")
- Working in code you don't fully understand
When NOT to use:
- Mechanical operations (renaming, formatting, file moves)
- Following a clear, unambiguous user instruction
- Reading or summarizing existing code
- One-line changes with obvious correctness
- Pure tooling operations (running tests, listing files)
- The user has explicitly asked for speed over verification
If you doubt every keystroke, you ship nothing. The skill applies only to non-trivial decisions as defined above.
Loading Constraints
This skill is designed for the main-session orchestrator, where Step 3 (DOUBT) can spawn a fresh-context reviewer.
- Do NOT list this skill in an agent definition's `skills:` frontmatter. A subagent following Step 3 would spawn a nested subagent — extra context layers, and it competes for the host's small concurrent-subagent cap.
- If you find yourself applying this skill from inside a subagent context: the preferred path is to surface to the user that doubt-driven cannot run nested and let the main session handle it. As a last resort only, a degraded self-questioning fallback exists — rewrite ARTIFACT + CONTRACT as a fresh self-prompt with a hard mental separator from your prior reasoning, and walk Steps 1–5. This is not fresh-context review (you carry your own context with you), so flag the result as degraded and prefer escalation whenever the user is reachable.
The Process
Copy this checklist when applying the skill:
Step 1: CLAIM — Surface what stands
Name the decision in two or three lines:
If you can't write the claim that compactly, you have a vibe, not a decision. Surface it before scrutinizing it.
Step 2: EXTRACT — Smallest reviewable unit
A fresh-context reviewer needs the artifact and the contract, not the journey.
- Code: the diff or the function — not the whole file
- Decision: the proposal in 3–5 sentences plus the constraints it has to satisfy
- Assertion: the claim plus the evidence that supposedly supports it (kept distinct from the Step 1 CLAIM block, which is the orchestrator's hypothesis under scrutiny)
Strip your reasoning. If you hand over conclusions, you'll get back validation of your conclusions. The unit must be small enough that a reviewer can hold it in mind in one read — if it's a 500-line PR, decompose first.
Step 3: DOUBT — Invoke the fresh-context reviewer
The reviewer's prompt must be adversarial. Framing decides the answer.
Pass ARTIFACT + CONTRACT only. Do NOT pass the CLAIM. Handing the reviewer your conclusion biases it toward agreement. The reviewer must independently determine whether the artifact satisfies the contract.
Who reviews — the doubt-reviewer agent
Spawn the reviewer as subagent_type: "doubt-reviewer" — shipped with this package as agents/doubt-reviewer.md: read-only tools, no pinned model, `inherit_context: false`.
- Never use a generic label (
general-purpose, an ad-hoc name, or a definition withoutinherit_context: false). When the operator'sinheritContextsetting is on, such a child receives a compressed snapshot of your conversation — your reasoning and the CLAIM — and the review is no longer fresh-context. That is the exact bias this skill exists to remove. - If
doubt-revieweris not discoverable, fall back to another definition that setsinherit_context: false(e.g.Explore,CodeReviewer) and paste the adversarial prompt verbatim — it overrides the persona's default response shape (balanced verdicts, strengths, summaries). Note the substitution in the output.
Run two passes on the same ARTIFACT + CONTRACT:
The passes are independent — issue them in parallel. The host caps concurrent subagents (observed: 2); an admission refusal ("at the concurrency cap") means wait for a running subagent to finish and re-issue — it is not a reviewer failure.
Cross-model reviewer — walk the @propose-review-N series
A single-model reviewer shares blind spots with the original author — a different-architecture model catches them. Within this skill's scope, cross-model is part of the value, not optional friction.
The operator pre-configures a numbered series of reviewer roles (propose-review-1 … propose-review-x in ~/.pi/agent/providers.json#roles, editable via the update_roles tool or the dashboard Roles panel). A configured series is the user's standing decision that cross-model is wanted: run it automatically, never ask per cycle.
- Walk in order, different family first. Start at
@propose-review-1. On the first pass skip any role whose architecture family matches the author's (author is Claude → skip roles mapping toclaude-*) — it shares the author's blind spots. - Probe once per session. Before the first real prompt to a role, send
"Reply with exactly: OK". Remember the result for the rest of the session — do not re-probe every cycle. Empty output or a resolution error → retry once (the subagent transport is known to return empty on a first call that succeeds on retry); still empty → advance to the next role. - Same-family last resort. Only when every different-family role failed may a same-family role in the series run. Label its findings degraded: same-family reviewer.
- Nothing resolves.
- Interactive → bootstrap a role (below), then probe and spawn. If the user declines, offer: manual external review (they paste ARTIFACT + CONTRACT + adversarial prompt into another model) or skip.
- Non-interactive (CI,
/loop, autonomous, scheduled) → skip.
Always use a role ref, never a raw `provider/model-id`. Role refs resolve through the parent's live registry, so a custom-provider model actually spawns; a raw id can build a child registry that lacks the provider → empty output, silently. This skill does not shell out to an external review CLI; the only automated reviewer is the in-process subagent.
Bootstrap a reviewer role (interactive only).1. Enumerate withlist_models(orpi --list-models/ dashboardGET /api/models). Keep credentialed rows (excludedReason: null); preferreasoning: true.2. Drop the author's architecture family.3.ask_user(select) with a handful of the strongest different-family candidates — do not auto-pick.4.update_roles→set_role,role: "propose-review-1"(or the next free slot),ref: "<chosen provider/model-id>". Persists for every future session; never hand-editproviders.json.Seeding example:propose-review-1 → opencode-go/glm-5.2,propose-review-2 → deepseek/deepseek-v4-pro,propose-review-3 → anthropic/claude-opus-4-8(same-family last, reached only via rule 3).
Announce what ran — always
The output states the reviewer situation in one line, every cycle:
- "Cross-model review ran automatically on @propose-review-2."
- "Cross-model: degraded: same-family reviewer (@propose-review-3)."
- "Cross-model skipped: <non-interactive context | user declined | series exhausted, every role probed empty>."
Skipping is fine; silent skipping is not. An exhausted series is a failure to surface, not a reason to quietly proceed single-model.
Step 4: RECONCILE — Fold findings back
The reviewer's output is data, not verdict. You are still the orchestrator. Re-read the artifact text against each finding before classifying — rubber-stamping the reviewer is the same failure mode as ignoring it.
For each finding, classify in this precedence order (first matching class wins):
- Contract misread — reviewer flagged something specifically because the CONTRACT you provided was unclear or incomplete. Fix the contract first, re-classify on the next cycle.
- Valid + actionable — real issue requiring a change to the artifact. Change it, re-loop.
- Valid trade-off — issue is real but cost of fixing exceeds cost of accepting. Document the trade-off explicitly so the user sees it.
- Noise — reviewer flagged something that's actually correct under context the reviewer didn't have. Note it, move on, and ask: would adding that context to the contract have prevented the false flag?
A fresh reviewer can be wrong because it lacks context. Don't defer just because it's "fresh." Findings marked unverified need you to check them before they can be classified as actionable.
Report the result as a compact table — # | reviewer | severity | class | action — so the user sees every finding's fate, not just the fixes.
Step 5: STOP — Bounded loop, not recursion
Stop when:
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 91 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingpackages/eng-disciplines/.pi/skills/doubt-driven-review/SKILL.md
Popularity
- Repository stars
- 313
- Repository forks
- 47
- 7-day trend score
- 34
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/blackbelttechnology/pi-agent-dashboard/doubt-driven-review)