pr-screenshots

Featured

Capture Playwright screenshots and embed them in GitHub PR descriptions

AI & Automation 60 stars 17 forks Updated 6 days ago MIT

Install

View on GitHub

Quality Score: 89/100

Stars 20%
59
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

## 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: ```javascript // 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 orpha...

Details

Author
DanWahlin
Repository
DanWahlin/ai-agent-board
Created
7 months ago
Last Updated
6 days ago
Language
TypeScript
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category

AI & Automation Solid

michel-create-pr-with-screenshots

Best practices for creating GitHub pull requests that include inline images — CLI terminal screenshots (from cli-demo-recorder), UI screenshots/videos (from ui-demo-recorder), or any other visual artifact. Use this skill whenever opening or updating a PR that has visual artifacts to embed, or when images aren't rendering in a PR description. Also use it when asked "how do I add screenshots to a PR", "why isn't my image showing", or "embed a demo in the PR".

314 Updated yesterday
PackmindHub
AI & Automation Listed

capture-pr-screenshots

Use when opening or updating a PR that changes a UI route file (`page.tsx`, `+page.svelte`, a `routes/` entry) without adding a matching screenshot. Also fire when the user says "missing screenshot" / "no screenshot for the UI" / "capture the screenshot" / "screenshot for this PR" / "you forgot the screenshot". Skip on a backend-only PR, or one that already includes screenshots for the surfaces it changes. Where the repo documents its own capture command, run that instead — this skill is the fallback for repos that document nothing.

1 Updated today
damson
Web & Frontend Listed

ui-screenshots

Capture screenshots and short clips of any web application's UI for visual review, documentation, or pull requests. Use for screenshot requests, before/after comparisons, recording UI interactions, and preparing or attaching visual evidence of a UI change. Adapt to the application's framework, authentication, tooling, and delivery destination.

1 Updated 1 weeks ago
itsjavi