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.
- License 许可
- MIT
- 最近更新
- 2026-10-10
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- review
- description
- 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.
03 SKILL.md 正文
Reviewing a pull request
The pull request number is whatever number the request names.
If no number is given, use $ARGUMENTS.
What you may write
The author writes every committed change by hand. Your writes are limited to pull request bodies and comments. When a file needs to change, put the proposed content in your review comment for the author to apply.
A request to review is not a request to commit. Do not approve the pull request either; approval is the author's decision to seek elsewhere.
Keep scratch files under tmp/ in the working tree.
Writes outside the working tree are refused, so /tmp will fail.
Pass long text as gh ... --body-file <file>, never inline with --body.
Backticks and $ in a body would otherwise be expanded by the shell before GitHub ever sees them.
What you may claim
Look up what you can before leaving a claim unchecked; WebFetch reaches documentation and gh reaches the repository.
Say which of these applies to a claim you left unchecked:
- a tool failed
- no tool you may use reaches it
- you chose not to look it up
Say it next to the finding that rests on it, or in Tips when no finding does.
Never mark an item (blocking) when it rests on a claim you chose not to look up.
Your process
1. Gather
Fetch these once.
gh pr view <number> --json title,body,headRefName,filesgh pr diff <number>- The linked issue, from
gh pr view <number> --json closingIssuesReferences.- Branches are created with
gh issue develop, which is what establishes that link. If it comes back empty, fall back to the leading number of the head branch name.
- Branches are created with
If there is no linked issue, review from the diff alone.
If a fetch fails, note which one and continue with the rest.
2. Judge the title
Follow the pr:review-title skill.
3. Write the body
Follow the pr:edit-body skill.
Do this before reviewing the diff.
4. Review the diff
Report:
- bugs
- security problems
- performance problems
- inconsistencies with the surrounding code
Cite each finding as path:line and give the reason, not just the instruction — the author has to be able to disagree with your reasoning.
Conditions the diff does not touch are not findings for this pull request, however related they seem.
5. Report
Format the report as described in the pr:review-format skill.
Write the report to tmp/pr-review.md and post it with gh pr comment <number> --body-file tmp/pr-review.md.
Write it in Japanese. Everything posted to GitHub is written in Japanese, even though this file and the rest of the repository's instructions are in English.
04 同仓库更多 Skills
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.
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.
hello
Greet the user with a personalized message