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

update-pr-description

Skill này làm gì

Skill này hướng dẫn AI đối chiếu tiêu đề và mô tả pull request với các thay đổi code thực tế. Skill dành cho lập trình viên muốn mô tả pull request chính xác với người review.

Khi nào nên dùng

  • ✓Khi một pull request đã lớn lên và mô tả không còn khớp với thay đổi.
  • ✓Khi bạn muốn có tiêu đề và tóm tắt rõ ràng trước khi xin review.
  • ✓Khi người review nói mô tả đã lỗi thời.

Liên kết skill

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

“Kiểm tra xem mô tả pull request của tôi còn khớp với code không, và đề xuất tiêu đề mới nếu không khớp.”

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

Cách hoạt động

AI đọc tiêu đề hiện tại, mô tả, thông điệp commit và toàn bộ diff. Nó chỉ báo cáo các khoảng trống có ý nghĩa, đề xuất cập nhật từng cái một, và áp dụng những cái bạn chấp thuận.

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.

Update PR Description

Workflow

  1. Resolve the PR. Use the number/URL the user provided. If none, look up the PR for the current branch with gh pr view.
  2. Gather evidence:
    • gh pr view <pr> --json title,body
    • gh pr view <pr> --json commits (commit messages)
    • gh pr diff <pr> (full diff against base)
  3. Evaluate divergence. Compare the stated title/description against what the commits and diff actually do. Only flag meaningful divergence (wrong scope, missing major changes, stale claims, inaccurate summary). Ignore trivial wording.
  4. Report. Tell the user whether the title and/or description meaningfully diverges. If not, stop here.
  5. Suggest iteratively. Propose concrete updated title/description. Ask the user one change at a time whether to apply, accept edits, and refine.
  6. Apply. Once agreed, update on the user's behalf with gh pr edit <pr> --title ... --body ....

Notes

  • Match the repository's existing PR template/style if the body uses one.
  • Don't rewrite a description that's already accurate.
  • Update the state of checkboxes where appropriate.
  • Remove section placeholders/reminders when filling out a section.
  • Do not remove the canary release section.
Câu hỏi thường gặp

Nó có tự thay đổi mô tả không?

Không. Nó đề xuất thay đổi và chỉ áp dụng sau khi bạn đồng ý.

Nó có viết lại mô tả đã chính xác không?

Không. Skill nói không viết lại mô tả đã chính xác.

Nó kiểm tra gì ngoài code?

Các thông điệp commit, để nó thấy mỗi commit thực sự đã làm gì.

Chi tiết

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

Evaluate a PR's title and description against its actual implementation, then iteratively suggest and apply updates. Use when the user asks to check, fix, or update a PR title or description.

repo: storybookjs/storybook

Độ phổ biến

Sao GitHub
91k
Vị trí xếp hạng
#1323
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ự