dispatch

dispatch is a skill for Claude Code from phj128/autoworker. It costs 77 tokens per session (917 once invoked), scanned A, original, MIT.

An execution router that reads a task file’s checkboxes and chooses the next step in an automated coding workflow.

In plain words
What is it for?
It finds the active task file, reports completed phases and tests, and routes work to planning, coding, testing, or review steps.
Why use it?
It removes the need to decide manually which workflow step should run next or how to resume after losing context.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the autoworker plugin — 10 skills, 1 command shipped together

Good fit It finds the active task file, reports completed phases and tests, and routes work to planning, coding, testing, or review steps.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/phj128/autoworker/dispatch
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add phj128/autoworker --skill dispatch
Clone the repo
git clone --depth 1 https://github.com/phj128/autoworker

Made for: Claude Code.

Or install autoworker, the plugin that ships this one along with the rest of its 10 skills, 1 command.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for dispatch

README.md
[![agentmods](https://agentmods.dev/badge/skills/phj128/autoworker/dispatch/github.svg)](https://agentmods.dev/skills/phj128/autoworker/dispatch)
Your own site
<a href="https://agentmods.dev/skills/phj128/autoworker/dispatch"><img src="https://agentmods.dev/badge/skills/phj128/autoworker/dispatch/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for dispatch

Your own site · 80×15
<a href="https://agentmods.dev/skills/phj128/autoworker/dispatch"><img src="https://agentmods.dev/badge/skills/phj128/autoworker/dispatch.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 77 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 917 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00077 $0.00917
Opus 5.5 $0.00031 $0.00367
Sonnet 5.5 $0.00015 $0.00183
Haiku 4.5 $0.00008 $0.00092

Measured 1mo ago against content hash d11440217832, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

dispatch scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/dispatch/SKILL.md · 98 lines

How it starts

The opening of the file, as written. The whole thing — 98 lines — stays where its author put it; the contents beside it link to each section on GitHub.

autoworker:dispatch — Execution Chain Router (Sole Routing Point)

Reads subtask.md checkbox state and routes to the next skill based on fixed priority.

When to call: Automatically called after autoworker:checkpoint, autoworker:gate-check, autoworker:subtask-update, autoworker:subtask-plan complete, or manually called after context loss.

Execution Flow

1. Locate Subtask

Glob `subtask_*.md` (exclude subtask_template.md) →
  0 found → stop, prompt to create subtask
  1 found → use directly (backward compatible)
  multiple → grep `status:` to filter:
    - Files without status field treated as active (backward compatible)
    - Exactly 1 active → use it
    - 0 active → list all files + status, prompt user to choose
    - >1 active → report anomaly
→ Read → extract:
- Plan section Phase checkbox states
- Verification plan section L1-L4 checkbox states
- Whether a `Gate result:` line exists and its value

2. Status Summary

Tally and output current state:

dispatch (subtask: <filename>):
- Phases: X/N complete
- Tests: L1 done/pending, L2 done/pending/skip, L3 done/pending/skip, L4 done/pending
- Gate: <empty/PASS/FAIL>

3. Fixed Priority Routing

Evaluate in this order, execute the first match, do not continue evaluating:

  1. Has incomplete Phase? → invoke autoworker:code
  2. All Phases complete, has untested layer? → invoke autoworker:test <level> (pass the first incomplete level)
  3. All tests complete, no Gate result? → invoke autoworker:gate-check
  4. Gate result = PASS? → output completion report (terminal point, do not invoke any further skill)
  5. Gate result = FAIL? → invoke autoworker:subtask-update

4. Output Routing Decision

Append routing decision after the status summary:

→ Invoking autoworker:code to implement Phase Y

or

→ Invoking autoworker:test L2

or

→ Invoking autoworker:gate-check

or

Task complete! Outputting completion report.

or

→ Invoking autoworker:subtask-update (Gate FAIL)

Read the full file on GitHub · 98 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 98 lines · 77 tokens per session scan A d11440217832

Subscribe to this mod's changes

dispatch is a skill published in the GitHub repository phj128/autoworker (18 stars, last pushed 6mo ago), licensed MIT. It adds 77 tokens to every session and 917 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.