Ralph
БесплатноЗапускает вложенные скриптыНе проверенRalph Wiggum methodology for autonomous agentic development. Use when setting up a new Ralph task, preparing specs, or troubleshooting Ralph loops.
от ma08★ 31 звезда на GitHubОб этом скилле
Ralph Wiggum Methodology
Ralph is a technique for autonomous agentic software development using LLMs in a deterministic loop. Named after the naive character from The Simpsons, Ralph represents giving an AI minimal planning ability and maximum execution autonomy.
Critical: Separation of Concerns
The orchestrator session prepares the loop. The loop agent does the work.
When a plan involves a Ralph loop, do NOT implement the code changes yourself. Your job is to create the Ralph infrastructure files (PROMPT.md, AGENT.md, fix_plan.md, specs/, run-ralph.sh) and hand off to the user to run the loop. The loop agent — spawned fresh each iteration by run-ralph.sh — reads PROMPT.md, picks the next incomplete task from fix_plan.md, implements it, validates, commits, and loops.
- Orchestrator creates: Ralph files, specs, fix_plan.md (tasks in TODO)
- Orchestrator does NOT: implement code, write tests, mark tasks complete, commit
- Loop agent does: implement code, run tests, update fix_plan.md, commit per task
Core Philosophy
Blame Yourself, Not Ralph: If Ralph does something wrong, look at your prompts, specs, and instructions. "Tune Ralph like a guitar."
One Thing Per Loop: Ralph does ONE task per iteration. If things go off the rails, narrow to one item.
Trust Eventual Consistency: Every problem created by AI can be resolved through a different series of prompts.
LLMs Are Mirrors: The quality of Ralph's output reflects the quality of your specs and prompts.
When to Use Ralph
- Greenfield projects (new codebases) - expect 90% completion
- Well-specified features with clear requirements
- GPU/remote machine delegation
- Tasks where you can provide working reference code
When NOT to use Ralph:
- Complex existing codebases with lots of implicit context
- Tasks requiring deep domain knowledge you can't encode in specs
The Stack (4 Essential Files)
Ralph allocates these files as persistent context every loop:
1. PROMPT.md - The Loop Engine
The current task/instruction for Ralph. This is where you "tune Ralph" by adding guidance (signs).
Important: if your loop uses a completion promise string, include that exact string only once in PROMPT.md. Repeating the same promise text in multiple sections can cause false-positive completion detection when a runner echoes the prompt.
2. AGENT.md - The Heart
Instructions on HOW to build, run, and test the project:
- Environment setup (conda, venv, PATH)
- Build commands
- Test commands (specific test files, not whole suite)
- Type checking (mypy, pyright)
Key: Ralph updates this file when learning new commands.
3. fix_plan.md - The TODO List
Bullet-point list of items sorted by priority:
- [ ]for pending tasks- [x]for completed tasks- Notes section for learnings
Ralph keeps this updated. Delete and regenerate when stale.
4. specs/ - Specifications (Immutable Contract)
One file per feature/module. Each spec contains:
- Purpose statement
- Function signatures with full types
- Implementation requirements
- Working reference code (critical!)
- Expected input/output examples
Key insight: Specs are formed through conversation, not written in isolation.
The Loop
Ralph cycles through three phases (repeat forever):
Phase 1: Generate
- Ralph reads PROMPT.md, specs/*, and fix_plan.md
- Generates code based on specifications
- If generating wrong patterns → update specs
- If building wrong thing → specs are incorrect
Phase 2: Backpressure (Validate at Three Tiers)
- Tier 1 (Static): Type check, compile, structural grep — EVERY iteration (~5s)
- Tier 2 (Smoke): Hit running service with trivial input, verify no crash — EVERY iteration if available (~5s)
- Tier 3 (Integration): Real data through the feature — at [MILESTONE] tasks only (30s+)
- Critical: Tiers 1+2 must be fast. The wheel must turn fast. Tier 3 is for confidence checkpoints.
- If Tier 2 unavailable (service not running): fall back to Tier 1 only. Do NOT start services.
Phase 3: Commit & Loop Back
- When tests pass, update fix_plan.md
- Git add/commit/push
- Loop back to Phase 1
Writing Effective Specs
Specs are the most critical input. Bad specs = bad output.
Process:
- Have a conversation with Claude about requirements
- Claude asks clarifying questions
- Once Claude understands, ask it to write specs
- Include working code snippets from tested implementations
Spec structure:
# Feature: [Name]
## Purpose
[What this feature does]
## Function Signatures
[Full typed signatures]
## Requirements
[Specific requirements, library versions, GPU needs, etc.]
## Reference Code
[Working code from tested notebook/implementation]
## Expected Behavior
[Input/output examples]
Signs (Prompt Tuning)
When Ralph goes wrong, add "signs" to PROMPT.md:
| Problem | Sign to Add |
|---|---|
| Placeholder implementations | "DO |
Установить Ralph в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл Ralph?
Ralph Wiggum methodology for autonomous agentic development. Use when setting up a new Ralph task, preparing specs, or troubleshooting Ralph loops.
Как установить скилл Ralph?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл Ralph запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic