Triage CI failures and PR review comments using scripts/pr-status.js. Use when investigating failing CI jobs, flaky tests, or PR review feedback. Covers blocker-first prioritization (build > lint > types > tests), CI env var matching for local reproduction, and the Known Flaky Tests distinction.
88%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
Low
Low-risk findings worth noting
Use this skill when the user asks about PR status, CI failures, or review comments in the Next.js monorepo.
Start by fetching data to answer the user's query:
node scripts/pr-status.js [PR] --comments-only. This skips all Actions run, job, log, and flaky-test requests.node scripts/pr-status.js [PR] --wait in the background (timeout 1 min).Then:
scripts/pr-status/results/index.md.thread-{N}.md, review-{id}.md, or comment-{id}.md files. For full triage, also analyze each job-{id}.md and review file for failures and feedback.reply-and-resolve-thread to do both in one step, or use reply-thread + resolve-thread separately. See scripts/pr-status/results/thread-N.md files for ready-to-use commands.gh run rerun <run-id> --failed. Then wait 5 minutes and go back to step 1. Repeat this loop up to 5 times.rust check / build → Run cargo fmt -- --check, then cargo fmtlint / build → Run pnpm prettier --write <file> for prettier errorsRun tests in the mode (e.g.):
# Development mode with Turbopack
pnpm test-dev-turbo test/path/to/test.ts
# Production build and start with Webpack
pnpm test-start-webpack test/path/to/test.tsnode scripts/pr-status.js # current branch PR
node scripts/pr-status.js <number> # specific PR
node scripts/pr-status.js [PR] --wait # background mode, waits for CI to finish
node scripts/pr-status.js [PR] --comments-only # reviews/comments only; skips CI jobs
node scripts/pr-status.js --skip-flaky-check # skip flaky test detectionThread interaction:
node scripts/pr-status.js reply-thread <threadNodeId> "<body>" # reply to a review thread
node scripts/pr-status.js resolve-thread <threadNodeId> # resolve a review thread
node scripts/pr-status.js reply-and-resolve-thread <threadNodeId> "<body>" # reply and resolve in one stepvercel/next.js
ec8ddcd
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.