/codebase-quality-review:codebase-quality-reviewfrom codebase-quality-review
Run a comprehensive, read-only quality review over an entire codebase's docs, source, and tests, and write a single categorized markdown report to a `codebase-quality-review-{date}` branch (where `{date}` is the report day as YYYY-MM-DD). Use whenever the user asks to review, audit, inspect, assess the quality of, or find problems across a whole codebase (docs + src + tests together) — even if they don't explicitly say "codebase quality review." Also use when the user asks for a "code review report," "technical assessment," or "codebase health check." Do NOT use for reviewing a single PR/diff/commit or for ad-hoc single-file reviews — this skill is specifically for whole-codebase, cross-artifact (docs/src/tests) review.
Ships in codebase-quality-review. 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.
A read-only skill for conducting a comprehensive review over an entire codebase and producing a single categorized markdown report. The sole output of this skill is the review report. No source, docs, or tests are modified.
This skill reviews a codebase and reports findings. It does not fix anything. A review that quietly edits the code it is auditing has destroyed its own independence and cannot be trusted. Treat these as hard constraints:
Review three artifact sets together, treating them as evidence of a single design intent:
docs/ — design docs, specs, READMEs, ADRs, API docs. The stated intent.src/ — the implementation. The realized intent.tests/ — the test suite. The verified intent.docs/, src/, tests/ are the canonical names. If the project uses different roots (e.g. documentation/, lib/, spec/), treat the closest equivalent as that artifact set — say so in the report's scope section.
domain_models/ directory, read domain-models-review-guideline and follow it before writing findings. It explains how to treat that directory as a lower-priority reference. If there is no domain_models/, skip it.Ignore .github/ and similar CI/tooling metadata — it is out of scope unless the user explicitly asks.
A core move of this review is hunting for inconsistency between the three artifact sets. Do not default to source as ground truth, or docs as ground truth, or tests as ground truth. When docs, src, and tests disagree, none of them is privileged — report the inconsistency and mark intent as unclear. Flagging "doc says X, code does Y, and which is intended is genuinely ambiguous" is the finding, not a failure to find one.
Review is top-down: establish the full picture, then critique. Do not start listing Findings while you are still reading.
find / Glob the root, note the layout. Identify the actual docs/, src/, tests/ roots.docs/ completely. Capture: stated purpose, declared features, in-scope/out-of-scope boundaries, non-goals, and any "by design" trade-off notes the authors left (these are critical — see step 4).src/ completely. Skim every module first to map structure and dependencies, then read the modules in detail.tests/ completely. Note what is covered, what is not covered, and any tests whose behavior disagrees with docs or src.For each category, read references/finding-categories.md for the full detection guidance, what counts, what does not count, and severity calibration. The one-line summary:
| # | Category | Code | One-line trigger |
|---|---|---|---|
| 1 | Logic errors | logic | Code that computes the wrong thing, not just the ugly thing. |
| 2 | Cross-artifact inconsistency | inconsistency | docs / src / tests disagree; intent ambiguous. Do not default to any one. |
| 3 | Semantic confusion | clarity | Naming, comments, or behavior that misleads a reader. |
| 4 | Undelivered declared features | gap | Doc promises it; src doesn't do it (or does it wrongly). |
| 5 | Unexplained perf defects | perf | Clear perf win available, and not justified as a by-design trade-off in docs. |
| 6 | Unexplained security issues | security | Apparent vuln, and not explained as out-of-scope / handled by a neighbor component in docs. |
| 7 | Misleading behavior | behavior | Does something surprising that a reasonable user/dev would get wrong. |
| 8 | Structural improvements | structure | Duplication, dead code, tight coupling / low cohesion, oversized functions, needless nesting, overcomplex conditions. |
Categories 5 and 6 are scoped by a filter described in detail in the reference: only report a perf or security issue if the codebase's own docs do not already explain it as a deliberate, accepted trade-off. If docs say "we accept this risk because component X handles it downstream," that is not a finding — it is documented design. Read the reference before classifying anything into categories 5 or 6.
Every Finding gets one of: Critical / Major / Minor / Info. Calibration (full rubric in references/finding-categories.md):
Severity must reflect impact and blast radius, not how clever the finding is. A cosmetic nit is Info no matter how neatly you spotted it.
Create the report on the codebase-quality-review-{date} branch under the reviews/ directory, where {date} is the report day as YYYY-MM-DD (today's date).
{date} — both use the day the report is being written. Example for 2026-07-12: branch codebase-quality-review-2026-07-12, report reviews/CQR-2026-07-12-codebase-quality-review.md.reviews/ does not exist, create it. The branch and reviews/ directory are part of the report deliverable, so creating them does not violate "only create the report" — they are the report's container.CQR-{date}-codebase-quality-review.md, where {date} is YYYY-MM-DD (today's date). Example: CQR-2026-07-12-codebase-quality-review.md.assets/report-template.md. Keep its section order and headings so reports are greppable across time.Report structure (from the template):
Fix now / Schedule / Decide), one-line rationale.Every Finding is a ## -level heading, exactly:
## Finding {category}.{sn} — {brief description}
{category} — the short code from the table above (logic, inconsistency, clarity, gap, perf, security, behavior, structure).{sn} — zero-padded sequence within the category, starting at 01. So the three structure findings are structure.01, structure.02, structure.03.{brief description} — short noun-phrase, lowercase unless a proper noun. e.g. off-by-one in pagination index.Critical / Major / Minor / Info.file:line references where the artifact is source.If a category has zero findings, write that explicitly under its header (e.g. No security issues found.) — silence is ambiguous, an explicit empty section is not.
Info. Reserve Critical for things that actually break declared behavior or cause harm.docs/ does not exist, say so in the scope section; do not pretend you reviewed it.What SKILL.md sets; muted values are Claude Code's defaults
2 skills in this plugin
Other plugins' skills for the same job
codebase-quality-review@agent-swe-plugins is listed by linnetcodes/agent-swe-plugins — review the source before installing
npx claudepluginhub linnetcodes/agent-swe-plugins --plugin codebase-quality-review