pr-screenshots
Skill3.4k starsChanged 2 months agoMITView on GitHub
Capture Playwright screenshots and embed them in GitHub PR descriptions
- Commits and pushes
14 other projects use a version of this, 1 of them edited.
Adopted by
Most recently taken up by
- Venkateshvenki404224/shipcraft-skillstheir own version, first seen Nov 1, 2026
- github/awesome-copilottheir own version, first seen Oct 25, 2026
- michalklejdysz/pr-visualstheir own version, first seen Oct 25, 2026
- nabondance/stratatheir own version, first seen Oct 25, 2026
- microsoft/github-vteam-industry-demosedited, first seen Oct 25, 2026
- getsentry/skillstheir own version, first seen Oct 20, 2026
Other versions14 projects use a version of this.
Word for word · 1
- github/gh-aw★ 5.6k100% same
Edited · 1
- microsoft/github-vteam-industry-demos★ 2100% same
Wrote their own version · 12
- github/awesome-copilot★ 41ksame name
- lukevella/rallly★ 5.4ksame name
- levy-street/world-of-claudecraft★ 2.3ksame name
- getsentry/skills★ 1.1ksame name
- BrOrlandi/my-claude-skills★ 22same name
- nanosite-ai/nanoflow★ 15same name
- bwhtech/skills★ 3same name
- krimvp/xpl★ 2same name
- Venkateshvenki404224/shipcraft-skills★ 2same name
- nabondance/strata★ 1same name
2 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository247 other files it gives its agents.
- .github/agents.mdAGENTS.md
- .github/copilot-instructions.mdCopilot instructions
- packages/squad-cli/templates/copilot-instructions.mdCopilot instructions
- packages/squad-sdk/templates/copilot-instructions.mdCopilot instructions
- .squad-templates/copilot-instructions.mdCopilot instructions
- .squad/templates/copilot-instructions.mdCopilot instructions
- templates/copilot-instructions.mdCopilot instructions
- action-skill-contractsSkill
- agent-collaborationSkill
- agent-conductSkill
- architectural-proposalsSkill
- architectural-reviewSkill
- archival-integritySkill
- ci-validation-gatesSkill
- client-compatibilitySkill
- cli-wiringSkill
- content-scopeSkill
- distributed-meshSkill
- documentation-maintenanceSkill
- github-multi-accountSkill
- git-workflowSkill
- history-hygieneSkill
- init-modeSkill
- model-selectionSkill
- pr-lifecycleSkill
- protected-filesSkill
- release-processSkill
- reskillSkill
- reviewer-protocolSkill
- secret-handlingSkill
- security-reviewSkill
- squad-conventionsSkill
- test-disciplineSkill
- windows-compatibilitySkill
- agentic-workflow-designerSkill
- gh-aw-reliabilitySkill
- iterative-retrievalSkill
- reflectSkill
- {skill-name}Skill
- agent-collaborationSkill
- agent-conductSkill
- architectural-proposalsSkill
- ci-validation-gatesSkill
- client-compatibilitySkill
- cli-wiringSkill
- coordinator-init-modeSkill
- coordinator-response-modeSkill
- coordinator-source-of-truthSkill
- cross-machine-coordinationSkill
- cross-squad-communicationSkill
- cross-squadSkill
- distributed-meshSkill
- docs-standardsSkill
- e2e-template-testingSkill
- economy-modeSkill
- error-recoverySkill
- external-commsSkill
- fact-checkingSkill
- gh-auth-isolationSkill
- gh-aw-enlistmentSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
9 rules. 0 are common, 5 are distinctive, and 4 are very specific to this project.
0
Common
Most of the 12 edited versions we read keep these.
5
Distinctive
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 11
When a PR includes visual changes (docs sites, UI components, generated pages), reviewers need to see what the PR delivers without checking …
- Distinctive: line 15
Use this skill whenever:
- Distinctive: line 25
If Playwright tests already exist and produce screenshots, reuse those.
- Very specific: line 74
Use gh pr edit with the raw URLs embedded as markdown images:
- Distinctive: line 106
After the PR is merged, delete the temporary branch:
- Very specific: line 126
Start dev server: cd docs && npm run dev
- Distinctive: line 127
Run Playwright tests (they capture screenshots as a side effect)
- Very specific: line 129
Update PR body with embedded !...
- Very specific: line 134
If tests at docs/tests/*.spec.mjs already save to docs/tests/screenshots/:
“Common” is measured: kept by at least 6 in 10 of the 12 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Context
When a PR includes visual changes (docs sites, UI components, generated pages), reviewers need to see what the PR delivers without checking out the branch. Screenshots belong in the PR description body, not as committed files and not as text descriptions.
Use this skill whenever:
- A PR touches docs site pages (Astro, Starlight, etc.)
- A PR adds or changes UI components
- A PR generates visual artifacts (TypeDoc, Storybook, diagrams)
- Playwright tests already capture screenshots as part of testing
Patterns
1. Capture screenshots with Playwright
If Playwright tests already exist and produce screenshots, reuse those. Otherwise, write a minimal capture script:
// scripts/capture-pr-screenshots.mjs
import { chromium } from 'playwright';
const browser = await chromium.launch();
const page = await browser.newPage({ viewport: { width: 1280, height: 720 } });
const screenshots = [
{ url: 'http://localhost:4321/path/to/page', name: 'feature-landing' },
{ url: 'http://localhost:4321/path/to/detail', name: 'feature-detail' },
];
for (const { url, name } of screenshots) {
await page.goto(url, { waitUntil: 'networkidle' });
await page.screenshot({ path: `screenshots/${name}.png`, fullPage: false });
}
await browser.close();2. Host screenshots on a temporary branch
GitHub PR descriptions render images via URLs. The gh CLI cannot upload binary
images directly. Use a temporary orphan branch to host the images:
# Save current branch
$currentBranch = git branch --show-current
# Create orphan branch with only screenshot files
git checkout --orphan screenshots-temp
git reset
git add screenshots/*.png
git commit -m "screenshots for PR review"
git push origin screenshots-temp --force
# Build raw URLs
$base = "https://raw.githubusercontent.com/{owner}/{repo}/screenshots-temp/screenshots"
# Each image: $base/{name}.png
# Return to working branch
git checkout -f $currentBranch3. Embed in PR description
Use gh pr edit with the raw URLs embedded as markdown images:
$base = "https://raw.githubusercontent.com/{owner}/{repo}/screenshots-temp/screenshots"
gh pr edit {PR_NUMBER} --repo {owner}/{repo} --body @"
## {PR Title}
### What this PR delivers
- {bullet points of changes}
---
### Screenshots
#### {Page/Feature Name}

#### {Another Page}

---
### To verify locally
```bash
{commands to run locally}"@
### 4. Cleanup after merge
After the PR is merged, delete the temporary branch:
```bash
git push origin --delete screenshots-temp5. Gitignore screenshots locally
Screenshots are build artifacts — never commit them to feature branches:
# PR screenshots (hosted on temp branch, not committed to features)
screenshots/
docs/tests/screenshots/Examples
Example: Docs site PR with 3 pages
- Start dev server:
cd docs && npm run dev - Run Playwright tests (they capture screenshots as a side effect)
- Push screenshots to
screenshots-tempbranch - Update PR body with embedded
![...]()image references - Reviewer sees the pages inline without checking out the branch
Example: Reusing existing Playwright test screenshots
If tests at docs/tests/*.spec.mjs already save to docs/tests/screenshots/:
cd docs && npx playwright test tests/api-reference.spec.mjs
# Screenshots now at docs/tests/screenshots/*.png
# Push those to screenshots-temp and embed in PRAnti-Patterns
- ❌ Committing screenshots to feature branches — they bloat the repo and go stale
- ❌ Posting text descriptions instead of actual images — reviewers can't see what they're getting
- ❌ Using
ghCLI to "upload" images —gh issue commentandgh pr editdon't support binary uploads - ❌ Asking the user to manually drag-drop images — automate it with the temp branch pattern
- ❌ Skipping screenshots for visual PRs — if the PR changes what users see, show what users see
- ❌ Leaving the screenshots-temp branch around forever — clean up after merge
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

