Instructions
Run a structured PR review for React / Next.js / TypeScript changes. Prefer actionable comments over rewriting the author's PR.
When to Use
- Use when reviewing a pull request, diff, or “look at this PR” request.
- Prefer
code-assistantfor implementing a small fix yourself. - Prefer
tdd-vitest/testing-agentwhen the gap is missing tests, not review tone. - Prefer
secure-dependencieswhen the PR is mostly lockfile/audit policy.
- Scope the diff: list touched areas (UI, API, schema, CI, deps). Note what is not in the PR.
- Checklist (in order): correctness → security/secrets → data loss → a11y/UX regressions → performance → tests/CI → style only if it blocks maintainability.
- React/Next specifics: Server vs Client Components, secrets in client bundles, Server Actions auth, cache invalidation,
error/loadingcoverage for new routes. - Comments: file:line when possible; one issue per comment; suggest a fix shape, do not dump a full alternate PR unless asked.
- Defer: for deep React composition/perf rules, point readers at vercel-labs/agent-skills react-best-practices rather than reinventing that catalog here.
- Verdict: Approve / Approve with nits / Request changes - with the top 3 blockers only in the summary.
Outcomes
- Ordered findings + risk summary + merge recommendation.
- Explicit “out of scope for this review” notes when the diff is partial.
Output Rules
Read-only by default. No force-push advice. No “LGTM” without the checklist.
Scope and boundaries
- In scope: PR review workflow, Next/React risk checklist, comment quality.
- Out of scope: rewriting the entire feature, legal/compliance sign-off, rubber-stamp merges.
Safety
- Do not paste secrets found in the diff into chat; flag and redact.
- Do not approve known secret commits; require rotation notes.
Troubleshooting
- Huge PR: ask for a summary of intent; review by directory; flag “needs split” as a finding.
- Generated lockfile noise: focus on intentional dep changes and audit impact.
- Missing tests: request cases, do not invent flaky E2E without user ask.
Related skills
code-assistant- implement the fix after reviewtesting-agent- add missing teststdd-vitest- red-green-refactor for new behaviorsecure-dependencies- supply-chain in the diffgithub-actions-ci- CI gaps
GitHub: https://github.com/bh611627/skillcodex/tree/main/skills/pr-review-workflow/SKILL.md
npm: https://www.npmjs.com/package/@skillcodex/skills