fix-pr

Solid

Diagnose the failing checks on a pull request and fix them. One call reads the failing logs and names the local task that reproduces each failure, so the work starts from a reproduction rather than a guess. The correction goes through the commit skill. Use this whenever a pull request is red, whenever the user asks to fix CI, and whenever watch-pr comes back with failures.

AI & Automation 73 stars 6 forks Updated 2 days ago MIT

Install

View on GitHub

Quality Score: 88/100

Stars 20%
62
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Fix a failing pull request Take a red pull request and make the checks pass. This skill ends when the branch carries a fix and the push has gone out. Confirming the result belongs to `watch-pr`, and merging belongs to `merge-pr`. A guard hook runs alongside. It refuses a log sweep that goes around the diagnosis below, while leaving one job's full log open to read, because that's the real next step once the printed tail runs short. ## Which pull request `$ARGUMENTS` names the pull request number when the caller knows it. An empty value means whatever is open for the current branch. ## Step 0: open the task list Create these with `TaskCreate`, then move each through `in_progress` and `completed`. 1. Diagnose the failures 2. Reproduce each one locally 3. Fix the cause 4. Commit through the commit skill 5. Bring the description forward 6. Push and hand back ## Step 1: diagnose ```text bash .claude/skills/fix-pr/scripts/diagnose.sh <number> ``` One call gets the failing jobs, the tail of each failing step's log, and the local task covering the same ground. Read that output before running anything else. Going straight to `gh run view` repeats work the script already did. The script also compares the local checkout against the commit CI tested. Stop when it reports a mismatch. The logs then describe code this worktree no longer carries, so a fix aimed at them reaches the wrong revision. Check out the branch the pull request names, or pull it forward, and diagnose again....

Details

Author
tbhb
Repository
tbhb/vale-ai-tells
Created
8 months ago
Last Updated
2 days ago
Language
Shell
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category