From Agent Toolkit
Fetches all reviewer comments from a pull request URL (GitHub, Azure DevOps) and saves them as a self-contained markdown file. Useful for gathering PR feedback before acting on it.
How this skill is triggered — by the user, by Claude, or both
Slash command
/agent-toolkit:fetch-pr-reviewThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
**Fetch only** — capture the review feedback left on a pull request; never fix code, reply, or
Fetch only — capture the review feedback left on a pull request; never fix code, reply, or
judge the comments. Output is a self-contained .PR-REVIEW.md a fresh session can pick up and act
on (e.g. via /refine-ticket).
Identify the platform from the PR URL (host shape) and fetch through the matching MCP server or
CLI — e.g. GitHub MCP / gh for GitHub PRs, Azure DevOps MCP for ADO pull requests. Use
whichever equivalent tools are connected; tool name prefixes vary by config. If the input is
ambiguous, or no matching MCP/CLI is available, ask the user / stop — don't guess.
Every uncertainty is confirmed with the user before proceeding: a thread's resolved status, the planning directory, the slug, anything ambiguous in between. A plausible guess is a question, not an answer.
<id>-<slug>/ subdirectory from PR context (linked ticket id, branch name, PR title) and
confirm the guess with the user; when not sure, always ask. If no matching directory
exists, propose a new <id>-<slug> (ticket id prefix when bound to one, kebab-case slug from
the PR title), confirm, and create it.<slug>.PR-REVIEW.md, where <slug> is the planning directory name
(e.g. 1234-some-task.PR-REVIEW.md). If it already exists and this is a new review round,
write <slug>.PR-REVIEW-2.md, -3, … — never overwrite; history per round is kept on
purpose.Capture every comment, resolved or not, with its state from the platform's own signal (e.g. GitHub thread resolution, ADO thread status):
wontFix is resolved but carries different intent than fixed.Must stand on its own: a fresh session with no access to the PR must be able to locate every spot in the code and understand every piece of feedback without re-fetching.
# PR review: <title>
> **Source** [<PR id>](<url>)
> **Branch** <source> → <target>
> **State** {open/merged/…}
> **Author** {display name}
> **Linked ticket** [<id>](<url>) — omit if none
> **Fetched** {today YYYY-MM-DD}
## Review verdicts — one per reviewer: verdict + summary text
## Inline threads — one ### per thread: `path:line`, quoted code context/diff hunk,
comments oldest first as <author> — <date>, status flag
## General comments — non-inline human conversation, oldest first
## Bot comments — automated feedback, grouped by bot
Omit empty sections. Quote file paths, code, identifiers, and user-facing strings verbatim — never alter or translate them.
.PR-REVIEW.md (and its planning directory if new).State clearly when done, using project-relative paths. List any thread whose status needed a
user decision and how it was marked. Then hand off the next phase as a
single copy-pasteable launch command — session name and prompt combined, so one paste starts the
session. Use the launch syntax of the agent tool in use (vendor-agnostic — claude below is only
the example), naming the session refine-<slug>:
claude --name refine-<slug> "/refine-ticket <output-dir>/<slug>.PR-REVIEW.md"
npx claudepluginhub francescoborzi/agent-toolkit --plugin agent-toolkitFetches, organizes, and presents GitHub PR comments—issue-level, review bodies, inline—grouped by human/bot with extracted must-fix/optional actionable items.
Loads GitHub PR review comments into the AI session for analysis, triage, and fix planning. Default is analysis-only; use --mode fix to enable auto-fixes.
Fetches GitHub PR review comments via gh CLI and Python script, creates task checklists for threads, links commits to reviews, and blocks completion until all resolved. Use for systematic PR feedback handling.