/review-beta:best-practicesfrom review-beta
Reviews code against ecosystem-published idiomatic practice by running community linters (golangci-lint, clippy, ruff, biome, rubocop, stylelint, swiftlint, ktlint, tflint, phpcs) and reporting their findings as structured verdicts.
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 code touched by $ARGUMENTS against its ecosystem's published idiom, 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 aspects and synthesizes them, so
the report is the whole product: the parent sees only the return value, never any of this
reasoning.
This aspect is different from the other six in one way that governs everything below. The canonical review taxonomy has no "best practices" family — its 108 dimensions are all owned elsewhere. So this aspect has no dimensions of its own beyond what a linter defines. Its dimension ids name a language's linter, and its findings are that linter's findings. There is nothing here to judge by hand.
${CLAUDE_SKILL_DIR}/scripts/probe-best-practices.sh [--base <ref>] [<repo-root>]
It runs each ecosystem's opinionated linter where that binary resolves, emitting
SEVERITY|FILE|LINE|DIMENSION|MESSAGE plus #-prefixed metadata. --list prints the tool table
without running anything. Fields are |-separated; a literal pipe inside FILE or MESSAGE arrives
escaped as \|, so the field count is always five.
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. No tool in this family has been
run against captured output — every row's filter is assumed, and none is pinned by a fixture in
tests/run-probe-tests.sh, which asserts only that this probe's
--list runs. Treat an unexpected zero from any row as suspect, and confirm by running the linter
directly before reporting the language clean.
| Rule | Consequence |
|---|---|
| Probe, then battery | If .review/battery.sarif exists, adjudicate its partitioned results, do not re-run |
| No tool, no finding | A language whose linter is absent is unavailable and produces zero findings — say so |
| Relay, don't re-judge | The linter already decided. Render its diagnostic; do not restate it as your own opinion |
Why the discipline is stricter here. "This isn't idiomatic" is the single easiest finding to invent — every codebase looks unidiomatic to someone, and an unbacked idiom finding is indistinguishable from a preference. A reviewer that fills a missing linter's gap by eyeballing the diff will always find what it went looking for. Report the language unavailable instead.
Which linters this aspect deliberately does not run, because another aspect owns them and a second run would duplicate findings the parent then has to merge away:
| Tool | Owner |
|---|---|
| eslint, shellcheck | review-beta:org-fit |
| go vet, tsc, mypy, semgrep | review-beta:correctness |
| jscpd, knip | review-beta:design |
Everything else is relay. The two calls that are genuinely yours:
| Call | Question |
|---|---|
| In-diff? | Did this change introduce the diagnostic, or was it already there? A pre-existing hit on an untouched line is noise in a change review — drop it |
| Suppressed on purpose? | Is there an adjacent //nolint, # noqa, #[allow(...)], rubocop:disable with a stated reason? A deliberate, explained suppression is not a finding |
Neither call needs a tool. Both need you to read the cited line before reporting it.
Do not re-rank a linter's own severity. Each row in the probe's tool table carries the severity ceiling for that language, and the rating rubric in §3 applies within 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? |
correctness or security — route it, do not
inflate it here.AUTOMATION: line naming the rule to turn on in CI. A repeated
mechanical hit is a missing gate, not fifteen review comments.| Subject | Owner |
|---|---|
| Whether the code does the right thing | review-beta:correctness |
| Whether the abstraction, contract or coupling is right | review-beta:design |
| Whether it matches this org's declared rules and house style | review-beta:org-fit |
| Whether a vulnerable pattern is idiomatic-but-unsafe | review-beta:security |
| Whether a skill, plugin or hook is well built | review-beta:agentic-configuration |
Formatting the repo's own format/lint task already fixes | the hard gates in review-beta:start |
Return this and nothing else. No preamble, no narration.
## review-beta:best-practices
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 |
| :---- | :---------- | :---------- | :-------------------------------------------------------------------- | :------------------------------------------------------- | :--------- |
| major | pkg/x.go:41 | bp-go-idiom | golangci-lint `errcheck`: return value of `w.Write` is unchecked (×4) | Check and wrap the error, or assign to `_` with a reason | high |
UNAVAILABLE:
- <language> — <linter that was missing>
VERDICT: FAIL iff at least one blocker survives. No dimension here can produce one, so
this aspect returns PASS in every ordinary run — that is correct, not a bug.bp-* dimension id and names the linter rule inside the Problem text. That
pairing is how the parent de-duplicates this aspect against the others, and how a disputed
finding is settled by reading the rule's own documentation.Location is file:line; line 0 only when the tool reported no line.Confidence is high | medium | low. A relayed linter hit is high; anything lower means
you are guessing and should not be reporting it at all.(×n) count.VERDICT: PASS, zeroed counts, and NO FINDINGS.UNAVAILABLE is never omitted when a language present in the diff had no linter — a silent
zero reads as coverage.AUTOMATION: <the rule to turn on>.| Skill | Relationship |
|---|---|
review-beta:start | The orchestrator that invokes this aspect and merges its report |
review-beta:org-fit | Owns the org's own declared conventions, and runs eslint + shellcheck |
review-beta:correctness | Owns whether the code works, and runs the type checkers |
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub nsheaps/ai-mktpl --plugin review-beta9 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)./correctnessInvoked 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 correctness defects and returns a structured findings report with a verdict, running scripts/probe-correctness.sh for every mechanically decidable dimension before spending any judgement. Covers the taxonomy's 19 correctness dimensions over a diff — boundary conditions, null and absent values, numeric precision, error propagation, resource lifecycle, concurrency, idempotency, transactional atomicity, data loss, algorithmic cost, termination bounds, and the tests that would have caught each. NOT for attacker-reachable vulnerabilities (review-beta:security), abstraction and coupling quality (review-beta:design), or whether tests are gated in CI (review-beta:process)./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).Other plugins' skills for the same job