[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M767378WMCA9X8VQ5K72CZ4G":3,"skill-same:01M767378WMCA9X8VQ5K72CZ4G":51},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":27,"commitSha":28,"skillDirectory":29,"forksCount":30,"repositoryHtmlUrl":31,"repositoryHomepageUrl":32,"ownerHtmlUrl":33,"ownerBlogUrl":34,"ownerDescription":35,"updatedAt":36,"install":37,"resources":50},"01M767378WMCA9X8VQ5K72CZ4G","pr-screenshots",null,"Capture Playwright screenshots and embed them in GitHub PR descriptions","github\u002Fsquad","github","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F9919?v=4","01M6AC83DS133TPXFSP1DHNCC6","GitHub","01M6X0MZ6B0WYMMDPK3Q61KER6",3391,"MIT","https:\u002F\u002Fgithub.com\u002Fgithub\u002Fsquad\u002Fblob\u002Fdev\u002Fplugins\u002Fsquad\u002Fskills\u002Fpr-screenshots\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\nname: \"pr-screenshots\"\ndescription: \"Capture Playwright screenshots and embed them in GitHub PR descriptions\"\ndomain: \"pull-requests, visual-review, docs, testing\"\nconfidence: \"high\"\nsource: \"earned (multiple sessions establishing the pattern for PR #11 TypeDoc API reference)\"\n---\n\u003C!-- Generated by Squad from the Squad SDK (claude-plugin.ts). Do not edit: run `node scripts\u002Fbuild-claude-plugin.mjs`. -->\n\n## Context\n\nWhen a PR includes visual changes (docs sites, UI components, generated pages), reviewers\nneed to see what the PR delivers without checking out the branch. Screenshots belong in\nthe **PR description body**, not as committed files and not as text descriptions.\n\nUse this skill whenever:\n- A PR touches docs site pages (Astro, Starlight, etc.)\n- A PR adds or changes UI components\n- A PR generates visual artifacts (TypeDoc, Storybook, diagrams)\n- Playwright tests already capture screenshots as part of testing\n\n## Patterns\n\n### 1. Capture screenshots with Playwright\n\nIf Playwright tests already exist and produce screenshots, reuse those. Otherwise,\nwrite a minimal capture script:\n\n```javascript\n\u002F\u002F scripts\u002Fcapture-pr-screenshots.mjs\nimport { chromium } from 'playwright';\n\nconst browser = await chromium.launch();\nconst page = await browser.newPage({ viewport: { width: 1280, height: 720 } });\n\nconst screenshots = [\n  { url: 'http:\u002F\u002Flocalhost:4321\u002Fpath\u002Fto\u002Fpage', name: 'feature-landing' },\n  { url: 'http:\u002F\u002Flocalhost:4321\u002Fpath\u002Fto\u002Fdetail', name: 'feature-detail' },\n];\n\nfor (const { url, name } of screenshots) {\n  await page.goto(url, { waitUntil: 'networkidle' });\n  await page.screenshot({ path: `screenshots\u002F${name}.png`, fullPage: false });\n}\n\nawait browser.close();\n```\n\n### 2. Host screenshots on a temporary branch\n\nGitHub PR descriptions render images via URLs. The `gh` CLI cannot upload binary\nimages directly. Use a temporary orphan branch to host the images:\n\n```powershell\n# Save current branch\n$currentBranch = git branch --show-current\n\n# Create orphan branch with only screenshot files\ngit checkout --orphan screenshots-temp\ngit reset\ngit add screenshots\u002F*.png\ngit commit -m \"screenshots for PR review\"\ngit push origin screenshots-temp --force\n\n# Build raw URLs\n$base = \"https:\u002F\u002Fraw.githubusercontent.com\u002F{owner}\u002F{repo}\u002Fscreenshots-temp\u002Fscreenshots\"\n# Each image: $base\u002F{name}.png\n\n# Return to working branch\ngit checkout -f $currentBranch\n```\n\n### 3. Embed in PR description\n\nUse `gh pr edit` with the raw URLs embedded as markdown images:\n\n```powershell\n$base = \"https:\u002F\u002Fraw.githubusercontent.com\u002F{owner}\u002F{repo}\u002Fscreenshots-temp\u002Fscreenshots\"\n\ngh pr edit {PR_NUMBER} --repo {owner}\u002F{repo} --body @\"\n## {PR Title}\n\n### What this PR delivers\n- {bullet points of changes}\n\n---\n\n### Screenshots\n\n#### {Page\u002FFeature Name}\n![{alt text}]($base\u002F{name}.png)\n\n#### {Another Page}\n![{alt text}]($base\u002F{another-name}.png)\n\n---\n\n### To verify locally\n```bash\n{commands to run locally}\n```\n\"@\n```\n\n### 4. Cleanup after merge\n\nAfter the PR is merged, delete the temporary branch:\n\n```bash\ngit push origin --delete screenshots-temp\n```\n\n### 5. Gitignore screenshots locally\n\nScreenshots are build artifacts — never commit them to feature branches:\n\n```gitignore\n# PR screenshots (hosted on temp branch, not committed to features)\nscreenshots\u002F\ndocs\u002Ftests\u002Fscreenshots\u002F\n```\n\n## Examples\n\n### Example: Docs site PR with 3 pages\n\n1. Start dev server: `cd docs && npm run dev`\n2. Run Playwright tests (they capture screenshots as a side effect)\n3. Push screenshots to `screenshots-temp` branch\n4. Update PR body with embedded `![...]()` image references\n5. Reviewer sees the pages inline without checking out the branch\n\n### Example: Reusing existing Playwright test screenshots\n\nIf tests at `docs\u002Ftests\u002F*.spec.mjs` already save to `docs\u002Ftests\u002Fscreenshots\u002F`:\n\n```powershell\ncd docs && npx playwright test tests\u002Fapi-reference.spec.mjs\n# Screenshots now at docs\u002Ftests\u002Fscreenshots\u002F*.png\n# Push those to screenshots-temp and embed in PR\n```\n\n## Anti-Patterns\n\n- ❌ **Committing screenshots to feature branches** — they bloat the repo and go stale\n- ❌ **Posting text descriptions instead of actual images** — reviewers can't see what they're getting\n- ❌ **Using `gh` CLI to \"upload\" images** — `gh issue comment` and `gh pr edit` don't support binary uploads\n- ❌ **Asking the user to manually drag-drop images** — automate it with the temp branch pattern\n- ❌ **Skipping screenshots for visual PRs** — if the PR changes what users see, show what users see\n- ❌ **Leaving the screenshots-temp branch around forever** — clean up after merge\n","\u003C!-- Generated by Squad from the Squad SDK (claude-plugin.ts). Do not edit: run `node scripts\u002Fbuild-claude-plugin.mjs`. -->\n\n## Context\n\nWhen a PR includes visual changes (docs sites, UI components, generated pages), reviewers\nneed to see what the PR delivers without checking out the branch. Screenshots belong in\nthe **PR description body**, not as committed files and not as text descriptions.\n\nUse this skill whenever:\n- A PR touches docs site pages (Astro, Starlight, etc.)\n- A PR adds or changes UI components\n- A PR generates visual artifacts (TypeDoc, Storybook, diagrams)\n- Playwright tests already capture screenshots as part of testing\n\n## Patterns\n\n### 1. Capture screenshots with Playwright\n\nIf Playwright tests already exist and produce screenshots, reuse those. Otherwise,\nwrite a minimal capture script:\n\n```javascript\n\u002F\u002F scripts\u002Fcapture-pr-screenshots.mjs\nimport { chromium } from 'playwright';\n\nconst browser = await chromium.launch();\nconst page = await browser.newPage({ viewport: { width: 1280, height: 720 } });\n\nconst screenshots = [\n  { url: 'http:\u002F\u002Flocalhost:4321\u002Fpath\u002Fto\u002Fpage', name: 'feature-landing' },\n  { url: 'http:\u002F\u002Flocalhost:4321\u002Fpath\u002Fto\u002Fdetail', name: 'feature-detail' },\n];\n\nfor (const { url, name } of screenshots) {\n  await page.goto(url, { waitUntil: 'networkidle' });\n  await page.screenshot({ path: `screenshots\u002F${name}.png`, fullPage: false });\n}\n\nawait browser.close();\n```\n\n### 2. Host screenshots on a temporary branch\n\nGitHub PR descriptions render images via URLs. The `gh` CLI cannot upload binary\nimages directly. Use a temporary orphan branch to host the images:\n\n```powershell\n# Save current branch\n$currentBranch = git branch --show-current\n\n# Create orphan branch with only screenshot files\ngit checkout --orphan screenshots-temp\ngit reset\ngit add screenshots\u002F*.png\ngit commit -m \"screenshots for PR review\"\ngit push origin screenshots-temp --force\n\n# Build raw URLs\n$base = \"https:\u002F\u002Fraw.githubusercontent.com\u002F{owner}\u002F{repo}\u002Fscreenshots-temp\u002Fscreenshots\"\n# Each image: $base\u002F{name}.png\n\n# Return to working branch\ngit checkout -f $currentBranch\n```\n\n### 3. Embed in PR description\n\nUse `gh pr edit` with the raw URLs embedded as markdown images:\n\n```powershell\n$base = \"https:\u002F\u002Fraw.githubusercontent.com\u002F{owner}\u002F{repo}\u002Fscreenshots-temp\u002Fscreenshots\"\n\ngh pr edit {PR_NUMBER} --repo {owner}\u002F{repo} --body @\"\n## {PR Title}\n\n### What this PR delivers\n- {bullet points of changes}\n\n---\n\n### Screenshots\n\n#### {Page\u002FFeature Name}\n![{alt text}]($base\u002F{name}.png)\n\n#### {Another Page}\n![{alt text}]($base\u002F{another-name}.png)\n\n---\n\n### To verify locally\n```bash\n{commands to run locally}\n```\n\"@\n```\n\n### 4. Cleanup after merge\n\nAfter the PR is merged, delete the temporary branch:\n\n```bash\ngit push origin --delete screenshots-temp\n```\n\n### 5. Gitignore screenshots locally\n\nScreenshots are build artifacts — never commit them to feature branches:\n\n```gitignore\n# PR screenshots (hosted on temp branch, not committed to features)\nscreenshots\u002F\ndocs\u002Ftests\u002Fscreenshots\u002F\n```\n\n## Examples\n\n### Example: Docs site PR with 3 pages\n\n1. Start dev server: `cd docs && npm run dev`\n2. Run Playwright tests (they capture screenshots as a side effect)\n3. Push screenshots to `screenshots-temp` branch\n4. Update PR body with embedded `![...]()` image references\n5. Reviewer sees the pages inline without checking out the branch\n\n### Example: Reusing existing Playwright test screenshots\n\nIf tests at `docs\u002Ftests\u002F*.spec.mjs` already save to `docs\u002Ftests\u002Fscreenshots\u002F`:\n\n```powershell\ncd docs && npx playwright test tests\u002Fapi-reference.spec.mjs\n# Screenshots now at docs\u002Ftests\u002Fscreenshots\u002F*.png\n# Push those to screenshots-temp and embed in PR\n```\n\n## Anti-Patterns\n\n- ❌ **Committing screenshots to feature branches** — they bloat the repo and go stale\n- ❌ **Posting text descriptions instead of actual images** — reviewers can't see what they're getting\n- ❌ **Using `gh` CLI to \"upload\" images** — `gh issue comment` and `gh pr edit` don't support binary uploads\n- ❌ **Asking the user to manually drag-drop images** — automate it with the temp branch pattern\n- ❌ **Skipping screenshots for visual PRs** — if the PR changes what users see, show what users see\n- ❌ **Leaving the screenshots-temp branch around forever** — clean up after merge\n",{"name":5,"domain":24,"source":25,"confidence":26,"description":7},"pull-requests, visual-review, docs, testing","earned (multiple sessions establishing the pattern for PR #11 TypeDoc API reference)","high","dev","699589d781f9d9dbb6d8b8c6214c93dc7b828dbd","plugins\u002Fsquad\u002Fskills\u002Fpr-screenshots",520,"https:\u002F\u002Fgithub.com\u002Fgithub\u002Fsquad","https:\u002F\u002Fgithub.github.io\u002Fsquad\u002F","https:\u002F\u002Fgithub.com\u002Fgithub","https:\u002F\u002Fgithub.com\u002Fabout","How people build software.","2026-11-15 02:13:59",{"source":8,"skillName":5,"commands":38,"prompt":48,"zipAvailable":49},[39,42,45],{"tool":40,"command":41},"npx","npx skills add github\u002Fsquad --skill pr-screenshots",{"tool":43,"command":44},"bunx","bunx skills add github\u002Fsquad --skill pr-screenshots",{"tool":46,"command":47},"pnpm","pnpm dlx skills add github\u002Fsquad --skill pr-screenshots","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fgithub\u002Fsquad\u002Fblob\u002Fdev\u002Fplugins\u002Fsquad\u002Fskills\u002Fpr-screenshots\u002FSKILL.md",true,[],[52,59,66,73,80,87],{"skillNo":53,"name":54,"nameZh":6,"description":55,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":56,"categories":57,"keywords":58,"publishedAt":19},"01M76752CVNE7K6NWD59CRAYNJ","windows-compatibility","Cross-platform path handling and command patterns","https:\u002F\u002Fgithub.com\u002Fgithub\u002Fsquad\u002Fblob\u002Fdev\u002Fplugins\u002Fsquad\u002Fskills\u002Fwindows-compatibility\u002FSKILL.md",[],[],{"skillNo":60,"name":61,"nameZh":6,"description":62,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":63,"categories":64,"keywords":65,"publishedAt":19},"01M767508W8A4G83NX1FKEW5VN","versioning-policy","SemVer rules for Squad's stable, preview, insider, and local package versions","https:\u002F\u002Fgithub.com\u002Fgithub\u002Fsquad\u002Fblob\u002Fdev\u002Fplugins\u002Fsquad\u002Fskills\u002Fversioning-policy\u002FSKILL.md",[],[],{"skillNo":67,"name":68,"nameZh":6,"description":69,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":70,"categories":71,"keywords":72,"publishedAt":19},"01M7674X5JJKNJ74B3SS8PGXG2","tiered-memory","Three-tier agent memory model (hot\u002Fcold\u002Fwiki) for context reduction per spawn","https:\u002F\u002Fgithub.com\u002Fgithub\u002Fsquad\u002Fblob\u002Fdev\u002Fplugins\u002Fsquad\u002Fskills\u002Ftiered-memory\u002FSKILL.md",[],[],{"skillNo":74,"name":75,"nameZh":6,"description":76,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":77,"categories":78,"keywords":79,"publishedAt":19},"01M7674V3S9H03A76H75M1KSAF","test-discipline","Design assertions that prove the actual contract and fail on realistic regressions","https:\u002F\u002Fgithub.com\u002Fgithub\u002Fsquad\u002Fblob\u002Fdev\u002Fplugins\u002Fsquad\u002Fskills\u002Ftest-discipline\u002FSKILL.md",[],[],{"skillNo":81,"name":82,"nameZh":6,"description":83,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":84,"categories":85,"keywords":86,"publishedAt":19},"01M7674QB8CA61RNDX2Z0NAK71","squad","Squad's command catalog and interactive menu. Invoke via \u002Fsquad (slash command) or natural language (\"squad commands\", \"what can squad do\", \"show me squad options\"). Presents categorized operations (Install & Upgrade, Team Management, Issues & PRs, Plugins & Skills, Model & Cost, Sessions & State) as an interactive picker. Routes to the right squad CLI command or the Squad coordinator agent.","https:\u002F\u002Fgithub.com\u002Fgithub\u002Fsquad\u002Fblob\u002Fdev\u002Fplugins\u002Fsquad\u002Fskills\u002Fsquad\u002FSKILL.md",[],[],{"skillNo":88,"name":89,"nameZh":6,"description":90,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":91,"categories":92,"keywords":93,"publishedAt":19},"01M7674KTQ632N30HQB1TP7TXH","squad-version-check","Internals of how @bradygaster\u002Fsquad-cli stamps its version, how `squad upgrade` works (what it preserves vs overwrites), and how to probe the npm registry for the latest version from a coordinator prompt.","https:\u002F\u002Fgithub.com\u002Fgithub\u002Fsquad\u002Fblob\u002Fdev\u002Fplugins\u002Fsquad\u002Fskills\u002Fsquad-version-check\u002FSKILL.md",[],[]]