pm7y-ralph-loop
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.
What this skill does
# 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:
1. **Check for PowerShell Core** - Verify `pwsh` is available
2. **Copy the scripts** - Copy all three scripts (`ralph-loop.ps1`, `ralph-once.ps1`, `ralph-visualize.ps1`) to the current directory
3. **Explain usage** - Show the user how to run and customize
4. **Suggest task planning** - Recommend using `pm7y-ralph-planner` if no TASKS.md exists
## Setup Steps
### Step 1: Check Prerequisites
```bash
# 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-planner` to 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:
```bash
# 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:
```bash
# 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 via `brew install powershell` (macOS) or from Microsoft
- Claude CLI (`claude`) - Install from <https://claude.ai/code>
**Stop the loop:** Press `Ctrl+C`
## Checklist
- [ ] Check if `pwsh` is available, suggest installation if not
- [ ] Copy `ralph-loop.ps1` from plugin to current directory (DO NOT modify it)
- [ ] Copy `ralph-once.ps1` from plugin to current directory (DO NOT modify it)
- [ ] Copy `ralph-visualize.ps1` from plugin to current directory (DO NOT modify it)
- [ ] Check if `TASKS.md` exists
- [ ] If no TASKS.md, suggest using `pm7y-ralph-planner` to create one
- [ ] Explain usage to user
Related in Productivity
gitea-workflow
IncludedOrchestrate agile development workflows for Gitea repositories using the tea CLI. Use when working with Gitea-hosted repos and asking to 'run the workflow', 'continue working', 'what's next', 'complete the task cycle', 'start my day', 'end the sprint', 'implement the next task', or wanting guided step-by-step development assistance. Keywords: workflow, orchestrate, agile, task cycle, sprint, daily, implement, review, PR, standup, retrospective, gitea, tea.
microsoft-graph-gateway
IncludedRoute Microsoft Graph work in this workspace. Use when users want to read or write Outlook mail, calendar events, contacts, OneDrive or SharePoint files, Teams, Planner, To Do, users, groups, directory data, or arbitrary Microsoft Graph endpoints from VS Code. Prefer WorkIQ for common read scenarios. Use Microsoft Graph for write actions and gap-read scenarios that need exact Graph properties, filters, permissions, or endpoints.
copilotkit
IncludedUse when building with CopilotKit — setup, development, integrations, debugging, upgrading, or contributing. Routes to the appropriate specialized skill based on the task.
wordly-wisdom
IncludedProvides calibrated decision analysis using Charlie Munger-style multiple mental models, inversion, incentive mapping, circle-of-competence checks, misjudgment audits, second-order effects, and forecast updates. Use when the user asks for an oracle take, a hard call, a decision memo, a premortem, an outside view, a red-team, a sanity-check, what am I missing, think this through, or wants a strategy, hire, investment, plan, product, partnership, or major life choice analysed. Avoid for simple factual lookups or time-sensitive legal, medical, or market questions without fresh evidence.
swain-session
IncludedSession management and project status dashboard. Owns the full session lifecycle (start/work/close/resume), focus lane, bookmarks, worktree detection, and tab naming. Also serves as the project status dashboard — shows active epics, progress, actionable next steps, blocked items, tasks, GitHub issues, and recommendations. Worktree creation is deferred to swain-do task dispatch (SPEC-195). Triggers on: 'session', 'status', 'what's next', 'dashboard', 'overview', 'where are we', 'what should I work on', 'show me priorities', 'bookmark', 'focus on', 'session info'.
gandi
IncludedComprehensive Gandi domain registrar integration for domain and DNS management. Register and manage domains, create/update/delete DNS records (A, AAAA, CNAME, MX, TXT, SRV, and more), configure email forwarding and aliases, check SSL certificate status, create DNS snapshots for safe rollback, bulk update zone files, and monitor domain expiration. Supports multi-domain management, zone file import/export, and automated DNS backups. Includes both read-only and destructive operations with safety controls.