pr-visual-writeup
하는 일
변경과 관련된 페이지의 스크린샷과 짧은 스크롤 영상을 찍어 풀 리퀘스트 설명에 넣습니다. 리뷰어가 직접 실행하지 않고도 변경을 볼 수 있게 하려는 개발자를 위한 스킬입니다.
사용하는 경우
- ✓바뀐 페이지의 스크린샷이 들어간 풀 리퀘스트 설명이 필요할 때.
- ✓병합 전에 리뷰어가 시각적 변경을 확인해야 할 때.
- ✓풀 리퀘스트 설명에 변경 전과 후 이미지를 넣고 싶을 때.
스킬 링크
https://github.com/hexclave/hexclave/blob/dev/.agents/skills/pr-visual-writeup/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“풀 리퀘스트 설명에 새 대시보드 레이아웃의 변경 전후 스크린샷을 추가해 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
스킬은 코드 변경을 살펴보고, 실행 중인 개발 서버에서 여러 테마와 화면 크기로 페이지를 캡처합니다. 그 이미지를 GitHub gist에 올리고, 풀 리퀘스트 설명을 그 결과로 설정합니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
pr-visual-writeup
Turn a PR into a visual writeup: inspect the diff, capture screenshots + scroll animations from a local dev server across themes and viewports in parallel, host everything in a GitHub gist (PAT-only, no browser cookies), compose a rich markdown body, and set it as the PR description.
When this triggers
- "make me a pr description with screenshots / gifs / videos"
- "pr writeup with visuals"
- "generate pr body from the running dev server"
- "screenshot all the pages this PR changes and put them in the description"
If the user only wants a text-only PR description, don't use this skill — it's for visual-heavy writeups.
The shape of the work
Six phases. Phases 2 and 3 are the parallel-heavy ones — lean on subagents there. Phase 6 is the cleanup that puts the user's working tree back.
- Scope — figure out which PR, which routes, which dev server, which auth, which selectors are new UI
- Capture — "after" pass first (parallel: page × theme × viewport, red borders on new UI), then stash + checkout base + capture "before" pass against the same dev server.
- Process (parallel) — convert scroll videos → GIFs (inline-playable), prep gist
- Upload — one gist, one commit, all files; get raw URLs
- Compose + set — markdown body with before/after tables, then
gh pr edit --body-file - Restore —
git checkout <orig-branch>+git stash popso the user's working tree is exactly where they left it
Phase 1 — Scope
Before you capture anything, know:
- PR number + repo —
gh pr view <N> --json baseRefName,headRefName,title,url - Changed UI routes —
gh pr diff <N> --name-onlyand filter for page/route files. For Next.js look for**/page*.tsx/**/*page-client.tsx. Map route files to URL paths based on the app router convention. Ignore changes purely in backend / shared components unless they have an obvious UI surface. - Dev server port —
lsof -iTCP -sTCP:LISTEN -P -n | grep nodeandcurl -s http://localhost:<port>/ | grep -oE '<title>[^<]+</title>'to identify which port is the dashboard vs. API vs. docs vs. mock-OAuth. - Auth flow — if the app requires login, inspect the sign-in page for the OAuth provider to use, and ask the user (or infer from context) which dev account to sign in as. Mock OAuth servers typically accept any email.
- New-UI selectors — for each changed route, derive a list of CSS selectors that point to the UI elements added or visibly modified in this PR. Read the diff for that route's component file(s), pick stable selectors (
data-testid, semantic role, unique class, or a:has()text match) for each new/changed block. These selectors drive the red-border highlight pass on "after" captures. If a route has no visually changed elements (only behavior/copy refactor), record[]and skip highlighting for that route. - Base ref for "before" —
gh pr view <N> --json baseRefNamegives you the base branch (usuallydevormain). The "before" pass swaps the working tree to that ref under the same dev server — see Phase 2. Skip the before pass entirely if the user says "after only" or if every route is greenfield. - Working-tree state —
git status --porcelain. If there are uncommitted changes, they need to be stashed before the base checkout. Record whether a stash will be needed and the current branch name so you can restore exactly.
Record all of these in /tmp/pr-<N>-visuals/scope.md — the Phase 2 subagents need them.
Phase 2 — Capture
Two ordered passes against a single dev server. The "after" pass runs first while the head branch is checked out; then we swap the working tree to the base ref (same server, same port, HMR rebuilds) and run the "before" pass.
Pass 1 — "after" (parallel)
The head branch is already checked out and the dev server is already running, so this is just the parallel matrix you started with.
Spawn one subagent per (theme, viewport) combination. Each owns a named agent-browser session, authenticates once, captures every page in its slice with red borders injected on new-UI selectors, and returns the output directory.
after-light-standard(1920×1200, theme=light, red borders on)after-dark-standard(1920×1200, theme=dark, red borders on)after-light-wide/after-dark-wide(2560×1440, flagship pages only)
Issue all Agent calls in one assistant message so they run concurrently. Unique --session-name per agent.
**Red borders.
자주 묻는 질문
제 브라우저 로그인을 쓰나요?
아니요. 스킬은 GitHub 토큰만 쓰며 브라우저 쿠키는 사용하지 않습니다.
작업 파일을 바꾸나요?
스킬은 끝날 때 작업 트리를 복원해, 시작했던 브랜치로 돌려놓습니다.
로그인이 필요한 페이지도 캡처할 수 있나요?
네. 스킬은 캡처를 설정할 때 인증을 고려하므로, 로그인 뒤의 페이지도 포함할 수 있습니다.
상세 정보
작성자의 원본 설명
Generate a rich GitHub PR description with dashboard/web-UI screenshots and scrolling animations captured from a running dev server, hosted as a GitHub gist, and pushed to the PR via `gh pr edit`. Use this skill whenever the user asks to "make a PR description with screenshots", "write up a PR with visuals", "add screenshots to my PR", "PR description with GIFs / demo / scroll animations", or anything involving turning a code PR into a visual-heavy writeup. Also triggers on phrases like "ship a PR writeup", "PR body with light and dark mode screenshots", "visual PR review", "generate PR body f
repo: hexclave/hexclave
인기도
- GitHub 스타
- 6.9k
- 순위
- #13725
- 라이선스
- —
- 업데이트
- 2026. 11. 2.
댓글
- …