Chuyển đến nội dung
Skillpedia
Lập trình chung91k · #1319

handle-pr-comments

Skill này làm gì

Skill này hướng dẫn AI xử lý các bình luận review trên một pull request GitHub, từng cái một. Skill dành cho lập trình viên cần phản hồi ý kiến người review một cách hiệu quả.

Khi nào nên dùng

  • ✓Khi một người review đã để lại nhiều bình luận trên pull request của bạn.
  • ✓Khi bạn muốn quyết định từng bình luận trước khi code nào được thay đổi.
  • ✓Khi bạn muốn đóng các luồng review sau khi sửa xong.

Liên kết skill

https://github.com/storybookjs/storybook/blob/next/.agents/skills/handle-pr-comments/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/storybookjs/storybook/blob/next/.agents/skills/handle-pr-comments/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

“Xem các bình luận review chưa giải quyết trên pull request của tôi và hỏi tôi muốn xử lý từng cái thế nào.”

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

Cách hoạt động

AI liệt kê các bình luận chưa giải quyết, đọc code xung quanh mỗi cái, và đề xuất một bản sửa. Nó áp dụng lựa chọn bạn chọn, đề nghị commit và đánh dấu luồng là đã giải quyế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.

Handle PR Comments

Evaluate review comments on the PR (from the current branch, or a PR number/URL if given). For each unresolved comment: summarize the feedback, suggest a resolution, ask the user how to resolve it, apply their choice, commit if needed, and resolve the thread.

  1. Find the PR. Use the given number/URL, else derive it from the current branch (gh pr view). Stop if no PR exists.

  2. Fetch unresolved review threads via the GraphQL reviewThreads field on the pull request — request each thread's id, isResolved, isOutdated, path, line, and comments. Filter to isResolved == false. (Use GraphQL, not REST: only it exposes thread ids and resolution state.)

  3. Loop one comment at a time. For each: (a) summarize the feedback + file/line, reading surrounding code; (b) suggest a concrete fix; (c) ask via AskQuestion with options — apply suggested fix / apply a different fix / reply only / skip; (d) apply the choice; (e) if applicable, summarize what was changed and ask whether to commit; (f) resolve the thread via the GraphQL resolveReviewThread mutation.

  4. Report an overview of what was changed, committed, replied to, skipped, and resolved. Include links.

Notes

  • Handle real-user comments before addressing AI agents' (Copilot, CodeRabbit).
  • Group duplicate comments; when the same/similar issue is mentioned multiple times, handle them all at once.
  • Make a separate commit for each change.
Câu hỏi thường gặp

Nó có sửa mọi bình luận mà không hỏi không?

Không. Skill yêu cầu bạn chọn, với mỗi bình luận, có áp dụng bản sửa, thay đổi hay bỏ qua không.

Bình luận của reviewer AI được xử lý thế nào?

Skill nói nên xử lý bình luận của người review thật trước các bình luận từ reviewer AI.

Pull request có cần tồn tại không?

Có. Nó tìm pull request từ nhánh hiện tại hoặc một số bạn đưa ra.

Chi tiết

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

Triage and resolve GitHub PR review comments one by one, interactively. Use when the user asks to handle, address, respond to, or resolve PR review comments, or mentions reviewer feedback on a pull request.

repo: storybookjs/storybook

Độ phổ biến

Sao GitHub
91k
Vị trí xếp hạng
#1319
Giấy phép
MIT
Cập nhật
2/11/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ự