[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6HQQ7FNPEXJPZRRSRF4765R":3,"skill-same:01M6HQQ7FNPEXJPZRRSRF4765R":75},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":41,"linkOnly":42,"markdownContent":43,"markdownBody":44,"frontMatter":45,"refName":46,"commitSha":47,"skillDirectory":48,"forksCount":49,"repositoryHtmlUrl":50,"repositoryHomepageUrl":51,"ownerHtmlUrl":52,"ownerBlogUrl":53,"ownerDescription":6,"updatedAt":54,"install":55,"resources":68},"01M6HQQ7FNPEXJPZRRSRF4765R","doubt-driven-review",null,"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.","BlackBeltTechnology\u002Fpi-agent-dashboard","BlackBeltTechnology","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F8101592?v=4","01M6HQDX7QAJA0QP4NYRYBMJ8A","BlackBelt Technology","01M6HQDXCC7719N9YDMQVH9JS6",348,"MIT","https:\u002F\u002Fgithub.com\u002FBlackBeltTechnology\u002Fpi-agent-dashboard\u002Fblob\u002Fdevelop\u002Fpackages\u002Feng-disciplines\u002F.pi\u002Fskills\u002Fdoubt-driven-review\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40],"doubt driven review","driven","review","prod deploy","when","verify","post","test","check","use","diff","course","stress","sure","poke","api","code-review","commit","code","public api","stress-test","decision","2026-11-10 10:12:30",false,"---\nname: doubt-driven-review\ndescription: '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.'\n---\n\n# Doubt-Driven Development\n\n## Overview\n\nA 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.\n\nThis 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.\n\n## When to Use\n\nA decision is **non-trivial** when at least one of these is true:\n\n- It introduces or modifies branching logic\n- It crosses a module or service boundary\n- It asserts a property the type system or compiler cannot verify (thread safety, idempotence, ordering, invariants)\n- Its correctness depends on context the future reader cannot see\n- Its blast radius is irreversible (production deploy, data migration, public API change)\n\nApply the skill when:\n\n- About to make an architectural decision under uncertainty\n- About to commit non-trivial code\n- About to claim a non-obvious fact (\"this is safe\", \"this scales\", \"this matches the spec\")\n- Working in code you don't fully understand\n\n**When NOT to use:**\n\n- Mechanical operations (renaming, formatting, file moves)\n- Following a clear, unambiguous user instruction\n- Reading or summarizing existing code\n- One-line changes with obvious correctness\n- Pure tooling operations (running tests, listing files)\n- The user has explicitly asked for speed over verification\n\nIf you doubt every keystroke, you ship nothing. The skill applies only to non-trivial decisions as defined above.\n\n## Loading Constraints\n\nThis skill is designed for the **main-session orchestrator**, where Step 3 (DOUBT) can spawn a fresh-context reviewer.\n\n- **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.\n- **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.\n\n## The Process\n\nCopy this checklist when applying the skill:\n\n```\nDoubt cycle:\n- [ ] Step 1: CLAIM — wrote the claim + why-it-matters\n- [ ] Step 2: EXTRACT — isolated artifact + contract, stripped reasoning\n- [ ] Step 3: DOUBT — spawned doubt-reviewer (single-model + cross-model) with adversarial prompt\n- [ ] Step 4: RECONCILE — classified every finding against the artifact text\n- [ ] Step 5: STOP — met stop condition (trivial findings, 3 cycles, or user override)\n```\n\n### Step 1: CLAIM — Surface what stands\n\nName the decision in two or three lines:\n\n```\nCLAIM: \"The new caching layer is thread-safe under the\n        read-heavy workload described in the spec.\"\nWHY THIS MATTERS: a race here corrupts user data and is\n                  hard to detect in QA.\n```\n\nIf you can't write the claim that compactly, you have a vibe, not a decision. Surface it before scrutinizing it.\n\n### Step 2: EXTRACT — Smallest reviewable unit\n\nA fresh-context reviewer needs the **artifact** and the **contract**, not the journey.\n\n- Code: the diff or the function — not the whole file\n- Decision: the proposal in 3–5 sentences plus the constraints it has to satisfy\n- 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)\n\nStrip 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.\n\n### Step 3: DOUBT — Invoke the fresh-context reviewer\n\nThe reviewer's prompt **must be adversarial**. Framing decides the answer.\n\n```\nAdversarial review. Find what is wrong with this artifact.\nAssume the author is overconfident. Look for:\n- Unstated assumptions\n- Edge cases not handled\n- Hidden coupling or shared state\n- Ways the contract could be violated\n- Existing conventions this might break\n- Failure modes under unexpected input\n\nDo NOT validate. Do NOT summarize. Find issues, or state\nexplicitly that you cannot find any after thorough examination.\n\nVerify each claim against the repository before relying on it.\nIf you cannot check a claim (no access, no tool, no network),\nwrite `unverified` next to it instead of asserting it true or false.\nIf the CONTRACT lists candidate requirements, check every\ncandidate and report each one the artifact contradicts.\n\nOutput one table row per finding, most severe first:\n| # | severity (blocker\u002Fmajor\u002Fminor) | location (file:line or section) |\n  contract clause violated | finding | verified\u002Funverified |\n\nARTIFACT: \u003Cpaste artifact>\nCONTRACT: \u003Cpaste contract>\n```\n\n**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.\n\n#### Who reviews — the `doubt-reviewer` agent\n\nSpawn the reviewer as `subagent_type: \"doubt-reviewer\"` — shipped with this package as `agents\u002Fdoubt-reviewer.md`: read-only tools, no pinned model, **`inherit_context: false`**.\n\n- **Never use a generic label** (`general-purpose`, an ad-hoc name, or a definition without `inherit_context: false`). When the operator's `inheritContext` setting 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.\n- If `doubt-reviewer` is not discoverable, fall back to another definition that sets `inherit_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.\n\nRun **two passes** on the same ARTIFACT + CONTRACT:\n\n```\n# single-model: omit `model` → the author's model, clean context\nAgent(subagent_type: \"doubt-reviewer\", description: \"Adversarial review\",\n      prompt: \"\u003Cadversarial prompt> + ARTIFACT + CONTRACT\")      # NO CLAIM\n\n# cross-model: a different-architecture reviewer role\nAgent(subagent_type: \"doubt-reviewer\", model: \"@propose-review-1\",\n      description: \"Cross-model adversarial review\",\n      prompt: \"\u003Cadversarial prompt> + ARTIFACT + CONTRACT\")      # NO CLAIM\n```\n\nThe 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.\n\n#### Cross-model reviewer — walk the `@propose-review-N` series\n\nA 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.\n\nThe operator pre-configures a numbered series of reviewer roles (`propose-review-1` … `propose-review-x` in `~\u002F.pi\u002Fagent\u002Fproviders.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.\n\n1. **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 to `claude-*`) — it shares the author's blind spots.\n2. **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.\n3. **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**.\n4. **Nothing resolves.**\n   - *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.\n   - *Non-interactive* (CI, `\u002Floop`, autonomous, scheduled) → skip.\n\n**Always use a role ref, never a raw `provider\u002Fmodel-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.\n\n> **Bootstrap a reviewer role (interactive only).**\n> 1. Enumerate with `list_models` (or `pi --list-models` \u002F dashboard `GET \u002Fapi\u002Fmodels`). Keep credentialed rows (`excludedReason: null`); prefer `reasoning: true`.\n> 2. Drop the author's architecture family.\n> 3. `ask_user` (`select`) with a handful of the strongest different-family candidates — do not auto-pick.\n> 4. `update_roles` → `set_role`, `role: \"propose-review-1\"` (or the next free slot), `ref: \"\u003Cchosen provider\u002Fmodel-id>\"`. Persists for every future session; never hand-edit `providers.json`.\n>\n> **Seeding example:** `propose-review-1 → opencode-go\u002Fglm-5.2`, `propose-review-2 → deepseek\u002Fdeepseek-v4-pro`, `propose-review-3 → anthropic\u002Fclaude-opus-4-8` (same-family last, reached only via rule 3).\n\n#### Announce what ran — always\n\nThe output states the reviewer situation in one line, every cycle:\n\n- *\"Cross-model review ran automatically on @propose-review-2.\"*\n- *\"Cross-model: degraded: same-family reviewer (@propose-review-3).\"*\n- *\"Cross-model skipped: \u003Cnon-interactive context | user declined | series exhausted, every role probed empty>.\"*\n\nSkipping is fine; silent skipping is not. An exhausted series is a failure to surface, not a reason to quietly proceed single-model.\n\n### Step 4: RECONCILE — Fold findings back\n\nThe 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.\n\nFor each finding, classify in this **precedence order** (first matching class wins):\n\n1. **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.\n2. **Valid + actionable** — real issue requiring a change to the artifact. Change it, re-loop.\n3. **Valid trade-off** — issue is real but cost of fixing exceeds cost of accepting. Document the trade-off explicitly so the user sees it.\n4. **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?\n\nA 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.\n\nReport the result as a compact table — `# | reviewer | severity | class | action` — so the user sees every finding's fate, not just the fixes.\n\n### Step 5: STOP — Bounded loop, not recursion\n\nStop when:\n\n- Next iteration returns only **trivial** findings — `minor` severity, or already classified in an earlier cycle — **or**\n- 3 cycles completed (escalate to user, don't grind a fourth alone), **or**\n- User explicitly says \"ship it\"\n\nIf after 3 cycles the reviewer still surfaces `blocker`\u002F`major` findings, the artifact may not be ready. Surface this to the user — three unresolved cycles is information about the artifact, not a reason to keep looping.\n\nIf 3 cycles is \"obviously insufficient\" because the artifact is large: the artifact is too big — return to Step 2 and decompose. Do not lift the bound.\n\n## Common Rationalizations\n\n| Rationalization | Reality |\n|---|---|\n| \"I'm confident, skip the doubt step\" | Confidence correlates poorly with correctness on novel problems. Moments of certainty are exactly when blind spots hide. |\n| \"Spawning a reviewer is expensive\" | Debugging a wrong commit in production is more expensive. The check is bounded; the bug isn't. |\n| \"The reviewer will just nitpick\" | Only if unscoped. Constrain the prompt to \"issues that would make this fail under the contract\"; the severity column lets minor findings stop the loop. |\n| \"I'll do doubt at the end with a code review\" | Code review is a final gate. Doubt-driven catches wrong directions early when course-correction is cheap. By PR time it's too late. |\n| \"If I doubt every step I'll never ship\" | The skill applies to non-trivial decisions, not every keystroke. Re-read \"When NOT to Use.\" |\n| \"Two opinions are always better than one\" | Not when the second has less context and produces noise. Reconcile, don't defer. |\n| \"The reviewer disagreed so I was wrong\" | The reviewer lacks your context — disagreement is information, not verdict. Re-read the artifact, classify, then decide. |\n| \"`general-purpose` works, it's fine as the reviewer\" | It works *and* may inherit your conversation. A reviewer that read your reasoning is not fresh-context. Use `doubt-reviewer`. |\n| \"The probe came back empty, that role is dead\" | The transport sometimes returns empty on a first call. Retry once before advancing. |\n\n## Red Flags\n\n- Spawning a fresh-context reviewer for a one-line rename or formatting change\n- Spawning the reviewer from a definition without `inherit_context: false` — the CLAIM leaks through the parent snapshot\n- Passing the CLAIM, your reasoning, or no CONTRACT to the reviewer\n- Prompting the reviewer with \"is this good?\" instead of \"find issues\"\n- Treating reviewer output as authoritative without re-reading the artifact text\n- Looping >3 cycles without escalating to the user\n- Skipping doubt under time pressure on a high-stakes decision\n- Re-spawning fresh-context on an unchanged artifact (you'll get the same findings; you're stalling)\n- **Doubt theater (checkable signal)**: across 2 or more cycles where the reviewer surfaced `blocker`\u002F`major` findings, zero findings were classified as actionable. You are validating, not doubting. Stop and escalate.\n- Doubting only after committing — that's post-hoc review, not doubt-driven development\n- Any cross-model outcome (skip, exhausted series, same-family fallback, substituted agent) not announced in the output\n- Substituting a raw `provider\u002Fmodel-id` or an external review CLI for the `@propose-review-N` subagent\n\n## Interaction with Other Skills\n\n- **`review-code`**: complementary. `review-code` is a post-hoc review of a finished diff; doubt-driven is in-flight per-decision. Use both.\n- **`code-review`**: the CodeRabbit ship gate — the last, external check. Doubt-driven happens long before it.\n- **`systematic-debugging`**: hands control to this skill after three failed fixes — the protected premise is what to doubt. In the other direction, when the reviewer surfaces a real failure mode, drop into systematic-debugging to localize and fix it.\n- **`scenario-design`**: a failing test is a disproof attempt — when a test can express the claim, write it; a failing RED test satisfies the doubt step for behavioral claims.\n- **`security-hardening`**: when the artifact touches auth, secrets or untrusted input, add its threat checklist to the CONTRACT.\n- **`plan-proposal`**: runs this skill on OpenSpec proposals with a spec-collateral scan before each cycle; main session only, never degraded to self-questioning.\n\n## Verification\n\nAfter applying doubt-driven development:\n\n- [ ] Every non-trivial decision (per the definition above) was named explicitly as a CLAIM before standing\n- [ ] At least one fresh-context review per non-trivial artifact (a failing RED test satisfies this for behavioral claims)\n- [ ] The reviewer was spawned as `doubt-reviewer` (or another `inherit_context: false` definition, announced) and received ARTIFACT + CONTRACT — NOT the CLAIM, NOT your reasoning\n- [ ] The reviewer's prompt was adversarial (\"find issues\") and asked for the severity \u002F location \u002F contract clause table\n- [ ] Findings were classified against the artifact text (not rubber-stamped) using the precedence: contract misread \u002F actionable \u002F trade-off \u002F noise, and reported as a table\n- [ ] A stop condition was met (only minor\u002Frepeat findings, 3 cycles, or user override)\n- [ ] Cross-model: a configured `@propose-review-N` series ran automatically (different family first, probed once per session, empty retried once, same-family only as announced degraded last resort); with no role, an interactive session bootstrapped one (`list_models` → `ask_user` → `update_roles`) or offered manual\u002Fskip; a non-interactive run skipped\n- [ ] The cross-model outcome was announced in the output, whatever it was\n","# Doubt-Driven Development\n\n## Overview\n\nA 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.\n\nThis 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.\n\n## When to Use\n\nA decision is **non-trivial** when at least one of these is true:\n\n- It introduces or modifies branching logic\n- It crosses a module or service boundary\n- It asserts a property the type system or compiler cannot verify (thread safety, idempotence, ordering, invariants)\n- Its correctness depends on context the future reader cannot see\n- Its blast radius is irreversible (production deploy, data migration, public API change)\n\nApply the skill when:\n\n- About to make an architectural decision under uncertainty\n- About to commit non-trivial code\n- About to claim a non-obvious fact (\"this is safe\", \"this scales\", \"this matches the spec\")\n- Working in code you don't fully understand\n\n**When NOT to use:**\n\n- Mechanical operations (renaming, formatting, file moves)\n- Following a clear, unambiguous user instruction\n- Reading or summarizing existing code\n- One-line changes with obvious correctness\n- Pure tooling operations (running tests, listing files)\n- The user has explicitly asked for speed over verification\n\nIf you doubt every keystroke, you ship nothing. The skill applies only to non-trivial decisions as defined above.\n\n## Loading Constraints\n\nThis skill is designed for the **main-session orchestrator**, where Step 3 (DOUBT) can spawn a fresh-context reviewer.\n\n- **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.\n- **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.\n\n## The Process\n\nCopy this checklist when applying the skill:\n\n```\nDoubt cycle:\n- [ ] Step 1: CLAIM — wrote the claim + why-it-matters\n- [ ] Step 2: EXTRACT — isolated artifact + contract, stripped reasoning\n- [ ] Step 3: DOUBT — spawned doubt-reviewer (single-model + cross-model) with adversarial prompt\n- [ ] Step 4: RECONCILE — classified every finding against the artifact text\n- [ ] Step 5: STOP — met stop condition (trivial findings, 3 cycles, or user override)\n```\n\n### Step 1: CLAIM — Surface what stands\n\nName the decision in two or three lines:\n\n```\nCLAIM: \"The new caching layer is thread-safe under the\n        read-heavy workload described in the spec.\"\nWHY THIS MATTERS: a race here corrupts user data and is\n                  hard to detect in QA.\n```\n\nIf you can't write the claim that compactly, you have a vibe, not a decision. Surface it before scrutinizing it.\n\n### Step 2: EXTRACT — Smallest reviewable unit\n\nA fresh-context reviewer needs the **artifact** and the **contract**, not the journey.\n\n- Code: the diff or the function — not the whole file\n- Decision: the proposal in 3–5 sentences plus the constraints it has to satisfy\n- 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)\n\nStrip 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.\n\n### Step 3: DOUBT — Invoke the fresh-context reviewer\n\nThe reviewer's prompt **must be adversarial**. Framing decides the answer.\n\n```\nAdversarial review. Find what is wrong with this artifact.\nAssume the author is overconfident. Look for:\n- Unstated assumptions\n- Edge cases not handled\n- Hidden coupling or shared state\n- Ways the contract could be violated\n- Existing conventions this might break\n- Failure modes under unexpected input\n\nDo NOT validate. Do NOT summarize. Find issues, or state\nexplicitly that you cannot find any after thorough examination.\n\nVerify each claim against the repository before relying on it.\nIf you cannot check a claim (no access, no tool, no network),\nwrite `unverified` next to it instead of asserting it true or false.\nIf the CONTRACT lists candidate requirements, check every\ncandidate and report each one the artifact contradicts.\n\nOutput one table row per finding, most severe first:\n| # | severity (blocker\u002Fmajor\u002Fminor) | location (file:line or section) |\n  contract clause violated | finding | verified\u002Funverified |\n\nARTIFACT: \u003Cpaste artifact>\nCONTRACT: \u003Cpaste contract>\n```\n\n**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.\n\n#### Who reviews — the `doubt-reviewer` agent\n\nSpawn the reviewer as `subagent_type: \"doubt-reviewer\"` — shipped with this package as `agents\u002Fdoubt-reviewer.md`: read-only tools, no pinned model, **`inherit_context: false`**.\n\n- **Never use a generic label** (`general-purpose`, an ad-hoc name, or a definition without `inherit_context: false`). When the operator's `inheritContext` setting 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.\n- If `doubt-reviewer` is not discoverable, fall back to another definition that sets `inherit_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.\n\nRun **two passes** on the same ARTIFACT + CONTRACT:\n\n```\n# single-model: omit `model` → the author's model, clean context\nAgent(subagent_type: \"doubt-reviewer\", description: \"Adversarial review\",\n      prompt: \"\u003Cadversarial prompt> + ARTIFACT + CONTRACT\")      # NO CLAIM\n\n# cross-model: a different-architecture reviewer role\nAgent(subagent_type: \"doubt-reviewer\", model: \"@propose-review-1\",\n      description: \"Cross-model adversarial review\",\n      prompt: \"\u003Cadversarial prompt> + ARTIFACT + CONTRACT\")      # NO CLAIM\n```\n\nThe 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.\n\n#### Cross-model reviewer — walk the `@propose-review-N` series\n\nA 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.\n\nThe operator pre-configures a numbered series of reviewer roles (`propose-review-1` … `propose-review-x` in `~\u002F.pi\u002Fagent\u002Fproviders.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.\n\n1. **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 to `claude-*`) — it shares the author's blind spots.\n2. **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.\n3. **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**.\n4. **Nothing resolves.**\n   - *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.\n   - *Non-interactive* (CI, `\u002Floop`, autonomous, scheduled) → skip.\n\n**Always use a role ref, never a raw `provider\u002Fmodel-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.\n\n> **Bootstrap a reviewer role (interactive only).**\n> 1. Enumerate with `list_models` (or `pi --list-models` \u002F dashboard `GET \u002Fapi\u002Fmodels`). Keep credentialed rows (`excludedReason: null`); prefer `reasoning: true`.\n> 2. Drop the author's architecture family.\n> 3. `ask_user` (`select`) with a handful of the strongest different-family candidates — do not auto-pick.\n> 4. `update_roles` → `set_role`, `role: \"propose-review-1\"` (or the next free slot), `ref: \"\u003Cchosen provider\u002Fmodel-id>\"`. Persists for every future session; never hand-edit `providers.json`.\n>\n> **Seeding example:** `propose-review-1 → opencode-go\u002Fglm-5.2`, `propose-review-2 → deepseek\u002Fdeepseek-v4-pro`, `propose-review-3 → anthropic\u002Fclaude-opus-4-8` (same-family last, reached only via rule 3).\n\n#### Announce what ran — always\n\nThe output states the reviewer situation in one line, every cycle:\n\n- *\"Cross-model review ran automatically on @propose-review-2.\"*\n- *\"Cross-model: degraded: same-family reviewer (@propose-review-3).\"*\n- *\"Cross-model skipped: \u003Cnon-interactive context | user declined | series exhausted, every role probed empty>.\"*\n\nSkipping is fine; silent skipping is not. An exhausted series is a failure to surface, not a reason to quietly proceed single-model.\n\n### Step 4: RECONCILE — Fold findings back\n\nThe 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.\n\nFor each finding, classify in this **precedence order** (first matching class wins):\n\n1. **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.\n2. **Valid + actionable** — real issue requiring a change to the artifact. Change it, re-loop.\n3. **Valid trade-off** — issue is real but cost of fixing exceeds cost of accepting. Document the trade-off explicitly so the user sees it.\n4. **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?\n\nA 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.\n\nReport the result as a compact table — `# | reviewer | severity | class | action` — so the user sees every finding's fate, not just the fixes.\n\n### Step 5: STOP — Bounded loop, not recursion\n\nStop when:\n\n- Next iteration returns only **trivial** findings — `minor` severity, or already classified in an earlier cycle — **or**\n- 3 cycles completed (escalate to user, don't grind a fourth alone), **or**\n- User explicitly says \"ship it\"\n\nIf after 3 cycles the reviewer still surfaces `blocker`\u002F`major` findings, the artifact may not be ready. Surface this to the user — three unresolved cycles is information about the artifact, not a reason to keep looping.\n\nIf 3 cycles is \"obviously insufficient\" because the artifact is large: the artifact is too big — return to Step 2 and decompose. Do not lift the bound.\n\n## Common Rationalizations\n\n| Rationalization | Reality |\n|---|---|\n| \"I'm confident, skip the doubt step\" | Confidence correlates poorly with correctness on novel problems. Moments of certainty are exactly when blind spots hide. |\n| \"Spawning a reviewer is expensive\" | Debugging a wrong commit in production is more expensive. The check is bounded; the bug isn't. |\n| \"The reviewer will just nitpick\" | Only if unscoped. Constrain the prompt to \"issues that would make this fail under the contract\"; the severity column lets minor findings stop the loop. |\n| \"I'll do doubt at the end with a code review\" | Code review is a final gate. Doubt-driven catches wrong directions early when course-correction is cheap. By PR time it's too late. |\n| \"If I doubt every step I'll never ship\" | The skill applies to non-trivial decisions, not every keystroke. Re-read \"When NOT to Use.\" |\n| \"Two opinions are always better than one\" | Not when the second has less context and produces noise. Reconcile, don't defer. |\n| \"The reviewer disagreed so I was wrong\" | The reviewer lacks your context — disagreement is information, not verdict. Re-read the artifact, classify, then decide. |\n| \"`general-purpose` works, it's fine as the reviewer\" | It works *and* may inherit your conversation. A reviewer that read your reasoning is not fresh-context. Use `doubt-reviewer`. |\n| \"The probe came back empty, that role is dead\" | The transport sometimes returns empty on a first call. Retry once before advancing. |\n\n## Red Flags\n\n- Spawning a fresh-context reviewer for a one-line rename or formatting change\n- Spawning the reviewer from a definition without `inherit_context: false` — the CLAIM leaks through the parent snapshot\n- Passing the CLAIM, your reasoning, or no CONTRACT to the reviewer\n- Prompting the reviewer with \"is this good?\" instead of \"find issues\"\n- Treating reviewer output as authoritative without re-reading the artifact text\n- Looping >3 cycles without escalating to the user\n- Skipping doubt under time pressure on a high-stakes decision\n- Re-spawning fresh-context on an unchanged artifact (you'll get the same findings; you're stalling)\n- **Doubt theater (checkable signal)**: across 2 or more cycles where the reviewer surfaced `blocker`\u002F`major` findings, zero findings were classified as actionable. You are validating, not doubting. Stop and escalate.\n- Doubting only after committing — that's post-hoc review, not doubt-driven development\n- Any cross-model outcome (skip, exhausted series, same-family fallback, substituted agent) not announced in the output\n- Substituting a raw `provider\u002Fmodel-id` or an external review CLI for the `@propose-review-N` subagent\n\n## Interaction with Other Skills\n\n- **`review-code`**: complementary. `review-code` is a post-hoc review of a finished diff; doubt-driven is in-flight per-decision. Use both.\n- **`code-review`**: the CodeRabbit ship gate — the last, external check. Doubt-driven happens long before it.\n- **`systematic-debugging`**: hands control to this skill after three failed fixes — the protected premise is what to doubt. In the other direction, when the reviewer surfaces a real failure mode, drop into systematic-debugging to localize and fix it.\n- **`scenario-design`**: a failing test is a disproof attempt — when a test can express the claim, write it; a failing RED test satisfies the doubt step for behavioral claims.\n- **`security-hardening`**: when the artifact touches auth, secrets or untrusted input, add its threat checklist to the CONTRACT.\n- **`plan-proposal`**: runs this skill on OpenSpec proposals with a spec-collateral scan before each cycle; main session only, never degraded to self-questioning.\n\n## Verification\n\nAfter applying doubt-driven development:\n\n- [ ] Every non-trivial decision (per the definition above) was named explicitly as a CLAIM before standing\n- [ ] At least one fresh-context review per non-trivial artifact (a failing RED test satisfies this for behavioral claims)\n- [ ] The reviewer was spawned as `doubt-reviewer` (or another `inherit_context: false` definition, announced) and received ARTIFACT + CONTRACT — NOT the CLAIM, NOT your reasoning\n- [ ] The reviewer's prompt was adversarial (\"find issues\") and asked for the severity \u002F location \u002F contract clause table\n- [ ] Findings were classified against the artifact text (not rubber-stamped) using the precedence: contract misread \u002F actionable \u002F trade-off \u002F noise, and reported as a table\n- [ ] A stop condition was met (only minor\u002Frepeat findings, 3 cycles, or user override)\n- [ ] Cross-model: a configured `@propose-review-N` series ran automatically (different family first, probed once per session, empty retried once, same-family only as announced degraded last resort); with no role, an interactive session bootstrapped one (`list_models` → `ask_user` → `update_roles`) or offered manual\u002Fskip; a non-interactive run skipped\n- [ ] The cross-model outcome was announced in the output, whatever it was\n",{"name":5,"description":7},"develop","e78b4c2c0474a8ab04941e76942e5a5b9d92c2d6","packages\u002Feng-disciplines\u002F.pi\u002Fskills\u002Fdoubt-driven-review",56,"https:\u002F\u002Fgithub.com\u002FBlackBeltTechnology\u002Fpi-agent-dashboard","https:\u002F\u002Fpi-dashboard.dev\u002F","https:\u002F\u002Fgithub.com\u002FBlackBeltTechnology","https:\u002F\u002Fwww.blackbelt.hu","2026-11-12 23:37:37",{"source":8,"skillName":5,"commands":56,"prompt":66,"zipAvailable":67},[57,60,63],{"tool":58,"command":59},"npx","npx skills add BlackBeltTechnology\u002Fpi-agent-dashboard --skill doubt-driven-review",{"tool":61,"command":62},"bunx","bunx skills add BlackBeltTechnology\u002Fpi-agent-dashboard --skill doubt-driven-review",{"tool":64,"command":65},"pnpm","pnpm dlx skills add BlackBeltTechnology\u002Fpi-agent-dashboard --skill doubt-driven-review","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FBlackBeltTechnology\u002Fpi-agent-dashboard\u002Fblob\u002Fdevelop\u002Fpackages\u002Feng-disciplines\u002F.pi\u002Fskills\u002Fdoubt-driven-review\u002FSKILL.md",true,[69],{"path":70,"resourceType":71,"resourceTypeDesc":72,"sizeBytes":73,"sourceHtmlUrl":74},"SKILL.agent.md","REFERENCE","参考文档",6232,"https:\u002F\u002Fgithub.com\u002FBlackBeltTechnology\u002Fpi-agent-dashboard\u002Fblob\u002Fdevelop\u002Fpackages\u002Feng-disciplines\u002F.pi\u002Fskills\u002Fdoubt-driven-review\u002FSKILL.agent.md",[76,103,128,151,172,194],{"skillNo":77,"name":78,"nameZh":6,"description":79,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":80,"categories":81,"keywords":82,"publishedAt":41},"01M6HQYQ5B82AM5T9Y299S9CFY","youtube-srt","Download YouTube subtitles (SRT + timestamped TXT) for a channel, playlist or video via yt-dlp, no media download; optionally mine them into a categorized catalog (e.g. AI models by function, open weights, local runnability, hardware tier). Use on \"download the srt of this video\", \"transcripts of channel X for the last N months\", \"catalog the models AI Search talked about\", \"update docs\u002Fmodels\".","https:\u002F\u002Fgithub.com\u002FBlackBeltTechnology\u002Fpi-agent-dashboard\u002Fblob\u002Fdevelop\u002Fpackages\u002Fvideo-transcription\u002F.pi\u002Fskills\u002Fyoutube-srt\u002FSKILL.md",[],[83,84,85,86,87,88,89,90,91,92,93,28,94,95,96,97,98,99,100,101,102],"youtube","srt","youtube srt","update","search","subtitles","dlp","Video","Media","open","catalog","update docs","yt-dlp","local","mine","via","ai models","last","for","media download",{"skillNo":104,"name":105,"nameZh":6,"description":106,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":107,"categories":108,"keywords":109,"publishedAt":41},"01M6HQYJBKSXR55T5RSYNJQG4D","video-transcription","Transcribe video and audio files to SRT subtitles with speaker diarization using the Soniox (default) or AssemblyAI API. Use when the user wants to transcribe meetings, videos, or audio files. Supports MKV, MP4, MOV, M4A, MP3. Triggers on \"\u002Ftranscribe\", \"transcribe my meetings\", \"transcribe videos in ~\u002FMovies\", or any request to convert audio\u002Fvideo to text.","https:\u002F\u002Fgithub.com\u002FBlackBeltTechnology\u002Fpi-agent-dashboard\u002Fblob\u002Fdevelop\u002Fpackages\u002Fvideo-transcription\u002F.pi\u002Fskills\u002Fvideo-transcription\u002FSKILL.md",[],[90,110,111,112,88,34,113,114,115,116,117,28,118,119,120,121,122,123,124,84,125,126,127,23],"transcription","video transcription","transcribe","Audio","convert","mp4","text","meetings","files","default","mp3","triggers","with","videos","assemblyai","my","srt subtitles","request",{"skillNo":129,"name":130,"nameZh":6,"description":131,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":132,"categories":133,"keywords":134,"publishedAt":41},"01M6HQYECMVDC5TDHHW22VC5RX","speaker-id","Name anonymous diarized SRT speakers from a persistent local voiceprint library and repair speaker drift; local, CPU-only, no API key. Triggers \"who is speaker 2\", \"put names on the transcript\", \"label the meeting SRT\", \"the diarization split one person into three\", \"enroll my voice\". Backed by the pi-voiceid CLI.","https:\u002F\u002Fgithub.com\u002FBlackBeltTechnology\u002Fpi-agent-dashboard\u002Fblob\u002Fdevelop\u002Fpackages\u002Fvideo-transcription\u002F.pi\u002Fskills\u002Fspeaker-id\u002FSKILL.md",[],[135,136,137,138,34,139,140,141,142,143,144,96,121,145,146,147,148,84,149,150],"id","speaker id","cli","transcript","voice","pi","only","three","drift","repair","name","CPU","meeting","anonymous","split","person",{"skillNo":152,"name":153,"nameZh":6,"description":154,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":155,"categories":156,"keywords":157,"publishedAt":41},"01M6HQYAZWDXE9QJEG592E5PXK","veo-showreel-production-kit","Turn a video timeline + voiceover into a reproducible, sliceable Veo 3.1 prompt package with a consistency anchor and AI storyboard sketches.","https:\u002F\u002Fgithub.com\u002FBlackBeltTechnology\u002Fpi-agent-dashboard\u002Fblob\u002Fdevelop\u002Fpackages\u002Fvideo-production\u002F.pi\u002Fskills\u002Fveo-showreel-production-kit\u002FSKILL.md",[],[158,159,160,161,162,163,164,90,165,166,167,168,122,169,170,171],"Production","veo","kit","veo showreel production kit","package","Reproducible","timeline","prompt","voiceover","storyboard","anchor","consistency","veo 3","2026",{"skillNo":173,"name":174,"nameZh":6,"description":175,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":176,"categories":177,"keywords":178,"publishedAt":41},"01M6HQY6TJ0X1ADDKYPMVJY6NV","veo-generator","Render a scripted video project into mp4 clips with the Google Veo 3.1 API. Reads a project's shot package (shots\u002F*.md), one clip per camera cut, reusing each shot's prompt and sketch — world anchor only with `--with-reference`, seed unless `--no-seed`. Use on \"render the Veo video for \u003Cproject>\", \"generate the videos from the shot scripts\", \"make the clips with Veo\".","https:\u002F\u002Fgithub.com\u002FBlackBeltTechnology\u002Fpi-agent-dashboard\u002Fblob\u002Fdevelop\u002Fpackages\u002Fvideo-production\u002F.pi\u002Fskills\u002Fveo-generator\u002FSKILL.md",[],[159,179,180,181,182,162,34,90,115,165,28,183,141,184,185,186,187,188,168,189,190,191,192,122,193,101,170],"generator","veo generator","google","generate","clip","sketch","camera","world","seed","project","cut","scripts","make","render","google veo",{"skillNo":195,"name":196,"nameZh":6,"description":197,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":198,"categories":199,"keywords":200,"publishedAt":41},"01M6HQY1K2NZJ3B2YHSJJPPVAF","hyperframes-showreel","Turn real screen and site footage into a rhythmic showreel rendered with HyperFrames: sampling, edit script, redacted clips, a generated composition, Veo only as additive FX, music edit + camera punches, delivery render and export QA. Use on \"make a showreel from these recordings\", \"build the HyperFrames video\", \"assemble the footage edit\", \"render and QA the showreel\".","https:\u002F\u002Fgithub.com\u002FBlackBeltTechnology\u002Fpi-agent-dashboard\u002Fblob\u002Fdevelop\u002Fpackages\u002Fvideo-production\u002F.pi\u002Fskills\u002Fhyperframes-showreel\u002FSKILL.md",[],[201,202,203,90,204,205,206,28,207,208,209,141,210,211,212,213,214,192,122,215],"hyperframes","hyperframes showreel","qa","Composition","edit","generated","assemble","export","sampling","build","delivery","as","fx","screen","script"]