pr-review-canvas
Renders a PR diff as a Cursor canvas, grouped by reviewer importance, with tricky code highlighted.
- Kind
- Skill
- Works with
- Cursor
- Source
- cursor/plugins @ 9580c23696ac
- Path
- pr-review-canvas/skills/pr-review-canvas/SKILL.md
- License
- MIT
- Jobs
- Review, UI/UX work
InstallCopy it from the source repository, or sign in and let the assistant adapt it for your project.
# PR Review Canvas Build a canvas that presents a PR diff reorganized for reviewer comprehension — not in file-tree order. ## Prerequisites Read `~/.cursor/skills-cursor/canvas/SKILL.md` first. It contains the generation policy, design guidance, slop rules, self-check, and file-path conventions you must follow. The full component and hook surface is declared in `~/.cursor/skills-cursor/canvas/sdk/index.d.ts` and its sibling `.d.ts` files — read them to discover exact exports and prop shapes rather than guessing. ## Gather the diff 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. ## Group changes for comprehension Do **not** present files in alphabetical or tree order. Reorganize into sections ordered by reviewer value: …