Skip to main content
The pr-fix skill automatically fixes CI failures and addresses valid PR review comments. It categorizes feedback, applies minimal fixes, and reports what was done.

Command

TriggerAgent
/pr-fix-ciClaude
/prompts:pr-fix-ciCodex

What it does

  1. Polls GitHub checks until CI completes (up to 20 minutes)
  2. Fetches failure logs from failed checks
  3. Fetches all PR threads — review comments, issue comments, actionable reviews
  4. Categorizes feedback based on PR author engagement
  5. Fixes issues — applies minimal changes to resolve problems
  6. Replies to threads with what was done, then resolves them
  7. Outputs thread audit — comprehensive status of every thread

Thread categorization

The agent categorizes threads based on the PR author’s reaction:
ReactionEmojisAction
Endorsed👍 ❤️ 🎉 🚀MUST address
Rejected👎 😕Skip silently
Noticed👀Agent decides
NoneNot considered (reviewer feedback without author acknowledgment)
PR author comments are always addressed. Bot comments (CodeRabbit, etc.) are categorized by content.

Thread statuses

StatusDescription
FixedApplied fix, replied, resolved thread
SkippedReplied explaining why not fixing
AskedReplied asking for clarification
CouldNotFixUnderstood issue but couldn’t resolve
Already handledResolved by someone else
IgnoredBot notification or non-actionable
Not consideredReviewer feedback without author acknowledgment

Output format

The skill always ends with a thread audit:
## PR Fix: Done

### Thread Audit

| Source | Feedback | Status | Action |
|--------|----------|--------|--------|
| CI: typecheck | Type error | Fixed | Added optional chaining |
| @prauthor | Remove unused import | Fixed | Removed import |
| @alice (endorsed) | Missing null check | Fixed | Added null check |
| @bob (rejected) | Use different pattern | Skipped | Author disagreed |
| @charlie | Add docs | Not considered | No author engagement |

**Summary:** 3 fixed, 1 skipped, 1 not considered

Example interaction

You: /pr-fix-ci Agent:
  1. Polls GitHub until all checks complete
  2. Finds 1 failed typecheck, 4 review threads
  3. Fixes the type error
  4. Addresses author-endorsed feedback
  5. Skips rejected suggestions
  6. 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