Fix CI Until Green
Automation
by loops! by elorm
Fetch the latest failed CI run, reproduce the failure locally, fix it, and repeat until checks pass.
Prompt
Step 1 — Fetch failed run Use gh to find the latest failed CI run on this branch. Pull logs for the failing job. Check: `gh run list --branch $(git branch --show-current) --status failure --limit 1` Step 2 — Reproduce locally Run the failing CI step locally (test, lint, build). Confirm you can reproduce the error. Step 3 — Apply fix Fix the root cause with a minimal diff. Avoid unrelated refactors. Step 4 — Push and verify Push the fix and wait for CI. Re-check status before the next iteration. Check: `gh run list --branch $(git branch --show-current) --limit 1 --json conclusion -q '.[0].conclusion'` Step 5 — Repeat until done Repeat the steps above until: Latest CI run conclusion is success Check with: `gh run list --branch $(git branch --show-current) --limit 1 --json conclusion -q '.[0].conclusion'` Stop after 8 iterations and report what is blocking.
Platforms
CLAUDE
CLAUDE
Use this prompt in AIniverse
Tap to copy, run it on ChatGPT / Claude / Gemini, save to your stack, or remix.
Open in AppMore Automation prompts
Security Audit Weekly
Weekly npm audit scan, triage vulnerabilities by severity, and propose or apply safe patches.
Knip Until Clean
Find and remove dead exports, unused files, and orphan dependencies — loop until knip reports clean.
Ship PR Until Green
Implement on a branch, run tests, push, open a PR, wait for CI, and loop until checks pass and the PR is ready to merge.
Ralph Story Executor
Fresh-context loop: pick one incomplete story from prd.json, implement it, run backpressure checks, commit, and updat...