makomakogo/code-dispatcher-toolkit/code-dispatcher
Claude Code and agent skill by makomakogo/code-dispatcher-toolkit
- community
Checking that the SKILL.md file is still in the repository.
Execute code-dispatcher for multi-backend AI code tasks. Use when the user explicitly requests a specific backend (Codex or Claude), mentions code-dispatcher, or when a skill or command definition declares a dependency on this skill. Supports pluggable backends (codex/claude), parallel task execution with DAG scheduling, session resume, and compact parallel summaries.
Install
npx vskill@latest install makomakogo/code-dispatcher-toolkit/code-dispatcherSKILL.md
code-dispatcher Integration
Overview
Execute code-dispatcher commands with pluggable AI backends (Codex, Claude). Use it for backend-selected execution, file references via backend-native @ syntax, parallel task execution, DAG dependencies, and session resume.
When to Use
When the user explicitly requests a specific backend (Codex or Claude), mentions code-dispatcher, or when a skill or command definition explicitly declares a dependency on this skill.
Applicable scenarios include but are not limited to:
- Complex code analysis requiring deep understanding
- Large-scale refactoring across multiple files
- Automated code generation with backend selection
Typical Usage for One-Round/New Tasks:
1) Standard invocation: HEREDOC syntax (recommended)
2) Single-line tasks (no heredoc)
Common Parameters
- Command notation and positional order
[]means optional. Do not type brackets literally.- Inline task:
code-dispatcher --backend <backend> "<task>" [working_dir]— task text is passed in command args; best for short one-line prompts. - Stdin task:
code-dispatcher --backend <backend> - [working_dir]— task text is read from stdin (<<'EOF'/pipe); best for multi-line or complex content. - These two forms are for new-task commands only.
- Resume uses its own forms: inline
code-dispatcher --backend <backend> resume <session_id> "<follow-up task>"and stdincode-dispatcher --backend <backend> resume <session_id> -.
--backend <backend>(required)- Select backend explicitly:
codex | claude. - Must be present in both new and resume modes.
- In parallel mode, this is the global default backend.
- If a task block defines
backend, it overrides the global default for that task.
task(required)- Task description for the backend.
- Supports inline text or stdin marker
-. - Supports
@filereferences (backend-native feature, not processed by dispatcher).
working_dir(optional)- Working directory for new task execution.
- Omit it to use the current directory.
- Typical values:
.,./subdir,/absolute/path. - In resume mode, do not append
working_dir; resume follows backend session context.
- Output modes (parallel execution only)
- Summary (default): Compact execution report with task status, log path, and any reported fields such as
Did,Files,Tests, orCoverage. - Summary mode may omit fields that were not reported by the backend. Do not infer missing work from missing fields alone; inspect
Log:or use--full-outputwhen details matter. - Full (`--full-output`): Complete per-task backend messages. Use when debugging failures, inspecting omitted details, or when raw task output is required.
- Scope:
--full-outputis valid only with--parallel; single-task mode does not support this flag. - Backend behavior: mode selection is dispatcher-level and works the same for
codex | claude.
Utility Commands
code-dispatcher --help- Print CLI usage, supported backends, common mistakes, runtime config hints, and exit codes.
code-dispatcher --cleanup- Remove orphaned
code-dispatcher-*.logfiles from the temp directory. - Safe behavior: logs for active dispatcher processes are kept; only stale/orphaned logs are deleted.
- Use this when repeated runs leave many old temp logs behind.
Return Format
Single-task mode returns the backend message directly, followed by SESSION_ID when available:
Parallel summary mode returns a compact execution report:
Failed tasks include FAILED, Exit code, Error, Detail, and Log. Below-target coverage includes below <target>% and Gap.
Parallel full mode returns raw per-task backend messages:
Backends Selection Guide
Note: This backends selection guide applies only when the user has not explicitly requested a specific backend. If the user specifies a backend, always follow the user's instructions.
Quick look at the differences between backends:
| Backend | Command | Description | Best For | |
|---|---|---|---|---|
| codex | --backend codex | OpenAI Codex (default) | Code analysis, complex development, debugging | |
| claude | --backend claude | Anthropic Claude | Quick fixes, documentation, prompts, review, UI/UX and copy polish |
For detailed guidance:
Codex:
- Deep code understanding and complex logic implementation
- Large-scale refactoring with precise dependency tracking
- Algorithm optimization and performance tuning
- Example: "Analyze the call graph of @src/core and refactor the module dependency structure"
Claude:
- Quick feature implementation with clear requirements
- Technical documentation, API specs, README generation
- Professional prompt engineering (e.g., product requirements, design specs)
- UI/UX implementation: component scaffolding, layout, styling, accessibility, and interaction behavior
- Design-system wiring, UI copy, labels, empty states, review notes, and polish tasks
- Example: "Generate a comprehensive README for @package.json with installation, usage, and API docs"
A Typical Backend Switching Example:
- Start with Codex for analysis and complex implementation; switch to Claude for UI-heavy work, documentation, review notes, and copy polish.
- Use per-task backend selection in parallel mode to optimize for each task's strengths
Resume Session
Supported backends all support resume mode: codex | claude.
1) Standard resume (HEREDOC)
2) Single-line resume (no heredoc)
3) Parallel resume (supported)
In parallel mode, any task that provides session_id runs in resume mode.
Resume mode relies on backend session context.
- Do not append
[working_dir]in resume commands. - If you need a different directory, start a new session instead of resume.
Resume identifier contract:
- Use the dispatcher-returned
SESSION_IDas the source of truth for follow-up resume commands. - Standard form:
code-dispatcher --backend <backend> resume <SESSION_ID> ....
Parallel Mode (--parallel)
--parallel is the execution entry for submitting multiple tasks in one run.
- Each task must define a unique
id. --backendis a required global fallback; tasks withoutbackenduse it. Usually set tocodex.backendinside a task block overrides the global fallback for that task.- Tasks without
dependenciesare independent and can run concurrently.
Supported metadata fields inside each ---TASK--- block:
id(required): unique task identifier.backend: override the global--backendfor this task.workdir: working directory for this task. Default:..dependencies: comma-separated task IDs this task depends on.session_id: resume an existing session; automatically switches this task to resume mode.
Validation rules:
---CONTENT---is required for every task block.- Lines without
:are ignored. - Unknown metadata keys with
:fail fast with a parse error. idmust be present and unique.workdir: -is invalid.session_idcannot be empty when present.
1) Basic parallel (independent tasks, global backend fallback)
2) Parallel with per-task backend override (mixed backends)
Output styles in parallel mode:
1) Summary mode (default, no flag), optimized for context efficiency. It may show only task status and Log: when optional fields are not reported. Use --full-output or inspect the task log when you need raw output, omitted details, or debugging context.
2) Full mode (`--full-output`), for debugging failures, inspecting omitted details, or when full per-task messages are required.
DAG Scheduling (inside --parallel)
When a task declares dependencies, --parallel runs tasks as a DAG scheduler.
dependencies: a, bmeans this task waits for tasksaandbto succeed.- Tasks in the same DAG layer run concurrently; the next layer starts only after the current layer finishes.
- If a dependency fails, dependent tasks are skipped.
- Invalid dependency IDs or dependency cycles fail fast before execution starts.
ASCII execution model:
1) Dependency scheduling (DAG with mixed backends)
2) Minimal DAG example (annotated)
Runtime Config and Patterns
- Runtime settings and approval policy are operator-configured before invocation.
- Do not set or override runtime environment values from this skill.
- Treat dispatcher-internal timeout as a long fallback configured by the operator.
- Control actual waiting budget via the host tool-call timeout.
- Timeout tiers for tool-call invocations:
- Simple tasks:
600s (10 minutes) minimum. - Normal tasks:
1800s (30 minutes) recommended default. - Complex Codex tasks:
7200s (2 hours). - Do not use short timeouts like
300s (5 minutes) for normal or complex tasks.
Invocation Pattern:
Single Task:
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/code-dispatcher/SKILL.md
Popularity
- Repository stars
- 7
- Repository forks
- 1
- 7-day trend score
- 10
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/makomakogo/code-dispatcher-toolkit/code-dispatcher)