post-review-comments — скилл для Claude Code: как установить
Скилл post-review-comments для Claude Code отправляет построчные замечания и общее резюме в пулреквест через gh. Публикует ревью на английском языке.
MIT ★ 1 636 обновлён 2026-10-24
npx skills add dyoshikawa/rulesync --skill post-review-comments -a claude-codeЧто делает post-review-comments
Агент анализирует diff и описание пулреквеста — для текущей ветки или конкретного номера из запроса. В коде выделяются проблемные строки, к которым готовятся замечания с точным указанием пути к файлу и номера строки в новой версии.
Все замечания скилл публикует единой пачкой через запрос gh api к эндпоинту reviews. Если построчных замечаний не набралось, отправляется только общее заключение через команду gh pr review --comment. В конце агент печатает краткий отчёт с номером PR и числом отправленных реплик.
Инструкция строго требует писать только на английском языке в обычном разговорном тоне без шаблонных похвал и служебных заголовков вроде ##. Без авторизованной утилиты gh в системе отправить ревью не получится.
Какие задачи решает
- оставить построчные замечания к коду в пулреквесте на GitHub
- опубликовать общее резюме ревью вместе с замечаниями к конкретным строкам
- провести ревью PR текущей ветки прямо из терминала
- сформулировать естественные комментарии к коду на английском языке
Примеры запросов агенту
- Проведи ревью текущего пулреквеста и опубликуй комментарии к коду
- Сделай ревью PR #42 и отправь замечания в GitHub
- Изучи diff текущей ветки и отправь построчные комментарии через gh
Как установить post-review-comments
1Через Skills CLI (Vercel)
npx skills add dyoshikawa/rulesync --skill post-review-comments -a claude-code2Вручную: положить файлы
~/.claude/skills/post-review-comments/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/post-review-comments/
1Через Skills CLI (Vercel)
npx skills add dyoshikawa/rulesync --skill post-review-comments -a codex2Вручную: положить файлы
.agents/skills/post-review-comments/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add dyoshikawa/rulesync --skill post-review-comments -a cursor2Вручную: положить файлы
.cursor/skills/post-review-comments/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install dyoshikawa/rulesync .rulesync/skills/post-review-comments2Вручную: положить файлы
.github/skills/post-review-comments/SKILL.md1Через Skills CLI (Vercel)
npx skills add dyoshikawa/rulesync --skill post-review-comments -a gemini-cli2Командой платформы
gemini skills install https://github.com/dyoshikawa/rulesync --path .rulesync/skills/post-review-commentsВручную: положить файлы
.devin/skills/post-review-comments/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add dyoshikawa/rulesync --skill post-review-comments -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Вопросы о post-review-comments
Как установить post-review-comments в Claude Code?
Выполните команду npx skills add dyoshikawa/rulesync --skill post-review-comments -a claude-code.
Что делает скилл post-review-comments?
Он изучает diff пулреквеста, формирует построчные замечания с общим резюме и отправляет их одним пакетом в GitHub через утилиту gh.
Что требуется для отправки комментариев?
Нужна установленная и авторизованная утилита gh, потому что скилл отправляет данные напрямую через её команды.
Исходный текст
SKILL.md · MIT
---
name: post-review-comments
description: >-
Post line-level review comments and an overall review comment on a PR in
English with a natural, concise writing style
targets:
- "*"
---
target_pr = the user's request
If target_pr is not provided, use the PR of the current branch.
## Step 1: Understand the PR
Read the PR diff and description to understand:
- What changed and why
- The scope and impact of the changes
## Step 2: Prepare Line-Level Comments
Identify specific lines in the diff that deserve feedback — bugs, potential issues, style concerns, suggestions for improvement, or questions about intent.
For each comment, note:
- The file path
- The line number (in the new version of the file)
- Your comment text
## Step 3: Prepare an Overall Review Comment
Write a brief overall assessment of the PR. This is a summary-level comment, not a repeat of line-level feedback.
## Step 4: Post the Review
Use a single `gh api` call to submit both line-level comments and the overall comment together as one review:
```bash
gh api repos/{owner}/{repo}/pulls/{pr_number}/reviews \
--method POST \
-f event="COMMENT" \
-f body="<overall comment>" \
-f 'comments[]={...}' ...
```
Each line comment requires: `path`, `line` (line number in the diff's new file), and `body`.
If you have no line-level comments, fall back to:
```bash
gh pr review <pr_number> --comment --body "<overall comment>"
```
## Writing Style
Write in **English only**.
Style guidelines — write like a human teammate, not a bot:
- Use plain paragraphs. Avoid headings (`##`), horizontal rules (`---`), and excessive bullet lists.
- Keep it conversational and direct. Say what matters, skip the filler.
- Do not use phrases like "Great work!" or "LGTM!" unless you genuinely mean it and have nothing else to add.
- Be honest. If something looks off, say so clearly but respectfully.
- Short is fine. A two-sentence comment is better than a five-paragraph essay with no substance.
## Step 5: Report
Output the PR number, a count of line-level comments posted, and a brief summary of the overall comment.
© dyoshikawa · MIT · dyoshikawa/rulesync