Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

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от 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) — /dispatch with 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.yaml doesn't exist, read references/first-run-setup.md for 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.md for 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>.command becomes 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)

  1. Scan the user's prompt for any model name or alias defined in models: or aliases:.

  2. If a model or alias is found:

    • For a model: look up its backend, get the backend's command. If the backend is cursor or codex, append --model <model-id>. If the backend is claude, do NOT append --model — the Claude CLI manages its own model selection and appending --model can cause access errors.
    • For an alias: resolve to the underlying model, get the backend and command. Apply the same backend-specific rule above. Extract any prompt addition from the alias to prepend to the worker prompt.
  3. If the user references a model NOT in config:

    • If Cursor CLI exists: run agent models to check availability. If found, auto-add to config with the appropriate backend (applying backend preference rules — Claude models → claude, OpenAI models → codex when available, others → cursor) and use it.
    • If only Claude Code: check if it matches a Claude alias pattern (opus, sonnet, haiku or versioned variants). If yes, auto-add with claude backend.
    • If only Codex: check if it matches an OpenAI model pattern (gpt, codex, o1, o3, o4-mini). If yes, auto-add with codex backend.
    • If not found anywhere, tell the user: "Model X isn't available. Run agent models to see what's available, or check your Cursor/Claude/OpenAI subscription."
Полный SKILL.md на GitHub

Установить dispatch в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

README.mdassets/architecture.pngassets/architecture.svgassets/before-after.jpgassets/before-after.svgassets/logo.svgreferences/config-example.yamlreferences/config-modification.mdreferences/first-run-setup.mdreferences/ipc-protocol.mdreferences/proactive-recovery.md

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), без исполняемых скриптов.

Похожие скиллы

Сравнить dispatch с