pr-screenshots
यह क्या करती है
यह टूल कोड प्रोजेक्ट में दिखाता है कि कोई चीज़ स्क्रीन पर कैसे बदली। आप कोड अपडेट के विवरण में 'पहले' और 'बाद' की तस्वीरें जोड़ सकते हैं, ताकि दूसरे लोग बदलावों को आसानी से समझ सकें।
कब इस्तेमाल करें
- ✓जब आप किसी वेबसाइट का रूप बदलते हैं (रंग, बटन आदि)।
- ✓जब आप कोई चार्ट बनाते हैं या डेटा को विज़ुअल तरीके से दिखाते हैं।
- ✓जब आप स्क्रीन पर दिखने वाली कोई गड़बड़ी ठीक करते हैं।
Skill का लिंक
https://github.com/github/awesome-copilot/blob/main/skills/pr-screenshots/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“इस बटन के layout बदलाव को दिखाने के लिए पहले और बाद की तस्वीरें जोड़ो।”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
आप तस्वीरों को सीधे कोड अपडेट के विवरण में डालते हैं। Azure DevOps जैसे प्लेटफ़ॉर्म पर कोड के ज़रिए तस्वीरें अपलोड करने का एक खास तरीका होता है। GitHub के लिए सबसे आसान तरीका है कि तस्वीरों को किसी अलग जगह पर रखें और उनका हवाला दें।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।
PR Screenshots
Embed before/after screenshots in pull request descriptions so reviewers can see the visual change without checking out the branch.
When to Use This Skill
Use this skill when a PR changes something visible:
- Layout, styling, CSS
- Charts, dashboards, data visualizations
- UI components, forms, modals
- Error messages, CLI output, log formatting
PR Description Pattern
Place screenshots directly in the PR description body. Avoid wrapping them in <details> collapse — reviewers are more likely to look at images they can see without clicking.
**Before** — brief description of the problem:

**After** — brief description of the fix:

Keep the text brief. A sentence or two per image describing what the reader should notice. Let the image carry most of the communication.
Multiple changes
For PRs with several visual changes, use separate before/after pairs with headings:
## Filter bar alignment
**Before** — 1px border clash between adjacent buttons:

**After** — borders overlap cleanly, hover tint added:

## Chart tooltip
**Before** — tooltip clipped at container edge:

**After** — tooltip repositions to stay visible:

Image Sizing
- Take screenshots at native 1x resolution — don't resize with PIL (creates artifacts)
- Control display size in HTML when images are too large:
<img src="url" width="600" alt="description"> - Before/after pairs must use the same viewport width and crop — otherwise the comparison is meaningless
Uploading Images
Azure DevOps
Upload images as PR attachments via the REST API:
$token = az account get-access-token `
--resource "499b84ac-1321-427f-aa17-267ca6975798" `
--query accessToken -o tsv
$base = "https://{org}.visualstudio.com/{projectId}/_apis/git/repositories/{repoId}"
$url = "$base/pullRequests/{prId}/attachments/screenshot.png?api-version=7.1-preview.1"
# Use HttpClient — Invoke-RestMethod can corrupt binary data
$client = New-Object System.Net.Http.HttpClient
$client.DefaultRequestHeaders.Authorization = `
New-Object System.Net.Http.Headers.AuthenticationHeaderValue("Bearer", $token)
$content = New-Object System.Net.Http.ByteArrayContent(
, [System.IO.File]::ReadAllBytes("screenshot.png")
)
$content.Headers.ContentType = `
[System.Net.Http.Headers.MediaTypeHeaderValue]::new("application/octet-stream")
$resp = $client.PostAsync($url, $content).Result
Reference in the PR description:

Azure DevOps gotchas:
- Use
{org}.visualstudio.comNOTdev.azure.com/{org}— AzDO's markdown renderer uses.visualstudio.com. Thedev.azure.comformat loads noticeably slower - Use
POSTnotPUT(PUT returns 405) - API version must be
7.1-preview.1 - Can't re-upload with the same filename — use a new name (e.g.
screenshot-v2.png) - Use
HttpClientnotInvoke-RestMethod— IRM can corrupt binary data - Repo-relative paths don't work in PR descriptions — must use full URLs
- Don't commit images to the branch just for PR screenshots
GitHub
⚠️ Work in progress. GitHub's drag-and-drop image upload uses internal endpoints that require browser cookies. There's no clean public API for uploading images to PR descriptions yet.
Current workaround: Commit images to a pr-assets orphan branch and reference via blob URLs (github.com/{owner}/{repo}/blob/pr-assets/{file}?raw=true). It works but is clunky — contributions for a better approach are welcome.
Guidelines
- Capture before state BEFORE making changes — it's easy to forget, and reconstructing the original state later is slow and error-prone
- Keep descriptions brief — a sentence or two per image pointing out what changed is enough
- Prefer visible images over collapsed sections — screenshots behind
<details>tags are easy to skip - Annotate when the change is subtle — use the
image-annotationsskill to add callouts when the difference isn't immediately obvious - Match viewport and crop between before/after pairs so the comparison is meaningful
Limitations
…
अक्सर पूछे जाने वाले सवाल
'पहले' और 'बाद' दिखाना क्यों ज़रूरी है?
इससे कोड रिव्यू करने वालों को बिना सब कुछ खुद टेस्ट किए ठीक-ठीक पता चल जाता है कि क्या बदला है, जिससे रिव्यू तेज़ और बेहतर होता है।
अगर तस्वीरें बहुत बड़ी हों तो क्या होगा?
बहुत बड़ी तस्वीरें कुछ प्लेटफ़ॉर्म पर सही से न दिखें। साइज़ पर ध्यान रखना अच्छा है, ताकि वे स्क्रीन पर ठीक से फ़िट हों।
क्या Azure DevOps में किसी भी फ़ाइल नाम का इस्तेमाल कर सकते हैं?
नहीं, आप एक ही फ़ाइल नाम दोबारा तस्वीर अपलोड करने के लिए इस्तेमाल नहीं कर सकते। हर बार नया नाम देना होगा।
जानकारी
लेखक का मूल विवरण
Embed before/after screenshots and annotated images in pull request descriptions. Covers PR description patterns, image upload for Azure DevOps and GitHub, and sizing best practices.
repo: github/awesome-copilot
लोकप्रियता
- GitHub स्टार
- 40k
- रैंकिंग में स्थान
- #7342
- लाइसेंस
- MIT
- अपडेट की गई
- 15/10/2026
कमेंट
- …
इस repository की और skills
acquire-codebase-knowledge
40kआपके एजेंट को किसी मौजूदा code प्रोजेक्ट को समझने और उसका documentation बनाने में मदद करता है। यह नए लोगों को प्रोजेक्ट से जोड़ने या architecture का सार जानने में उपयोगी है।
acreadiness-assess
40kआपके एजेंट को किसी प्रोजेक्ट की AI के लिए तैयारी जाँचने और रिपोर्ट बनाने देता है। यह समझने में उपयोगी है कि प्रोजेक्ट AI tools इस्तेमाल करने के लिए कितना तैयार है।
acreadiness-generate-instructions
40kआपके एजेंट को assessment के आधार पर AI tools के लिए निर्देश बनाने में मदद करता है। यह बताता है कि AI कोड के साथ बेहतर कैसे काम करे और पहचानी गई कमियाँ कैसे दूर हों।
acreadiness-policy
40kआपके एजेंट को AI प्रोजेक्ट assessment के लिए नीतियाँ तय करने या लागू करने में मदद करता है। यह प्रोजेक्ट्स के मूल्यांकन को मानक बनाने और compliance सुनिश्चित करने में उपयोगी है।
मिलती-जुलती skills
openclaw-update
394kयह आपके एजेंट को चल रहे OpenClaw Gateway को अपडेट करने में मदद करती है, इंस्टॉल के तरीके के अनुसार सही विधि चुनकर और सेशन बनाए रखकर।
diagnose-gateway
394kयह आपके एजेंट को सेटिंग्स, चैनल और पोर्ट जांचकर पता लगाने देती है कि OpenClaw Gateway क्यों फ़ेल हो रहा है, बिना कुछ बदले।
crabbox-apps
394kयह आपके एजेंट को किसी अस्थायी क्लाउड मशीन पर ऐप खोलने और चलाने देती है, फिर उसका व्यू आपके चैट के साइड पैनल में दिखाती है।