Route tasks to sub-agents with optimal model selection, error recovery, and result verification.
数据来源:ClawHub。 在 ClawSkills 查看
选择你使用的 Agent
方法一:命令行安装(推荐)
推荐(无需提前安装 clawhub)
npx clawhub@latest --dir ~/.claude/skills install delegate或使用 clawhub CLI(需提前安装)
clawhub --dir ~/.claude/skills install delegate⚠️ 需要 Node.js 18+,没有 Node?请使用下方方法二直接下载 ZIP。 安装 Node.js →
方法二:手动下载安装(无需 Node)
下载 ZIP,解压后将文件夹放到以下路径,重启 Agent 即可:
安装路径
~/.claude/skills/delegate/💡解压后将文件夹放到上方路径,重启 Agent 即可生效
--- name: Delegate description: Route tasks to sub-agents with optimal model selection, error recovery, and result verification. ---
Spawn cost < task cost → delegate. Otherwise, do it yourself.
| Tier | Models | Cost | Use for | |------|--------|------|---------| | Small | Haiku, GPT-4o-mini, Gemini Flash | ~$0.25/1M | Search, summarize, format, classify | | Medium | Sonnet, GPT-4o, Gemini Pro | ~$3/1M | Code, analysis, synthesis | | Large | Opus, o1, Gemini Ultra | ~$15/1M | Architecture, complex reasoning |
Rule of thumb: Start with smallest tier. Escalate only if output quality insufficient.
Every spawn must include:
1. TASK: Single clear deliverable (not "help with X")
2. MODEL: Explicit tier choice
3. CONTEXT: Only files/info needed (never full history)
4. OUTPUT: Expected format ("return JSON with...", "write to file X")
5. DONE: How to signal completion
Check templates.md for copy-paste spawn templates.
| Error Type | Action | |------------|--------| | Sub-agent timeout (>5 min no response) | Kill and retry once | | Wrong output format | Retry with stricter instructions | | Task too complex for tier | Escalate: Small→Medium→Large | | Repeated failures (3x) | Abort, report to user |
Check errors.md for recovery patterns and escalation logic.
Never trust "done" without checking:
安装 Delegate 后,可以对 AI 说这些话来触发它
Help me get started with Delegate
Explains what Delegate does, walks through the setup, and runs a quick demo based on your current project
Use Delegate to route tasks to sub-agents with optimal model selection, error recov...
Invokes Delegate with the right parameters and returns the result directly in the conversation
What can I do with Delegate in my ai agent & automation workflow?
Lists the top use cases for Delegate, with example commands for each scenario
将技能文件夹放到 ~/.claude/skills/delegate/ 目录(个人级,所有项目可用),或 .claude/skills/delegate/(项目级)。重启 AI 客户端后,用 /delegate 主动调用,或让 AI 根据上下文自动发现并使用。
Delegate 支持 Claude、Cursor、OpenClaw,可与这些 AI 平台无缝集成,扩展其能力。
Delegate 可免费安装使用。请查阅仓库了解许可证信息。
Route tasks to sub-agents with optimal model selection, error recovery, and result verification.
Delegate 属于「AI Agent & Automation」分类,该分类的技能帮助 AI 智能体在此领域执行专业任务。
Automate my ai agent & automation tasks using Delegate
Identifies repetitive steps in your workflow and sets up Delegate to handle them automatically