
pm7y-ralph-loop
by pm7y
A claude code marketplace of my custom plugins and whatnot.
SKILL.md
name: pm7y-ralph-loop description: Set up a cross-platform Ralph Wiggum loop for continuous autonomous Claude execution. Use when the user wants to run Claude in a loop, implement the Ralph technique, or needs continuous autonomous operation. This skill only sets up the PS1 scripts - use pm7y-ralph-planner to create TASKS.md files. allowed-tools: Write, Read, Bash
Ralph Wiggum Loop Setup
The Ralph Wiggum technique involves running Claude in a continuous loop, spawning fresh sessions to maintain context quality over long-running autonomous operations. This skill sets up cross-platform PowerShell Core scripts for this purpose.
Note: This skill only creates the execution scripts. Use the pm7y-ralph-planner agent to create or update TASKS.md files with validation requirements and learnings tracking.
Script Locations
The PowerShell scripts are located at:
${CLAUDE_PLUGIN_ROOT}/skills/pm7y-ralph-loop/ralph-loop.ps1 # Continuous loop
${CLAUDE_PLUGIN_ROOT}/skills/pm7y-ralph-loop/ralph-once.ps1 # Single execution
${CLAUDE_PLUGIN_ROOT}/skills/pm7y-ralph-loop/ralph-visualize.ps1 # Output visualizer
What You Do
When this skill is invoked:
- Check for PowerShell Core - Verify
pwshis available - Copy the scripts - Copy all three scripts (
ralph-loop.ps1,ralph-once.ps1,ralph-visualize.ps1) to the current directory - Explain usage - Show the user how to run and customize
- Suggest task planning - Recommend using
pm7y-ralph-plannerif no TASKS.md exists
Setup Steps
Step 1: Check Prerequisites
# Check if pwsh is available
pwsh --version
If not installed, advise:
- macOS:
brew install powershell - Windows: Already included or install from Microsoft Store
- Linux:
sudo snap install powershell --classic
Step 2: Copy the Scripts
Copy all three scripts from the plugin to the user's current directory:
${CLAUDE_PLUGIN_ROOT}/skills/pm7y-ralph-loop/ralph-loop.ps1→./ralph-loop.ps1${CLAUDE_PLUGIN_ROOT}/skills/pm7y-ralph-loop/ralph-once.ps1→./ralph-once.ps1${CLAUDE_PLUGIN_ROOT}/skills/pm7y-ralph-loop/ralph-visualize.ps1→./ralph-visualize.ps1
Step 3: Check for TASKS.md
Check if TASKS.md exists in the current directory:
- If exists: Inform the user they're ready to run the loop
- If missing: Suggest running
/pm7y-ralph-plannerto create a properly structured TASKS.md with validation requirements and learnings tracking
Usage Instructions
After setup, tell the user:
ralph-once.ps1 (Single Execution)
Run Claude once - useful for testing prompts or one-off tasks:
# Default (uses TASKS.md, opus model)
pwsh ./ralph-once.ps1
# Custom configuration
pwsh ./ralph-once.ps1 -PromptFile "task.md" -Model "sonnet"
# Quiet mode (only show Claude output)
pwsh ./ralph-once.ps1 -Quiet
# Without visualization
pwsh ./ralph-once.ps1 -NoVisualize
| Parameter | Default | Description |
|---|---|---|
-PromptFile | TASKS.md | Path to the prompt/task file |
-Model | opus | Claude model (sonnet, opus, haiku) |
-NoVisualize | false | Skip piping output through the visualizer |
-Quiet | false | Suppress status messages |
-AutoCommit | false | Auto-commit changes with Claude-generated message |
ralph-loop.ps1 (Continuous Loop)
Run Claude in a continuous loop:
# Default (uses TASKS.md, opus model, 25 iterations max, 10s sleep)
pwsh ./ralph-loop.ps1
# Custom configuration
pwsh ./ralph-loop.ps1 -PromptFile "tasks.md" -Model "sonnet" -SleepSeconds 30
# Limited iterations (for testing)
pwsh ./ralph-loop.ps1 -MaxIterations 5
# Without visualization
pwsh ./ralph-loop.ps1 -NoVisualize
| Parameter | Default | Description |
|---|---|---|
-PromptFile | TASKS.md | Path to the prompt/task file |
-Model | opus | Claude model (sonnet, opus, haiku) |
-SleepSeconds | 10 | Seconds between iterations |
-MaxIterations | 25 | Max iterations (0 = unlimited) |
-NoVisualize | false | Skip piping output through the visualizer |
-AutoCommit | false | Auto-commit changes with Claude-generated message |
Prerequisites:
- PowerShell Core (
pwsh) - Install viabrew install powershell(macOS) or from Microsoft - Claude CLI (
claude) - Install from https://claude.ai/code
Stop the loop: Press Ctrl+C
Checklist
- Check if
pwshis available, suggest installation if not - Copy
ralph-loop.ps1from plugin to current directory (DO NOT modify it) - Copy
ralph-once.ps1from plugin to current directory (DO NOT modify it) - Copy
ralph-visualize.ps1from plugin to current directory (DO NOT modify it) - Check if
TASKS.mdexists - If no TASKS.md, suggest using
pm7y-ralph-plannerto create one - Explain usage to user
Score
Total Score
Based on repository quality metrics
SKILL.mdファイルが含まれている
ライセンスが設定されている
100文字以上の説明がある
GitHub Stars 100以上
3ヶ月以内に更新がある
10回以上フォークされている
オープンIssueが50未満
プログラミング言語が設定されている
1つ以上のタグが設定されている
Reviews
Reviews coming soon