/crucible:delvefrom crucible
Runs a parallel bug-finder fan-out with a verify gate on a diff, PR, or file path, producing ranked, reproducible defect reports. Triggers on "delve", "find bugs in this diff", "review this for bugs", "scan for defects", "instance-bug sweep". For standalone instance-bug review, not merge verdicts or systemic health.
Ships in crucible. 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.
Read when SKILL.md points to them.
All subagent dispatches use disk-mediated dispatch. See shared/dispatch-convention.md for the full protocol.
The finder angles, the verify gate, the effort tiers, and the output schema are NOT redefined here — they live in shared/delve-engine.md. /delve is the thin standalone driver of that engine: it resolves a scope, runs the engine once, and handles output (report / optional --fix / optional --comment).
The severity and verdict vocabularies the findings carry are the contract's, not delve's. See shared/severity-verdict-contract.md.
Sizing thresholds are human-reviewability guidance delve reports, never gates on: a sizing observation is a property of the run's scope, never a verdict or a record field.
/delve is the standalone instance reviewer of the review trio. It owns ONE concrete defect with one reproduction (even across files); it does not own systemic patterns (that is /audit), the merge gate (that is /temper), or codebase exploration (that is /recon / /prospector).
Authored fresh, clean retro slate. delve is a freshly-authored fan-out wrapper — nothing is seeded from any existing skill, and it inherits none of the old code_review forge-retrospective lessons (that lineage forks to temper). On Claude Code the built-in /code-review still exists; there is no collision (different name), and the built-in stays an optional accelerator, never a dependency (I1).
/delve finds and reports instance bugs. Use a different skill for:
/temper (delve runs the engine once and reports; it never loops and never emits Clean / Issues-Found)./audit. A finding with one concrete reproduction is delve's even when it spans multiple files; a no-single-repro pattern is audit's./recon or /prospector./quality-gate.| Component | Required? | Purpose | Fallback if missing |
|---|---|---|---|
git | Required (diff scope) | Diff resolution, SHA range, default-branch detection | None — abort with a clear error. Not required for a pure path scope. |
shared/delve-engine.md | Required | The fan-out + verify gate this skill drives | None — abort; delve has no engine of its own. |
Forge CLI (gh / glab / bb) | Optional | PR-metadata fetch (diff scope) + --comment post-back | Probe in order; fall back to git plumbing / paste-mode. Never a hard dependency (I1). |
/delve # auto-detect diff scope (origin default-branch..HEAD)
/delve 259 # PR identifier on the current forge → its diff
/delve https://... # PR URL on any forge → its diff
/delve main..HEAD # explicit SHA range
/delve src/session/ # path / subsystem sweep over standing code
/delve src/auth.ts effort=high # path sweep, recall-biased
/delve 259 --fix # apply confirmed fixes to the working tree
/delve main..HEAD --comment # post findings inline on the PR (or paste-fallback)
/delve src/ line-by-line,cross-file effort=max # angle subset + exhaustive recall
Argument shape: [PR-id | <base>..<head> | <path>] [angles] [effort=low|medium|high|max] [--fix] [--comment]
[PR-id | base..head | path] — the scope (Step 1). A diff scope (PR / range / auto-detect) OR a path/subsystem.[angles] — a comma-separated subset of the seven engine angles (line-by-line, removed-behavior, cross-file, reuse, simplification, efficiency, altitude). Default: all seven. Passed straight to the engine's angles input — delve never forks the angle set.effort — low | medium | high | max. Default medium (the engine default). Passed to the engine's effort input.--fix — after reporting, apply fixes to the working tree only (Step 4). Off by default.--comment — after reporting, post findings to the forge inline, or paste-fall-back (Step 5). Off by default.external_candidates is not a delve input — it is empty for standalone delve (only temper with external_review enabled populates it). delve drives the engine with scope, angles, effort, and cap.
First decide whether the argument is a diff scope or a path scope. These rules are an ordered precedence — apply them top to bottom and stop at the first match (they are not an unordered set, so a bare integer that also names a path on disk is never silently misclassified):
.. → diff scope (SHA range).(Escape: to force a path that looks like a PR number, pass it with a ./ prefix or a trailing slash — e.g. ./259 or 259/ — so it matches rule 4 instead of rule 3.)
Diff scope. Resolve to a <base>..<head> SHA range following temper's Step 1 resolution — forge detection is CLI-probe order, not hostname-literal:
gh for GitHub / GHE, glab for GitLab, bb for Bitbucket); unknown host → git plumbing, ask the user to paste the description. When it is a bare PR number, probe gh → glab → bb against the current origin; if none succeed, fall back to git plumbing (git fetch <remote> pull/<id>/head or merge-requests/<id>/head). Map the fetched baseRef/headRef to SHAs via git rev-parse... present). Use as-is.git symbolic-ref refs/remotes/origin/HEAD and use <that-ref>..HEAD. (4) If origin/HEAD is unset, fall back to the single existing origin/{main,master,trunk}; if more than one exists, abort and ask for an explicit range.Distinguish CLI errors from missing CLIs. A CLI that exits non-zero with "404 / not found / auth required" is not a missing-CLI fallback path — surface the error and pause. Falling through silently would run against the wrong scope.
Anti-rationalization: never hardcode gh (or any single forge CLI) in the path. delve is forge-agnostic; the CLI used is whichever the environment provides.
Path scope. Use the path verbatim as the engine's scope — this is an instance sweep over standing code, not a diff. No SHA range, no PR metadata, no git diff. The engine's removed-behavior angle has no deletions to read in a pure path sweep; it simply contributes nothing rather than erroring.
For a diff scope, run git diff --numstat <base>..<head> and classify before spending a fan-out:
No changes to review and stop. Do not dispatch.(Path scope has no diff to preflight; a path that resolves to nothing on disk is a usage error — abort with the resolved path.)
Drive shared/delve-engine.md a single time with:
scope = the resolved diff range or the path from Step 1 (echoed onto every output record by the engine).angles = the [angles] subset, default all seven.effort = the requested tier, default medium.cap = 10 by default. When effort=max, pass a deliberately large ceiling — well above any plausible kept-finding count — so the ranked output is never truncated. cap is an engine input (delve-engine §2), fixed before the single run; it cannot be sized to a same-run kept count (that count exists only after the verify gate, and delve drives the engine once). The engine ranks most-severe-first and cap truncates only that ranked output (delve-engine §6), so a max sweep left at the default 10 can drop a confirmed finding it paid to verify — choose a high ceiling at input time rather than rely on the default.The fan-out (finder angles) and the per-candidate verify gate run as parallel subagents through the harness-adapter dispatch mechanism — delve issues no harness-specific call inline (I1). On a harness with no parallel-subagent primitive, the adapter's sequential fallback runs the angles as multiple sequential passes (one per angle), never collapsed into a single in-context pass; it warns once that recall may drop.
delve runs the engine once. There is no fix-verification loop and no second round — that cadence belongs to temper.
Print the engine's kept findings (CONFIRMED + PLAUSIBLE), ranked most-severe-first, capped. Each finding is the engine's eight-field record:
{file, line, summary, failure_scenario, severity, verdict, scope, effort}
The engine returns the already-ranked, already-capped set.
The engine's file/line refs come straight out of the model with no guarantee the cited line actually matches the claimed code; a drifted position silently degrades the report's trust. Before surfacing any finding, run the deterministic position gate:
scripts/verify_comment_positions.py by absolute path from the plugin root, and run python3 <script> --root <repo-root> <refs.json>, where <refs.json> is the kept findings' {file, line, summary} written to a temp file and <repo-root> is the resolved working tree.VERIFIED / REJECTED status lines (see the script's docstring: a ref REJECTs when the file/line does not resolve, or when a referenced symbol present in the file does not occur on the cited line; a provenance-only ref degrades to VERIFIED so removed-behavior findings survive).-- POSITION DRIFT (rejected before display, #628) -- header, with each one's file:line + reason, so the drift is caught before it reaches the user and the model is not credited with a position it did not earn. A finding that does not survive the position gate is not a finding the user should act on.After the position gate, delve re-groups the surviving findings by severity for display only (Critical → Important → Minor → Suggestion) and never re-truncates or re-caps per band. Within a band, preserve the engine's returned order (most-severe-first per delve-engine §6); delve adds no sort key of its own. Each line shows file:line, the summary, the verdict, and the failure scenario. State the run's scope/effort once at the top (they are identical on every record). For a diff scope whose changed-line count exceeds the doc's ~300 middle band, append to that line a sizing note: sizing: ~<count> changed lines (past the ~300 reviewability band, per change-sizing.md); split via <named strategy>. For path scope there is no diff to measure, so the run-level line carries no sizing note — a specified outcome, not an implementation accident. When the kept Critical/Important count exceeds cap, surface a truncation caveat to the user (per delve-engine §6 — treat truncation of a gating finding as a signal) rather than presenting the capped list as complete; delve does not change the engine's cap, it only flags the condition. If the engine returns nothing (or every finding was REJECTED by the position gate), report No verified findings — not a Clean verdict (delve has no verdict; that distinction is temper's).
Output policy: report only. delve never emits a merge verdict and never gates. --fix and --comment below are optional add-ons, not part of the report contract.
--fix): Apply fixes to the working treeWhen --fix is passed, apply fixes for the reported findings to the working tree only (I9):
PLAUSIBLE@{Critical,Important} finding is a real regression per shared/severity-verdict-contract.md (PLAUSIBLE only because the verifier had no runnable repro, not because it is doubtful) and gets the same fix treatment as a CONFIRMED one — verdict does not down-weight it.If --fix is combined with a path scope, the same rule holds: working tree only. --fix may edit any file a kept finding names (consistent with the cross-file angle, which can implicate a reader in another file) — still working-tree only, and not confined to files inside the path scope.
--comment): Post findings to the forge--comment is an output convenience, not part of the report contract. It applies to a diff scope with a resolvable PR (a path sweep has no PR to comment on — if --comment is passed with a path scope, a bare SHA range with no PR, or an auto-detected range with no associated PR, fall straight through to paste-mode).
delve first writes the Step 3 formatted report body to a findings.md file, which the post-back commands below read. Post inline using whichever CLI fits the detected forge — forge-agnostic, mirroring temper Step 5 and backed by the harness-adapter forge-comment mapping:
gh pr review <id> --comment --body-file <findings.md>glab mr note <id> -m "$(cat findings.md)"bb pr comment <id> --file findings.md (or REST)Never silently drop the comment (I9). On a non-zero exit, first re-query PR state via the matching forge CLI before classifying — gh pr view <id> --json state,mergedAt / glab mr view <id> / bb pr view <id> — and map the reported state onto a table row (open-but-failed → auth/rate-limit row; closed-without-merge → closed row; merged or absent → merged/deleted row). When the forge cannot report state (unknown host, Bitbucket/REST gap, or the probe itself errors), default to paste-mode and never silent-drop (I9) — a transient or unclassifiable error must surface the body, not swallow it — EXCEPT where state is positively classified as merged/deleted (the table's last row), which surfaces locally without paste. Then classify:
| Failure mode | Response |
|---|---|
| Auth-fail / token expired / rate-limit (403) / network error | Paste-mode with retry guidance: "Posting failed with <error> — re-authenticate / wait and retry, or paste the body manually below." |
| PR closed-without-merge | Paste-mode with conditional guidance: "PR is closed; paste the body if you intend to reopen, otherwise the findings remain in your session." |
| PR merged or deleted | Do not offer paste-mode; surface locally: "The PR is no longer postable (merged / deleted). Findings remain in your session." |
The findings are complete after Step 3 regardless of whether --comment succeeds.
After printing the ranked findings (or No verified findings), emit ONE Tier B STUB JSONL line to the central ledger (~/.claude/crucible/ledger/runs.jsonl) via the emit CLI per the canonical protocol at skills/shared/ledger-append.md — resolve scripts/ledger_append.py by absolute path from the plugin root and run python3 <script> emit - '<json>'.
emit CLI owns the mechanics: graceful skip on CRUCIBLE_CALIBRATION_DISABLED=1 (L-6), dedup by (run_id, skill="delve") (L-2), and auto-fill of repo + schema_version. If the script can't be resolved, warn to stderr and skip — never block or alter the report.verdict here is an operational completion record, NOT a quality judgement — exactly as its sibling audit does: a completed run → PASS; an early abort / escalation routed to the user → ESCALATED.repo is auto-filled by the emit CLI): schema_version: 2, run_id (UUIDv7 via scripts/uuid7.py), skill: "delve", tier: "B", verdict (PASS | ESCALATED per above), timestamp (ISO-8601 UTC), gated_files (the resolved scope's files — git diff --name-only for a range, or the path's file set — repo-relative), artifact_type (code for a code diff/path; map a non-code path to design | plan | other).shared/ledger-append.md: severity_histogram, highest_finding, would_have_shipped_without_gate, findings_count, confidence, chunk_hash, rounds, predicted_falsifier — all null. Also gated_files_truncated: 0 and comment: null. Keep backfilled: false, falsified: null, falsified_by: null.delve drives shared/delve-engine.md through the harness-adapter fan-out mechanism (shared/harness-adapter.md §4, §7) — never a harness-specific call inline (I1). Where a harness has no parallel-subagent primitive, the adapter's sequential fallback (§5) runs the angles as multiple sequential passes, warning once that recall may drop.
delve is one of the exactly two files that dispatch delve-engine directly (the other is temper). The canonical engine-dispatch marker line follows; the I2 allowlist test keys on it with the anchored pattern grep -rn '^dispatch: delve-engine':
dispatch: delve-engine
/delve src/session/ effort=high
[Step 1] Path scope: src/session/ (instance sweep over standing code)
[Step 2] delve-engine — angles=all7, effort=high, cap=10 (via harness-adapter fan-out)
fan-out → dedup → one verifier per candidate
[Step 3] Verified findings (scope=src/session/, effort=high):
CRITICAL
- middleware.ts:30 reader reads claims.expiresAt after writer renamed it to exp
verdict CONFIRMED — every request after deploy reads undefined exp → total auth outage
- token.ts:88 revoked-token check removed before acceptance
verdict CONFIRMED — a revoked token is presented, the check is gone → revocation bypassed
IMPORTANT
- token.ts:42 boundary expiry uses < instead of <=
verdict CONFIRMED — a token at its exact expiry second is accepted for one second
SUGGESTION
- token.ts:60 three-branch if/else collapsible to one ternary
verdict PLAUSIBLE — readability only
(REFUTED candidates, e.g. the JWKS re-parse, were dropped by the verify gate and never appear.)
With --fix, delve would edit middleware.ts, token.ts in the working tree and summarize the changes. With --comment on a PR scope, it would post the same ranked list inline or paste-fall-back.
temper./audit.--fix touches the working tree only.--comment — it always posts or paste-falls-back (I9).angles/effort/scope/cap and drives the one shared engine.evals/README.md (opens in a new tab)evals/__init__.py (opens in a new tab)evals/_dispatch_paths.py (opens in a new tab)evals/_matcher.py (opens in a new tab)evals/_runid.py (opens in a new tab)evals/fixtures/sample/ground-truth-bugs.json (opens in a new tab)evals/fixtures/sample/ground-truth-bugs.provenance.md (opens in a new tab)evals/fixtures/sample/inventory.py (opens in a new tab)evals/fixtures/sample/manifest.json (opens in a new tab)evals/fixtures/sample/report.py (opens in a new tab)evals/run_evals.py (opens in a new tab)evals/test_matcher.py (opens in a new tab)evals/test_run_evals_score.py (opens in a new tab)evals/test_run_evals_stage.py (opens in a new tab)evals/test_runid.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Generated from the plugin's indexed repository (raddue/crucible) — no native marketplace selected
npx claudepluginhub p/raddue-crucible51 skills in this plugin
/adrWrite, supersede, and maintain Architecture Decision Records (docs/decisions/) for technical choices that had real, seriously-considered alternatives and would be costly to reverse. Use on "write an ADR", "record this decision", or when recording a choice that a design or PR already settled. Matches the target repo's existing ADR convention before imposing one, and declines with a reason when a decision does not meet the bar — not for routine design docs, implementation plans, session handoffs, the pre-push/merge wrap-up itself (that belongs to `finish` / `merge-pr`), or answering "why did we choose X" from an ADR that already exists (that's a read, owned by `recall` / `recon`)./adversarial-testerUse after completing an implementation to find unknown failure modes. Reads the implementation diff and writes up to 5 tests designed to make it break — per-task, scoped to that single implementation (for a fully-assembled multi-component feature, use inquisitor to hunt cross-component bugs). Triggers on 'break it', 'adversarial test', 'stress test implementation', 'find weaknesses', or any task seeking to expose unknown failure modes in a single implementation./assayRecon-informed approach evaluator. Weighs competing options against codebase constraints and returns structured recommendations with confidence scoring, kill criteria, and evidence grounding. Consumes recon briefs or caller context. Used by design, spec, migrate. Triggers on /assay, 'evaluate approaches', 'which option', 'compare alternatives'./auditAdversarial review of code subsystems or non-code artifacts (design docs, plans, concepts) through parallel analytical lenses. Triggers on 'audit', 'review subsystem', 'audit this design', 'review this plan', 'audit concept', 'check the save system', 'examine the UI code', or any task requesting adversarial review of existing artifacts./buildUse when starting any feature development, building new functionality, implementing a design, or going from idea to working code. Triggers on "build", "implement", "add feature", or any task requiring design-through-execution./cartographer-skillUse when exploring unfamiliar code and want to persist what you learn, when starting a task and want to consult known codebase structure, or when collaborators need module-specific context for implementation or reviewOther plugins' skills for the same job