Restructure pr-status-triage skill: merge command into skill files (#91514)
### What?
Migrates the `.claude/commands/pr-status.md` slash command into the
`.agents/skills/pr-status-triage/` skill, restructuring the files so
that `SKILL.md` has a single unified workflow and supporting details
live in the appropriate reference files. Deletes the original command
file.
### Why?
The pr-status automated workflow existed in two places: a basic 6-step
outline in `SKILL.md` and a detailed 10-step procedure in
`.claude/commands/pr-status.md`. This duplication meant the skill was
incomplete without the command file, and the command file couldn't
benefit from the skill's supporting reference files (`workflow.md`,
`local-repro.md`).
### How?
**`SKILL.md`** — Replaced the old 6-step overview with a unified 7-step
workflow covering: background `--wait` script launch, failure/review
analysis, blocker-first prioritization, flaky test checking, local
reproduction, resolving review threads, and retriggering CI when only
flaky tests remain. Step 7 now includes a retry loop: after
retriggering, wait 5 minutes and re-triage from step 1, up to 5 times.
**`workflow.md`** — Extended with content from the command file:
subagent prompt templates (CI failures + review comments), summary table
format examples, failure category taxonomy (8 categories), and review
comment category taxonomy (7 types). Existing sections (prioritization
order, failure handling rules, common patterns, resolving review
threads) preserved.
**`local-repro.md`** — Expanded the "Match CI Environment Variables"
section with feature flag details (`__NEXT_USE_NODE_STREAMS`,
`__NEXT_CACHE_COMPONENTS`), the `NEXT_SKIP_ISOLATE` warning for module
resolution fixes, and a concrete example command.
**`AGENTS.md`** — Updated the stale `/pr-status` command reference to
point to the `$pr-status-triage` skill.
**`.claude/commands/pr-status.md`** — Deleted (all content migrated).
### Files changed
| File | Action |
|------|--------|
| `.agents/skills/pr-status-triage/SKILL.md` | Rewritten with unified
workflow (includes retry loop for flaky CI) |
| `.agents/skills/pr-status-triage/workflow.md` | Extended with
templates, tables, categories |
| `.agents/skills/pr-status-triage/local-repro.md` | Expanded env var
section |
| `AGENTS.md` | Updated skill reference (1 line) |
| `.claude/commands/pr-status.md` | Deleted |
---------
Co-authored-by: Tobias Koppers <sokra@users.noreply.github.com>
Co-authored-by: Claude <noreply@anthropic.com>