con un clic
pr-fix
Fix failing CI checks on a pull request
Instalar con Codex o Claude Copia este prompt, pégalo en Codex, Claude u otro asistente, y deja que revise la página de la skill y la instale por ti.
Menú
Fix failing CI checks on a pull request
Instalar con Codex o Claude Copia este prompt, pégalo en Codex, Claude u otro asistente, y deja que revise la página de la skill y la instale por ti.
Build the project (auto-detects build system)
Find and remove dead code, unused imports, and technical debt
Create git commits in logical groups for all current changes
Create a git commit with conventional commit message
Pick up unfinished work from where the last session left off
Debug and fix failing tests or errors
Basado en la clasificación ocupacional SOC
| name | pr-fix |
| description | Fix failing CI checks on a pull request |
| argument-hint | <url> [comments=true|false] [checks=true|false] |
Fix failing CI checks on a GitHub pull request, iterating until all checks pass. Uses parallel agents extensively to analyze failures and apply fixes simultaneously.
$ARGUMENTS - PR URL or number (e.g., https://github.com/owner/repo/pull/123 or 123)checks (optional) - Whether to analyze and fix failing checks (default: true)comments (optional) - Whether to address comments in the PR (default: false)Extract from $ARGUMENTS:
checks=true or checks=false (default: true)comments=true or comments=false (default: false)Example: /pr-fix https://github.com/owner/repo/pull/123 comments=true checks=false
gh pr checkout <pr-ref>
Launch these agents in parallel to collect all PR information simultaneously:
Agent 1 — PR Details:
gh pr view <pr-ref> --json number,headRefName,baseRefName,statusCheckRollup,url,title,body
Agent 2 — Check Status:
gh pr checks <pr-ref>
Agent 3 — PR Diff:
gh pr diff <pr-ref>
Agent 4 — Review Comments (when comments=true):
gh pr view <pr-ref> --json reviews,comments
gh api repos/{owner}/{repo}/pulls/{number}/comments
For each failing check, launch a separate analysis agent in parallel:
Agent per failing check:
gh run view <run-id> --log-failed
Each agent:
{check_name, root_cause, files_to_change, proposed_fix}Partition diagnosed failures into groups by root cause. Use the consolidation pattern — launch each fix group as a parallel worktree-isolated agent (isolation: "worktree"). Agents can freely edit overlapping files; the consolidator handles merges.
Per worktree agent:
After all worktree agents complete, launch the consolidator agent (subagent_type: "consolidator") to merge all branches. Then launch a verifier agent (subagent_type: "verifier") to confirm tests pass.
After all fix agents complete, delegate to the skills:commit command with a descriptive message, then push:
Skill(skill="skills:commit", args="fix: <description of what was fixed>")
git push
sleep 10
gh pr checks <pr-ref> --watch
If checks still fail, repeat from 3a. Escalate to the user only if the same failure persists after a fix attempt.
Group review comments by file. Launch a separate agent per file (or per independent comment group) in parallel:
Agent per file/group:
{file, line, comment_summary, proposed_change}Launch each comment group as a parallel worktree-isolated agent (isolation: "worktree"). Agents can freely edit overlapping files; the consolidator handles merges.
Per worktree agent:
After all worktree agents complete, launch the consolidator agent (subagent_type: "consolidator") to merge all branches. Then launch a verifier agent (subagent_type: "verifier") to confirm tests pass.
Delegate to the skills:commit command, then push:
Skill(skill="skills:commit", args="fix: address review comments")
git push
sleep 10
gh pr checks <pr-ref> --watch
If fixing comments introduces new check failures, loop back to step 3.
Continue iterating until:
fix: <description of what was fixed>IMPORTANT: There is no such thing as a "pre-existing" test failure. If any test fails - whether it appears related to the PR changes or not - you must fix it. The task always completes with completely passing tests. Do not dismiss failures as "unrelated to this PR."
Stop iterating when: