# code-reviewer

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.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode, Windsurf (Devin Desktop), Claude.ai · 193 installs · ★ 1183 repo stars
- Author: borghei
- License: LicenseRef-MIT-Commons-Clause · policy=link-only · description only; the file stays with the author
- Source: https://github.com/borghei/Claude-Skills/tree/HEAD/engineering/code-reviewer/SKILL.md
- Updated: 2026-11-08
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/skills/borghei-code-reviewer

## What it 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.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add borghei/Claude-Skills --skill code-reviewer -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/code-reviewer/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/code-reviewer/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add borghei/Claude-Skills --skill code-reviewer -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/code-reviewer/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add borghei/Claude-Skills --skill code-reviewer -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/code-reviewer/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install borghei/Claude-Skills engineering/code-reviewer/SKILL.md
```

2. **Manually: put the files in place**
- File: `.github/skills/code-reviewer/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add borghei/Claude-Skills --skill code-reviewer -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/borghei/Claude-Skills --path engineering/code-reviewer
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/code-reviewer/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add borghei/Claude-Skills --skill code-reviewer -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/borghei/Claude-Skills/tree/HEAD/engineering/code-reviewer/SKILL.md

## When to use it
- 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
- 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

## Similar
- [cr-received](https://affpapa.org/en/nevibecode/skills/cr-received.md) — skill · 2200 installs
- [critical-code-reviewer](https://affpapa.org/en/nevibecode/skills/critical-code-reviewer.md) — skill · 1100 installs
- [ai_slop_reviewer](https://affpapa.org/en/nevibecode/agents/ai-slop-reviewer.md) — subagent · ★ 539 repo stars
- [security-best-practices](https://affpapa.org/en/nevibecode/skills/githubcomopenaiskills-security-best-practices.md) — skill · 390 installs
- [pr-reviewer](https://affpapa.org/en/nevibecode/agents/zaxbyhub-pr-reviewer.md) — subagent · ★ 539 repo stars
- [go-code-review](https://affpapa.org/en/nevibecode/skills/go-code-review.md) — skill · 1800 installs

## Other versions with the same name
- [code-reviewer · jeffallan](https://affpapa.org/en/nevibecode/skills/httpsgithubcomjeffallan-code-reviewer.md) — 7100 installs
- [code-reviewer · rmyndharis](https://affpapa.org/en/nevibecode/skills/rmyndharis-code-reviewer.md) — 104 installs
- [code-reviewer · alirezarezvani](https://affpapa.org/en/nevibecode/skills/code-reviewer.md) — 1130 installs
- [code-reviewer · waybarrios](https://affpapa.org/en/nevibecode/skills/waybarrios-code-reviewer.md) — 135 installs
- [code-reviewer · zhaono1](https://affpapa.org/en/nevibecode/skills/zhaono1-code-reviewer.md) — 760 installs

From the same set: [borghei/claude-skills](https://affpapa.org/en/nevibecode/by/borghei/claude-skills.md) — 120 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
