review-pr-lite — скилл для Claude Code: обзор PR и установка
Скилл проверяет pull request на ошибки кода и проблемы безопасности без субагентов. Он пригодится для ревью изменений в текущей ветке или указанном PR.
npx skills add dyoshikawa/rulesync --skill review-pr-lite -a claude-codeЧто делает review-pr-lite
review-pr-lite собирает описание pull request и его diff через gh pr view и gh pr diff, затем самостоятельно анализирует изменения. Он ищет ошибки поведения, проблемные граничные случаи, слабые тесты и дефекты, которые усложнят поддержку кода. Отдельно проверяет риски инъекций, ошибки авторизации, утечки секретов и небезопасную работу с файлами, сетью или оболочкой.
Результат содержит номер PR и список находок с последовательной нумерацией и уровнями серьёзности: low, mid, high или critical. Сначала идут наиболее серьёзные проблемы. После ревью скилл проверяет GitHub Actions, сообщает статус каждого запуска, а для упавших проверок разбирает вероятную причину и предлагает следующие шаги.
Скилл не переключает локальную ветку и не вызывает субагентов. Если номер PR не передан, он использует pull request текущей ветки. Для работы с репозиторием нужны доступные команды git и gh; изменения изучаются через чтение удалённого состояния, поэтому рабочее дерево не требуется переводить на ветку PR.
Какие задачи решает
- Найти ошибки и регрессии в изменениях pull request
- Проверить код на уязвимости и утечки секретов
- Выявить пробелы в тестах и проблемные граничные случаи
- Разобрать упавшие проверки GitHub Actions
- Получить единый список находок с уровнями серьёзности
Примеры запросов агенту
- Проверь pull request текущей ветки на ошибки кода и проблемы безопасности.
- Сделай ревью PR 123, перечисли находки по степени серьёзности и проверь GitHub Actions.
- Изучи изменения PR 123 без переключения локальной ветки и предложи способы исправить упавшие проверки.
Как установить review-pr-lite
1Через Skills CLI (Vercel)
npx skills add dyoshikawa/rulesync --skill review-pr-lite -a claude-code2Вручную: положить файлы
~/.claude/skills/review-pr-lite/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/review-pr-lite/
1Через Skills CLI (Vercel)
npx skills add dyoshikawa/rulesync --skill review-pr-lite -a codex2Вручную: положить файлы
.agents/skills/review-pr-lite/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add dyoshikawa/rulesync --skill review-pr-lite -a cursor2Вручную: положить файлы
.cursor/skills/review-pr-lite/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install dyoshikawa/rulesync review-pr-lite2Вручную: положить файлы
.github/skills/review-pr-lite/SKILL.md1Через Skills CLI (Vercel)
npx skills add dyoshikawa/rulesync --skill review-pr-lite -a gemini-cli2Командой платформы
gemini skills install https://github.com/dyoshikawa/rulesync --path .rulesync/skills/review-pr-liteВручную: положить файлы
.devin/skills/review-pr-lite/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add dyoshikawa/rulesync --skill review-pr-lite -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Вопросы о review-pr-lite
Как установить review-pr-lite в Claude Code?
Выполни npx skills add dyoshikawa/rulesync --skill review-pr-lite -a claude-code. Скилл будет доступен по пути ~/.claude/skills/review-pr-lite/SKILL.md.
Что делает скилл review-pr-lite?
Он анализирует изменения PR на дефекты кода и риски безопасности, а затем проверяет GitHub Actions. Находки получает единый отчёт с уровнями серьёзности и рекомендациями по устранению ошибок проверок.
Нужно ли переключаться на ветку pull request для ревью?
Нет. Скилл читает метаданные и diff через gh, при необходимости использует git и не меняет текущую локальную ветку.
Исходный текст
SKILL.md · MIT
--- name: review-pr-lite description: >- Review a pull request for code quality and security issues without using subagents. Use when the user wants a lighter-weight PR review in a single skill. targets: - "*" --- target_pr = the user's request If target_pr is not provided, use the PR of the current branch. ## Important: Do Not Switch the Local Branch - Do NOT check out, switch, or otherwise move the local branch (e.g., `git checkout`, `git switch`, `gh pr checkout`). - To inspect the PR's changes, use `git` and `gh` commands that read remote state without moving the working tree. For example: - `gh pr view $target_pr` to read PR metadata and description. - `gh pr diff $target_pr` to read the diff. - `gh pr view $target_pr --json files` or `gh api` to list changed files. - `git fetch origin pull/<PR_NUMBER>/head:refs/remotes/origin/pr-<PR_NUMBER>` and `git diff origin/main...origin/pr-<PR_NUMBER>` if a local read-only ref is needed. ## Step 1: Gather PR Context Run the following in parallel: - Get the PR description and metadata via `gh pr view $target_pr` (do not check out the PR locally). - Get the PR diff via `gh pr diff $target_pr`. - If needed, inspect changed files individually for deeper context using `gh` / `git` commands (e.g., `gh api`, `git show`) — without switching the local branch. ## Step 2: Review the Changes Review the PR directly in this skill without calling any subagents. Focus on both of the following: 1. **Code Review** - Bugs or behavioral regressions - Incorrect assumptions or edge cases - Missing or weak tests - Maintainability issues that could cause near-term problems 2. **Security Review** - Injection risks - Auth/authz mistakes - Secrets exposure - Unsafe file, network, shell, or deserialization behavior - Dependency or configuration changes that could weaken security ## Step 3: Report Findings Integrate all findings into one review result. Please output the PR number in the result so that the user can easily find the PR. ## Reporting Rules - Assign a severity level to each finding: low, mid, high, or critical. - Assign a sequential number to each finding (e.g., #1, #2, #3, ...). - Present findings first, ordered by severity. - If no findings are discovered, explicitly state that no findings were found. - Keep the summary brief and focused on risk and testing gaps. ## Step 4: Check GitHub Actions Workflows After completing the content review, check the status of the GitHub Actions workflows for $target_pr (for example, using `gh pr checks` or `gh run list`). - Report the status of every workflow run to the user, including runs that are still in progress. - For each failing workflow, also report: - The likely cause of the failure (based on the relevant logs or job output). - Candidate solutions or next steps to resolve it.
© dyoshikawa · MIT · dyoshikawa/rulesync