/review-beta:designfrom review-beta
Reviews code changes for design-health regressions across 13 dimensions (duplication, abstraction, layering, API compatibility, etc.). Runs static analysis probes before issuing a structured findings report.
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 design-health regressions 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.
This is the one aspect whose value is genuine judgement, which is exactly why §3's calibration rule
is not optional. background: false keeps the findings inside the parent's turn.
${CLAUDE_SKILL_DIR}/scripts/probe-design.sh [--base <ref>] [<repo-root>]
It runs jscpd, dependency-cruiser, import-linter, knip, vulture, cargo-semver-checks, buf breaking,
oasdiff, gocognit and radon where each is installed, emitting
SEVERITY|FILE|LINE|DIMENSION|MESSAGE plus #-prefixed metadata. --list prints the tool table.
Fields are |-separated; a literal pipe inside FILE or MESSAGE arrives escaped as \|, so the field count is always five.
| Rule | Consequence |
|---|---|
| Probe, then battery | If .review/battery.sarif exists, adjudicate its partitioned results rather than re-running a detector |
| No tool, no finding | A dimension with no detector is unavailable and produces zero findings — say so in §5 |
| Judge over flagged units only | Cohesion, wrong-abstraction and duplication findings are adjudicated only over units a tool already flagged |
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 jscpd, vulture and semgrep (--vim) 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 knip, depcruise, lint-imports, cargo-semver-checks, buf, oasdiff, gocognit, radon 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 third rule is what separates this aspect from taste. Complexity and duplication metrics are cheap and objective; opening a file to decide it "feels large" is neither.
The dimension table — question, ceiling, tier, residual — is in references/dimensions.md. The residues that recur:
| Dimension | The tool decided | You decide |
|---|---|---|
design-yagni-speculative-generality | Variation points with zero inhabitants | The concrete inhabitant count, and where a second would live |
design-wrong-abstraction | Boolean-at-every-call-site, branch-only params | Whether the parameter names a real axis of variation |
design-duplication | Clone pairs above the project threshold | Which copy is canonical, and whether the clone is the cheaper option |
design-api-surface-minimality | Exports with no external consumer | Whether an unreferenced export is a deliberate extension point |
design-backward-compatibility | Contract diff vs the declared version | Whether an observable-but-undeclared behaviour has a real dependent |
design-deprecation-migration | Annotation, marker age, remaining-caller census | Whether window and migration owner are adequate to that census |
design-cohesion-responsibility | God-class and complexity deltas | The proposed split boundary — over flagged units only |
design-testability-seams | Constructor work, static IO, service locators | Whether a seam is worth its indirection here |
design-dependency-direction is decided outright where a contract file exists; judgement applies
only where none does — and then the question is whether the boundary is real at all.
| 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? |
The calibration rules that keep design findings honest:
design-yagni-speculative-generality ↔
design-testability-seams, and design-wrong-abstraction ↔ design-duplication. If your report
only ever fires on one side of a pair, you are miscalibrated — re-read the opposing dimension
before returning.design-backward-compatibility and design-dependency-direction carry blocker ceilings.From the taxonomy's de-duplication ledger:
| Subject | Owner |
|---|---|
| Whether the code is correct at all | review-beta:correctness |
| Interface shape against a threshold the repo configured | review-beta:org-fit (org-fit-interface-convention-conformance) |
| Whether our own versions coexist safely during rollout | review-beta:process (process-deploy-sequencing) |
| Whether a dependency is vulnerable, unmaintained or impostor | review-beta:security — this aspect owns only whether it is worth its carrying cost |
| Prose duplication in docs, and stale docs | review-beta:docs — except that duplication of a fact is design-duplication with medium: fact |
| Dead/unreferenced code, import cycles | Hard gates — the run aborts, they are not findings |
design-backward-compatibility owns breaking a published code/RPC/HTTP contract;
design-data-contract-compatibility owns an emitted event, log, metric or export consumed outside
the repo. Those two are distinct dimensions, not duplicates of each other.
Return this and nothing else. No preamble, no narration.
## review-beta:design
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 | proto/order.proto:22 | design-backward-compatibility | `buf breaking` reports field 4 removed; the contract promises removal only on a major bump | Reserve field 4 and its name, or ship the removal in v2 | high |
UNAVAILABLE:
- <dimension> — <detector that was missing or deferred>
VERDICT: FAIL iff at least one blocker survives.Location is file:line; line 0 only when a finding genuinely has no line.Confidence is high | medium | low; a low row states what would confirm it.VERDICT: PASS, zeroed counts, and NO FINDINGS.UNAVAILABLE when every dimension had its detector.AUTOMATION: <the rule to encode>.| Skill | Relationship |
|---|---|
review-beta:start | The orchestrator that invokes this aspect and merges its report |
review-beta:org-fit | Owns conformance to conventions the repo actually declared |
review-beta:correctness | Owns whether the design, as written, produces the wrong answer |
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)./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)./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)./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