Langsung ke konten
Skillpedia
Pemrograman umum6.9k Β· #13725

pr-visual-writeup

Fungsinya

Mengambil tangkapan layar dan klip gulir singkat dari halaman yang terdampak oleh sebuah perubahan, lalu menempatkannya di deskripsi pull request. Skill ini ditujukan untuk developer yang ingin peninjau melihat perubahan tanpa menjalankannya.

Kapan dipakai

  • βœ“Saat Anda ingin deskripsi pull request yang menyertakan tangkapan layar halaman yang berubah.
  • βœ“Saat peninjau perlu melihat perubahan visual sebelum pull request digabungkan.
  • βœ“Saat Anda ingin gambar sebelum dan sesudah di deskripsi pull request.

Link skill

https://github.com/hexclave/hexclave/blob/dev/.agents/skills/pr-visual-writeup/SKILL.md

Salin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.

Cara pakai

Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.

Pesan siap tempel

Gunakan skill ini untuk membantu saya: https://github.com/hexclave/hexclave/blob/dev/.agents/skills/pr-visual-writeup/SKILL.md Baca file SKILL.md di link tersebut dan ikuti instruksinya untuk tugas saya.
Mau AI Anda menemukan skill seperti ini sendiri?Pasang MCP Skillpedia gratis: cukup satu baris, dan AI mencari di antara 15.000+ skill sebelum tiap tugas.Pasang dalam 1 menit β†’

Contoh permintaan ke AI

β€œTambahkan tangkapan layar sebelum dan sesudah untuk tata letak dasbor baru ke deskripsi pull request saya.”

5 skill baru setiap minggu. 1 menit baca.

Cara kerjanya

Skill memeriksa perubahan kode, mengambil tangkapan halaman dari server pengembangan yang sedang berjalan dalam beberapa tema dan ukuran layar, mengunggah gambar ke gist GitHub, dan mengatur deskripsi pull request ke hasilnya.

Konten teknis (SKILL.md asli)

Teks asli dari pembuat, dalam bahasa Inggris, langsung dari 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.

  1. Scope β€” figure out which PR, which routes, which dev server, which auth, which selectors are new UI
  2. 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.
  3. Process (parallel) β€” convert scroll videos β†’ GIFs (inline-playable), prep gist
  4. Upload β€” one gist, one commit, all files; get raw URLs
  5. Compose + set β€” markdown body with before/after tables, then gh pr edit --body-file
  6. Restore β€” git checkout <orig-branch> + git stash pop so 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-only and 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 node and curl -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 baseRefName gives you the base branch (usually dev or main). 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.

Pertanyaan umum

Apakah ia memakai login browser saya?

Tidak. Skill hanya memakai token GitHub dan tidak memakai cookie browser.

Apakah ia mengubah file kerja saya?

Skill memulihkan pohon kerja Anda di akhir, dan mengembalikan Anda ke cabang tempat Anda memulai.

Bisakah ia mengambil halaman yang memerlukan login?

Skill merencanakan autentikasi saat menyiapkan tangkapan, sehingga halaman di balik login dapat disertakan.

Detail

Deskripsi asli dari pembuat

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

Popularitas

Bintang GitHub
6.9k
Peringkat
#13725
Lisensi
β€”
Diperbarui
2/11/2026

Apakah skill ini berguna?

0

Masuk untuk memberi suara.

Komentar

  • …

Skill lain dari repositori ini

Skill serupa