AGENT SKILL

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