[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6ADAWDQYDXQ0158C49K36GG":3,"skill-same:01M6ADAWDQYDXQ0158C49K36GG":85},{"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":23,"publishedAt":44,"linkOnly":45,"markdownContent":46,"markdownBody":47,"frontMatter":48,"refName":51,"commitSha":52,"skillDirectory":53,"forksCount":54,"repositoryHtmlUrl":55,"repositoryHomepageUrl":56,"ownerHtmlUrl":57,"ownerBlogUrl":58,"ownerDescription":59,"updatedAt":60,"install":61,"resources":74},"01M6ADAWDQYDXQ0158C49K36GG","pr-screenshots",null,"Capture Playwright screenshots and embed them in GitHub PR descriptions","github\u002Fgh-aw","github","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F9919?v=4","01M6AC83DS133TPXFSP1DHNCC6","GitHub","01M6AD3VCZ4WKQSFSRTPN7N9DN",5636,"MIT","https:\u002F\u002Fgithub.com\u002Fgithub\u002Fgh-aw\u002Fblob\u002Fmain\u002F.squad\u002Ftemplates\u002Fskills\u002Fpr-screenshots\u002FSKILL.md",[18],{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000008","测试与质量","SCENARIO","使用场景",[24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,9,42,43],"screenshots","pr","pr screenshots","for","testing","high","typedoc","requests","visual-review","embed","visual","pattern","github pr","api","pull","pull-requests","sessions","playwright","docs","review","2026-11-10 10:12:30",false,"---\r\nname: \"pr-screenshots\"\r\ndescription: \"Capture Playwright screenshots and embed them in GitHub PR descriptions\"\r\ndomain: \"pull-requests, visual-review, docs, testing\"\r\nconfidence: \"high\"\r\nsource: \"earned (multiple sessions establishing the pattern for PR #11 TypeDoc API reference)\"\r\n---\r\n\r\n## Context\r\n\r\nWhen a PR includes visual changes (docs sites, UI components, generated pages), reviewers\r\nneed to see what the PR delivers without checking out the branch. Screenshots belong in\r\nthe **PR description body**, not as committed files and not as text descriptions.\r\n\r\nUse this skill whenever:\r\n- A PR touches docs site pages (Astro, Starlight, etc.)\r\n- A PR adds or changes UI components\r\n- A PR generates visual artifacts (TypeDoc, Storybook, diagrams)\r\n- Playwright tests already capture screenshots as part of testing\r\n\r\n## Patterns\r\n\r\n### 1. Capture screenshots with Playwright\r\n\r\nIf Playwright tests already exist and produce screenshots, reuse those. Otherwise,\r\nwrite a minimal capture script:\r\n\r\n```javascript\r\n\u002F\u002F scripts\u002Fcapture-pr-screenshots.mjs\r\nimport { chromium } from 'playwright';\r\n\r\nconst browser = await chromium.launch();\r\nconst page = await browser.newPage({ viewport: { width: 1280, height: 720 } });\r\n\r\nconst screenshots = [\r\n  { url: 'http:\u002F\u002Flocalhost:4321\u002Fpath\u002Fto\u002Fpage', name: 'feature-landing' },\r\n  { url: 'http:\u002F\u002Flocalhost:4321\u002Fpath\u002Fto\u002Fdetail', name: 'feature-detail' },\r\n];\r\n\r\nfor (const { url, name } of screenshots) {\r\n  await page.goto(url, { waitUntil: 'networkidle' });\r\n  await page.screenshot({ path: `screenshots\u002F${name}.png`, fullPage: false });\r\n}\r\n\r\nawait browser.close();\r\n```\r\n\r\n### 2. Host screenshots on a temporary branch\r\n\r\nGitHub PR descriptions render images via URLs. The `gh` CLI cannot upload binary\r\nimages directly. Use a temporary orphan branch to host the images:\r\n\r\n```powershell\r\n# Save current branch\r\n$currentBranch = git branch --show-current\r\n\r\n# Create orphan branch with only screenshot files\r\ngit checkout --orphan screenshots-temp\r\ngit reset\r\ngit add screenshots\u002F*.png\r\ngit commit -m \"screenshots for PR review\"\r\ngit push origin screenshots-temp --force\r\n\r\n# Build raw URLs\r\n$base = \"https:\u002F\u002Fraw.githubusercontent.com\u002F{owner}\u002F{repo}\u002Fscreenshots-temp\u002Fscreenshots\"\r\n# Each image: $base\u002F{name}.png\r\n\r\n# Return to working branch\r\ngit checkout -f $currentBranch\r\n```\r\n\r\n### 3. Embed in PR description\r\n\r\nUse `gh pr edit` with the raw URLs embedded as markdown images:\r\n\r\n```powershell\r\n$base = \"https:\u002F\u002Fraw.githubusercontent.com\u002F{owner}\u002F{repo}\u002Fscreenshots-temp\u002Fscreenshots\"\r\n\r\ngh pr edit {PR_NUMBER} --repo {owner}\u002F{repo} --body @\"\r\n## {PR Title}\r\n\r\n### What this PR delivers\r\n- {bullet points of changes}\r\n\r\n---\r\n\r\n### Screenshots\r\n\r\n#### {Page\u002FFeature Name}\r\n![{alt text}]($base\u002F{name}.png)\r\n\r\n#### {Another Page}\r\n![{alt text}]($base\u002F{another-name}.png)\r\n\r\n---\r\n\r\n### To verify locally\r\n```bash\r\n{commands to run locally}\r\n```\r\n\"@\r\n```\r\n\r\n### 4. Cleanup after merge\r\n\r\nAfter the PR is merged, delete the temporary branch:\r\n\r\n```bash\r\ngit push origin --delete screenshots-temp\r\n```\r\n\r\n### 5. Gitignore screenshots locally\r\n\r\nScreenshots are build artifacts — never commit them to feature branches:\r\n\r\n```gitignore\r\n# PR screenshots (hosted on temp branch, not committed to features)\r\nscreenshots\u002F\r\ndocs\u002Ftests\u002Fscreenshots\u002F\r\n```\r\n\r\n## Examples\r\n\r\n### Example: Docs site PR with 3 pages\r\n\r\n1. Start dev server: `cd docs && npm run dev`\r\n2. Run Playwright tests (they capture screenshots as a side effect)\r\n3. Push screenshots to `screenshots-temp` branch\r\n4. Update PR body with embedded `![...]()` image references\r\n5. Reviewer sees the pages inline without checking out the branch\r\n\r\n### Example: Reusing existing Playwright test screenshots\r\n\r\nIf tests at `docs\u002Ftests\u002F*.spec.mjs` already save to `docs\u002Ftests\u002Fscreenshots\u002F`:\r\n\r\n```powershell\r\ncd docs && npx playwright test tests\u002Fapi-reference.spec.mjs\r\n# Screenshots now at docs\u002Ftests\u002Fscreenshots\u002F*.png\r\n# Push those to screenshots-temp and embed in PR\r\n```\r\n\r\n## Anti-Patterns\r\n\r\n- ❌ **Committing screenshots to feature branches** — they bloat the repo and go stale\r\n- ❌ **Posting text descriptions instead of actual images** — reviewers can't see what they're getting\r\n- ❌ **Using `gh` CLI to \"upload\" images** — `gh issue comment` and `gh pr edit` don't support binary uploads\r\n- ❌ **Asking the user to manually drag-drop images** — automate it with the temp branch pattern\r\n- ❌ **Skipping screenshots for visual PRs** — if the PR changes what users see, show what users see\r\n- ❌ **Leaving the screenshots-temp branch around forever** — clean up after merge\r\n","## Context\r\n\r\nWhen a PR includes visual changes (docs sites, UI components, generated pages), reviewers\r\nneed to see what the PR delivers without checking out the branch. Screenshots belong in\r\nthe **PR description body**, not as committed files and not as text descriptions.\r\n\r\nUse this skill whenever:\r\n- A PR touches docs site pages (Astro, Starlight, etc.)\r\n- A PR adds or changes UI components\r\n- A PR generates visual artifacts (TypeDoc, Storybook, diagrams)\r\n- Playwright tests already capture screenshots as part of testing\r\n\r\n## Patterns\r\n\r\n### 1. Capture screenshots with Playwright\r\n\r\nIf Playwright tests already exist and produce screenshots, reuse those. Otherwise,\r\nwrite a minimal capture script:\r\n\r\n```javascript\r\n\u002F\u002F scripts\u002Fcapture-pr-screenshots.mjs\r\nimport { chromium } from 'playwright';\r\n\r\nconst browser = await chromium.launch();\r\nconst page = await browser.newPage({ viewport: { width: 1280, height: 720 } });\r\n\r\nconst screenshots = [\r\n  { url: 'http:\u002F\u002Flocalhost:4321\u002Fpath\u002Fto\u002Fpage', name: 'feature-landing' },\r\n  { url: 'http:\u002F\u002Flocalhost:4321\u002Fpath\u002Fto\u002Fdetail', name: 'feature-detail' },\r\n];\r\n\r\nfor (const { url, name } of screenshots) {\r\n  await page.goto(url, { waitUntil: 'networkidle' });\r\n  await page.screenshot({ path: `screenshots\u002F${name}.png`, fullPage: false });\r\n}\r\n\r\nawait browser.close();\r\n```\r\n\r\n### 2. Host screenshots on a temporary branch\r\n\r\nGitHub PR descriptions render images via URLs. The `gh` CLI cannot upload binary\r\nimages directly. Use a temporary orphan branch to host the images:\r\n\r\n```powershell\r\n# Save current branch\r\n$currentBranch = git branch --show-current\r\n\r\n# Create orphan branch with only screenshot files\r\ngit checkout --orphan screenshots-temp\r\ngit reset\r\ngit add screenshots\u002F*.png\r\ngit commit -m \"screenshots for PR review\"\r\ngit push origin screenshots-temp --force\r\n\r\n# Build raw URLs\r\n$base = \"https:\u002F\u002Fraw.githubusercontent.com\u002F{owner}\u002F{repo}\u002Fscreenshots-temp\u002Fscreenshots\"\r\n# Each image: $base\u002F{name}.png\r\n\r\n# Return to working branch\r\ngit checkout -f $currentBranch\r\n```\r\n\r\n### 3. Embed in PR description\r\n\r\nUse `gh pr edit` with the raw URLs embedded as markdown images:\r\n\r\n```powershell\r\n$base = \"https:\u002F\u002Fraw.githubusercontent.com\u002F{owner}\u002F{repo}\u002Fscreenshots-temp\u002Fscreenshots\"\r\n\r\ngh pr edit {PR_NUMBER} --repo {owner}\u002F{repo} --body @\"\r\n## {PR Title}\r\n\r\n### What this PR delivers\r\n- {bullet points of changes}\r\n\r\n---\r\n\r\n### Screenshots\r\n\r\n#### {Page\u002FFeature Name}\r\n![{alt text}]($base\u002F{name}.png)\r\n\r\n#### {Another Page}\r\n![{alt text}]($base\u002F{another-name}.png)\r\n\r\n---\r\n\r\n### To verify locally\r\n```bash\r\n{commands to run locally}\r\n```\r\n\"@\r\n```\r\n\r\n### 4. Cleanup after merge\r\n\r\nAfter the PR is merged, delete the temporary branch:\r\n\r\n```bash\r\ngit push origin --delete screenshots-temp\r\n```\r\n\r\n### 5. Gitignore screenshots locally\r\n\r\nScreenshots are build artifacts — never commit them to feature branches:\r\n\r\n```gitignore\r\n# PR screenshots (hosted on temp branch, not committed to features)\r\nscreenshots\u002F\r\ndocs\u002Ftests\u002Fscreenshots\u002F\r\n```\r\n\r\n## Examples\r\n\r\n### Example: Docs site PR with 3 pages\r\n\r\n1. Start dev server: `cd docs && npm run dev`\r\n2. Run Playwright tests (they capture screenshots as a side effect)\r\n3. Push screenshots to `screenshots-temp` branch\r\n4. Update PR body with embedded `![...]()` image references\r\n5. Reviewer sees the pages inline without checking out the branch\r\n\r\n### Example: Reusing existing Playwright test screenshots\r\n\r\nIf tests at `docs\u002Ftests\u002F*.spec.mjs` already save to `docs\u002Ftests\u002Fscreenshots\u002F`:\r\n\r\n```powershell\r\ncd docs && npx playwright test tests\u002Fapi-reference.spec.mjs\r\n# Screenshots now at docs\u002Ftests\u002Fscreenshots\u002F*.png\r\n# Push those to screenshots-temp and embed in PR\r\n```\r\n\r\n## Anti-Patterns\r\n\r\n- ❌ **Committing screenshots to feature branches** — they bloat the repo and go stale\r\n- ❌ **Posting text descriptions instead of actual images** — reviewers can't see what they're getting\r\n- ❌ **Using `gh` CLI to \"upload\" images** — `gh issue comment` and `gh pr edit` don't support binary uploads\r\n- ❌ **Asking the user to manually drag-drop images** — automate it with the temp branch pattern\r\n- ❌ **Skipping screenshots for visual PRs** — if the PR changes what users see, show what users see\r\n- ❌ **Leaving the screenshots-temp branch around forever** — clean up after merge\r\n",{"name":5,"domain":49,"source":50,"confidence":29,"description":7},"pull-requests, visual-review, docs, testing","earned (multiple sessions establishing the pattern for PR #11 TypeDoc API reference)","main","8541229759617347888641eba917d3b0ad66a984",".squad\u002Ftemplates\u002Fskills\u002Fpr-screenshots",626,"https:\u002F\u002Fgithub.com\u002Fgithub\u002Fgh-aw","https:\u002F\u002Fgh.io\u002Fgh-aw","https:\u002F\u002Fgithub.com\u002Fgithub","https:\u002F\u002Fgithub.com\u002Fabout","How people build software.","2026-11-15 06:45:15",{"source":8,"skillName":5,"commands":62,"prompt":72,"zipAvailable":73},[63,66,69],{"tool":64,"command":65},"npx","npx skills add github\u002Fgh-aw --skill pr-screenshots",{"tool":67,"command":68},"bunx","bunx skills add github\u002Fgh-aw --skill pr-screenshots",{"tool":70,"command":71},"pnpm","pnpm dlx skills add github\u002Fgh-aw --skill pr-screenshots","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fgithub\u002Fgh-aw\u002Fblob\u002Fmain\u002F.squad\u002Ftemplates\u002Fskills\u002Fpr-screenshots\u002FSKILL.md",true,[75,81],{"path":76,"resourceType":77,"resourceTypeDesc":78,"sizeBytes":79,"sourceHtmlUrl":80},"agents\u002Fopenai.yaml","REFERENCE","参考文档",137,"https:\u002F\u002Fgithub.com\u002Ftdortman\u002Fdotfiles\u002Fblob\u002Fmain\u002Fhome\u002Fdot_agents\u002Fskills\u002Fask-matt\u002Fagents\u002Fopenai.yaml",{"path":82,"resourceType":77,"resourceTypeDesc":78,"sizeBytes":83,"sourceHtmlUrl":84},"PHASE-BOUNDARIES.md",4249,"https:\u002F\u002Fgithub.com\u002Ftdortman\u002Fdotfiles\u002Fblob\u002Fmain\u002Fhome\u002Fdot_agents\u002Fskills\u002Fask-matt\u002FPHASE-BOUNDARIES.md",[86,94,102,128,145,169],{"skillNo":87,"name":88,"nameZh":6,"description":89,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":90,"categories":91,"keywords":92,"publishedAt":93},"01M7DQYVZ9W9DDXKQ9452SNP8J","cracktro","Edit, preview, and verify the standalone interactive talk deck in docs\u002Fpublic\u002Fcracktro (slides, SVG diagrams, transitions, WebAudio sound).","https:\u002F\u002Fgithub.com\u002Fgithub\u002Fgh-aw\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fcracktro\u002FSKILL.md",[],[],"2026-11-15 14:19:17",{"skillNo":95,"name":96,"nameZh":6,"description":97,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":98,"categories":99,"keywords":100,"publishedAt":101},"01M7612HQ4378TK8QZ5HPAF4KR","create-connector","Create or extend a declaration-only third-party connector, with narrow reads, separate safe outputs, optional protected triggers, and offline conformance evidence.","https:\u002F\u002Fgithub.com\u002Fgithub\u002Fgh-aw\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fcreate-connector\u002FSKILL.md",[],[],"2026-11-12 13:55:43",{"skillNo":103,"name":104,"nameZh":6,"description":105,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":106,"categories":107,"keywords":114,"publishedAt":44},"01M6ADC942STTXHFV410J4DH0X","GitHub Agentic Workflows","GitHub Agentic Workflows (`gh-aw`) is a GitHub CLI extension for writing Agentic Workflows in markdown and compiling them to GitHub Actions.","https:\u002F\u002Fgithub.com\u002Fgithub\u002Fgh-aw\u002Fblob\u002Fmain\u002FSKILL.md",[108,111],{"categoryNo":109,"categoryName":110,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000011","运维与部署",{"categoryNo":112,"categoryName":113,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000023","Skill与智能体开发",[9,115,116,117,118,119,120,121,122,123,27,124,125,126,127],"github agentic workflows","agentic workflows","workflows","agentic","extension","markdown","github cli","cli","gh","compiling","writing","github actions","actions",{"skillNo":129,"name":130,"nameZh":6,"description":131,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":132,"categories":133,"keywords":134,"publishedAt":44},"01M6ADC6ZXSA46N9XD6VNAP1MS","windows-compatibility","Cross-platform path handling and command patterns","https:\u002F\u002Fgithub.com\u002Fgithub\u002Fgh-aw\u002Fblob\u002Fmain\u002F.squad\u002Ftemplates\u002Fskills\u002Fwindows-compatibility\u002FSKILL.md",[],[135,136,137,138,139,140,141,29,142,143,144],"windows","windows compatibility","compatibility","command","git","bugs","platform","patterns","cross-platform","path",{"skillNo":146,"name":147,"nameZh":6,"description":148,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":149,"categories":150,"keywords":151,"publishedAt":44},"01M6ADC44957SVQF96R5YY247P","versioning-policy","Semver versioning rules for Squad SDK and CLI — prevents prerelease version incidents","https:\u002F\u002Fgithub.com\u002Fgithub\u002Fgh-aw\u002Fblob\u002Fmain\u002F.squad\u002Ftemplates\u002Fskills\u002Fversioning-policy\u002FSKILL.md",[],[152,153,154,155,156,122,157,25,158,159,160,161,162,163,27,164,165,166,167,168],"versioning","policy","versioning policy","gate","implementation","workspace","sdk","release","ci","npm","semver","squad","incident","incidents","Rules","version","resolution",{"skillNo":170,"name":171,"nameZh":6,"description":172,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":173,"categories":174,"keywords":179,"publishedAt":44},"01M6ADC1PHMEAEVR87F8PDR89X","tiered-memory","Three-tier agent memory model (hot\u002Fcold\u002Fwiki) for context reduction per spawn","https:\u002F\u002Fgithub.com\u002Fgithub\u002Fgh-aw\u002Fblob\u002Fmain\u002F.squad\u002Ftemplates\u002Fskills\u002Ftiered-memory\u002FSKILL.md",[175,178],{"categoryNo":176,"categoryName":177,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000015","视觉设计",{"categoryNo":112,"categoryName":113,"taxonomyType":21,"taxonomyTypeDesc":22},[180,181,182,183,184,185,186,187,188,189,190,191,192,27,193,194],"tiered memory","memory","performance","design","agent memory","proposal","cold","model","wiki","spawn","memory-management","context","three","runtime","management"]