Chuyển đến nội dung
Skillpedia
Triển khai và đám mây (DevOps)103k · #805

github-pr-workflow

Skill này làm gì

Công cụ này giúp chuẩn bị code để người khác rà soát. Nó đảm bảo các thay đổi rõ ràng, dễ hiểu và hoạt động đúng như mong đợi.

Khi nào nên dùng

  • ✓Khi bạn đã hoàn thành một thay đổi code và muốn người khác rà soát.
  • ✓Khi người rà soát yêu cầu bạn sửa gì đó và bạn cần gửi bản sửa.
  • ✓Khi code đã chờ rà soát một thời gian và cần cập nhật hoặc bổ sung chi tiết.

Liên kết skill

https://github.com/paperclipai/paperclip/blob/master/packages/skills-catalog/catalog/bundled/software-development/github-pr-workflow/SKILL.md

Sao 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

Hãy dùng skill này để giúp tôi: https://github.com/paperclipai/paperclip/blob/master/packages/skills-catalog/catalog/bundled/software-development/github-pr-workflow/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Chuẩn bị code của tôi để rà soát, bao gồm bản tóm tắt rõ ràng, cách tôi đã kiểm thử và các chi tiết quan trọng.”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Công cụ sắp xếp code, đảm bảo thông điệp về thay đổi rõ ràng và giúp bạn trình bày cách đã kiểm thử. Nó cũng hỗ trợ trả lời các nhận xét của người rà soát.

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.

GitHub Pull Request Workflow

Ship a PR a reviewer can land without follow-up clarifying questions. The aim is high signal in the title and body, evidence the change works, and clean replies when feedback comes in.

When to use

  • You are about to open a PR for a change that is functionally complete.
  • A reviewer left comments and you need to respond and push fixes.
  • A PR has been open more than a day and needs to be brought back into shape (stale conflicts, missing description, missing verification).

When not to use

  • The change is not yet functionally complete. Finish the work first; draft PRs that bounce on review are noise.
  • The repository uses a non-GitHub forge. Adjust to that forge's conventions; do not force GitHub-isms.

Branch hygiene before opening

  • Rebase or merge from the target base so the diff is current.
  • Squash WIP commits into reviewable units. Prefer one commit per logical change; do not force one-commit-per-PR if the work is genuinely multi-step.
  • Confirm tests, typecheck, and lint pass locally. Note any deliberate skips in the PR body.
  • Remove debug prints, commented-out code, and TODO markers that are not tracked.

PR title

  • Imperative mood, under 70 characters.
  • Lead with the user-visible change, not the file touched. Allow CSV export from reports table beats Update reports.tsx.
  • If the repo uses an issue prefix convention (PAP-1234:, [security]), follow it.
  • No trailing period.

PR body

Use this structure:

## Summary
- 1–3 bullets describing what changed and why.

## Implementation notes
- Anything non-obvious in the diff: trade-offs, dropped alternatives, gotchas.
- Migration or config implications.

## Verification
- The exact commands or steps you ran.
- Screenshots or short clips for UI changes (required if pixels moved).
- Edge cases you exercised by hand.

## Risk and rollback
- What breaks if this is reverted, and how to revert cleanly.

Skip the Risk and rollback section only for clearly trivial PRs (typos, docs).

Verification evidence

  • Tests passing in CI is necessary, not sufficient. Reviewers also need to know the change behaves correctly end to end.
  • For UI work, include screenshots of the golden path and one edge case. Tag dark and light mode if the project supports both.
  • For migrations, include a dry-run plan and reversal steps.
  • For performance changes, include a before/after measurement, not adjectives.

Replying to review comments

  • Reply on every comment, even with just "fixed in <commit-sha>" — silent fixes leave the reviewer guessing.
  • Push fixes as new commits while review is active; do not amend during review unless the reviewer agrees.
  • If you disagree with feedback, say so with one sentence of rationale and let the reviewer decide. Don't escalate over comments.
  • Re-request review explicitly after pushing changes.

Merge checklist

  • All required checks green.
  • All review comments resolved.
  • PR title/body still accurate (update if scope changed mid-review).
  • Linked issue moves to in_review or done per project convention.
  • Delete the branch after merge unless it is a long-lived integration branch.

Anti-patterns

  • PR description that says "see commits". Reviewers should not need to read the log.
  • Mixing refactor and behavior change in the same PR with no separation in the body.
  • "Address feedback" commits that bundle unrelated edits. One commit per round of feedback is fine; one commit for everything in flight is not.
  • Force-pushing during active review without telling the reviewer.
Câu hỏi thường gặp

Vì sao tiêu đề và mô tả rõ ràng lại quan trọng?

Tiêu đề và mô tả rõ ràng giúp người rà soát nhanh chóng hiểu thay đổi gì, vì sao thay đổi và cách kiểm thử. Điều này tiết kiệm thời gian và tránh nhầm lẫn.

“Commits” là gì và vì sao cần sắp xếp chúng?

Commits giống như các lần “lưu” công việc. Sắp xếp chúng nghĩa là nhóm các thay đổi nhỏ, liên quan vào một lần lưu, để lịch sử code gọn gàng và dễ theo dõi hơn.

Tôi có cần kèm ảnh chụp màn hình cho mọi thay đổi không?

Ảnh chụp màn hình đặc biệt quan trọng với các thay đổi ảnh hưởng đến diện mạo của chương trình. Chúng cho thấy chính xác thay đổi trông như thế nào trong thực tế.

Chi tiết

Mô tả gốc của tác giả

Prepare a GitHub pull request from a feature branch — branch hygiene, commit shape, title/body, verification notes, screenshots for UI work, and replies to review comments.

repo: paperclipai/paperclip

Độ phổ biến

Sao GitHub
103k
Vị trí xếp hạng
#805
Giấy phép
MIT
Cập nhật
15/10/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự