ralph-loop-workflow
БесплатноБез исполняемых скриптовНе проверенRun a coding agent in an autonomous loop via a /ralph command, gated by a preflight check that every CLI is installed, linked, and authenticated. Use when…
от andrelandgraf★ 22 звезды на GitHubОб этом скилле
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:
- Read the current state of the codebase and any prior progress.
- Break remaining work into tasks with first-principles thinking.
- Pick the highest-priority task.
- Implement it through the dev workflow: write tests, build, generate and migrate DB schema if needed, format.
- Verify: typecheck, build, tests, and browser interaction at
http://localhost:3000. - Debug and fix until verification passes.
- Update user-facing docs and the changelog for any published artifacts.
- 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 testagainst an isolated database branch (Playwright, integration, unit) - Browser —
agent-browserto interact with the running app like a user - Logs & deploys — pull deployment and runtime logs to confirm changes shipped and work in production
- Code health —
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:
- Discover the infra in use. Read the MCP config (
.cursor/mcp.json), thebetter-envconfigSchemadeclarations, andpackage.jsonscripts. Each configured service implies a CLI or token: Neon (DATABASE_URL), Vercel, Resend, Sentry, GitHub, Better Auth, etc. - For each tool, verify install + link + auth with a non-destructive command.
- Report a checklist with a fix command for every red item.
Example checks (run only the ones the codebase uses):
agent-browser -v # browser automation
vercel --version && vercel whoami && vercel project ls # installed + linked + auth
neonctl me # Neon CLI authenticated
sentry-cli info # token present and valid
gh auth status # GitHub CLI for PRs, logs
bun run env:validate # env vars match the schema
Stop if anything is red:
Preflight check
[ok] agent-browser v1.4.2
[ok] vercel linked to acme/app, logged in as andre
[fail] neon not authenticated
[fail] DATABASE_URL not set in .env.local
[ok] gh authenticated
2 issues block the loop. Run these, then re-run /ralph:
neonctl auth # opens browser for OAuth
bun run env:pull # pull DATABASE_URL from Vercel
For interactive OAuth (Vercel, Neon,
Установить ralph-loop-workflow в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл ralph-loop-workflow?
Run a coding agent in an autonomous loop via a /ralph command, gated by a preflight check that every CLI is installed, linked, and authenticated. Use when driving long-running autonomous development from a wide, outcome-focused prompt.
Как установить скилл ralph-loop-workflow?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл ralph-loop-workflow запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic