Code review

SkillAI & models

Lets your agent review code changes in the current branch against main and report issues before a commit.

Instructions available. Your AI can read the instructions. Execution depends on the setup they require.

Add ahel to your AI once: Claude, ChatGPT, Cursor, Claude Code or Codex. Then ask it to use this.

Then ask your AI: use the Code review skill

About this skill

Reviews changes in the current branch relative to main. Use when asked to check code, do a review, or find issues before a PR or commit.

What this skill tells your AI

The instructions your AI receives, as published by justxor/claude-code-pro-course in starter-kit/.claude/skills/code-review/SKILL.md and read by ahel’s review.

Шаги

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

Формат отчёта

## Итог: <одно предложение>

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

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

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

Signals

GitHub stars
143
Forks
26
Last commit
Oct 2026
Advanced
Item type
skill
Key
code-review-justxor
Source
github.com/justxor/claude-code-pro-course