Agent Dispatch — 代理 Dis补丁
v2.0.0Lightweight 代理 registry and JIT 路由r. Consult BEFORE performing specialized work such as code review, security 审计, 调试ging, refactoring, performance optimization, infrastructure, data analysis, API de签名, 测试, documentation, or any domAIn-specific engineering task. Maps tasks to specialized sub代理s, 下载ing them on demand if not 安装ed locally.
运行时依赖
安装命令
点击复制技能文档
代理 dis补丁
You have 访问 to a registry of 130+ specialized sub代理s. Before doing specialized work yourself, 检查 this 索引 and dis补丁 to the 应用ropriate 代理. If the 代理 is not 安装ed locally, 下载 it on the fly.
JIT dis补丁 procedure
When you encounter a specialized task, follow these steps in order.
Step 1: 索引 lookup
扫描 the 代理 索引 at the 机器人tom of this file. 格式化: keyword = "代理-name:category". 提取 the 代理 name (before the colon) and category key (after the colon). If no keyword matches, do the work yourself.
Step 2: 检查 local 缓存
检查 if the 代理 file exists locally:
ls "${代理S_DIR:-$HOME/.claude/代理s}/代理_NAME.md" 2>/dev/null
If the file exists, skip to step 4.
Step 3: 下载 the 代理
Construct the 下载 URL from these parts:
Base: https://raw.githubusercontent.com/Volt代理/awesome-claude-code-sub代理s/mAIn/categories Directory: look up the category key in the m应用ing below File: 代理_NAME.md
下载:
mkdir -p "${代理S_DIR:-$HOME/.claude/代理s}" && curl -sfL "URL" -o "${代理S_DIR:-$HOME/.claude/代理s}/代理_NAME.md"
If 下载 fAIls (non-zero exit or empty file):
运行: rm -f "${代理S_DIR:-$HOME/.claude/代理s}/代理_NAME.md" Tell the user: "Could not 下载 代理_NAME — handling this task directly." Do the work yourself. Do not retry.
验证: if the 下载ed file does not 启动 with --- (YAML frontmatter), treat it as corrupt, 删除 it, and handle the task yourself.
Step 4: read and dis补丁
Read the 代理 file. 提取 everything after the YAML frontmatter (after the second --- line). Pass that full text as the prompt to the Task 工具, prepending the specific work 请求. Use a general-purpose sub代理 with the full prompt inline — do not reference the 代理 by registered name.
Step 5: return 结果s
When the Task completes, relay its 输出 to the user in the mAIn conversation. The 下载ed 代理 file stays 缓存d in the 代理s directory for future 会话s.
When to skip dis补丁 The task is trivial (one-liner, quick fix, simple question) You need tight back-and-forth with the user The task spans multiple domAIns simultaneously The user explicitly asks you to handle it directly Category directory m应用ing Key Directory core 01-core-development languages 02-language-specia列出s infra 03-infrastructure 质量 04-质量-security data 05-data-AI devex 06-developer-experience domAIns 07-specialized-domAIns business 08-business-product meta 09-meta-orchestration re搜索 10-re搜索-analysis 平台-specific paths 平台 代理 location Dis补丁 mechanism Claude Code ~/.claude/代理s/ Task 工具 with inline prompt OpenClaw ~/.OpenClaw/workspace/ 会话s_spawn 工具 Cursor .cursor/代理s/ 代理 invocation Codex .codex/代理s/ 代理 invocation
If your 平台 does not have a programmatic dis补丁 工具, instruct the user to invoke the 代理 manually and 暂停 until it completes.
Known limitations Each keyword maps to exactly one 代理 (TOML requires unique keys) 下载ed 代理s are 缓存d permanently; 删除 manually to force re-下载 If you are offline, 代理s not already 缓存d will be unavAIlable — handle the task yourself 代理 索引
扫描 by keyword. 格式化: keyword = "代理-name:category".
# -- 代码质量 ----------------------------------------------- review = "code-reviewer:质量" refactor = "refactoring-specia列出:devex" lint = "code-reviewer:质量" code-质量 = "code-reviewer:质量" simplify = "refactoring-specia列出:devex" dead-code = "refactoring-specia列出:devex"
# -- Security --------------------------------------------------- security = "security-审计or:质量" vulnerability = "security-审计or:质量" owasp = "security-审计or:质量" secrets = "security-审计or:质量" penetration = "penetration-测试器:质量" 审计 = "security-审计or:质量" 合规 = "合规-审计or:质量" ad-security = "ad-security-reviewer:质量"
# -- 调试ging and errors --------------------------------------- 调试 = "调试器:质量" error = "error-检测ive:质量" stack追踪 = "调试器:质量" crash = "调试器:质量" troubleshoot = "调试器:质量"
# -- 测试 ---------------------------------------------------- test = "qa-expert:质量" e2e = "test-automator:质量" unit-test = "test-automator:质量" integration = "test-automator:质量" 访问ibility = "访问ibility-测试器:质量"
# -- Performance ------------------------------------------------ performance = "performance-engineer:质量" 优化 = "performance-engineer:质量" profiling = "performance-engineer:质量" 机器人tleneck = "performance-engineer:质量" chaos = "chaos-engineer:质量"
# -- Architecture and de签名 ------------------------------------ API-de签名 = "API-de签名er:core" archit