/guided-review:guided-pr-reviewfrom guided-review
Creates a guided, visual review page for GitHub PRs with chapter-organized diffs, before/after diagrams, and an interactive Ask panel for follow-up questions.
Ships in guided-review. 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; scripts run unread.
A big diff shown in file order makes the reviewer spend the first half hour working out what the PR does. This skill does that work up front and hands the reviewer a page that reads in the right order, with Claude available inside the page for follow-up questions.
Output: one private artifact per PR with three tabs.
/ or the Ask button): Claude answers in the page, with page tools read_diff, read_file (before or after the PR) and search. path:line citations in answers jump to the line. Click a line number (shift-click for a range) to ask about that code.Do this before fetching anything.
origin if it is a git repo, else ask the user which repo (owner/name).gh pr list -R <repo> --search "review-requested:@me" --limit 8 --json number,title,author,additions,deletions,changedFiles
(no results: drop the --search to list recent open PRs).code-review skill on the PR and stop here.Continue only on yes.
python3 ${CLAUDE_SKILL_DIR}/scripts/fetch_pr.py <number|url|owner/name#n> [--repo owner/name]
This writes ~/.claude/guided-reviews/<owner>-<name>-<n>/pr.json (call that folder DIR) and prints every file with its status, kind (core, config, test, docs, migration, generated) and +/−. It embeds the full before/after text of changed files, up to a 6 MB budget (--budget-mb), so the page can expand unchanged lines and in-page Claude can read whole files. Generated files are never embedded. It also records the test names in each test file and the imports between changed files, which the page draws as a file map.
python3 -c "import json;print(json.load(open('DIR/pr.json'))['body'])"python3 ${CLAUDE_SKILL_DIR}/scripts/pr_diff.py DIR/pr.json [path-substring ...] [--max-lines N]. It skips test and generated files by default.files[].newText / oldText in pr.json, or the local clone) and confirm it is real. A wrong flag costs the reviewer more than a missing one.path:line, and you merge them.DIR/guide.jsonFollow references/guide-schema.md for the shape and the writing rules. The short version:
added, changed, removed or same, and link it to its chapter.state for a lifecycle or status field, sequence for calls between components, an approval loop or a retry protocol, schema for new or changed models, request/response bodies or tables, and flow for a pipeline inside one chapter. Aim for one to three diagrams across a mid-size PR. Only draw what the code really does; check the names and order you use.path + after-PR line. Use risk for likely bugs, question for things the reviewer should ask the author, and nit for small stuff. Leave it empty rather than pad it.rg in the local clone.python3 ${CLAUDE_SKILL_DIR}/scripts/build_review.py DIR
This writes DIR/review.html. It stops with ✗ lines when guide.json doesn't fit the PR (an unknown path or a bad flow edge); fix those and rerun. ! lines are warnings: files left out of every chapter go into "Everything else", so fix them when they matter.
Before your first publish this session, load the artifact-design skill (the template already follows it, so only the page contract matters). Then call the Artifact tool:
file_path: DIR/review.htmlcapabilities: {"sample": {}, "db": {}, "user": {}}. sample runs the Ask panel; db and user hold review comments.icon: "code" (first publish of this PR only)description: one sentence, e.g. "Guided review of acme/api#412: failed payments retry with backoff instead of failing the order."Re-reviews keep the same link:
file_path again.DIR/artifact_url.txt exists, Artifact read that URL first, then publish with url set to it.DIR/artifact_url.txt.Reply in a few lines:
Don't paste the guide into the terminal.
Use this when the user says "post my review" (optionally "for #N"). Submitting in the page only queues the review; this step sends it to GitHub. The user's request is the go-ahead, so don't ask again.
DIR for the PR and read DIR/artifact_url.txt. If several reviews exist and no PR was named, query each one and post every queued submission.ArtifactData (load it with ToolSearch first): collection review_submissions, status == "queued". None queued: say so and stop.{"status": "posting"}.review_comments docs whose ids are in commentIds.DIR/submission-<id>.json as {"event", "body", "comments": [{path, line, startLine, side, body, fileLevel}]}.python3 ${CLAUDE_SKILL_DIR}/scripts/post_review.py DIR DIR/submission-<id>.json. It posts one review with gh, pinned to the head commit the page was built from. Inline comments must be on diff lines; anything else becomes a file note in the review body.{"status": "posted", "url", "reviewId", "postedAt"} and each of its comments to {"status": "posted"}, in one batch.{"status": "failed", "error": "<GitHub's message>"} and put its comments back to {"status": "draft", "submission": null} so the user can fix and resubmit.Comments post as the account gh is logged in with (the page shows it). GitHub refuses Approve and Request changes on your own PR, and the page disables them in that case.
Rerun fetch_pr.py (same DIR), update guide.json for the files that changed, rebuild, and republish to the same URL. Reviewed checkmarks are stored per head SHA in the viewer's browser, so they reset when the PR moves.
DIR/review.html as a local file instead; it works without Ask.What SKILL.md sets; muted values are Claude Code's defaults
2 skills in this plugin
npx claudepluginhub samyakjain0606/awesome-learning-material --plugin guided-reviewOther plugins' skills for the same job