一键导入
ralph-claude-loop
Start a PRD-driven Loop in Claude Code. Reads prd.json + progress.txt each iteration. Uses the official loop stop hook.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Start a PRD-driven Loop in Claude Code. Reads prd.json + progress.txt each iteration. Uses the official loop stop hook.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Claude Code interview that generates PRD, activates the official loop stop hook, and starts working immediately. Uses Skill tool for loop invocation.
Cancel the active Loop in Claude Code
Multi-agent orchestration patterns for Loop in Claude Code. Uses the Agent tool for parallel subagent spawning.
Interactive interview that generates optimized loop commands with PRD-based phase tracking. Compatible with ralph-skills prd.json format.
Orchestration patterns for loop: subagent spawning, parallel exploration, and task decomposition strategies
| name | ralph-claude-loop |
| description | Start a PRD-driven Loop in Claude Code. Reads prd.json + progress.txt each iteration. Uses the official loop stop hook. |
Start a Loop optimized for Claude Code. This skill sets up the loop state, activates the official stop hook, and begins working on the first pending story from prd.json.
loophaus plugin must be installedprd.json file must exist in the project root (generate one with /loop-plan).loophaus/state.json (the state file)<promise>COMPLETE</promise>┌─ IMPLEMENT ─────────────────────────────┐
│ Pick next story → implement → verify │
└─────────────────────┬───────────────────┘
▼
┌─ DISCOVER ──────────────────────────────┐
│ Review what you just built. │
│ Did you find: │
│ - Hidden complexity? │
│ - Missing edge cases? │
│ - New dependencies? │
│ - Broken assumptions from the PRD? │
└─────────────────────┬───────────────────┘
▼
┌─ UPDATE PRD ────────────────────────────┐
│ If discoveries found: │
│ 1. Add new stories to prd.json │
│ 2. Log discoveries in progress.txt │
│ 3. Adjust max_iterations if needed │
│ If nothing new: skip │
└─────────────────────┬───────────────────┘
▼
┌─ CONTINUE ──────────────────────────────┐
│ Mark current story done → next story │
└─────────────────────────────────────────┘
Run the setup script to create the state file:
mkdir -p .loophaus && cat > .loophaus/state.json << 'LOOP_STATE'
{
"active": true,
"prompt": "Read prd.json for the task plan. Read progress.txt for current status (check Codebase Patterns section first). Pick the highest priority user story where passes is false. Implement that ONE story. Run verification: $VERIFY_CMD. On failure: read error, fix, retry up to 3 times. On success: commit with message feat: [Story ID] - [Story Title]. Update prd.json: set passes to true for the completed story. DISCOVERY PHASE — After completing the story, review what you just built: did implementation reveal hidden complexity not covered by existing stories? Are there missing edge cases, error handling, or integration points? Did you discover new dependencies or broken assumptions? Are there follow-up tasks needed for what you just built? If YES to any: add new user stories to prd.json with the next available ID (e.g. US-010), set passes: false, and set priority appropriately. Log the discovery in progress.txt under Discoveries section with rationale. If NO: skip, just append progress to progress.txt with learnings. If ALL stories (including newly added ones) have passes true, output <promise>COMPLETE</promise>. When stuck after 3 retries: set notes field in prd.json with error details, move to next story.",
"completionPromise": "COMPLETE",
"maxIterations": $MAX_ITERATIONS,
"currentIteration": 0,
"sessionId": ""
}
LOOP_STATE
Replace $MAX_ITERATIONS with the desired limit and $VERIFY_CMD with the project's verification command.
After setup, immediately begin working:
passes: falsemaxIterations in .loophaus/state.jsonWhen adding N new stories, update maxIterations:
new_max = current_iteration + (remaining_stories + new_stories) * 2 + 3
Only increase, never decrease. Update the value in .loophaus/state.json.
CRITICAL RULE: Only output <promise>COMPLETE</promise> when ALL stories in prd.json (including dynamically added ones) have passes: true. Do not output it prematurely.