본문으로 건너뛰기
Skillpedia
일반 코딩15k · #10940

pr-review-canvas

하는 일

이 스킬은 어시스턴트가 GitHub 풀 리퀘스트를 주석이 달린 diff와 체크리스트가 있는 읽기 쉬운 리뷰 페이지로 바꾸게 합니다. 단계별 안내가 필요한 리뷰어를 위한 스킬입니다.

사용하는 경우

  • ✓GitHub 풀 리퀘스트 링크를 붙여 넣고 리뷰나 요약을 요청할 때.
  • ✓핵심 변경을 기계적이거나 반복적인 파일과 분리해서 보고 싶을 때.
  • ✓규모가 큰 풀 리퀘스트를 시각적으로 안내받고 싶을 때.

스킬 링크

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

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/cursor/plugins/blob/main/cursor-team-kit/skills/pr-review-canvas/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“이 GitHub 풀 리퀘스트를 검토해서, 제가 읽을 수 있는 대화형 안내 페이지로 만들어 주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

어시스턴트는 GitHub 명령줄로 풀 리퀘스트 정보와 파일별 diff를 가져와 읽고, 주석이 달린 구간과 리뷰 체크리스트로 변경을 설명하는 HTML 페이지를 씁니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

PR Review Canvas

Generate an interactive HTML review of a GitHub PR that reads like a peer walking you through what matters.

Workflow

1. Fetch PR data

Run these gh api calls in parallel:

gh api repos/{owner}/{repo}/pulls/{number} --jq '{title, body, user: .user.login, state, additions, deletions, changed_files, base: .base.ref, head: .head.ref}'
gh api repos/{owner}/{repo}/pulls/{number}/files --paginate --jq '.[] | {filename, status, additions, deletions, patch}'
gh api repos/{owner}/{repo}/pulls/{number}/comments --jq '.[] | {user: .user.login, body, path, line}'

2. Analyze the PR and write the body HTML

Read the diffs, understand the PR, and write the <body> content directly as HTML. You have full creative freedom -- the goal is to explain the PR clearly to a reviewer. Use whatever structure best fits the PR.

Typical structure (adapt as needed):

  • Header with title, PR number, author, stats
  • Summary box explaining what the PR does in plain English
  • Core file sections with annotations and diffs
  • Mechanical/boilerplate files collapsed by default
  • Review checklist at the bottom

But you can also add:

  • Pseudocode summaries for verbose code -- show the algorithm in plain English or short pseudocode, with the real diff collapsed below (use a .bp-section card labeled "Show full implementation"). Great when 150 lines of retry/backoff/error-handling code is really just "fetch with exponential backoff and circuit breaker."
  • Diagrams (inline SVG, mermaid via CDN, ASCII art in <pre>)
  • Flowcharts showing before/after control flow
  • Tables comparing old vs new behavior
  • Callout boxes for warnings, questions, or gotchas
  • Interactive widgets if they help
  • Anything else that makes the review clearer

Pseudocode pattern example:

<div class="file-card">
  <div class="file-hdr" onclick="toggle(this)">
    <span class="fname">retryClient.ts</span>
    <div class="fstats"><span class="pill add">+173</span><span class="pill del">&minus;11</span><span class="chev open">&#9654;</span></div>
  </div>
  <div class="file-body open">
    <div class="file-note">
      <strong>What this does in plain English:</strong>
      <pre style="margin-top:8px;color:var(--text);font-size:12px;line-height:1.6;">
fetch(url):
  if circuit breaker is open → fail fast
  retry up to N times:
    try fetch with timeout
    on success → close circuit breaker, return
    on retryable error → wait (exponential backoff + jitter)
    on non-retryable error → throw
  circuit breaker records failure</pre>
    </div>
    <div class="bp-section" style="margin:0;border:0;border-radius:0;">
      <div class="bp-hdr" onclick="toggleBP(this)">
        <span>Show full implementation (+173 lines)</span><span class="chev">&#9654;</span>
      </div>
      <div class="bp-body"><div data-diff="retryClient"></div></div>
    </div>
  </div>
</div>

3. Available CSS classes and JS utilities

Read styles.css and renderer.js from this skill directory. These give you a prebuilt dark-themed toolkit. Inject them into template.html verbatim.

CSS classes you can use:

Class Purpose
.header, .header h1, .header-meta Page header
.pill.add, .pill.del, .pill.files Stat badges (+N, -N, N files)
.content Centered content wrapper (max 900px)
.summary Summary/TL;DR box
.section-title Section heading with bottom border
.ic Inline code reference (mono, blue, dark bg)
.file-card, .file-hdr, .file-body Collapsible file card (use onclick="toggle(this)" on .file-hdr)
.file-note Sticky reviewer annotation inside a file card
.bp-section, .bp-hdr, .bp-body Collapsed boilerplate card (use onclick="toggleBP(this)")
.bp-note Note inside a boilerplate card
.verdict Review checklist box

JS functions available:

Function Usage
toggle(hdrElement) Toggle a .file-body open/closed
toggleBP(hdrElement) Toggle a .bp-body open/closed
renderDiff(target, diffInput) Render a unified diff. target can be a DOM element, string ID, or CSS selector. diffInput can be a raw patch string OR an array of lines -- both work. Automatically filters imports, collapses whitespace-only changes, detects moved code (blue/purple tint).
esc(string) HTML-escape a string

**Rendering diffs -- use `data-diff

자주 묻는 질문

GitHub 접근 권한이 필요한가요?

네. 풀 리퀘스트 데이터를 가져오려면 gh 명령을 쓰므로, 그 도구가 설정되어 있어야 합니다.

반복 코드나 보일러플레이트 파일은 어떻게 다루나요?

기계적이거나 반복적인 파일은 보통 기본적으로 접혀 있어, 핵심 변경이 돋보입니다.

GitHub에 댓글을 달아 주나요?

이 스킬은 데이터를 바탕으로 리뷰 페이지를 만드는 것을 설명합니다. GitHub에 댓글을 게시하는 내용은 포함되어 있지 않습니다.

상세 정보

작성자의 원본 설명

Generate an interactive PR review walkthrough as an HTML page. Fetches PR data via gh API, categorizes files into core vs mechanical changes, adds reviewer annotations, and renders diffs with moved-code detection. Use when the user pastes a GitHub PR URL and asks for a review, walkthrough, or summary, or says "review this PR".

repo: cursor/plugins

인기도

GitHub 스타
15k
순위
#10940
라이선스
—
업데이트
2026. 10. 31.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬