code-reviewer
БесплатноЗапускает вложенные скриптыНе проверенHeuristic code-review pre-pass for TS, JS, Python, Go, Swift and Kotlin: PR risk, smells, SOLID issues, and a two-axis (standards vs spec) review method. Use…
от borghei★ 1 250 звёзд на GitHubОб этом скилле
Code Reviewer
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.
Core Capabilities
- PR risk analysis — scan git diffs for hardcoded secrets, SQL injection, debug statements, lint bypasses,
anytypes, and TODO/FIXME, with a 1-10 complexity score. - Code quality checking — detect long functions, large files, god classes, deep nesting, too many params, high cyclomatic complexity, missing error handling, unused imports, and magic numbers against fixed thresholds.
- SOLID & antipattern detection — flag structural, logic, security, performance, testing, and async antipatterns with fixes.
- Review reports — merge PR and quality findings into a verdict (approve / request changes / block), 0-100 score, and ranked action items in text, markdown, or JSON. An empty diff gives
nothing_to_reviewand a failed diff analysisincomplete, 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. - Review order prioritization — sort files so security-sensitive code is inspected first.
- Commit hygiene — validate conventional-commit format across a branch.
- Two-axis review — review the diff since a fixed base twice, independently: once against repo standards, once against the original spec or issue (missed requirements, scope creep), then merge.
When to Use
- Reviewing a PR and needing fast pre-screening before manual logic review.
- Analyzing code quality or auditing a codebase for smells and SOLID violations.
- Generating a structured review report or review checklist.
- Gating merges in CI/CD on a quality score or review verdict.
- Checking that a branch built what its ticket or spec asked for, especially agent-written changes.
Clarify First
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.
- What to review: the git diff/branch (base and head) or a source directory (sets
--base/--heador the path the analyzers scan). - Language: TypeScript, JavaScript, Python, Go, Swift, or Kotlin (selects the rules
code_quality_checker.pyapplies via--language). - Output & gate: report format (text/markdown/JSON) and any pass/fail score threshold (sets the artifact format and CI verdict).
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).
Quick Start
# 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
Two-Axis Review Workflow [RECOMMENDED]
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.
- Pin the base. Run
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. - Find the spec. Use the path the author gave, else issue references in commit messages, else a spec file matching the branch name, else ask. No spec means Axis B is skipped and reported as skipped.
- Find the standards. Collect the repo's documented rules (
CODING_STANDARDS.md,CONTRIBUTING.md, steering files, linter config). Skip anything a linter already enforces. If the repo documents nothing, fall back toreferences/coding_standards.mdand label those findings as judgement calls. - Run Axis A (standards) with fresh context. The agent hands a separate reviewer or sub-agent only the standards brief from
review_scope.py: diff command, commits, standards files. It reports location, rule broken, hard or judgement. - Run Axis B (spec fidelity) with fresh context. A second independent reviewer gets only the spec brief: diff command, commits, spec text. It reports missing or partial requirements, behaviour nobody asked for, and requirements built wrongly, quoting the spec line for each.
- Merge without re-ranking across axes. Pr
Установить code-reviewer в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл code-reviewer?
Heuristic code-review pre-pass for TS, JS, Python, Go, Swift and Kotlin: PR risk, smells, SOLID issues, and a two-axis (standards vs spec) review method. Use when reviewing a PR or preparing a review checklist.
Как установить скилл code-reviewer?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл code-reviewer запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic