/code-quality-plugin:code-review [PATH]from code-quality-plugin
Runs a comprehensive code review covering quality, security, performance, architecture, and test gaps. Delegates analysis to a sub-agent and re-verifies findings before reporting.
Ships in code-quality-plugin. 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.
| Use this skill when... | Use something else instead when... |
|---|---|
| Running an end-to-end review across quality, security, perf, and tests | Walking a manual security/correctness checklist → code-review-checklist |
| Auditing a directory or PR delta with delegated agent analysis | Specifically scanning for code smells → code-antipatterns |
| Spotting missing test cases or weak assertions | Auditing test code quality on its own → code-test-quality |
| Producing a consolidated review report | Refactoring after the review surfaces issues → code-refactor |
$1 (defaults to current directory if not specified)$1: Path to review (defaults to current directory)Delegate this task to the agents-plugin:review agent.
Use the Agent tool with subagent_type: agents-plugin:review to perform a comprehensive code review.
First, use the Glob tool to discover source files to review:
**/*.py, **/*.js, **/*.ts, **/*.go, **/*.rs for source files**/*test* patterns for test files
Then pass the discovered files to the agent.The code-review agent should:
Analyze code quality:
Security assessment:
Performance evaluation:
Architecture review:
Test coverage gaps:
Apply fixes where appropriate and safe
Re-verify each candidate finding (false-positive gate — run BEFORE reporting):
For every candidate finding from steps 1–5, re-read the cited code at the
reported file:line and confirm the claim actually holds against the current
source — not against a remembered or assumed shape. A finding survives only if
the re-read confirms it; drop the rest. See "Re-verification Pass" below.
Score every surviving finding against the anchors below:
Generate report with:
severity, confidence, and verified file:lineProvide the agent with:
The agent has expertise in:
Score every surviving finding against these anchors. Rank the report most-severe first.
| Severity | Criteria |
|---|---|
| Critical | Exploitable security hole, data loss/corruption, or a crash on a common path. Ship-blocker — must fix before merge. |
| High | A real correctness bug that misbehaves on realistic input, a serious perf regression (N+1, unbounded growth), or an auth/validation gap without a known exploit. Fix before merge. |
| Medium | Bug on an edge case, missing error handling, a test gap over important behavior, or a maintainability problem that will bite soon. Fix or file a follow-up. |
| Low | Style, naming, minor readability, or a nit with no behavioral impact. Optional. |
Assign each finding a confidence and let it gate what reaches the report. A finding whose defect you cannot demonstrate from the code in front of you is a guess, and guesses erode trust in the review.
| Confidence | Meaning | Reporting rule |
|---|---|---|
| High | The defect is provable from the cited code — you can name the input and the wrong result. | Report. |
| Medium | The defect is likely but depends on context you could not fully see. | Report, labeled as needing confirmation. |
| Low | Speculative — a hunch not grounded in the code as read. | Drop, or downgrade to a one-line "consider checking X" note; never present as a defect. |
The reporting threshold is Medium: report High and Medium findings; do not present Low-confidence hunches as findings.
Before the report step, re-check every candidate finding against the actual code. This kills false positives mechanically rather than trusting the initial read:
file:line with Read and confirm the cited code
still says what the finding claims (line numbers drift; assumptions decay).file:line, a severity, and a confidence.For comprehensive review of large codebases, spawn specialized review teammates in parallel:
| Teammate | Focus | Value |
|---|---|---|
| Security reviewer | OWASP, secrets, auth flaws | Deep security analysis without blocking quality review |
| Performance reviewer | N+1 queries, algorithmic complexity, resource leaks | Performance-focused review in parallel |
| Correctness reviewer | Logic errors, edge cases, type safety | Functional correctness in parallel |
This is optional — the skill works without agent teams for standard reviews.
/configure:security/configure:linting/configure:coverageWhat SKILL.md sets; muted values are Claude Code's defaults
opusgeneral-purpose), in the background19 skills in this plugin
/ast-grep-searchFind and replace code patterns structurally with ast-grep. Use when matching code by AST structure, finding functions with specific signatures, or detecting anti-patterns regex cannot match./bulk-sweep-classifyClassify every regex match before a bulk find-replace/syntax-modernization sweep — four match categories, scoped transform, allowlist-aware verification. Use when bulk-renaming commands/tools/paths or migrating syntax across many files./code-antipatternsAnalyze a codebase for anti-patterns using ast-grep. Use when finding magic numbers, console.logs, var usage, excessive any, eval/innerHTML security issues, or deep nesting./code-complexityAnalyze code complexity metrics (cyclomatic, cognitive, function length, coupling). Use when identifying refactoring targets, tracking codebase health, or reviewing large changes./code-context-leakageAudit a repo for names and defaults tied to one person's setup — home paths, personal channels, dated tags, OS-only commands, stale repo names. Use when preparing a project for reuse./code-dead-codeDetect dead code, unused exports, unreachable branches, and orphaned files. Use when reducing maintenance burden, cleaning up after refactors, or auditing codebase health.npx claudepluginhub laurigates/claude-plugins --plugin code-quality-pluginOther plugins' skills for the same job