Agent skill
ralph
持久化执行-验证-修复循环,直到任务完成
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/ralph-1molchuan-oh-my-ccg
SKILL.md
oh-my-ccg Ralph Mode
"The boulder never stops." Persistent loop that keeps working until verification passes.
Activation
Trigger: "ralph", "don't stop"
Loop Structure
Start (iteration 0)
│
├─ Execute: Run the task (executor agent)
├─ Verify: Check results (verifier agent)
│ ├─ Tests pass?
│ ├─ Build succeeds?
│ └─ LSP clean?
│
├─ All pass? → COMPLETE ✅
└─ Any fail? → Fix issues → Next iteration
└─ Max iterations (10)? → STOP with report
Implementation Steps
- Initialize ralph state: iteration=0, maxIterations=10
- Execute the current task using executor agent
- Run verification:
npm testor equivalenttsc --noEmit- LSP diagnostics check
- If verification passes: mark complete, deactivate ralph
- If verification fails:
- Increment iteration
- Analyze failures with debugger agent
- Apply fixes
- Return to step 2
- If max iterations reached: stop, report remaining issues
State
Tracked in .oh-my-ccg/state/ralph-state.json:
- iteration, maxIterations
- lastVerification (tests, build, lsp, issues)
- active flag
Integration
- Works inside autopilot (auto-impl uses ralph per task)
- Works standalone for any execution task
- Stop hook prevents Claude from stopping while ralph is active
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?