edit-body
How to rewrite the body of a pull request so that each change maps to the part of the issue it addresses. Load this whenever reviewing a pull request, and whenever asked to write, rewrite, or improve a PR description.
- License 许可
- MIT
- 最近更新
- 2026-10-10
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- edit-body
- description
- How to rewrite the body of a pull request so that each change maps to the part of the issue it addresses. Load this whenever reviewing a pull request, and whenever asked to write, rewrite, or improve a PR description.
03 SKILL.md 正文
Pull request bodies
Apply the body directly rather than proposing it. A pull request body is pull request text, not code, so writing it is within what you may write.
Work from the diff and the linked issue already gathered in this session. Do not fetch them again.
What the body is for
Map each change to the part of the issue it addresses. The issue says why the change is needed; the body says how this change answers it.
Do not restate the issue. Restating it wastes the reader's time and hides the one thing they came for: whether the change covers what was asked.
Call out changes that fall outside the issue, with the reason they were needed. These are the ones most likely to surprise a reviewer, and leaving them unmentioned is how unrelated work slips in unnoticed.
Describe what changed and why from the diff alone when no issue is linked.
What to keep
Keep whatever the author already wrote. They know things about the change that the diff does not show.
Add structure and the issue mapping around the existing text rather than replacing it.
Applying it
Write the body to tmp/pr-body.md, then apply it:
gh pr edit <number> --body-file tmp/pr-body.md
Say in your review report that you rewrote the body, and name the issue you mapped it to.
04 同仓库更多 Skills
review
The procedure for reviewing a pull request — what to gather, in what order to judge the title, body, and diff, and where to post the result. Load this whenever asked to review, check, or look over a pull request, even when the request is phrased casually and even when no PR number is given explicitly.
review-title
How to judge whether a pull request title is appropriate — Conventional Commits format, and whether the chosen type matches what the diff does. Load this whenever reviewing a pull request, and whenever asked to check, fix, or suggest a PR title.
review-format
The required layout for a review comment — Conventional Comments labels, blocking and non-blocking decorations, and the split between Requested changes and Tips. Load this whenever writing a review, and whenever asked how a review should be laid out.
hello
Greet the user with a personalized message