pr-visual-writeup
Skill này làm gì
Chụp ảnh màn hình và các đoạn cuộn ngắn của các trang bị thay đổi, rồi đặt chúng vào mô tả pull request. Nó dành cho nhà phát triển muốn người review thấy thay đổi mà không cần chạy nó.
Khi nào nên dùng
- ✓Khi bạn muốn mô tả pull request có ảnh chụp màn hình của các trang đã thay đổi.
- ✓Khi người review cần thấy một thay đổi trực quan trước khi pull request được hợp nhất.
- ✓Khi bạn muốn ảnh trước và sau trong mô tả pull request.
Liên kết skill
https://github.com/hexclave/hexclave/blob/dev/.agents/skills/pr-visual-writeup/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Thêm ảnh chụp trước và sau của bố cục bảng điều khiển mới vào mô tả pull request của tôi.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Skill kiểm tra các thay đổi mã, chụp các trang từ máy chủ phát triển đang chạy theo nhiều chủ đề và kích thước màn hình, tải ảnh lên một gist GitHub, rồi đặt mô tả pull request thành kết quả đó.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
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.
Câu hỏi thường gặp
Nó có dùng đăng nhập trình duyệt của tôi không?
Không. Skill chỉ dùng token GitHub và không dùng cookie của trình duyệt.
Nó có thay đổi các tệp đang làm việc của tôi không?
Skill khôi phục cây làm việc (working tree) của bạn khi kết thúc, đưa bạn về nhánh bạn đã bắt đầu.
Nó có chụp được các trang cần đăng nhập không?
Skill lên kế hoạch xác thực khi thiết lập việc chụp, nên các trang sau đăng nhập vẫn có thể được đưa vào.
Chi tiết
Mô tả gốc của tác giả
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
Độ phổ biến
- Sao GitHub
- 6.9k
- Vị trí xếp hạng
- #13725
- Giấy phép
- —
- Cập nhật
- 2/11/2026
Bình luận
- …
Thêm skill từ kho mã này
roids
6.9kCho phép agent của bạn hiển thị từ hai đến năm phương án bố cục trong bản xem trước trên trình duyệt, để bạn so sánh cạnh nhau và chọn một.
hexclave
6.9kCho phép agent của bạn lấy hướng dẫn hiện tại của Hexclave cho tài khoản người dùng, đăng nhập, thanh toán, email, phân tích và công cụ dòng lệnh của nó.
Skill tương tự
diffs
394kGiúp agent của bạn tạo một diff có thể chia sẻ về các chỉnh sửa, dưới dạng liên kết xem hoặc file ảnh, thay vì một bản tóm tắt viết tay.
coding-agent
394kGiúp agent của bạn giao một việc lập trình lớn cho Codex, Claude Code hoặc OpenCode chạy nền, rồi theo dõi tiến độ của nó.
gh-issues
394kGiúp agent của bạn tìm issue trên GitHub, chọn những issue cần xử lý và mở pull request với bản sửa, kể cả theo dõi nhận xét đánh giá.