मुख्य सामग्री पर जाएँ
Skillpedia
सामान्य कोडिंग15k · #10940

pr-review-canvas

यह क्या करती है

यह स्किल असिस्टेंट को GitHub पुल रिक्वेस्ट को एक पढ़ने योग्य समीक्षा पेज में बदलने देती है, जिसमें टिप्पणी वाले diff और एक चेकलिस्ट हो। यह उन समीक्षकों के लिए है जो निर्देशित वॉकथ्रू चाहते हैं।

कब इस्तेमाल करें

  • ✓जब आप GitHub पुल रिक्वेस्ट का लिंक चिपकाकर समीक्षा या सार माँगते हैं।
  • ✓जब आप मुख्य बदलावों को मशीनी या बॉइलरप्लेट फ़ाइलों से अलग देखना चाहते हैं।
  • ✓जब आप किसी बड़ी पुल रिक्वेस्ट का दृश्य वॉकथ्रू चाहते हैं।

Skill का लिंक

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

इसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।

कैसे इस्तेमाल करें

सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।

पेस्ट करने के लिए तैयार मैसेज

इस skill से मेरी मदद करो: https://github.com/cursor/plugins/blob/main/cursor-team-kit/skills/pr-review-canvas/SKILL.md इस लिंक की SKILL.md फ़ाइल पढ़ो और मेरे काम में उसके निर्देशों का पालन करो।
क्या आप चाहते हैं कि आपका AI ऐसी skills खुद ढूँढे?मुफ़्त Skillpedia MCP इंस्टॉल करें: बस एक लाइन, और हर काम से पहले यह 15,000+ skills में खोजता है।1 मिनट में इंस्टॉल करें →

AI से क्या माँगें: उदाहरण

“यह GitHub पुल रिक्वेस्ट मेरे लिए समीक्षा कीजिए और एक इंटरैक्टिव वॉकथ्रू बनाइए जिसे मैं पढ़ सकूँ।”

हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।

यह कैसे काम करती है

असिस्टेंट gh कमांड-लाइन से पुल रिक्वेस्ट का विवरण और फ़ाइल 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
लाइसेंस
—
अपडेट की गई
31/10/2026

क्या यह skill काम की है?

0

लॉग इन करें वोट करने के लिए।

कमेंट

  • …

इस repository की और skills

advisor

15k

अगर आप इसे चालू करते हैं, तो आपका एजेंट बड़े फ़ैसले से पहले या किसी त्रुटि में अटकने पर एक ज़्यादा शक्तिशाली दूसरे मॉडल से सलाह ले सकता है।

AI और एजेंटएजेंट

check-agent-compatibility

15k

जाँचती है कि AI कोडिंग एजेंट किसी रिपॉज़िटरी को शुरू, सत्यापित और दस्तावेज़ित कर सकते हैं या नहीं, और एक अनुकूलता स्कोर के साथ मुख्य समस्याएँ लौटाती है।

कोडिंगडिप्लॉय और क्लाउड (DevOps)

cli-for-agents

15k

आपके एजेंट को कमांड-लाइन टूल ऐसे डिज़ाइन या जाँचना सिखाती है कि AI एजेंट उन्हें बिना प्रॉम्प्ट चला सकें, साफ़ help टेक्स्ट और उदाहरणों के साथ।

कोडिंगAPI और सर्वर (backend)

continual-learning

15k

पिछली चैट की समीक्षा का काम एक समर्पित मेमोरी अपडेटर को सौंपकर आपकी AGENTS.md नोट्स को अद्यतन रखती है।

AI और एजेंटएजेंट

मिलती-जुलती skills