Create PR And Fix CI — Git skill for Claude Code
Open a PR for the current branch (with review depth matched to risk), then loop on failing CI checks and mergeability until everything is clean.
How to install Create PR And Fix CI
Installs to ~/.claude/skills/behindthemusictree-agent-config-create-pr-and-fix-ci/SKILL.md
mkdir -p ~/.claude/skills/behindthemusictree-agent-config-create-pr-and-fix-ci && curl -fsSL https://raw.githubusercontent.com/BehindTheMusicTree/agent-config/HEAD/commands/create-pr-and-fix-ci.md -o ~/.claude/skills/behindthemusictree-agent-config-create-pr-and-fix-ci/SKILL.md Restart Claude Code, or start a new session, for it to be picked up.
What Create PR And Fix CI does
description: Open a PR for the current branch (with review depth matched to risk), then loop on failing CI checks and mergeability until everything is clean. model: sonnet
Open a PR for the current branch, then keep fixing failing CI checks and mergeability conflicts until every check passes and the PR can merge.
Arguments: optional existing PR number/URL, plus `--intent`, `--depth`, and `--base` from the shared PR policy.
Steps 1–2 — Select context and create or inspect the PR
Re
Alternatives in Git
- Gh Fix CI — Debug and fix failing GitHub Actions PR checks using log inspection 14.6k ★
- GitHub Review Failures — Use when CI checks are failing on a PR — fetches failure logs, diagnoses root causes, implements fixes, and pu 1.5k ★
- Rewrite History — Reimplement the current branch with a clean, narrative-quality git commit history suitable for reviewer compre 52 ★
Full documentation available on GitHub
View Source RepositoryRelated Skills
Converge
Run an unattended review→fix→re-review loop on the current branch until the reviewer has no findings at or abo
Codex Loop
Use Codex as a second, differently-trained reviewer of your branch, fix every real finding with regression tes
CI Green
Loop fix-bot-comments + CI rechecks on a PR until all checks pass and every thread is resolved.
Run Reviewer Loop
Run the automated reviewer loop (and CI loop) for a PR until clean or escalate. Usage: /run-reviewer-loop PR
Local Custom Loop
A review command you define, on this machine — branch, verify, commit, review, fix findings, then push and ope
Local Review Loop
Claude Code's /code-review on this machine — branch, verify, commit, review, fix findings, then push and open
Related Agents
Upmerge CI Watcher
Watches the Jenkins PR build of one pushed upmerge until it is green, and fixes failing compiles, unit tests a
Automated Reviewer Loop
Run the automated reviewer loop (and CI loop) for a PR. Use when the user wants to run the reviewer loop on a
Approval Gate
HumanLayer-inspired approval gate. Enforces human-in-the-loop for HIGH-stakes operations. Classifies actions b