You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .agents/skills/pr-status-triage/SKILL.md
+10-7Lines changed: 10 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,21 +14,24 @@ Use this skill when the user asks about PR status, CI failures, or review commen
14
14
15
15
## Workflow
16
16
17
-
1. Run `node scripts/pr-status.js` (or `node scripts/pr-status.js <number>`).
18
-
2.Read generated files in `scripts/pr-status/`.
17
+
1. Run `node scripts/pr-status.js --wait` in the background (timeout 1 min), then read `scripts/pr-status/index.md`.
18
+
2.Analyze each `job-{id}.md` and `thread-{N}.md` file for failures and review feedback.
19
19
3. Prioritize blocking jobs first: build, lint, types, then test jobs.
20
20
4. Treat failures as real until disproven; check the "Known Flaky Tests" section before calling anything flaky.
21
21
5. Reproduce locally with the same mode and env vars as CI.
22
22
6. After addressing review comments, reply to the thread describing what was done, then resolve it. See `thread-N.md` files for ready-to-use commands.
23
+
7. 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.
23
24
24
25
## Quick Commands
25
26
26
27
```bash
27
-
node scripts/pr-status.js
28
-
node scripts/pr-status.js <number>
28
+
node scripts/pr-status.js # current branch PR
29
+
node scripts/pr-status.js <number># specific PR
30
+
node scripts/pr-status.js [PR] --wait # background mode, waits for CI to finish
31
+
node scripts/pr-status.js --skip-flaky-check # skip flaky test detection
29
32
```
30
33
31
-
## Detailed References
34
+
## References
32
35
33
-
-[workflow.md](./workflow.md)- prioritization and common failure patterns
34
-
-[local-repro.md](./local-repro.md)- mode/env matching and isolation guidance
36
+
-[workflow.md](./workflow.md)— prioritization, common failure patterns, resolving review threads
37
+
-[local-repro.md](./local-repro.md)— mode/env matching and isolation guidance
0 commit comments