pr-code-review
Installation
SKILL.md
PR Code Review
Review GitHub PRs using the gh CLI. Post inline comments tied to specific code lines, use GitHub suggestion blocks for trivial fixes, and submit everything as a single batched review with a verdict. All gh CLI patterns — repo context, PR metadata, diff inspection, Reviews API payload, suggestion syntax, line-number mapping, fallback commands — live in references/gh-cli.md.
Workflow overview
- Pick a mode — auto-post or interactive.
- Understand the PR and run pre-checks.
- Get the diff and identify high-risk areas.
- Read changed files in full context.
- Analyze using the structured checklist.
- Draft findings with proper tone.
- Submit a single batched review — or, in interactive mode, draft → discuss → post, then stay engaged for follow-up comments until the user closes the session.
- Output a severity summary (in interactive mode, re-rendered after each post).
0) Mode selection
Pick a mode before reading code; tell the user which one in one sentence.