/engineering-advanced-skills:code-reviewerfrom engineering-advanced-skills
Heuristic code-review pre-pass for TS, JS, Python, Go, Swift and Kotlin: PR risk analysis, code smells, SOLID violations, and a two-axis (standards vs spec) review method. Use when reviewing a PR or preparing a review checklist.
Ships in engineering-advanced-skills. 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.
Automated code review tooling that analyzes pull requests for complexity and risk, scans source for code smells and SOLID violations, and consolidates findings into structured review reports with a verdict, score, and prioritized action items. Supports TypeScript, JavaScript, Python, Go, Swift, and Kotlin.
any types, and TODO/FIXME, with a 1-10 complexity score.nothing_to_review and a failed diff analysis incomplete, never an approval. The scripts are regex heuristics: they point a human or model reviewer at likely problems; they do not replace reading the diff.Before producing the review, settle the inputs below. When one is missing or vague and would change the result, ask about it; when it wouldn't, use a sensible default and say which one you used.
--base/--head or the path the analyzers scan).code_quality_checker.py applies via --language).Ask about the two or three inputs that matter most for this request, not the whole list. If the user wants a result straight away, produce it and state your assumptions at the top.
For a two-axis review, two more inputs matter: the fixed base (branch, tag, SHA or HEAD~N; without it the scope drifts) and the spec source (issue, ticket or spec file; without it Axis B is skipped and the report says so).
# Pin the scope and print both reviewer briefs (exit 2 bad ref, 1 empty diff)
python scripts/review_scope.py --repo . --base main
# Automated pre-screen of the same diff
python scripts/pr_analyzer.py . --base main --head HEAD --json
Use this for any change that implements a ticket or spec. It separates "is it written the way this repo writes code?" from "does it do what was asked?", because one reviewer answering both tends to answer one of them badly. Full method: references/two-axis-review.md.
review_scope.py --base <ref>. It resolves the ref, takes the diff against the merge-base (git diff <base>...HEAD), and fails before any review starts on a bad ref or empty diff. Record the base SHA in the report.CODING_STANDARDS.md, CONTRIBUTING.md, steering files, linter config). Skip anything a linter already enforces. If the repo documents nothing, fall back to references/coding_standards.md and label those findings as judgement calls.review_scope.py: diff command, commits, standards files. It reports location, rule broken, hard or judgement.assets/two-axis-review-template.md.Run the passes in parallel when sub-agents are available. A lone human reviewer runs them in sequence and starts the spec pass from the spec, not from the diff.
| Tool | Purpose | Command |
|---|---|---|
pr_analyzer.py | Assess PR complexity and risk from a git diff | python scripts/pr_analyzer.py . --base main --head feature-branch --json |
code_quality_checker.py | Detect code smells and SOLID violations in source | python scripts/code_quality_checker.py ./src --language typescript --json |
review_report_generator.py | Combine PR + quality findings into a review report | python scripts/review_report_generator.py . --format markdown --output review.md |
review_scope.py | Pin the base, list commits and files, extract issue refs, find spec and standards sources, print both two-axis briefs | python scripts/review_scope.py --repo . --base main --format json |
Mistake: One reviewer reads the diff top to bottom and mixes style notes with requirement gaps in a single list. Why it happens: It is the habitual way to read a PR, and it feels efficient. Instead: Run the two axes as separate passes with fresh context. Style findings crowd out the one missing requirement that actually matters.
Mistake: Reviewing "the branch" without pinning a base, so the diff changes as main moves or the author rebases.
Why it happens: The PR view hides the base; it seems obvious.
Instead: Name the base, record its SHA, and use the three-dot diff against the merge-base.
Mistake: Spending the human pass on formatting and import order. Why it happens: Those issues are easy to see and easy to write up. Instead: Read the linter config first and skip every rule it enforces. Spend the pass on judgement the tools cannot make.
Mistake: With no spec available, the reviewer infers what the change "must have been meant to do" and reviews against that. Why it happens: Skipping a whole axis feels like an incomplete review. Instead: Report "no spec found" and ask the author where the requirement lives. A review against an invented spec only confirms the code agrees with itself.
Load the reference that matches the task — keep this file lean and pull detail on demand:
Covers:
review_scope.py pinning the scope and writing both briefsDoes NOT cover:
senior-qa for test execution and qa-browser-automation for end-to-end testingsenior-security or senior-secops for SAST/DAST and supply chain analysissenior-backend or senior-fullstack for performance optimization workflowssenior-architect for architectural decision records and design review| Skill | Integration | Data Flow |
|---|---|---|
senior-security | Feed PR Analyzer critical findings into security review workflows for deeper SAST/DAST analysis | pr_analyzer.py --json output risks.critical[] → security assessment input |
senior-qa | Gate test execution on review report verdict; block test suites when verdict is block | review_report_generator.py --json output summary.verdict → QA pipeline gate |
senior-architect | Escalate high-complexity PRs (score 7+) to architecture review | pr_analyzer.py output summary.complexity_score → architecture review trigger |
senior-fullstack | Combine code quality scores with fullstack quality analyzer for end-to-end project health | code_quality_checker.py --json output → merged with code_quality_analyzer.py metrics |
tdd-guide | Cross-reference review findings with test coverage; flag untested code paths flagged by quality checker | Quality checker smells[] by file → TDD coverage gap analysis |
senior-devops | Integrate review reports into CI/CD pipelines as automated quality gates | review_report_generator.py --json output summary.score → pipeline pass/fail threshold |
assets/two-axis-review-template.md (opens in a new tab)references/code_review_checklist.md (opens in a new tab)references/coding_standards.md (opens in a new tab)references/common_antipatterns.md (opens in a new tab)references/tool_reference.md (opens in a new tab)references/two-axis-review.md (opens in a new tab)scripts/code_quality_checker.py (opens in a new tab)scripts/pr_analyzer.py (opens in a new tab)scripts/review_report_generator.py (opens in a new tab)scripts/review_scope.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
TypeScript, JavaScript, Python, Go, Swift, Kotlin
code-review, pull-request, code-quality, best-practices, spec-fidelity
npx claudepluginhub borghei/claude-skills --plugin engineering-advanced-skills100 skills in this plugin
/a11y-auditStatic WCAG scan of HTML files (alt text, headings, labels, ARIA, lang, landmarks) and colour contrast checks for colour pairs or CSS. Use when auditing templates for accessibility, checking contrast, or adding an a11y gate to CI.
/agent-designerDesigns multi-agent system architectures with orchestration patterns, tool schemas, and performance evaluation. Use when building AI agent systems, designing agent workflows, creating tool schemas, or evaluating agent performance.
/agent-harnessTest and evaluation harness for AI agents — scenario suites, deterministic replay, regression diffing, cost and latency budgets. Use when agent quality is vibe-checked, before shipping a prompt or model change, or when evals drift.
/agenthubRuns a multi-agent job as a dependency graph: validates the DAG, tracks each agent's state on a board, then ranks and merges their outputs. Use when spawning parallel agents, monitoring a run, or merging results.
/agentic-evaluation-frameworkBuilds LLM and agent evals: weighted rubrics, LLM-as-judge design, inter-rater agreement and pairwise ranking (Elo, Bradley-Terry) from scores you collect. Use when setting up a judge, scoring outputs, or comparing model or prompt variants.
/agent-protocolDesign AI agent communication protocols: MCP tool schemas, A2A, function calling, and inter- agent messaging. Use when building multi-agent systems, defining tool interfaces, or implementing agent-to-agent communication.
Other plugins' skills for the same job