Agent skill
babysitter:forever
Start a never-ending babysitter run with infinite loops and sleep gates.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/forever
SKILL.md
babysitter:forever
Start a never-ending babysitter orchestration run. The process runs in an infinite loop with ctx.sleep() gates between iterations — ideal for periodic maintenance tasks, monitoring, or continuous improvement workflows.
Workflow
1. Interview Phase
Same as /babysitter:call — gather intent, requirements, and scope. Focus on:
- What should happen each cycle?
- How long between cycles? (sleep duration)
- What quality gates should be checked?
- Under what conditions should the loop stop? (manual breakpoint, quality threshold, error count)
2. Process Creation
Create a process with an infinite loop pattern:
export async function process(inputs, ctx) {
while (true) {
// Execute the periodic task
const result = await ctx.task(periodicTask, { ...inputs });
// Optional: quality gate
if (result.shouldStop) break;
// Sleep until next cycle (e.g., 4 hours)
await ctx.sleep({ duration: inputs.sleepDuration || '4h' });
}
return { completed: true };
}
3. Run Creation and Loop
Same as /babysitter:call — create the run and iterate. Sleep effects are handled by waiting until the specified timestamp before continuing.
The run will only complete when the process logic breaks out of the loop or when manually stopped.
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?