Enables autonomous overnight task execution through Ralph Wiggum loop integration.
Enables autonomous overnight task execution through automated iteration management with stop-hook interception and circuit breaker safety. Use `/duyetbot:loop` with `--promise` and `--max` flags when you need 3+ iterative steps with clear completion criteria like passing tests or successful builds.
/plugin marketplace add duyet/claude-plugins/plugin install duyetbot@duyet-claude-pluginsThis skill inherits all available tools. When active, it can use any tool Claude has access to.
Enables autonomous overnight task execution through Ralph Wiggum loop integration.
Note: Duyetbot includes its own copies of Ralph Wiggum scripts for reliable operation. The ralph-loop-setup.sh and ralph-stop-hook.sh are bundled with duyetbot.
Ralph Wiggum loop provides automated iteration management:
<promise>TAG</promise>Autonomous execution is appropriate when:
Do NOT use for:
# Basic activation (unlimited iterations)
/duyetbot:loop Implement user authentication
# With completion promise (RECOMMENDED)
/duyetbot:loop Fix the bug --promise TESTS_PASS
# Max iterations for safety
/duyetbot:loop Refactor database --max 50 --promise REFACTOR_COMPLETE
# Direct Ralph invocation
/ralph-loop "Build REST API" --completion-promise API_WORKS --max-iterations 30
Always specify a completion promise for reliable overnight execution:
Task: "Implement user authentication"
Promise: <promise>AUTH_TESTS_PASS</promise>
Iteration 1: Design + implement → Verify: npm test → FAILED
Iteration 2: Fix bugs → Verify: npm test → PASSED
Output: <promise>AUTH_TESTS_PASS</promise> → Loop exits cleanly
Good promises:
TESTS_PASS - Tests succeedBUILD_SUCCESS - Build completes without errorsFEATURE_COMPLETE - End-to-end functionality worksBUG_FIXED - Specific bug no longer occursBad promises:
DONE - Too vague, might trigger earlyOK - Common word, risk of false positiveAutomatic safety mechanisms:
| Condition | Threshold | Action |
|---|---|---|
| No file changes | 3 iterations | Stop loop |
| Consecutive errors | 5 iterations | Stop loop |
| Max iterations | Per --max flag | Stop loop |
Monitoring circuit state:
cat .claude/ralph-circuit.local.json
# Output: {"no_progress": 1, "errors": 0, "last_hash": "..."}
Reset if needed:
/duyetbot:loop Continue task --reset-circuit
--max 100)/duyetbot:loop Implement user authentication \
--promise AUTH_TESTS_PASS \
--max 100
Each iteration:
Stop-hook checks:
Check results:
# Did loop complete?
/status
# What was accomplished?
git log --oneline -10
# Are tests passing?
npm test
# Any circuit breaks?
cat .claude/ralph-circuit.local.json
Outcomes:
/cancel-ralphMaintain duyetbot's transparent execution style:
─── duyetbot ── iteration 5 ─────
[1] UNDERSTAND → Auth endpoint returns 401
[2] PLAN → Add JWT validation middleware
[3] EXECUTE → Create middleware/auth.ts
[4] VERIFY → npm test → PASSED
Progress: 5/15 steps complete
Next: Add refresh token endpoint
Ralph loop complements existing skills:
| Skill | Ralph Interaction |
|---|---|
| task-loop | Ralph automates the loop iterations |
| team-coordination | Can spawn agents within each iteration |
| transparency | Maintain visible execution chains |
| engineering-discipline | Apply quality gates each iteration |
Example with team coordination:
Iteration 3:
[1] Spawn: senior-engineer for API design
[2] Spawn: junior-engineer for implementation
[3] Verify both outputs complete
[4] Integration test
<promise>ITERATION_3_COMPLETE</promise>
--max for overnight tasks (safety limit)Loop not starting:
.claude/ralph-loop.local.md existscat hooks/hooks.jsonLoop stops early:
cat .claude/ralph-circuit.local.jsonPromise not matching:
Manual cancellation:
/cancel-ralph
This skill should be used when the user asks to "create a slash command", "add a command", "write a custom command", "define command arguments", "use command frontmatter", "organize commands", "create command with file references", "interactive command", "use AskUserQuestion in command", or needs guidance on slash command structure, YAML frontmatter fields, dynamic arguments, bash execution in commands, user interaction patterns, or command development best practices for Claude Code.
This skill should be used when the user asks to "create an agent", "add an agent", "write a subagent", "agent frontmatter", "when to use description", "agent examples", "agent tools", "agent colors", "autonomous agent", or needs guidance on agent structure, system prompts, triggering conditions, or agent development best practices for Claude Code plugins.
This skill should be used when the user asks to "create a hook", "add a PreToolUse/PostToolUse/Stop hook", "validate tool use", "implement prompt-based hooks", "use ${CLAUDE_PLUGIN_ROOT}", "set up event-driven automation", "block dangerous commands", or mentions hook events (PreToolUse, PostToolUse, Stop, SubagentStop, SessionStart, SessionEnd, UserPromptSubmit, PreCompact, Notification). Provides comprehensive guidance for creating and implementing Claude Code plugin hooks with focus on advanced prompt-based hooks API.