From maintenance
Use when CI on the main branch is failing (security scans, linters, tests, builds), when grype/trivy/megalinter report vulnerabilities, or when dependency upgrades are needed to fix CI. KEYWORDS: fix ci, main failing, grype, trivy, megalinter, security scan, vulnerability, CVE, GHSA, dependency upgrade, fix linter, broken main.
How this skill is triggered — by the user, by Claude, or both
Slash command
/maintenance:fix-ci-mainThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Create an isolated worktree from main, trigger CI via a draft PR, analyze failures, fix them, and iterate until green.
Create an isolated worktree from main, trigger CI via a draft PR, analyze failures, fix them, and iterate until green.
digraph fix_ci {
rankdir=TB;
start [label="Create worktree from main" shape=box];
commit [label="Make trivial commit\nthat triggers CI paths" shape=box];
pr [label="Push + create draft PR" shape=box];
wait [label="Wait for all CI checks" shape=box];
check [label="All checks green?" shape=diamond];
analyze [label="Analyze failure logs" shape=box];
fix [label="Fix, commit, push" shape=box];
done [label="Squash commits\nUpdate PR title/description\nMark ready for review" shape=box];
start -> commit -> pr -> wait -> check;
check -> done [label="yes"];
check -> analyze [label="no"];
analyze -> fix -> wait;
}
Fetch the latest main (git fetch origin main) and use the superpowers:using-git-worktrees skill to create an isolated workspace based on origin/main.
Make a minimal change that matches CI workflow path triggers. Check .github/workflows/ for paths: filters to know which files to touch.
Push the branch and create a draft PR to trigger all CI workflows.
Wait for all CI checks to complete. For each failure, read the job logs, identify the root cause, fix it, commit, push, and wait again. Repeat until all checks are green.
Once all checks pass: squash commits into a single clean commit, update the PR title and description to reflect the actual fix, and mark the PR as ready for review.
npx claudepluginhub rodrigoluizs/claude-plugins --plugin maintenanceSets up GitHub Actions workflow to automatically analyze CI failures, apply fixes for common issues, and open issues for complex problems using Claude Code.
Detects GitHub Actions CI failures in PRs, analyzes logs with gh CLI, fixes code, commits and pushes changes, then re-verifies up to 3 retries until passing.