Command
| Trigger | Agent |
|---|---|
/pr-fix-ci | Claude |
/prompts:pr-fix-ci | Codex |
What it does
- Polls GitHub checks until CI completes (up to 20 minutes)
- Fetches failure logs from failed checks
- Fetches all PR threads — review comments, issue comments, actionable reviews
- Categorizes feedback based on PR author engagement
- Fixes issues — applies minimal changes to resolve problems
- Replies to threads with what was done, then resolves them
- Outputs thread audit — comprehensive status of every thread
Thread categorization
The agent categorizes threads based on the PR author’s reaction:| Reaction | Emojis | Action |
|---|---|---|
| Endorsed | 👍 ❤️ 🎉 🚀 | MUST address |
| Rejected | 👎 😕 | Skip silently |
| Noticed | 👀 | Agent decides |
| None | — | Not considered (reviewer feedback without author acknowledgment) |
Thread statuses
| Status | Description |
|---|---|
| Fixed | Applied fix, replied, resolved thread |
| Skipped | Replied explaining why not fixing |
| Asked | Replied asking for clarification |
| CouldNotFix | Understood issue but couldn’t resolve |
| Already handled | Resolved by someone else |
| Ignored | Bot notification or non-actionable |
| Not considered | Reviewer feedback without author acknowledgment |
Output format
The skill always ends with a thread audit:Example interaction
You:/pr-fix-ci
Agent:
- Polls GitHub until all checks complete
- Finds 1 failed typecheck, 4 review threads
- Fixes the type error
- Addresses author-endorsed feedback
- Skips rejected suggestions
- Reports thread audit with all actions taken
Important notes
- Does not commit or push — Niteshift auto-commits after completion
- Waits up to 20 minutes for CI to complete
- Won’t fix architectural decisions or conflicting suggestions
- Idempotent — running again preserves previous actions
Tips
- Run after CI completes for faster results
- React to review comments (👍/👎) to guide what gets addressed
- Check the thread audit to see what was done
- The agent won’t push — you control when changes go live