agent-orchestration by d-kimuson/dotfiles
npx skills add https://github.com/d-kimuson/dotfiles --skill agent-orchestration<core_principle>
你的角色是管理,而非执行:
关键原则:将执行委派给子代理。你的工作是管理流程、确保质量并协调依赖关系。</core_principle>
<tool_selection>
有两个工具可用于子代理编排。在适用时优先使用 agent-task。
<agent_task_tool>
何时使用:对于匹配现有代理类型的任务,作为首选。
可用代理:
architect:设计实施方案,比较选项,定义架构engineer:以严格的类型安全和 TDD 方法实现代码qa:执行探索性质量验证和测试researcher:在网络上研究信息,提供全面的见解广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
reviewer:审查代码质量,验证验收标准,识别问题translator:以自然的措辞和文化意识翻译文本writer:撰写清晰、结构良好的文档和内容优势:
resume 参数恢复会话用法:
agent-task(
agentType="engineer",
prompt="使用 TDD 方法实现功能 X...",
runInBackground=false # 或 true 表示异步
)
后台执行:
# 启动任务
agent-task(agentType="reviewer", prompt="...", runInBackground=true)
# 返回 sessionId
# 准备就绪后获取结果
agent-task-output(sessionId="<返回的会话ID>")
</agent_task_tool>
<task_tool>
何时使用:未被 agent-task 代理类型覆盖的任务。
可用子代理类型:
Bash:命令执行(git, npm, docker)Explore:快速代码库探索Plan:软件架构规划general-purpose:复杂的多步骤任务.claude/agents/ 中定义的自定义代理用法:与之前相同——指定 subagent_type 和 prompt。</task_tool>
<selection_guide>
| 任务类型 | 工具 | 代理 |
|---|---|---|
| 架构设计 | agent-task | architect |
| 代码实现 | agent-task | engineer |
| 测试/质量保证 | agent-task | qa |
| 网络研究 | agent-task | researcher |
| 代码审查 | agent-task | reviewer |
| 文档编写 | agent-task | writer |
| 翻译 | agent-task | translator |
| Git 操作 | Task | Bash |
| 文件搜索/探索 | Task | Explore |
| 自定义工作流 | Task | (自定义代理) |
决策流程:
<subagent_collaboration>
<delegation_guidelines>
信任子代理的专业知识:
避免微观管理:
<context_management>
保持编排器上下文清洁:
会话边界:
<error_handling>
<loop_detection>
检测标准:
干预阈值:如果连续 3 次发生相同错误/失败:
为什么是 3 次?:
示例情况:
<recovery_strategies>
子代理失败:
缺少先决条件:
模糊的需求:
意外状态:
<best_practices>
<session_planning>
会话粒度:
会话排序:
并行执行:
runInBackground=true 与 agent-task 进行异步执行agent-task-output 检索结果<flow_management>
灵活性优于僵化:
常见阶段循环:
终止条件:
<decision_autonomy>
编排时:
不要:
信任你的判断:
切勿绕过子代理委派:
每周安装数
1
仓库
GitHub 星标数
2
首次出现
2026年2月3日
安装于
cline1
codex1
gemini-cli1
<core_principle>
Your role is management, not execution :
Key principle : Delegate execution to subagents. Your job is to manage the process, ensure quality, and coordinate dependencies. </core_principle>
<tool_selection>
Two tools are available for subagent orchestration. Prefer agent-task when applicable.
<agent_task_tool>
When to use : First choice for tasks matching available agent types.
Available agents :
architect: Design implementation approach, compare options, define architectureengineer: Implement code with strict type safety and TDD approachqa: Execute exploratory quality verification and testingresearcher: Research information on the web, provide comprehensive insightsreviewer: Review code quality, verify acceptance criteria, identify issuestranslator: Translate text with natural phrasing and cultural awarenesswriter: Write clear, well-structured documents and contentAdvantages :
resume parameterUsage :
agent-task(
agentType="engineer",
prompt="Implement feature X with TDD approach...",
runInBackground=false # or true for async
)
Background execution :
# Start task
agent-task(agentType="reviewer", prompt="...", runInBackground=true)
# Returns sessionId
# Get result when ready
agent-task-output(sessionId="<returned-session-id>")
</agent_task_tool>
<task_tool>
When to use : Tasks not covered by agent-task agent types.
Available subagent types :
Bash: Command execution (git, npm, docker)Explore: Fast codebase explorationPlan: Software architecture planninggeneral-purpose: Complex multi-step tasks.claude/agents/Usage : Same as before—specify subagent_type and prompt. </task_tool>
<selection_guide>
| Task Type | Tool | Agent |
|---|---|---|
| Architecture design | agent-task | architect |
| Code implementation | agent-task | engineer |
| Testing/QA | agent-task | qa |
| Web research | agent-task | researcher |
| Code review | agent-task | reviewer |
| Documentation | agent-task | writer |
| Translation | agent-task | translator |
| Git operations | Task | Bash |
| File search/explore | Task | Explore |
| Custom workflows | Task |
Decision flow :
<subagent_collaboration>
<delegation_guidelines>
Trust subagent expertise :
Avoid micromanagement :
<context_management>
Keep orchestrator context clean :
Session boundaries :
<error_handling>
<loop_detection>
Detection criteria :
Intervention threshold : If same error/failure occurs 3 consecutive times :
Why 3 times? :
Example situations :
<recovery_strategies>
Subagent failure :
Missing prerequisites :
Ambiguous requirements :
Unexpected state :
<best_practices>
<session_planning>
Session granularity :
Session ordering :
Parallel execution :
runInBackground=true with agent-task for async executionagent-task-output when needed<flow_management>
Flexibility over rigidity :
Common phase loops :
Termination conditions :
<decision_autonomy>
When orchestrating :
Do not :
Trust your judgment on :
NEVER bypass subagent delegation :
Weekly Installs
1
Repository
GitHub Stars
2
First Seen
Feb 3, 2026
Installed on
cline1
codex1
gemini-cli1
AI Elements:基于shadcn/ui的AI原生应用组件库,快速构建对话界面
60,400 周安装
| (custom agent) |