/agent-toolkit:fetch-pr-reviewfrom Agent Toolkit
Fetches all reviewer comments from a pull request (GitHub, Azure DevOps) and saves them as a self-contained markdown file. Fetch-only — no fixing or replying.
Ships in Agent Toolkit. 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 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-pr-review). Someone else's PR to review is not this skill's job: use
review-code-assistant or maintainer-review when available (look in the agent's skills and
plugin dirs, as manual-only skills are missing from the in-session list).
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. Fetch each stream
through its last page, thread replies included: metadata, review verdicts, inline threads with
their resolution and outdated flags (usually a thread-level API, not the flat comment list),
conversation comments. 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.
(author)..agents/plans/).
Guess the task's existing home from PR context (linked ticket id, branch name, PR title) — its
<id>-<slug>/ subdirectory, or the shared parent/group directory holding its
<id>-<slug>.TICKET.md when the ticket lives flat there — and confirm the guess with the
user; when not sure, always ask. If no matching 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 —
in a shared directory, the ticket's own <id>-<slug> instead (e.g.
1234-some-task.PR-REVIEW.md). If it already exists, a new review round (see Later rounds)
writes <slug>.PR-REVIEW-2.md, -3, … — never overwrite; history per round is kept on
purpose.A review round is new reviewer activity since the latest PR-REVIEW file: a review, a thread, a
reply, a reopened thread, a thread resolved or marked won't fix. A thread merely becoming outdated
after a push is not activity. The -N file holds only that activity, each touched thread whole,
plus a ## Since round N-1 block: head then and now, and a then/now status table for every earlier
thread whose status changed — so a resolution-only round still gets its file. No activity is a
refresh, not a round, even when the head moved: write nothing, say so with the current head
without asking, and hand off the latest existing file (see Next step).
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>
> **Head** <short sha>
> **State** {open/merged/…}
> **Author** {display name}
> **Linked ticket** [<id>](<url>) — omit if none
> **Fetched** {now, ISO 8601 with UTC offset}
## Description — verbatim, or one line saying it is empty
## Since round N-1 — `-N` files only (see Later rounds)
## Review verdicts — one per submitted review, newest first: verdict + summary text, plus
the commit it was submitted against and its permalink when the
platform gives them
## Inline threads — one ### per thread: `path:line` + the opening quote, the thread's
permalink, quoted code context/diff hunk, comments oldest first as
<author> — <date>, status flag
## General comments — non-inline human conversation, oldest first, each with its permalink
when the platform gives one
## Bot comments — automated feedback, grouped by bot
A thread's section follows its opening author: a bot's inline threads go under Bot comments, in
the same ### format as Inline threads; a human reply inside one is quoted there and the thread
flagged human reply. 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, when refine-pr-review is available, hand off the next
phase as one fenced block holding the bare prompt, after one line saying to run it in a fresh
session or after clearing this one (/clear is only the example):
/refine-pr-review <pr-review-file>
A refresh hands off the latest existing file with head=<sha> — the head it confirmed — appended:
/refine-pr-review <pr-review-file> head=<sha>. Without refine-pr-review, report the written file,
or for a refresh the latest file and the current head.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
pr-review, code-review, github, azure-devops, feedback-collector
npx claudepluginhub eai-org/agent-toolkit --plugin agent-toolkit31 skills in this plugin
/agentify-projectMake a project agent-ready by converging it toward a canonical agent-neutral structure. Re-runnable, and doubles as an audit./attach-to-ticketAttach pasted images, files or URLs to a fetched ticket, saved beside its ticket file and referenced from it, or fill an attachment the fetch could not download. Local only — never queries or edits the tracker./check-ticket-implementationCheck how much of a ticket is already implemented and save a per-requirement status report.Other plugins' skills for the same job