pull-request-review — скилл для Claude Code
Скилл для ревью пул-реквеста или диффа ветки: проверяет, что изменение делает заявленное, ищет дефекты и выдаёт замечания по приоритету.
npx skills add autohandai/code-cli --skill pull-request-review -a claude-codeЧто делает pull-request-review
Скилл задаёт агенту порядок разбора: сначала получить дифф (git_diff для рабочего дерева, git_diff_range против базовой ветки) и прочитать его целиком, затем открыть связанную задачу или описание PR и сформулировать одной строкой, что изменение обещает сделать. Файлы вокруг диффа тоже читаются — правка верна только в контексте.
Проверки идут по списку: выполнение требований из задачи, корректность (граничные случаи, обработка ошибок, конкурентность, пустые и null-входы, освобождение ресурсов, таймауты), безопасность (инъекции, обход путей, секреты, проверки прав, небезопасная десериализация, запуск shell с пользовательским вводом), совместимость (публичный API, конфиг, форматы хранения, миграции, старые вызывающие стороны), тесты и поддерживаемость. Тесты и линтер скилл советует запускать самому, если окружение позволяет.
На выходе — вердикт одной строкой, находки по убыванию серьёзности с указанием file:line, объяснением и конкретной правкой, отдельно блокирующие замечания и необязательные. В конце агент перечисляет, что он не смотрел. Скилл работает через git и чтение файлов, поэтому в репозитории без истории коммитов или вне git-дерева разбор диффа не с чего начать.
Какие задачи решает
- проверить, что PR закрывает требования задачи, а не что-то своё
- найти дефекты корректности с привязкой к файлу и строке
- прогнать изменение по чек-листу безопасности перед мержем
- оценить совместимость правки с публичным API и миграциями
- отделить блокирующие замечания от мелких придирок
Примеры запросов агенту
- Сделай ревью текущей ветки против
mainи выдай вердикт - Проверь этот PR: что он обещает по задаче и что реально меняет
- Отревьюй мои изменения, найди проблемы безопасности с указанием строк
Как установить pull-request-review
1Через Skills CLI (Vercel)
npx skills add autohandai/code-cli --skill pull-request-review -a claude-code2Вручную: положить файлы
~/.claude/skills/pull-request-review/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/pull-request-review/
1Через Skills CLI (Vercel)
npx skills add autohandai/code-cli --skill pull-request-review -a codex2Вручную: положить файлы
.agents/skills/pull-request-review/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add autohandai/code-cli --skill pull-request-review -a cursor2Вручную: положить файлы
.cursor/skills/pull-request-review/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install autohandai/code-cli pull-request-review2Вручную: положить файлы
.github/skills/pull-request-review/SKILL.md1Через Skills CLI (Vercel)
npx skills add autohandai/code-cli --skill pull-request-review -a gemini-cli2Командой платформы
gemini skills install https://github.com/autohandai/code-cli --path src/skills/builtin/pull-request-reviewВручную: положить файлы
.devin/skills/pull-request-review/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add autohandai/code-cli --skill pull-request-review -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Вопросы о pull-request-review
Как установить pull-request-review в Claude Code?
Выполните npx skills add autohandai/code-cli --skill pull-request-review -a claude-code. Скилл появится в ~/.claude/skills/pull-request-review/SKILL.md.
Что делает pull-request-review?
Разбирает дифф пул-реквеста или ветки и выдаёт приоритизированные замечания: выполнение требований задачи, дефекты корректности и безопасности, тесты, совместимость.
На каких платформах работает скилл?
Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI и OpenCode — для каждой свой способ установки.
Исходный текст
SKILL.md · Apache-2.0
--- name: pull-request-review description: Review a pull request or branch diff like a staff engineer. Verify it does what the issue asks, find correctness and security defects with file and line evidence, check tests and compatibility, and deliver prioritized, actionable comments. Use for PR review, branch review, and "review my changes". allowed-tools: read_file find_grep fff_find list_tree git_status git_diff git_diff_range git_log run_command code_review --- # Review the change, not the style guide A useful review finds the defect that would have shipped and explains it so the author can fix it in one pass. ## Establish scope 1. Get the diff (`git_diff` for the working tree, `git_diff_range` against the base branch). Read the whole diff before commenting on any part. 2. Read the linked issue, PR description, or commit messages. Write one line stating what the change claims to do. 3. Open the files around the diff; a change is only correct in context. ## Check in this order 1. **Does it do what it says**: every requirement from the issue is met, no silent scope changes, no leftover debug code or TODOs. 2. **Correctness**: edge cases, error paths, concurrency, ordering, off-by-one, null and empty inputs, resource cleanup, timeouts. 3. **Security**: injection, path traversal, secrets, permission checks, unsafe deserialization, shell execution with user input. 4. **Compatibility**: public API, config, storage formats, migrations, feature flags, older callers. 5. **Tests**: a test fails before and passes after for each fix; new behavior has coverage including edge cases; flaky patterns (sleeps, real network). 6. **Maintainability**: naming, duplication, module boundaries, comments only where logic is non-obvious. Run the tests and lint yourself when the environment allows; a review with evidence beats one with opinions. ## Deliver - Verdict first: approve, approve with nits, or request changes, in one line. - Findings ordered by severity. Each: file:line, what is wrong, why it matters, a concrete fix. Mark confidence when you could not verify. - Separate blocking from optional. Keep nits short or drop them. - Say what you did not review.
© autohandai · Apache-2.0 · autohandai/code-cli