code-reviewer · borghei — Claude Code skill: automated PR and code analysis
code-reviewer is a Claude Code skill that automatically checks pull requests for risk, code smells, and SOLID violations, scores the diff, and prioritizes findings.
LicenseRef-MIT-Commons-Clause 193 installs ★ 1,183 updated 2026-11-08
npx skills add borghei/Claude-Skills --skill code-reviewer -a claude-codeWhat code-reviewer does
Reviews PRs against two independent axes: adherence to repository standards and fulfilment of spec requirements. Axis A detects secret leaks, SQL injection, debug statements, linter bypasses, deep nesting, missing error handling, unused imports, and antipatterns. Axis B compares commits against the original specification or ticket, surfacing unmet requirements and scope creep.
Produces a structured report with a verdict (approve, request changes, block), a score from 0 to 100, and prioritized action items in text, markdown, or JSON format. Validates conventional commits, checks commit hygiene, and prioritizes files by security sensitivity so critical code is reviewed first.
Inputs are the repository path or git diff, the target language, a fixed base for comparison, and a spec source (file, ticket, or issue). Without a spec, the second axis is skipped and noted in the report.
What it helps with
- screen a PR quickly before manual code review
- scan a codebase for code smells and SOLID antipatterns
- generate a structured code review report or checklist
- verify that a PR delivers what the spec or ticket required
- enforce code quality gates in CI/CD pipelines with a score and verdict
Example prompts for the agent
- Review the diff from main into feature-auth against repo standards and issue #42 requirements
- Generate a code review report for commits HEAD~3..HEAD in JSON format; use TypeScript rules
- Scan src/services for code smells and SOLID violations — Python codebase
How to install code-reviewer
1Skills CLI (Vercel)
npx skills add borghei/Claude-Skills --skill code-reviewer -a claude-code2Manually: put the files in place
~/.claude/skills/code-reviewer/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/code-reviewer/
1Skills CLI (Vercel)
npx skills add borghei/Claude-Skills --skill code-reviewer -a codex2Manually: put the files in place
.agents/skills/code-reviewer/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add borghei/Claude-Skills --skill code-reviewer -a cursor2Manually: put the files in place
.cursor/skills/code-reviewer/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install borghei/Claude-Skills engineering/code-reviewer/SKILL.md2Manually: put the files in place
.github/skills/code-reviewer/SKILL.md1Skills CLI (Vercel)
npx skills add borghei/Claude-Skills --skill code-reviewer -a gemini-cli2Platform CLI
gemini skills install https://github.com/borghei/Claude-Skills --path engineering/code-reviewerManually: put the files in place
.devin/skills/code-reviewer/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add borghei/Claude-Skills --skill code-reviewer -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about code-reviewer
How do I install code-reviewer in Claude Code?
Run npx skills add borghei/Claude-Skills --skill code-reviewer -a claude-code. After installation, the SKILL.md file will be at ~/.claude/skills/code-reviewer/SKILL.md.
What does code-reviewer do?
It scans pull requests for risk factors (leaks, injection, debug code, linter bypasses), detects code smells (long functions, large files, deep nesting) and SOLID violations. It produces a structured report with a score and a verdict.
Can I check whether the PR meets the spec requirements?
Yes. Use the two-axis review mode: pass the spec or ticket file as a separate pass, and the skill will compare commits against the requirements, flag missing work and scope creep. This separates style review from functional verification.
Similar skills
All skills for Code review and refactoring →code-reviewer by other authors comes first.