Skip to main content
skill CX Codex

code-review · justxor — Claude Code skill: check code before commit

The code-review skill checks changes in the current branch against main and produces a report with notes on correctness, security, tests, and readability.

MIT ★ 353 updated 2026-10-01

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add justxor/claude-code-pro-course --skill code-review -a claude-code
Open on GitHub

What code-review does

The skill reads the diff via git diff main...HEAD --stat, then the full text of changes and surrounding code. It checks logic, edge cases (null, empty values, large arrays), error handling, injections, hardcoded secrets, input validation, test coverage, N+1 queries, leaks, and style compliance from CLAUDE.md.

The report is split into three sections: critical issues, worth fixing, and minor notes. Each remark points to a file and line. If there are no remarks, the skill confirms that.

Available tools: Bash(git diff:*), Bash(git log:*), Bash(git status), Read, Grep, Glob. If the branch does not differ from main, the skill switches to git diff and git diff --staged.

What it helps with

  • check code before opening a pull request
  • find security issues in changes
  • confirm new behavior is covered by tests
  • spot N+1 queries and leaks in the diff
  • get a structured report with file and line references

Example prompts for the agent

  • Review changes in the current branch
  • Check the code before I commit
  • Find issues in the diff against main

How to install code-review

1Skills CLI (Vercel)

npx skills add justxor/claude-code-pro-course --skill code-review -a claude-code

2Manually: put the files in place

~/.claude/skills/code-review/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/code-review/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about code-review

How to install code-review in Claude Code?

Run npx skills add justxor/claude-code-pro-course --skill code-review -a claude-code. The skill will land in ~/.claude/skills/code-review/SKILL.md.

What does code-review do?

The skill checks changes in the current branch against main: logic, security, tests, performance, and readability. It produces a report with remarks tied to files and lines.

Which tools does code-review use?

The skill uses Bash(git diff:*), Bash(git log:*), Bash(git status), Read, Grep, and Glob. This lets it read diffs, logs, repository status, and surrounding code.

Source text

SKILL.md · MIT
---
name: code-review
description: Ревью изменений в текущей ветке относительно main. Используй, когда просят проверить код, сделать ревью, найти проблемы перед PR или коммитом.
allowed-tools: Bash(git diff:*), Bash(git log:*), Bash(git status), Read, Grep, Glob
---

# Code review

## Шаги
1. Определи базу: `git diff main...HEAD --stat` (если main нет — `master`). Если изменений в ветке нет — используй `git diff` и `git diff --staged`.
2. Прочитай полный дифф и, где нужно, окружающий код изменённых файлов.
3. Проверь каждый файл по чек-листу:
   - **Корректность:** логика, граничные случаи (null, пусто, большие значения), обработка ошибок
   - **Безопасность:** инъекции, секреты в коде, проверка прав, валидация ввода
   - **Тесты:** покрыто ли новое поведение; не ослаблены ли существующие тесты
   - **Производительность:** N+1, лишние циклы, утечки
   - **Читаемость:** имена, дублирование, соответствие стилю из CLAUDE.md
4. Не придумывай проблем ради количества. Нет замечаний — так и скажи.

## Формат отчёта
```
## Итог: <одно предложение>

### 🔴 Критично
- `файл:строка` — проблема → предложение

### 🟡 Стоит исправить
- ...

### 🟢 Мелочи
- ...
```

© justxor · MIT · justxor/claude-code-pro-course

Similar skills

All skills for Code review and refactoring →

code-review by other authors comes first.

code-review Matt Pocock code-review evaluates code diffs along two parallel tracks: project standards and issue specifications. Uses isolated sub-agents to keep findings clean. CX Codex +1 789,521installs code-review official anthropics The code-review skill reviews diffs and pull requests for security, performance and correctness. Useful when a change needs a look before merging. CX Codex +1 10,300installs code-review agno-team code-review is a Claude Code skill that checks code for style issues, bugs, and vulnerabilities. It runs a linter and provides structured feedback by severity. CX Codex +1 478installs code-review vectorize-io The code-review skill checks changed code against project rules, including tests, dead code, typing, linting, and conventions. Run it after implementation work. CX Codex +1 178installs code-review coderabbitai code-review is a Claude Code skill that runs CodeRabbit reviews and explains its findings. It activates for code, pull request, quality, and security review requests. CX Codex +1 16,700installs review buiducnhat Reviews uncommitted git diffs using full file context and produces structured findings with severity levels and an approval verdict. CX Codex +1 279installs independent-review Ronny (MiniMax Code team) independent-review is a Claude Code skill that reviews changes from a clean context before merge. It compares the diff with the requirement and test output. CX Codex +1 ★ 741repo stars open-code-review-delegate alibaba open-code-review-delegate is a Claude Code skill that reviews commits, PRs, and workspace diffs using the host model. The ocr CLI selects files and rules while the agent model inspects code. CX Codex +1 5,000installs hunk-review modem-dev hunk-review — a skill for Claude Code connects to live Hunk diff review sessions via CLI. Triggers during interactive code reviews when Hunk runs in the terminal or browser. CX Codex +1 2,700installs pr-review-canvas cursor pr-review-canvas generates a standalone interactive HTML walkthrough for any GitHub pull request. It helps reviewers focus on core architecture by folding boilerplate and rendering smart diffs. CX Codex +1 2,400installs difit-review yoshiko-pg difit-review launches the local difit viewer for git diffs and attaches review notes to exact code lines. Runs only upon explicit request. CX Codex +1 2,000installs

From the same set15

The whole set →
pr-description pr-description generates clear pull request titles and descriptions by inspecting branch commits and diffs against main. CX Codex +1 ★ 353repo stars architect The architect subagent examines a project before implementation, compares design options, and lays out a change plan. Use it to scope a feature or a major refactor. CX Codex ★ 353repo stars code-reviewer code-reviewer reads your diff, flags security holes, missing tests and edge cases, then returns a severity-sorted report with a file and line for each fix. CX Codex ★ 353repo stars write-tests write-tests generates unit tests for a chosen file or function while matching existing project patterns. It runs new checks and flags discovered bugs instead of bending assertions. CX Codex +1 ★ 353repo stars commit This skill reviews your working changes and creates a git commit in Conventional Commits format. Use it when you want an agent to make a commit that follows the repository’s message style. CX Codex +1 ★ 353repo stars refactor Runs refactoring as a sequence of small, behavior-preserving steps. Use it when you ask the agent to split a module or remove duplication. CX Codex +1 ★ 353repo stars release-notes Generates release notes and CHANGELOG entries between Git tags or from the latest tag to HEAD using Conventional Commits. CX Codex +1 ★ 353repo stars onboard The onboard skill gives a new developer a guided introduction to a codebase, from its layout to its main workflows. Use it when someone needs to get oriented and find a first task. CX Codex +1 ★ 353repo stars

Project sponsors

Companies that keep this analytics open