
Ralph Loop Workflow
Run a coding agent in a long autonomous loop from one wide outcome prompt, with preflight CLI checks and built-in verify-and-iterate gates.
Install
npx skills add https://github.com/andrelandgraf/fullstackrecipes --skill ralph-loop-workflowWhat is this skill?
- Preflight gate: every required CLI installed, linked, and authenticated before the loop starts
- Wide outcome-focused prompt with agent-managed todo breakdown—no separate user-story file to author
- Iteration loop: code, user-facing docs, changelog, tests, then verification (typecheck, fmt, fallow, browser, tests, dep
- Stops and asks for a prompt if none is given—outcome must be stated up front
- Prerequisite recipes: AI Coding Agent Configuration, Code Health/Linting/Formatting, Testing
Adoption & trust: 1 installs on skills.sh; 17 GitHub stars; trending (+100% hot-view momentum).
Recommended Skills
Agent Browservercel-labs/agent-browser
Lark Imlarksuite/cli
Lark Calendarlarksuite/cli
Lark Sheetslarksuite/cli
Lark Vclarksuite/cli
Lark Contactlarksuite/cli
Journey fit
Primary fit
Canonical shelf is build/agent-tooling because the skill defines how the agent harness plans and executes work; it chains through ship-style verification in the same loop. Ralph is explicitly an agent loop workflow (/ralph), task breakdown, and harness-managed todos—not a single integration or frontend task.
SKILL.md
READMESKILL.md - Ralph Loop Workflow
# Ralph Loop Workflow Run a coding agent in an autonomous loop that breaks a wide prompt into tasks and builds, tests, and ships each one. ## Prerequisites Complete these setup recipes first: - AI Coding Agent Configuration - Code Health, Linting & Formatting - Testing ### The Loop Ralph maximizes how long the agent runs without human intervention. The goal is not a file format — it is keeping the agent able to plan, build, and verify on its own. The durable record of intent lives in the artifacts the agent produces: tests (executable acceptance criteria), user-facing docs, and a changelog for published libraries. ``` input prompt -> preflight check (CLIs installed, linked, authenticated) -> agent harness managed todo list (first-principles task breakdown) -> code + user-facing docs + changelog + tests -> verification (typecheck, fmt, fallow, browser, tests, deploy, prod check) -> iterate ``` Give the agent a wide, outcome-focused prompt and let its own harness manage the todo list — there is no separate user-story file to author or check off. If no prompt is given, STOP and ask the user: "What outcome do you want the Ralph loop to drive toward? Give me a wide, outcome-focused prompt and I'll break it into tasks." Wait for their answer before continuing. Run the preflight check once. If anything is missing or unauthenticated, report the exact fix commands and STOP — the loop does not start until everything is green. Then each iteration: 1. Read the current state of the codebase and any prior progress. 2. Break remaining work into tasks with first-principles thinking. 3. Pick the highest-priority task. 4. Implement it through the dev workflow: write tests, build, generate and migrate DB schema if needed, format. 5. Verify: typecheck, build, tests, and browser interaction at `http://localhost:3000`. 6. Debug and fix until verification passes. 7. Update user-facing docs and the changelog for any published artifacts. 8. Commit with a descriptive message and move to the next task. Keep the dev server running (`bun run dev`). The agent works against a test database, so it can migrate freely. The loop ends when no tasks remain and all verification passes. ### What the Agent Needs Nothing Ralph-specific to install — the loop depends on three things being in place: - **Context** — how to work in this codebase (patterns, dev workflow, conventions), via `AGENTS.md`, configured MCP servers, and installed skills. - **Tools** — to provision resources, run migrations, pull logs, and inspect deployments, via the project's MCP servers and CLIs. Give the agent the same tools you use. - **Verification** — what extends autonomous runway. The agent must check its own work locally and in production: - **Code health** — `bun run typecheck`, `bun run fmt`, `bun run fallow` - **Tests** — `bun run test` against an isolated database branch (Playwright, integration, unit) - **Browser** — `agent-browser` to interact with the running app like a user - **Logs & deploys** — pull deployment and runtime logs to confirm changes shipped and work in production When verification is trustworthy and self-serve, the agent catches and fixes its own regressions without a human in the loop. ### Preflight Check Confirm the agent has everything before the first iteration, rather than discovering a missing credential halfway through. Don't assume a fixed list — infer the active infrastructure from the codebase, then check each tool: 1. **Discover the infra in use.** Read the MCP config (`.cursor/mcp.json`), the `better-env` `configSchema` declarations, and `package.json` scripts. Each configured service implies a CLI or token: Neon (`DATABASE_URL`), Vercel,