/github:code-review-botfrom github
Addresses user review comments on a GitHub pull request by replying as a GitHub App bot, making code changes, and watching for further feedback.
Ships in github. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Use the code:cli, git:git-workflow, and git:commit skills when available.
Resolve <plugin-root> before running plugin scripts:
${CLAUDE_PLUGIN_ROOT}.skills/code-review-bot/SKILL.md file.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 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.
Decide whether each comment asks for a change or asks a question.
build:precommit skill, fold the fixups in with the git:git-rebase skill, and push with git push --force-with-lease. Run every check that failed in CI before pushing again.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.
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:
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.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
3 skills in this plugin
npx claudepluginhub motlin/claude-code-plugins --plugin githubOther plugins' skills for the same job