/review-beta:correctnessfrom review-beta
Reviews code changes for 19 correctness dimensions (boundary conditions, null values, concurrency, idempotency, etc.) by running a probe script and returning a structured findings report. Part of a multi-aspect review system.
Ships in review-beta. 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; scripts run unread.
Review the change at $ARGUMENTS for correctness defects and return the findings report defined in
§5. With no $ARGUMENTS, review the working-tree diff against the default branch.
This is one aspect subskill of a multi-aspect review. The parent orchestrator (review-beta:start)
collects this report alongside the other five aspects and synthesizes them, so the report is the
whole product: the parent sees only the return value, never any of this reasoning.
background: false is deliberate — the parent needs the findings inside its own turn, and a
backgrounded fork gets a narrower tool set than the Bash-plus-Read work below requires.
${CLAUDE_SKILL_DIR}/scripts/probe-correctness.sh [--base <ref>] [<repo-root>]
It emits SEVERITY|FILE|LINE|DIMENSION|MESSAGE findings plus #-prefixed metadata: which tool
ran, which was missing, which dimensions are deferred to CI, and whether a merged
.review/battery.sarif already exists. Run --list to see the tool table without running it.
Fields are |-separated; a literal pipe inside FILE or MESSAGE arrives escaped as \|, so the field count is always five.
Three rules govern what you do with that output.
| Rule | Consequence |
|---|---|
| Probe, then battery | If .review/battery.sarif exists, its partitioned results are authoritative — adjudicate those and do not re-run a scanner by hand |
| No tool, no finding | A dimension whose tool reported status=missing or deferred= is unavailable and produces zero findings. Say so in §5's UNAVAILABLE block |
| Never re-derive | Do not hand-check what the probe decided. A reviewer told to look for overflow in a diff will find overflow whether or not it is there |
Output-format coverage. The probe parses each tool's own stdout, so a filter that does not match its tool is a silent zero-findings bug rather than a crash. The shapes emitted by semgrep (--vim) and mypy were verified against real output from those tools; the ones with a captured fixture are pinned and asserted in tests/run-probe-tests.sh. The shapes assumed for tsc, go vet, errcheck, eslint, diff-cover are unverified — those tools could not be run here. Treat an unexpected zero from one of them as suspect, and confirm by running it directly before reporting the dimension clean.
The second rule is the one that costs discipline. It exists because the failure mode of this family is not a missed defect — it is a confident, plausible, wrong one, which burns author trust faster than an escape does.
The dimension table, with each dimension's question, severity ceiling, automation tier and the exact residual left to judgement, is in references/dimensions.md. Read it once, then work only the residue. The residues that recur:
| Dimension | The tool decided | You decide |
|---|---|---|
correctness-null-absence | Every typed dereference | Untyped boundaries — JSON parse, FFI, any at an API edge |
correctness-error-propagation | Unchecked and discarded failure signals | Whether a caught-and-logged error should have aborted |
correctness-concurrency | Races the existing tests scheduled | Interleavings no existing test schedules |
correctness-domain-invariants | Illegal assignments outside transitions | Naming the invariant and the transition that violates it |
correctness-partial-failure | Fan-out around side effects | Whether the resulting partial state is acceptable to the domain |
correctness-data-loss | Destructive DDL and IaC operations | Whether the stated recovery path has ever been exercised |
correctness-algorithmic-cost | IO in a loop, missing indexes | Whether the input is actually request-sized in production |
correctness-test-quality | Surviving mutants, flake reruns | Whether a surviving mutant is a real gap or an equivalent mutant |
correctness-test-coverage is agent: skip in the taxonomy — its tool returns a decision, not
candidates. Relay the probe's finding verbatim; do not re-judge it.
| Severity | Test |
|---|---|
| blocker | Would you page someone at 03:00 for this, or owe an external party notice? |
| major | More expensive to fix in three months than today, and you can name who pays? |
| minor | A tool output or counted metric backs it, and the fix is under ~15 minutes? |
| nit | A reasonable engineer could disagree and still be right? |
Four constraints, from the taxonomy's rubric:
From the taxonomy's de-duplication ledger. Route rather than report:
| Subject | Owner |
|---|---|
| Attacker-controlled amplification across a boundary | review-beta:security (sec-resource-exhaustion-limits) |
| Personal data reaching a sink | review-beta:security (sec-personal-data-handling) |
| Whether the deploy can be reversed | review-beta:process (process-rollback-path) |
| Whether an operator can see the failure | review-beta:process (process-telemetry-instrumentation) |
| Whether the test is gated in CI at all | review-beta:process (process-merge-gating) |
| Abstraction, coupling and duplication quality | review-beta:design |
| Dead or unreferenced code, import cycles | Hard gates — the run aborts on these, they are not findings |
Self-inflicted unbounded growth stays here (correctness-termination-bounds); the same loop
reachable by an attacker is sec-resource-exhaustion-limits. Multi-step mutations that are not
atomic stay here; an atomic mutation reaching an illegal end state is correctness-domain-invariants.
Return this and nothing else. No preamble, no narration, no restating the taxonomy.
## review-beta:correctness
VERDICT: PASS | FAIL
SCOPE: <what was reviewed — diff range or paths>
COUNTS: blocker=<n> major=<n> minor=<n> nit=<n> (tool=<n> judged=<n>)
| Sev | Location | Dimension | Problem | Remedy | Confidence |
| :------ | :--------------- | :---------------------------------- | :------------------------------------------------------------------------- | :------------------------------------------------------------------------ | :--------- |
| blocker | src/ledger.go:88 | correctness-transactional-integrity | SELECT-then-UPDATE with no row lock; two concurrent transfers double-spend | Add `FOR UPDATE` to the balance read, or a version predicate on the write | high |
UNAVAILABLE:
- <dimension> — <tool that was missing or deferred>
Rules that make the report usable:
VERDICT: FAIL iff at least one blocker survives. Nothing else changes the verdict.Location is file:line. Use line 0 only when a finding genuinely has no line.Confidence is high | medium | low, and low findings must state what would confirm them.Remedy is the concrete edit to make, not a restatement of the problem.VERDICT: PASS, zeroed counts, and the literal
line NO FINDINGS in place of the table.UNAVAILABLE when every dimension had its tool.AUTOMATION: <the rule to encode>.| Skill | Relationship |
|---|---|
review-beta:start | The orchestrator that invokes this aspect and merges its report |
review-beta:security | Owns attacker-reachable versions of the same mechanisms |
review-beta:process | Owns whether the missing test is gated, and whether the change is undoable |
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
code-review, correctness, defect-detection, automated-review
9 skills in this plugin
/agentic-configurationInvoked by review-beta:start, which routes every review request and decides which aspects apply — use that entry skill first; this is one of the aspects it delegates to. Reviews whether agent configuration is well built — skills, plugin manifests, hook wiring, agents, commands and the MCP config they declare — covering frontmatter conformance, description trigger accuracy, length budgets, progressive-disclosure layout, fork return contracts, manifest required fields, and hook events that silently never fire. Runs scripts/check-skill.sh and scripts/check-plugin.sh for every mechanical check before spending any judgement. Returns a structured findings report with a pass/fail verdict. NOT for judging whether the subject matter a skill teaches is factually correct, and NOT for general code review of the scripts a plugin bundles (review-beta:correctness owns that)./best-practicesInvoked by review-beta:start, which routes every review request and decides which aspects apply — use that entry skill first; this is one of the aspects it delegates to. Reviews whether code follows the idiomatic practice its own ecosystem publishes, running scripts/probe-best-practices.sh — golangci-lint, clippy, ruff, biome, rubocop, stylelint, swiftlint, ktlint, tflint, phpcs — and reporting only what those linters decide, so "unidiomatic" is settled by each community's rule catalogue rather than by taste. Returns a structured findings report with a verdict. NOT for whether the code is correct (review-beta:correctness), whether it is well factored (review-beta:design), or whether it matches this org's own declared conventions (review-beta:org-fit)./designInvoked by review-beta:start, which routes every review request and decides which aspects apply — use that entry skill first; this is one of the aspects it delegates to. Reviews a change for design-health regressions and returns a structured findings report with a verdict, running scripts/probe-design.sh — clone detectors, architecture contracts, dead-export analysers, API-diff tools — before spending any judgement. Covers the taxonomy's 13 design dimensions — speculative generality, wrong abstraction, duplication, public surface minimality, backward and data-contract compatibility, deprecation and migration, layering and dependency direction, cohesion, hidden global state, testability seams, configuration surface, and new third-party dependencies. NOT for whether the code works (review-beta:correctness) or whether it matches house convention (review-beta:org-fit)./docsInvoked by review-beta:start, which routes every review request and decides which aspects apply — use that entry skill first; this is one of the aspects it delegates to. Reviews documentation changes and returns a structured findings report with a verdict, running scripts/probe-docs.sh — lychee, markdownlint, Vale, cspell, doctest runners — before spending any judgement. Covers the taxonomy's 18 docs dimensions — entry-point completeness, executable quickstarts, example correctness, reference coverage, doc/code synchrony, link and URL integrity, version applicability, translation drift, ownership, presentation, terminology, claim substantiation, changelog quality, authored-source accessibility, message quality, and decision rationale. NOT for whether the described code is correct (review-beta:correctness) or whether agent configuration is well built (review-beta:agentic-configuration)./org-fitInvoked by review-beta:start, which routes every review request and decides which aspects apply — use that entry skill first; this is one of the aspects it delegates to. Reviews whether a change fits the organization it lands in, and returns a structured findings report with a verdict, running scripts/probe-org-fit.sh — the repo's own lint task, editorconfig-checker, shellcheck, syncpack, generation drift — before spending any judgement. Covers the taxonomy's 16 org-fit dimensions — reinvented shared capabilities, copy-pasted CI, golden-path divergence, generated-artifact drift, dependency version divergence, the repo's own written rules, interface conventions, the accessibility automated scanning cannot see, i18n, declared performance budgets, platform assumptions, portability gaps, and environment parity. NOT for intrinsic design quality (review-beta:design) or release process (review-beta:process)./processInvoked by review-beta:start, which routes every review request and decides which aspects apply — use that entry skill first; this is one of the aspects it delegates to. Reviews how a change arrives and rolls out, and returns a structured findings report with a verdict, running scripts/probe-process.sh — git metadata, commitlint, actionlint, gh checks — before spending any judgement. Covers the taxonomy's 18 process dimensions — intent conformance, change size, commit hygiene, merge gating, approval authority, CI/local parity, regression tests, flaky-test policy, rollback and exposure control, deploy sequencing, lifecycle and draining, load validation, telemetry, operational readiness, release mechanics, support windows, cross-repo ordering, and recurring cost. NOT for whether the code is correct (review-beta:correctness) or fits org conventions (review-beta:org-fit).npx claudepluginhub nsheaps/ai-mktpl --plugin review-betaOther plugins' skills for the same job