code-reviewing
Installation
SKILL.md
When doing a code review, follow these rules.
Note this document uses keywords from RFC 2119 (MUST, MUST NOT, SHOULD, SHOULD NOT, etc.).
Process
1. Preparation
- You MUST read applicable
AGENTS.mdfiles and linked review instructions. - You MUST follow the repository's instructions for fetching the specifications; e.g., rules for fetching external resources that may require authentication.
2. Determine what to review
Choose the review scope from the user's request:
- No target: The staged and unstaged diffs, plus untracked files and their contents.
- Commit: The commit metadata and patch.
- Branch or base ref: The merge-base, commits since that base, and the branch diff. If the branch is already merged, its historical base and head from pull-request metadata.
- Pull request URL or number: The pull-request context, base and head commits, commit list, and historical diff. For a merged pull request, include its historical iteration or merge metadata. Treat a bare number as a pull request only when the request or repository provider makes this clear.