AIniverse Get the App

Ralph Story Executor

Automation by loops! by elorm

Fresh-context loop: pick one incomplete story from prd.json, implement it, run backpressure checks, commit, and update progress before the next iteration.

Prompt

Step 1 — Read state
Read .ralph/prd.json and .ralph/progress.md. Resume any story marked inProgress, else pick the lowest-priority story with passes: false.

Step 2 — Implement one story
Implement exactly one user story with minimal scope. Mark it inProgress in prd.json before coding.

Step 3 — Run backpressure
Run the project's test, lint, and build commands from AGENTS.md. Fix failures before committing.

Check: `npm test && npm run lint && npm run build`

Step 4 — Commit and record
Commit with a story-scoped message. Set passes: true in prd.json and append learnings to progress.md.

Step 5 — Repeat until done
Repeat the steps above until: All stories in prd.json have passes: true

Check with: `cat .ralph/prd.json | grep -c '"passes": false' || true`

Stop after 20 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.

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.

Dependency Upgrade One-by-One

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