AGENT SKILL
loop
Run prompt-first scheduled loops with user confirmation, guards, and progressive loop tools.
使用场景Skill与智能体开发
- License 许可
- MIT
- 最近更新
- 2026-11-12
- Stars
- ★ 3
- Forks
- 2
01 前言 Front Matter
- name
- loop
- description
- Run prompt-first scheduled loops with user confirmation, guards, and progressive loop tools.
03 SKILL.md 正文
Loop
Use this skill when the user wants recurring agent work on an interval (for example "check deploy every 5m" or "poll CI until green").
Prerequisites
- Durable storage must be configured (
paths.db_url/DB_URL). - A scheduler worker must be running (
scheduler.enabled: trueinmonkeybot.yaml,MONKEYBOT_SCHEDULER_ENABLED=1, or the standalone scheduler process). - Call
enable_loopsfirst ifstart_loop/loop_status/pause_loop/resume_loop/stop_loop/disable_loopsare not yet in the active tool list. New tools appear on the next model step this turn.
Start a loop
- Agree the plan with the user (what to do each tick, and when to stop).
- Put that plan in
promptusing clear BUSINESS / RULES sections. - Choose
interval(20s,5m,1h, …). - Prefer a hard guard:
max_ticksand/ormax_runtime(e.g.1h). Useunbounded=trueonly with explicit user confirmation. - Call
start_loop. The harness always asks the user to confirm before the loop is registered. - Soft stop criteria ("stop when CI is green") belong in the tick
prompt; on a later tick, callstop_loopwhen they are met.
Manage a loop
loop_status— one loop or list all (safe to poll; doom-loop exempt).pause_loop/resume_loop— temporary hold.stop_loop— permanent stop.disable_loops— hide loop tools from the next model step; does not stop running loops (callstop_loopfirst).
Guidance
- Read this skill before inventing your own scheduling approach.
- Do not start duplicate loops for the same purpose; check
loop_statusfirst. - Keep tick prompts focused; avoid noisy side effects every tick.
04 同仓库更多 Skills
browser
Smoke-test browser skill fixture.
★ 3
plain
暂无简介
★ 3
diagnostics
Inspect a failing run and report the first error.
★ 3
nested
Nested skills must not be discovered.
★ 3
image-generator
Generate images with Gemini image models (Nano Banana Pro) and display them in chat.
★ 3
diagnostics
Run deployment health checks (env, runtime, computation) and return JSON status.
★ 3