javierhbr/agnostic-agent-loop/run-with-ralph
Claude Code and agent skill by javierhbr/agnostic-agent-loop
- community
Checking that the SKILL.md file is still in the repository.
Use when implementing openspec tasks with Ralph Wiggum iterative loops, or when asked to "ralph my tasks", "iterate on openspec tasks", "run tasks with ralph", or "implement change with ralph". Also use when you have openspec tasks in backlog and want automated iterative implementation with convergence guarantees.
Install
npx vskill@latest install javierhbr/agnostic-agent-loop/run-with-ralphSKILL.md
The same SKILL.md was published earlier as javierhbr/agnostic-agent-loop/run-with-ralph.
Run with Ralph
Execute openspec tasks using Ralph Wiggum iterative loops. One task per loop, acceptance criteria as the completion signal.
When to Use
- Openspec tasks exist in backlog and you want iterative implementation
- User asks to "ralph my tasks", "run with ralph", "iterate on tasks"
- You need automated convergence: Ralph reads specs, checks criteria, loops until done
Not for: Planning (use openspec). Manual one-shot implementation. Tasks without acceptance criteria.
The Loop
Step-by-Step
1. List and pick a task
2. Claim it (BEFORE ralph)
This records your git branch and timestamp. Never skip this — without it, task complete can't capture commits.
3. Get task details
Extract from the output:
- Spec Refs — files Ralph must read each iteration
- Acceptance Criteria — Ralph's convergence conditions
- Technical Notes — implementation hints
4. Build the ralph prompt
Use this template — fill in from task show output:
5. Launch ralph (with optional Superpowers)
Recommended: Use superpowers:executing-plans with built-in checkpoints and code review:
Then paste the task ID. Superpowers will handle iteration and verification automatically.
Fallback: Use in-house Ralph Wiggum loop:
If debugging needed during iteration: Use superpowers:systematic-debugging when Ralph encounters errors:
- 4-phase protocol: identify → isolate → narrow → fix
- Tests after fix
- Documents insights
Or use in-house debugging skill.
6. Complete the task
7. Repeat for next task
Go back to step 1. One task per ralph loop.
Critical Rules
| Rule | Why | |
|---|---|---|
| One task per loop | Multiple tasks = no convergence signal | |
| Always claim before ralph | Git tracking needs the timestamp | |
| Always include spec refs in prompt | Ralph loses context between iterations | |
| Always include `<promise>` tag instruction | Without it, Ralph loops forever | |
| Always set `--max-iterations` | Safety net — 5-15 depending on complexity | |
| Always `task complete` after | Captures commits, updates openspec progress |
Common Mistakes
| Mistake | Fix | |
|---|---|---|
| Launching ralph without claiming | task claim FIRST — git tracking needs it | |
| Vague prompt without acceptance criteria | Copy criteria verbatim from task show | |
| No spec refs in prompt | Ralph needs context each iteration — include file paths | |
Missing <promise> tag in prompt | Add explicit instruction: "output <promise>TASK COMPLETE</promise>" | |
| Multiple tasks in one loop | One task = one loop. Always. | |
Forgetting task complete | Run it right after ralph finishes | |
No --max-iterations | Always set a cap. 10 is a good default. |
Quick Example
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckinginternal/skills/packs/run-with-ralph/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/javierhbr/agnostic-agent-loop/run-with-ralph)