code-review-bot
БесплатноБез исполняемых скриптовНе проверенAddress the user's review comments on a pull request, reply in each comment's thread as the repository's GitHub App bot, and keep watching the pull request…
от motlin★ 20 звёзд на GitHubОб этом скилле
Code Review Bot
Use the code:cli, git:git-workflow, and git:commit skills when available.
Resolve <plugin-root> before running plugin scripts:
- In Claude Code, use
${CLAUDE_PLUGIN_ROOT}. - In Codex, use the plugin root that contains this
skills/code-review-bot/SKILL.mdfile.
Start watching first
Start the listener in the background before reading any comments, because it misses changes made before it starts:
gh event listen --resource https://github.com/<owner>/<repo>/pull/<number> \
--event com.github.pull_request.review.submitted.v1,com.github.pull_request.state.changed.v1 \
--timeout 24h
The listener exits after the first event. Every time it exits, start it again before reading the pull request, then read what changed. Events carry no details.
Every bot reply also submits a review, so the bot's own replies wake the listener. When the only new reviews come from the bot, restart the listener and say nothing.
Stop watching when the pull request is merged or closed, or when the user says to stop.
Read the new comments
Read inline comments, reviews, and conversation comments. Track the highest comment id already handled, and read only comments newer than it:
gh api repos/<owner>/<repo>/pulls/<number>/comments \
--jq '.[] | select(.id > <last-id>) | "\(.id) \(.user.login) \(.path):\(.line) reply_to=\(.in_reply_to_id)\n\(.body)\n---"'
gh api repos/<owner>/<repo>/pulls/<number>/reviews --jq '.[] | "\(.id) \(.user.login) \(.state): \(.body)"'
gh api repos/<owner>/<repo>/issues/<number>/comments --jq '.[] | "\(.id) \(.user.login): \(.body)"'
Handle only comments from the user. Comments from other bots, such as coverage or deploy reports, are not feedback.
Handle each comment
Decide whether each comment asks for a change or asks a question.
- A change request: make the change with red/green TDD where it touches behavior. Commit it as a fixup of the commit it changes, run the
build:precommitskill, fold the fixups in with thegit:git-rebaseskill, and push withgit push --force-with-lease. Run every check that failed in CI before pushing again. - A question: answer it in the thread, and don't change code. When the answer suggests a change, describe the options in the reply and ask which the user wants.
Investigate before replying. For example, when the user asks why the code doesn't reuse an existing utility, find that utility and check whether it fits before answering.
Reply as the bot
The bot is a GitHub App whose credentials live in a 1Password item, usually titled <name>-bot GitHub App after the repository or its owner. Find it with:
op item list | grep -i 'GitHub App'
Mint a token with the plugin script, and pass it only through GH_TOKEN. Never print it, write it to a file, or put it in a command's output:
GH_TOKEN="$(<plugin-root>/scripts/github-app-token '<1password-item>')" \
gh api -X POST repos/<owner>/<repo>/pulls/<number>/comments/<comment-id>/replies \
-f body='<reply>' --jq .html_url
The token lasts one hour, so mint a fresh one for each batch of replies.
Reply in the thread of the comment being answered, never as a new top-level comment. Name the commit that holds the change, using the short sha after the push.
Write each reply so it stays accurate when someone rereads it later:
- Use past tense only for changes that are pushed. Describe anything not yet done in future tense.
- When a change is still in progress, say so plainly.
- When the reply asks the user a question, end with the question.
Report
After each batch of replies, tell the user in the conversation which comments you handled, what changed, and which replies ask them a question. Then say that the listener is running again.
Установить code-review-bot в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл code-review-bot?
Address the user's review comments on a pull request, reply in each comment's thread as the repository's GitHub App bot, and keep watching the pull request for more feedback. Use when the user says they left comments or feedback on a PR, asks you to reply as a bot, or asks you to watch a PR for feedback.
Как установить скилл code-review-bot?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл code-review-bot запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic