Standard collaboration patterns for all squad agents — worktree awareness, decisions, cross-agent communication
한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.
Capture Playwright screenshots and embed them in GitHub PR descriptions
한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.
설치 방법 보기설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.
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:
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();
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 $currentBranch
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-temp
Screenshots are build artifacts — never commit them to feature branches:
# PR screenshots (hosted on temp branch, not committed to features)
screenshots/
docs/tests/screenshots/
cd docs && npm run devscreenshots-temp branch![...]() image referencesIf 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 PR
gh CLI to "upload" images — gh issue comment and gh pr edit don't support binary uploads아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.
로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.
아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.
Standard collaboration patterns for all squad agents — worktree awareness, decisions, cross-agent communication
한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.
Shared hard rules enforced across all squad agents
한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.
Route gh-aw design, creation, diagnosis, patching, active debugging, and upgrade requests to the right strategies.
한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.
How to write comprehensive architectural proposals that drive alignment before code is written
한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.
Upgrade gh-aw to latest gh-aw-firewall release and identify follow-up spec tasks.
한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.
Review code that performs git or gh operations against repository checkouts in gh-aw, checking that the right credentials are available at the right time and that sparseness, shallowness and credential-free factors are properly considered.
한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.