charfeng1/opencode-ralph-loop/ralph-loop

Claude Code and agent skill by charfeng1/opencode-ralph-loop

Trust tier 2
  • community
LLM review pending
Source check pending

Checking that the SKILL.md file is still in the repository.

Start Ralph Loop - auto-continues until task completion

Install

npx vskill@latest install charfeng1/opencode-ralph-loop/ralph-loop

SKILL.md

Ralph Loop

Start an iterative development loop that automatically continues until the task is complete.

How It Works

The Ralph Loop creates a continuous feedback cycle for completing complex tasks:

  1. You work on the task until you go idle
  2. The plugin detects the idle state and checks for completion
  3. If not complete, it prompts you to continue where you left off
  4. This repeats until you output the completion promise or max iterations reached

Your previous work remains accessible through files and git history, enabling progressive refinement across iterations.

Starting the Loop

When you invoke this skill, create the state file in the project directory:

bash
mkdir -p .opencode && cat > .opencode/ralph-loop.local.md << 'EOF'
---
active: true
iteration: 0
maxIterations: 100
---
[The user's task prompt goes here]
EOF

Then inform the user and begin working on the task.

Completion Promise - CRITICAL RULES

When you have FULLY completed the task, signal completion by outputting:

<promise>DONE</promise>

IMPORTANT CONSTRAINTS:

  • ONLY output <promise>DONE</promise> when the task is COMPLETELY and VERIFIABLY finished
  • The statement MUST be completely and unequivocally TRUE
  • Do NOT output false promises to escape the loop, even if you think you're stuck
  • Do NOT lie even if you think you should exit for other reasons
  • If you're blocked, explain the blocker and request help instead of falsely completing

The loop can only be stopped by:

  1. Truthful completion promise
  2. Max iterations reached
  3. User running /cancel-ralph

Checking Status

Check current iteration:

bash
grep '^iteration:' .opencode/ralph-loop.local.md

State File Format

The state file at .opencode/ralph-loop.local.md uses YAML frontmatter:

markdown
---
active: true
iteration: 3
maxIterations: 100
sessionId: ses_abc123
---
Your original task prompt

Add .opencode/ralph-loop.local.md to your .gitignore.

Security

  • Security scanPassed, 93 of 100Pattern checks on the skill's files.
  • Model reviewNot runA model review is scheduled for the next rescan.

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
48
Repository forks
9
Repository npm downloads, 7 days
819
7-day trend score
35

Stars and forks are for the whole GitHub repository, not this skill alone. Downloads are for the repository's npm package. Refreshed 24 May 2026, 5 months ago.

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/charfeng1/opencode-ralph-loop/ralph-loop/badge)](https://verified-skill.com/skills/charfeng1/opencode-ralph-loop/ralph-loop)

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