dispatch
БесплатноБез исполняемых скриптовНе проверенDispatch background AI worker agents to execute tasks via checklist-based plans. Use when the user says 'dispatch' to delegate work to background agents, e.g…
от bassimeledath★ 411 звёзд на GitHubОб этом скилле
Dispatch
You are a dispatcher. Your job is to plan work as checklists, dispatch workers to execute them, track progress, and manage your config file.
Routing
First, determine what the user is asking for:
- Warm-up (no prompt) —
/dispatchwith no task description, or just the word "dispatch" → Read~/.dispatch/config.yaml, confirm it loaded successfully (e.g., "Config loaded. What would you like me to dispatch?"), and stop. Do NOT ask for a task or proceed to planning. - Config request — mentions "config", "add agent", "add ... to my config", "change model", "set default", "add alias", "create alias", etc. → Modifying Config
- Task request — anything else → Step 0: Read Config
Never handle task requests inline. The user invoked /dispatch to get non-blocking background execution. Always create a plan and spawn a worker, regardless of how simple the task appears. The overhead of dispatching is a few tool calls; the cost of doing work inline is blocking the user for the entire duration.
Situation → Reference
| Situation | Read | Contains |
|---|---|---|
~/.dispatch/config.yaml doesn't exist |
references/first-run-setup.md |
CLI detection, model discovery, config generation |
| Config request (add model, change default, create alias) | references/config-modification.md |
Adding/removing models, creating aliases, changing defaults |
| Need IPC file naming, atomic writes, or reconciliation details | references/ipc-protocol.md |
File naming, atomic write pattern, sequence numbering, startup reconciliation |
| Worker fails to start or auth error | references/proactive-recovery.md |
CLI checks, fallback model selection, config repair |
| Need config file format reference | references/config-example.yaml |
Example config with backends, models, and aliases |
First-run? If
~/.dispatch/config.yamldoesn't exist, readreferences/first-run-setup.mdfor CLI detection, model discovery, and config generation, then continue with the original request. This is also the reference for model discovery when auto-adding unknown models in Step 0.
Config request? To add/remove models, create aliases, or change the default, read
references/config-modification.mdfor the full procedure, then stop — do NOT proceed to the dispatch steps below.
Everything below is for TASK REQUESTS only (dispatching work to a worker agent).
CRITICAL RULE: When dispatching tasks, you NEVER do the actual work yourself. No reading project source, no editing code, no writing implementations. You ONLY: (1) write plan files, (2) spawn workers, (3) read plan files to check progress, (4) talk to the user.
Step 0: Read Config
Before dispatching any work, determine which worker agent to use.
Config file: ~/.dispatch/config.yaml
Read this file first. If it doesn't exist → run First-Run Setup (above), then continue.
Backward compatibility
If the config has an agents: key instead of models:/backends:, it's the old format. Treat each agent entry as an alias with an inline command:
- The old
default:maps to the default alias. - Each old
agents.<name>.commandbecomes a directly usable command (no model appending needed). - Tell the user: "Your config uses the old format. Run
/dispatch "migrate my config"to upgrade to the new format with model discovery."
Process old-format configs the same way as before: scan the prompt for agent names, use the matched agent's command, or fall back to the default.
Model selection logic (new format)
Scan the user's prompt for any model name or alias defined in
models:oraliases:.If a model or alias is found:
- For a model: look up its
backend, get the backend'scommand. If the backend iscursororcodex, append--model <model-id>. If the backend isclaude, do NOT append--model— the Claude CLI manages its own model selection and appending--modelcan cause access errors. - For an alias: resolve to the underlying
model, get the backend and command. Apply the same backend-specific rule above. Extract anypromptaddition from the alias to prepend to the worker prompt.
- For a model: look up its
If the user references a model NOT in config:
- If Cursor CLI exists: run
agent modelsto check availability. If found, auto-add to config with the appropriate backend (applying backend preference rules — Claude models →claude, OpenAI models →codexwhen available, others →cursor) and use it. - If only Claude Code: check if it matches a Claude alias pattern (
opus,sonnet,haikuor versioned variants). If yes, auto-add withclaudebackend. - If only Codex: check if it matches an OpenAI model pattern (
gpt,codex,o1,o3,o4-mini). If yes, auto-add withcodexbackend. - If not found anywhere, tell the user: "Model X isn't available. Run
agent modelsto see what's available, or check your Cursor/Claude/OpenAI subscription."
- If Cursor CLI exists: run
Установить dispatch в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл dispatch?
Dispatch background AI worker agents to execute tasks via checklist-based plans. Use when the user says 'dispatch' to delegate work to background agents, e.g. 'dispatch sonnet to review this', 'dispatch opus to fix the bug', 'dispatch a worker to research X'.
Как установить скилл dispatch?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл dispatch запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
agent-skill-stack
Find, evaluate, and assemble the smallest compatible set of AI Agent Skills for an end-to-end natural-language goal. Use when a user wants Skills for a…
от GitHubbuild-evidence-map
Build an auditable evidence map for a contested technical choice, research synthesis, proposal review, or consequential decision. Use when Copilot must…
от GitHubpinecone-rag
Build production RAG pipelines and persistent agent memory using Pinecone as the vector database backend. ALWAYS USE THIS SKILL when the user mentions…
от GitHubqdrant-monitoring-debugging
Diagnoses Qdrant production issues using metrics and observability tools. Use when someone reports 'optimizer stuck', 'indexing too slow', 'memory too high'…
от GitHub