/v1tamins:v1-address-reviewfrom v1tamins
Fetches PR review comments from humans, Copilot, or bots, evaluates each one, fixes valid issues, replies, and resolves conversations. Useful when addressing review feedback on GitHub pull requests.
Ships in v1tamins. 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.
Read when SKILL.md points to them.
Fetch code review comments on a PR (from humans, Copilot, or aggregate bot reviews), critically evaluate each one, fix the valid issues, reply to each comment, resolve conversations when warranted, and use usefulness reactions when appropriate.
Typical invocations:
/v1-address-review <PR_URL_or_NUMBER>v1-address-review from the skills menu or use $v1-address-review <PR_URL_or_NUMBER>Examples:
/v1-address-review https://github.com/your-org/your-repo/pull/123
/v1-address-review 123
In Codex, the slash examples above map directly to $v1-address-review ....
git status --short --branch.gh run view --log-failed or the failing job logs when available..github/ files when they explain the review surface: CODEOWNERS, pull request templates, workflow files for failed checks, and bot/gate configuration referenced by the PR or check output.Before editing files, build a working ledger of every actionable review item:
| Comment ID | Thread ID | Source | File:Line | Finding | Status | Action | Validation | Reply | Resolve | Reaction |
|---|---|---|---|---|---|---|---|---|---|---|
<id> | <thread-id> | Copilot / bot / human | path:line | short title | valid / invalid / partial / blocked | fix / skip / ask | command or reason | posted / pending | yes / no / blocked | +1 / -1 / none |
Use the ledger to avoid losing line-specific comments, stale bot findings, or false positives that still need a reply. If GitHub API access fails, say so explicitly and do not claim comments were addressed; fall back only to local diff review and mark replies as blocked.
Check every source of review feedback:
gh api repos/{owner}/{repo}/pulls/{pr}/comments --paginate | \
jq -r '[.[] | select(.in_reply_to_id == null)] as $originals |
[.[] | select(.in_reply_to_id != null)] as $replies |
$originals | map(. as $original | $original + {
replies: ($replies | map(select(.in_reply_to_id == $original.id)))
})'
Do not drop an original comment only because it already has a reply. A replied comment may still need current-code verification, a follow-up reply, a reaction, or review-thread resolution.
Fetch all PR-level issue comments, then classify them during analysis. Do not pre-filter to only comments with a Review: heading because human comments and some bot comments may still need a reply.
gh api repos/{owner}/{repo}/issues/{pr}/comments --paginate
When a bot packs multiple findings into one issue comment (Code Factory is the reference dialect), load references/code-factory.md for detect/parse/summary-reply rules. Keep using the generic ledger; do not special-case other bots unless their body matches those multi-finding markers.
Fetch review threads so comments can be resolved after they are answered:
gh api graphql \
-f owner='{owner}' \
-f repo='{repo}' \
-F number={pr} \
-f query='
query($owner: String!, $repo: String!, $number: Int!) {
repository(owner: $owner, name: $repo) {
pullRequest(number: $number) {
reviewThreads(first: 100) {
pageInfo {
hasNextPage
endCursor
}
nodes {
id
isResolved
isOutdated
comments(first: 50) {
pageInfo {
hasNextPage
endCursor
}
nodes {
id
databaseId
author { login }
body
path
line
originalLine
url
}
}
}
}
}
}
}'
If reviewThreads.pageInfo.hasNextPage is true, continue fetching with after: <endCursor> until all thread pages are loaded. If any thread's comments.pageInfo.hasNextPage is true, fetch additional comment pages for that thread before deciding whether it has been answered or can be resolved.
Join review threads to line-specific comments by GraphQL databaseId matching the REST comment id. Track unresolved and outdated thread state in the ledger.
Fetch submitted reviews because an approval, comment, or request-changes review can contain actionable feedback only in its top-level body:
gh api repos/{owner}/{repo}/pulls/{pr}/reviews --paginate
Treat every non-empty review body as a review item. Join it to its review author, state, commit ID, and URL in the ledger. Do not assume its line comments duplicate the body.
Fetch every check run for the recorded PR head SHA, then fetch every annotation for every run:
gh api --method GET repos/{owner}/{repo}/commits/{head-sha}/check-runs \
-f filter=all -f per_page=100 --paginate
gh api repos/{owner}/{repo}/check-runs/{check-run-id}/annotations --paginate
Always request filter=all; GitHub otherwise returns only the latest check run for each check name and can hide feedback from an earlier attempt on the same head SHA. Inspect each run's status, conclusion, details URL, and output.title, output.summary, and output.text, as well as every annotation's level, path, lines, title, message, and raw details. Record actionable output or annotations in the ledger even when the overall check passes. Do not treat a successful conclusion as proof that a check supplied no feedback.
Record the PR head SHA before analysis:
gh pr view {pr} --repo {owner}/{repo} --json headRefOid --jq .headRefOid
Before posting replies, adding reactions, resolving threads, committing, or pushing, fetch the head SHA again. If it changed, rebuild the ledger against the new head first. If the user did not explicitly ask to respond to or resolve PR feedback, draft the replies and proposed resolutions instead of mutating GitHub.
Each comment = one finding. Read the referenced file and code section.
Treat each distinct finding in a submitted review body, check output, or check annotation as a ledger item. Use its review URL or check details URL as the source when no line-comment URL exists.
Follow references/code-factory.md when the body matches multi-finding markers. Otherwise treat the issue comment as a single finding like any other PR-level comment.
For each finding (regardless of source), read the relevant current code and separate the reported problem from the suggested patch. For a consequential finding, identify the contract or behavior violated and the concrete failure path. Check the fact on which validity depends using the cheapest relevant source inspection, existing test, or small reproduction with actual code. Reuse adequate evidence; a compiler diagnostic for an unused import does not need a new causal essay or reproduction. Stay within authorized execution scope and do not launch another whole-PR review.
Classify the problem and proposed fix separately in the ledger's action and validation fields:
A repeated comment increases priority, not evidential confidence. Lint alone does not prove changed runtime behavior.
git diff and, when relevant, git diff --staged before committing.git diff --cached --check or an equivalent staged-file check before committing when unrelated local files may already have whitespace or generated-output churn.Reply inline: gh api repos/{owner}/{repo}/pulls/{pr}/comments/{id}/replies -f body="..."
Summary comment: gh api repos/{owner}/{repo}/issues/{pr}/comments
Post one PR-level summary comment that links each source review or check and records the disposition of every finding that cannot receive an inline reply.
Use the summary-reply template in references/code-factory.md.
Replies are brief:
After replying, resolve each review thread only when doing so is justified:
blocked and include the exact API/tooling failure in the final output.Resolve a thread with GraphQL:
gh api graphql \
-f threadId='{thread-id}' \
-f query='
mutation($threadId: ID!) {
resolveReviewThread(input: {threadId: $threadId}) {
thread { id isResolved }
}
}'
Use reactions when they add signal:
+1 to useful, valid, actionable review comments after fixing or accepting the finding.-1 only for bot comments that are materially false, misleading, or unactionable after current-code verification. Prefer a written explanation over a -1 for good-faith human feedback.Before adding a reaction, fetch existing reactions and the current GitHub actor:
gh api user --jq .login
gh api repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions \
-H "Accept: application/vnd.github+json"
gh api repos/{owner}/{repo}/issues/comments/{comment_id}/reactions \
-H "Accept: application/vnd.github+json"
React to line-specific review comments:
gh api repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions \
-H "Accept: application/vnd.github+json" \
-f content='+1'
React to PR-level issue comments:
gh api repos/{owner}/{repo}/issues/comments/{comment_id}/reactions \
-H "Accept: application/vnd.github+json" \
-f content='-1'
Commit all validated fixes with a descriptive message and push when the user asked to complete the review-fix loop. Do not leave the PR in a state where local fixes exist but review comments are unanswered.
AGENTS.md, CLAUDE.md, relevant .github/ ownership/workflow guidance, and equivalent repo guidance before dismissingBefore reporting done:
Summary table of all findings addressed:
| # | Source | File:Line | Issue | Action | Reply | Resolved | Reaction |
|---|---|---|---|---|---|---|---|
| 1 | Aggregate bot P1 | auth.py:42 | Missing auth | Fixed | Posted summary | n/a | +1 |
| 2 | Copilot | test.py:100 | Incorrect mock | Fixed | Replied inline | Yes | +1 |
| 3 | Aggregate bot P3 | utils.py:50 | Suggested refactor | Skipped | Not needed per YAGNI | Yes | -1 |
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub v1-io/v1tamins --plugin v1tamins42 skills in this plugin
/v1-autoresearch-skillUse when explicitly running a measured optimization loop against a target. Triggers on "run autoresearch" or "keep only measured improvements"./v1-bare-bonesUse when reducing a plan, PRD, or proposal to the smallest useful scope. Triggers on "strip this plan", "MVP only", or "remove scope"./v1-bigxtha-pluginUse when designing or reviewing a skill plugin's architecture, shared resources, skill handoffs, or cross-skill change impact./v1-canon2skillUse when extracting reusable Agent Skill ideas from books, PDFs, articles, courses, or notes. Triggers on "extract skills from this" or "what skills could come from this?"./v1-changelogUse when writing release notes from merged PRs. Triggers on "write changelog", "release notes", or "what shipped"./v1-debugUse when an observable problem is wrong, recurring, or unexplained and needs root-cause diagnosis. Triggers on "debug this", "why is this failing", or "find the root cause".Other plugins' skills for the same job