一键导入
run-until-done
Autonomous task loop — runs a task repeatedly until completion criteria are met. No babysitting required.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Autonomous task loop — runs a task repeatedly until completion criteria are met. No babysitting required.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Authoritative, version-pinned reference for every Claude Code CLI flag, classified by whether it works in an INTERACTIVE session (default TUI), a HEADLESS session (-p/--print), or BOTH — plus the canonical launch recipes for each mode. Use when any session needs to launch or script `claude` and must know which switch is valid in which mode, build a headless/streaming invocation, set up remote-control or an always-on session, pass model/effort/permissions/MCP/plugin/settings flags, or answer "does flag X work with -p / in interactive". Trigger: "claude flags", "claude cli switches", "which flags work headless vs interactive", "-p flags", "stream-json flags", "how do I launch claude with X", "/claude-cli-flags".
Authoritative, version-pinned reference for every built-in Claude Code slash (/) command — what each does, its aliases, and which are bundled Skills/Workflows vs fixed built-ins — plus how custom slash commands work (the commands-merged-into-skills model, file locations, frontmatter, arguments, !bash, @file). Includes the full /loop vs /schedule breakdown. Use when any session needs to know what a slash command does, find the right command for a task (clear context, switch model, review code, schedule work, background a task), or author a custom /command. Trigger: "claude slash commands", "what does /X do", "list the slash commands", "built-in commands", "custom slash command", "/loop vs /schedule", "how do I make a /command", "/claude-slash-commands". Sibling of claude-cli-flags (launch flags).
Initialise a workspace, register projects under it, or sync upstream changes. Single entry point for workspace lifecycle.
Enforce coordinated integration testing — identify tool dependencies, check running systems, test all 4 levels (unit/component/integration/system), never disrupt workflows
Dual-model review — runs the same question past a second, independent reasoner (a separate model/CLI, e.g. Codex) and synthesizes the disagreements with the primary Claude take. Use before an irreversible call — architecture, security, strategy, high-blast-radius code. Trigger phrases "second opinion", "/second-opinion", "review this", "get another perspective", "sanity check this plan".
Turn message text into TTS-ready text — strip markdown (so a TTS engine never speaks "asterisk asterisk"), and in voice mode also drop emoji. A single shared cleaner meant to be reused by every channel that speaks text aloud (a local speak command, a chat-bot voice bridge, etc). Use whenever text is about to be synthesized to audio, or whenever a channel renders raw markdown.
| name | run-until-done |
| description | Autonomous task loop — runs a task repeatedly until completion criteria are met. No babysitting required. |
| user_invocable | true |
See _shared/MODEL_SELECTION.md (or your workspace's model-policy doc) for full policy.
Execute a multi-step task autonomously, looping until done. No human check-ins mid-execution.
Invoke with: /run-until-done
You will be asked for:
<workspace>/inbox/)LOOP until (done OR iterations exhausted):
1. ASSESS — What's the current state? What's been done? What remains?
2. PLAN — What's the single next action to make progress?
3. EXECUTE — Do it. Use tools. Write files. Run commands.
4. VERIFY — Did it work? Check output, confirm file written, validate result.
5. CHECK COMPLETION — Do results meet the completion criteria?
- YES → DONE, write summary, notify
- NO, iterations remain → continue loop
- NO, limit hit → write partial results + status, notify
<workspace>/memory/loop-state.md — so if the session compacts, the next session can resume.<workspace>/inbox/ with a clear filename.Write to <workspace>/memory/loop-state.md after each iteration:
# Loop State
Task: [task description]
Started: [timestamp]
Iteration: [N] of [max]
Status: in-progress | done | blocked
## Completed
- [item 1]
- [item 2]
## Remaining
- [item 3]
- [item 4]
## Last Action
[what was just done]
## Next Action
[what the next iteration will do]
## Blocker (if any)
[description of what's blocking progress]
When done, write to <workspace>/inbox/[task-slug]-results.md:
# [Task] — Complete
Date: [timestamp]
Iterations used: [N] of [max]
## Results
[actual output]
## Summary
[one-paragraph summary for the user]
Then output to the conversation:
✅ Done. [task] complete in [N] iterations.
Results: <workspace>/inbox/[filename]
If context compacts mid-loop, on the next session:
<workspace>/memory/loop-state.mdin-progress, resume from "Next Action"