cursor-pr-review-canvas-pr-review-canvas
Codex adaptation
Use scripts/cursor_canvas_adapters.py:render_pr_review_canvas for an explicit, bounded project-local Markdown/HTML review artifact when Canvas is unavailable. The adapter reads only a local diff fixture, groups files by reviewer value, and reports that live PR metadata/gh access is unavailable; it never claims Canvas SDK parity or publishes a review. External dependency remains explicit: Cursor Canvas surface.
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.