/pr-review-canvas:pr-review-canvasfrom PR Review Canvas
Render a PR diff review as a self-contained HTML review canvas that groups changes by reviewer importance, separates boilerplate from core logic, and highlights tricky or unexpected code. Use when reviewing a pull request, summarizing a diff for review, or when the user asks for a PR review canvas, diff walkthrough, or change-set overview.
Ships in PR Review Canvas. 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.
Build a canvas that presents a PR diff reorganized for reviewer comprehension — not in file-tree order.
The canvas is one self-contained HTML page. Inline every style and script, embed any image as a data: URI, and pull in no external host. Write it to a file, then publish it with the Artifact tool so the reviewer gets a link they can open and share. Load the artifact-design skill before you write the page; it owns the layout and typography decisions this skill does not restate.
The cursor-team-kit plugin ships a sibling pr-review-canvas skill with a prebuilt dark-theme CSS toolkit, a diff renderer with moved-code detection, and a safe patch-embedding recipe. Read it before hand-rolling any of that.
Expect a GitHub PR link (a full URL like https://github.com/<owner>/<repo>/pull/<n>, or an equivalent gh-resolvable reference). Use gh pr diff <pr> to collect every file's path, additions, deletions, and hunks.
If the user didn't provide a PR link, stop and ask. Do not guess at the current branch, infer from recent history, or fall back to a local git diff. Ask the user which diff they want to review — a specific PR URL or number — and wait for their reply before continuing.
Do not present files in alphabetical or tree order. Reorganize into sections ordered by reviewer value:
Lead with core logic. The reviewer's attention is freshest at the top.
When a core change involves dense or intricate logic — deeply nested conditions, state machines, retry/backoff flows, multi-step transformations — add a short pseudocode summary next to the diff. The pseudocode should strip away language syntax, error handling, and boilerplate to expose the essential algorithm or control flow in a few lines. This lets the reviewer confirm intent before reading the real code.
Only do this when the actual diff is hard to scan. Straightforward changes don't need a pseudocode mirror.
Pseudocode shows the shape of the change; an example trace shows it executing. When a hunk changes behavior in a way that's hard to predict from reading it — reordered effects, new short-circuits, altered edge cases — pick a concrete input and walk it through both the old and new code paths side-by-side, highlighting the step where they diverge and what the observable outcome is. Keep the input small and realistic.
Use this for genuinely surprising behavior changes, not every core hunk.
When a hunk contains something surprising, risky, or easy to miss, visually separate it from the surrounding diff and pair it with a short tag (e.g. "Subtle", "Breaking", "Race condition", "Perf") and a one-sentence explanation so the reviewer sees the concern and the code together.
Reserve these callouts for genuinely tricky items — overuse destroys signal.
Write reviewer-facing commentary, not a changelog. Focus on:
core.ts is invoked by the route added in routes.ts."Keep commentary terse. One or two sentences per note.
The sections above are a floor, not a ceiling. The goal is the fastest possible path for the reviewer to understand this specific change — so look at the diff in front of you and ask what representation would actually help. A tiny state diagram, a before/after call graph, a table of input→output pairs, a timeline of commits, a confidence annotation per file, a single large callout with everything else collapsed — whatever fits the change.
One HTML page can carry charts, tables, diff views, DAG layouts, cards, stats, and interactive state; mermaid renders natively inside an Artifact from a <pre class="mermaid"> block. Reach for whichever of these best serves the change at hand. A review of a refactor looks different from a review of a bug fix looks different from a review of a new feature — let the canvas reflect that.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub seangsisg/cstack --plugin pr-review-canvas