Review recent PRs with deep context and label-specific checks
Fetch recent PRs, classify, read source code, and produce contextual reviews.
$ARGUMENTS — Number of PRs (default: 10)
Examples:
/pr-review — 10 most recent open PRs/pr-review 20 — 20 PRsgh pr list --repo toss/es-toolkit --state open --limit {count} --json number,title,author,labels,createdAt
Run /pr-triage {number} for each PR to classify.
For each PR, go beyond classification — read the actual source code and provide context:
Read the files being modified on main to understand the current behavior:
Read the diff to understand what's changing:
/compat-review {number}yarn vitest run src/{category}/{fn}.spec.ts + review breaking impacttsc --noEmitGroup PRs by same function name or same files modified.
For each PR, output:
### PR #{number} — {title}
**Classification**: {labels}
**Changed files**: {summary}
**Current code**: {what the function does now, with code snippet}
**PR change**: {what's changing and why, with before/after}
**Context**: {JS spec, lodash behavior, design principle considerations}
**Checkpoints**:
- {specific things to verify}
**Verdict**: {merge / merge with changes / hold for discussion / reject}
## PR Review — {date}
| # | Title | Label | Verdict |
|---|-------|-------|---------|
- {N} ready to merge
- {N} need changes
- {N} need discussion
- {N} potential duplicates