AIniverse Get the App

Ship PR Until Green

Automation by loops! by elorm

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.

Prompt

Step 1 — Implement and test
Make the scoped change and run local tests.

Check: `npm test`

Step 2 — Commit and push
Commit with a clear message and push the branch.

Step 3 — Open or update PR
Open a PR with summary and test plan, or update existing PR.

Check: `gh pr view --json statusCheckRollup,url`

Step 4 — Fix CI
If CI fails, read logs, fix once locally, push, and re-wait.

Step 5 — Repeat until done
Repeat the steps above until: PR checks pass and PR is merge-ready

Check with: `gh pr checks --watch`

Stop after 10 iterations and report what is blocking.
Platforms
CHATGPTCLAUDE

Use this prompt in AIniverse

Tap to copy, run it on ChatGPT / Claude / Gemini, save to your stack, or remix.

Open in App

More 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.

Ralph Story Executor

Fresh-context loop: pick one incomplete story from prd.json, implement it, run backpressure checks, commit, and updat...

Dependency Upgrade One-by-One

Upgrade a single outdated package per iteration, fix breakages, and commit — safer than bulk npm update.