SKILL.md
SKILL.mdBrowse 3 files
558 tokens
2,382 bytes
Token encoding: o200k_base
Snapshot bfcf687
1---2name: pr-status-triage3description: >4 Triage CI failures and PR review comments using scripts/pr-status.js.5 Use when investigating failing CI jobs, flaky tests, or PR review feedback.6 Covers blocker-first prioritization (build > lint > types > tests),7 CI env var matching for local reproduction, and the Known Flaky Tests8 distinction.9metadata:10 internal: true11---12 13# PR Status Triage14 15Use this skill when the user asks about PR status, CI failures, or review comments in the Next.js monorepo.16 17## Workflow18 191. Run `node scripts/pr-status.js --wait` in the background (timeout 1 min), then read `scripts/pr-status/results/index.md`.202. Analyze each `job-{id}.md` and `thread-{N}.md` file in `scripts/pr-status/results/` for failures and review feedback.213. Prioritize blocking jobs first: build, lint, types, then test jobs.224. Treat failures as real until disproven; check the "Known Flaky Tests" section before calling anything flaky.235. Reproduce locally with the same mode and env vars as CI.246. After addressing review comments, reply to the thread describing what was done, then resolve it. Use `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.257. When the only remaining failures are known flaky tests and no code changes are needed, retrigger the failing CI jobs with `gh run rerun <run-id> --failed`. Then wait 5 minutes and go back to step 1. Repeat this loop up to 5 times.26 27## Quick Commands28 29```bash30node scripts/pr-status.js # current branch PR31node scripts/pr-status.js <number> # specific PR32node scripts/pr-status.js [PR] --wait # background mode, waits for CI to finish33node scripts/pr-status.js --skip-flaky-check # skip flaky test detection34```35 36Thread interaction:37 38```bash39node scripts/pr-status.js reply-thread <threadNodeId> "<body>" # reply to a review thread40node scripts/pr-status.js resolve-thread <threadNodeId> # resolve a review thread41node scripts/pr-status.js reply-and-resolve-thread <threadNodeId> "<body>" # reply and resolve in one step42```43 44## References45 46- [workflow.md](./workflow.md) — prioritization, common failure patterns, resolving review threads47- [local-repro.md](./local-repro.md) — mode/env matching and isolation guidance48 Referenced from AGENTS.md
These references come from AGENTS.md at the skill snapshot.
AGENTS.md · same revision ↗
Source excerpt starting at line 279.279- Skill file: `.agents/skills/pr-status-triage/SKILL.md`
AGENTS.md · same revision ↗
Source excerpt starting at line 281.281**Use `$pr-status-triage` for automated analysis** - see `.agents/skills/pr-status-triage/SKILL.md` for the full step-by-step workflow.