Langsung ke konten
Skillpedia
Pemrograman umum15k Β· #11007

pr-review-canvas

Fungsinya

Skill ini membuat halaman tinjauan yang mudah dibaca untuk sebuah pull request, dengan perubahan diurutkan menurut kepentingan. Untuk reviewer yang ingin cepat memahami perubahan besar.

Kapan dipakai

  • βœ“Saat Anda meminta tinjauan pull request dari tautan GitHub.
  • βœ“Saat diff besar dan Anda ingin logika inti dipisahkan dari kode standar.
  • βœ“Saat Anda ingin penjelasan langkah demi langkah atas kode yang rumit atau tidak terduga dalam perubahan.

Link skill

https://github.com/cursor/plugins/blob/main/pr-review-canvas/skills/pr-review-canvas/SKILL.md

Salin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.

Cara pakai

Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.

Pesan siap tempel

Gunakan skill ini untuk membantu saya: https://github.com/cursor/plugins/blob/main/pr-review-canvas/skills/pr-review-canvas/SKILL.md Baca file SKILL.md di link tersebut dan ikuti instruksinya untuk tugas saya.
Mau AI Anda menemukan skill seperti ini sendiri?Pasang MCP Skillpedia gratis: cukup satu baris, dan AI mencari di antara 15.000+ skill sebelum tiap tugas.Pasang dalam 1 menit β†’

Contoh permintaan ke AI

β€œBuatkan canvas review untuk https://github.com/acme/app/pull/42 agar saya bisa melihat apa yang paling penting lebih dulu.”

5 skill baru setiap minggu. 1 menit baca.

Cara kerjanya

Agent membaca diff pull request dengan alat baris perintah GitHub, mengelompokkan perubahan menurut seberapa besar kebutuhan reviewer akan perubahan itu, lalu membuat halaman canvas. Jika Anda belum memberi tautan pull request, agent memintanya.

Konten teknis (SKILL.md asli)

Teks asli dari pembuat, dalam bahasa Inggris, langsung dari GitHub.

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:

  1. Core logic β€” New behavior, algorithm changes, state transitions, API surface changes. Show full diffs with surrounding context.
  2. Wiring & integration β€” Route registration, dependency injection, config plumbing that connects the core logic. Condensed β€” enough to confirm correctness.
  3. Boilerplate & mechanical β€” Import reordering, renames, generated code, formatting, type re-exports. Summarize as a list of file names and stats. No inline diffs unless specifically relevant.

Lead with core logic. The reviewer's attention is freshest at the top.

Distill complex logic into pseudocode

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.

Trace tricky logic on a concrete example

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.

Call attention to tricky things

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.

Tone and content

Write reviewer-facing commentary, not a changelog. Focus on:

  • Why something changed, not just what changed.
  • Interactions between files β€” e.g. "The new validator in core.ts is invoked by the route added in routes.ts."
  • Anything the diff alone doesn't make obvious.

Keep commentary terse. One or two sentences per note.

Be creative

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.

The canvas SDK has charts, tables, diff views, DAG layout, cards, stats, interactive state, and more. Reach for whichever components best serve 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.

Pertanyaan umum

Apakah bisa dipakai dengan cabang lokal?

Tidak. Skill meminta tautan pull request dan tidak menebak dari perubahan lokal Anda.

Apakah perlu panduan canvas dulu?

Ya. Skill membaca file panduan canvas sebelum membuat halaman.

Dalam urutan apa perubahan ditampilkan?

Menurut kepentingan reviewer, misalnya logika inti lebih dulu, bukan menurut urutan file.

Detail

Deskripsi asli dari pembuat

Render a PR diff review as a Cursor 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.

repo: cursor/plugins

Popularitas

Bintang GitHub
15k
Peringkat
#11007
Lisensi
β€”
Diperbarui
31/10/2026

Apakah skill ini berguna?

0

Masuk untuk memberi suara.

Komentar

  • …

Skill lain dari repositori ini

Skill serupa