visual-pr
Skill này làm gì
Skill này dạy agent cách viết mô tả pull request để người review đọc nhanh. Mô tả giải thích lý do thay đổi và cấu trúc triển khai, và skill tạo pull request nếu chưa có.
Khi nào nên dùng
- ✓Khi lập trình viên đã hoàn thành một thay đổi và cần mô tả pull request rõ ràng.
- ✓Khi mô tả pull request có sẵn đã lỗi thời sau các commit mới.
- ✓Khi người dùng yêu cầu một sơ đồ tóm tắt trực quan về những gì đã thay đổi trong pull request.
Liên kết skill
https://github.com/humanlayer/skills/blob/main/plugins/visual-pr/skills/visual-pr/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
“Dùng skill visual-pr để viết mô tả pull request cho nhánh hiện tại của tôi.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Agent tìm hoặc tạo pull request cho nhánh hiện tại, đọc toàn bộ diff và ticket, rồi điền mẫu. Agent giữ lý do trong một câu và thêm vài ghi chú cho người review.
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.
Describe a Pull Request
Create or update the pull request for the current task with a concise description that helps a reviewer understand why the change exists and the shape of the implementation.
Workflow
Read the description template:
Read({SKILLBASE}/references/pr_description_template.md)Identify or create the pull request:
- Check the current branch for a PR with
gh pr view --json url,number,title,state,baseRefName,headRefName 2>/dev/null. - If no PR exists, inspect
git status --short --branchand the commits on the current branch. - Commit task-related changes when needed, push the branch with an upstream, and create a PR for it. Follow the repository's git safety protocol.
- Ask the user to select a PR only when the current branch has no relevant work and there is no safe current-branch PR to create.
- Check the current branch for a PR with
Gather only the context needed to explain the change:
- Read the ticket and any relevant task artifacts.
- Read the complete PR diff and enough surrounding code to understand behavior and ownership.
- Use
gh pr viewto collect PR metadata and changed files. - Read
{SKILLBASE}/references/show-me.mdfor the visual-outline conventions used in the PR body.
Write the PR description using the template:
- Keep Why the change to exactly one sentence.
- Keep Special things to note to 1-3 bullets. Prioritize reviewer warnings, migrations, compatibility constraints, deliberate omissions, or surprising decisions. Write
- None.when there are no special considerations. - Make Change outline a compact,
/show-me-inspired structural view rather than prose or a file-by-file changelog. - Include only the views that help explain this PR:
- SQL table and endpoint contract changes, plus pseudocode for business logic.
- key data structure / type changes
- A shallow file tree showing changed responsibilities.
- React component tree changes, including important hooks, state, and package boundaries.
- Call-tree, call-stack, control-flow, or data-flow changes.
- Prefer
diffblocks when showing changes to an existing shape. Show the complete target shape when most of it is new or diff notation would obscure ownership or order. - Keep each view focused on what a reviewer needs. Omit categories that did not change.
- optionaL: if you are aware of a ticket id/url, a humanlayer task url, or related plan/document urls, or other relevant links, include them in the header, otherwise omit the header
Save and publish the description:
- Use
.humanlayer/tasks/{task-slug}/pr-description.mdwhen the task directory exists; otherwise use.humanlayer/tasks/pr-{number}/description.md. - Update the PR with
gh pr edit {number} --body-file {output-path}. - Confirm the update succeeded.
- Use
Report completion:
- Read
{SKILLBASE}/references/describe_pr_final_answer.md. - Respond using that final answer template with the PR URL, saved description URL, and concise list of changed files.
- Read
Always read and follow {SKILLBASE}/references/pr_description_template.md. Do not expand the PR body beyond that template.
Write as one human talking to another: avoid jargon and slang, and use simple, coherent, concise language.
Câu hỏi thường gặp
Nó có tạo pull request cho tôi không?
Nếu chưa có pull request cho nhánh, skill nói commit các thay đổi liên quan đến tác vụ và tạo một cái.
Mô tả dài bao nhiêu?
Skill giữ lý do trong một câu và các ghi chú đặc biệt trong một đến ba gạch đầu dòng.
Nó dùng mẫu nào?
Nó dùng mẫu mô tả pull request được lưu cùng skill.
Chi tiết
Mô tả gốc của tác giả
Only use when the user explicitly invokes this skill by name.
repo: humanlayer/skills
Độ phổ biến
- Sao GitHub
- 5.5k
- Vị trí xếp hạng
- #14778
- Giấy phép
- MIT
- Cập nhật
- 1/11/2026
Bình luận
- …
Thêm skill từ kho mã này
build-iterated-agentic-loop
5.5kGiúp agent của bạn biến một tác vụ lập trình lặp lại thành skill của repo cùng workflow GitHub Actions chạy theo lịch, có file bộ nhớ và một PR mở mỗi vòng.
design-control-loop
5.5kGiúp agent của bạn phỏng vấn bạn và thiết kế vòng điều khiển đưa codebase tới mục tiêu qua các thay đổi nhỏ, dễ xem xét, rồi xây dựng nó thành workflow theo lịch.
improve-claude-md
5.5kGiúp agent của bạn viết lại file CLAUDE.md với các khối có điều kiện, để các chỉ dẫn quan trọng được tuân theo khi áp dụng, còn phần còn lại không gây cản trở.
rpi
5.5kGiúp agent của bạn nghiên cứu một thay đổi, làm việc qua thiết kế và triển khai theo các giai đoạn rõ ràng, với tài liệu cho từng bước để bạn xem xét.
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á.