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のトークンだけを使い、ブラウザのCookieは使いません。
作業ファイルを変更しますか?
スキルは最後に作業ツリーを元に戻し、開始したブランチに戻します。
サインインが必要なページも撮れますか?
スキルは、撮影を設定する時点で認証を計画するため、ログインの裏にあるページも含められます。
詳細
作者による元の説明
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
コメント
- …
このリポジトリの他のスキル
roids
6.9kエージェントが、ブラウザのプレビューで2〜5個のレイアウトの候補を示せるようにし、並べて比べて1つを選べるようにします。
hexclave
6.9kエージェントが、利用者アカウント、サインイン、支払い、メール、分析、そしてコマンドラインツールについて、Hexclaveの最新の手順を取得できるようにします。
似ているスキル
diffs
394k編集内容の実際の共有可能な差分を、手書きの要約ではなく、ビューアーのリンクや画像ファイルとして作成するようエージェントを支援します。
coding-agent
394kCodex、Claude Code、OpenCodeに大きめのコーディング作業をバックグラウンドのワーカーとして渡し、その進捗を確認するようエージェントを支援します。
gh-issues
394kGitHubのイシューを探し、取り組むものを選び、修正を含むプルリクエストを開くようエージェントを支援します。レビューコメントへの対応も含みます。