javierhbr/agnostic-agent-loop/run-with-ralph

Claude Code and agent skill by javierhbr/agnostic-agent-loop

Trust tier 3
  • community
Source check pending

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-ralph

SKILL.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

dot
digraph ralph_openspec {
"List tasks" [shape=box];
"Claim task" [shape=box];
"Show task details" [shape=box];
"Build ralph prompt" [shape=box];
"Run /ralph-loop" [shape=box];
"Complete task" [shape=box];
"More tasks?" [shape=diamond];
"Done — run\nopenspec complete" [shape=box];
"List tasks" -> "Claim task";
"Claim task" -> "Show task details";
"Show task details" -> "Build ralph prompt";
"Build ralph prompt" -> "Run /ralph-loop";
"Run /ralph-loop" -> "Complete task";
"Complete task" -> "More tasks?";
"More tasks?" -> "Claim task" [label="yes"];
"More tasks?" -> "Done — run\nopenspec complete" [label="no"];
}

Step-by-Step

1. List and pick a task
bash
agentic-agent task list --no-interactive
2. Claim it (BEFORE ralph)
bash
agentic-agent task claim TASK-ID

This records your git branch and timestamp. Never skip this — without it, task complete can't capture commits.

3. Get task details
bash
agentic-agent task show TASK-ID --no-interactive

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:

You are implementing TASK-ID: TASK TITLE.
## Context — read these files first:
- SPEC_REF_1
- SPEC_REF_2
- .agentic/context/tech-stack.md
## Acceptance Criteria — ALL must pass:
- CRITERION_1
- CRITERION_2
- CRITERION_3
## On each iteration:
1. Read the task detail file for technical notes
2. Implement what's missing
3. Run verification commands (tests, linter, build)
4. If ALL criteria pass, output <promise>TASK COMPLETE</promise>
5. Launch ralph (with optional Superpowers)

Recommended: Use superpowers:executing-plans with built-in checkpoints and code review:

/executing-plans

Then paste the task ID. Superpowers will handle iteration and verification automatically.

Fallback: Use in-house Ralph Wiggum loop:

/ralph-loop "YOUR PROMPT" --max-iterations 10 --completion-promise "TASK COMPLETE"

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
bash
agentic-agent task complete TASK-ID
agentic-agent openspec status CHANGE-ID
7. Repeat for next task

Go back to step 1. One task per ralph loop.

Critical Rules

RuleWhy
One task per loopMultiple tasks = no convergence signal
Always claim before ralphGit tracking needs the timestamp
Always include spec refs in promptRalph loses context between iterations
Always include `<promise>` tag instructionWithout it, Ralph loops forever
Always set `--max-iterations`Safety net — 5-15 depending on complexity
Always `task complete` afterCaptures commits, updates openspec progress

Common Mistakes

MistakeFix
Launching ralph without claimingtask claim FIRST — git tracking needs it
Vague prompt without acceptance criteriaCopy criteria verbatim from task show
No spec refs in promptRalph needs context each iteration — include file paths
Missing <promise> tag in promptAdd explicit instruction: "output <promise>TASK COMPLETE</promise>"
Multiple tasks in one loopOne task = one loop. Always.
Forgetting task completeRun it right after ralph finishes
No --max-iterationsAlways set a cap. 10 is a good default.

Quick Example

bash
# 1. Claim
agentic-agent task claim TASK-936281-2
# 2. Show (read the output)
agentic-agent task show TASK-936281-2 --no-interactive
# 3. Ralph
/ralph-loop "Implement TASK-936281-2: Configure TypeScript and ESLint.
Read first:
- .agentic/openspec/changes/todo-pwa/tasks/02-typescript-eslint.md
- .agentic/openspec/changes/todo-pwa/proposal.md
- .agentic/context/tech-stack.md
Acceptance:
- tsconfig.json with strict mode
- ESLint configured for React + TypeScript
- No ESLint errors
- Path aliases @/ for src/
Run npx tsc --noEmit && npx eslint . to verify.
When all pass: <promise>TASK COMPLETE</promise>" --max-iterations 10 --completion-promise "TASK COMPLETE"
# 4. Complete
agentic-agent task complete TASK-936281-2
agentic-agent openspec status todo-pwa

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

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
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/javierhbr/agnostic-agent-loop/run-with-ralph/badge)](https://verified-skill.com/skills/javierhbr/agnostic-agent-loop/run-with-ralph)

Something wrong with this skill or its page? Tell us.