mcpbeat Sign in

Code Review Skill for Claude

Senior code review specialist. Use PROACTIVELY after writing or modifying code. Reviews for quality, correctness, performance, and best practices. Assigns severity levels to findings (CRITICAL / HIGH / MEDIUM / LOW).

752 tokens
context cost
the whole folder, loaded on every use
1
files
instructions only
0
copies elsewhere
how many repositories repackaged it
112
stars on the repo
on the repository, not the skill itself

Install

one command, takes just this skill from the repository
npx skills add https://github.com/selmakcby/claude-agents-skills --skill code-review

The instruction itself

13 sections, as written by the author

<!--

Source: anthropics/claude-code (official)

File: https://github.com/anthropics/claude-code/blob/main/plugins/code-review/commands/code-review.md

Also: https://github.com/anthropics/claude-code/blob/main/plugins/code-review/README.md

Used by: reviewer agent

-->

Code Review

When to trigger

  • Immediately after new or modified code
  • Before commit / PR
  • When user asks for /code-review

Review approach

Multi-agent review with confidence filtering:

  • CLAUDE.md compliance — does the code follow project rules?
  • Bug detector — obvious bugs in the diff
  • History analyzer — git context to understand intent

Each issue is scored 0–100. Findings below threshold (default 80) are filtered out.

What to check

Clarity

  • Names (variables, functions, files) — do they say what they do?
  • Structure — is it easy to scan?
  • Cognitive load — how much do you hold in your head to understand it?

Correctness

  • Edge cases: null, undefined, empty array, boundary values
  • Error paths: are they handled? Do they fail loudly or silently?
  • Async: await missing? Race conditions? Promise rejections caught?
  • Off-by-one errors in loops / slicing

Performance

  • N+1 queries (especially around ORM usage)
  • O(n²) algorithms on large collections
  • Unnecessary re-renders (React)
  • Missing memoization for expensive computations
  • Synchronous I/O in hot paths

Consistency

  • Matches project style guide (CLAUDE.md, rules/)
  • Immutable patterns used
  • Function size under 50 lines
  • Nesting 4 levels max

Tests

  • Is there a test for the new behavior?
  • Edge cases covered?
  • Mocks realistic (no "happy path only")?
  • Tests independent (no shared state)?

Dead code

  • Unused imports
  • Unreachable branches
  • TODO comments that should be done or deleted
  • Commented-out code

Severity levels

  • CRITICAL — do not commit. Breaks production, security hole, data loss risk.
  • HIGH — fix before next release. Real bug users will hit.
  • MEDIUM — fix when you're in the area. Code smell, minor inefficiency.
  • LOW — nice-to-have. Style preference, optional refactor.

Output format

## CRITICAL (must-fix)
- [`<file>:<line>`] <issue>
  - Why: <impact>
  - Fix: <specific suggestion>

## HIGH
- ...

## MEDIUM / LOW
- ...

## Summary
<N CRITICAL · N HIGH · N MEDIUM · N LOW>
<Verdict: PASS | FAIL>

Rules

  • Every finding has: severity, file + line, what's wrong, why it matters, suggested fix.
  • Don't just flag — propose a fix.
  • Don't be timid on CRITICAL. If it's critical, say so clearly.
  • If you see a pattern (same issue in multiple places), flag it once with a list.
  • Use --comment mode for PR review, default for local output.

Other skills for the same job

different authors, same section of the catalogue
Receiving Code Review
by ZhanlinCui
×7

Use when receiving code review feedback, before implementing suggestions, especially if feedback seems unclear or technically questionable - requires technical rigor and verification, not performative agreement or blind implementation

2k tokens
Requesting Code Review
by ZhanlinCui
×6

Use when completing tasks, implementing major features, or before merging to verify work meets requirements

2k tokens
Git Commit
by github
vendor ×3

Execute git commit with conventional commit message analysis, intelligent staging, and message generation. Use when user asks to commit changes, create a git commit, or mentions "/commit". Supports: (1) Auto-detecting type and scope from changes, (2) Generating conventional commit messages from diff, (3) Interactive commit with optional type/scope/description overrides, (4) Intelligent file staging for logical grouping

799 tokens
Github Code Review
by ComeOnOliver
×3

Comprehensive GitHub code review with AI-powered swarm coordination

13k tokens
Karpathy Guidelines
by hyyhf
×3

Behavioral guidelines to reduce common LLM coding mistakes. Use when writing, reviewing, or refactoring code to avoid overcomplication, make surgical changes, surface assumptions, and define verifiable success criteria.

629 tokens
Code Reviewer
by google-gemini
vendor ×2

Use this skill to review code. It supports both local changes (staged or working tree) and remote Pull Requests (by ID or URL). It focuses on correctness, maintainability, and adherence to project standards.

795 tokens
Agent MD Refactor
by softaworks
×2

Refactor bloated AGENTS.md, CLAUDE.md, or similar agent instruction files to follow progressive disclosure principles. Splits monolithic files into organized, linked documentation.

4k tokens
Commit Work
by softaworks
×2

Create high-quality git commits: review/stage intended changes, split into logical commits, and write clear commit messages (including Conventional Commits). Use when the user asks to commit, craft a commit message, stage changes, or split work into multiple commits.

2k tokens

How to use it

Copy the folder

Take selmakcby/code-review from the repository into ~/.claude/skills for personal use, or into .claude/skills inside a project.

Check the name does not clash

The agent identifies a skill by the name field in its header. Two skills with the same name cannot sit side by side — one of them will be ignored.