plugins/development-harness/skills/dispatch/SKILL.md
Orchestrate parallel agent teams as a manager — not a micromanager. Use when coordinating 2+ independent workers, running SAM task waves, relaying discoveries between worker waves, handling blockers, or synthesizing team results. Covers both SAM structured dispatch (task file does the work) and ad-hoc dispatch (reference agent-orchestration for prompt template).
npx skillsauth add jamie-bitflight/claude_skills dispatchInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
The orchestrator's job is experience sharing and team health, not prompt engineering. Workers are specialists. Trust them. Relay what they learn. Unblock them when stuck. Synthesize what they produce.
For the delegation prompt template and pre-send verification, activate the /agent-orchestration:agent-orchestration skill.
flowchart TD
Start(["Work to dispatch"]) --> Q{"Is there a SAM task file<br>for this work?"}
Q -->|"Yes — SAM plan exists"| SAM["SAM Dispatch<br>Minimal prompt — task file has everything"]
Q -->|"No — ad-hoc work"| AdHoc["Ad-Hoc Dispatch<br>Use delegation template from<br>/agent-orchestration:agent-orchestration"]
SAM --> SAMPrompt["Agent prompt:<br>'You are working on P{N}/T{M}'<br>Agent loads task via sam_task —<br>acceptance criteria, context, verification steps all there"]
AdHoc --> AdHocPrompt["Write OBSERVATIONS + DEFINITION OF SUCCESS +<br>CONTEXT per agent-orchestration template"]
SAMPrompt --> Team["TeamCreate and spawn workers"]
AdHocPrompt --> Team
TeamCreate(team_name="feature-slug-wave-1")
Name the team after the work and wave number. One team per parallel wave.
Fetch-once rule: Before spawning any workers, call backlog_view once per issue that will be worked in this session. Store each result in context keyed by issue number. Do NOT call backlog_view again for any issue already fetched — use the stored data for all wave iterations, prompt construction, and relay building. If a backlog_update changes an item's state mid-session, replace the cached value with a single new backlog_view call for that issue only.
Each worker gets exactly the context needed — no more.
SAM dispatch (task file is the delegation):
Agent(
team_name="feature-slug-wave-1",
name="T42-worker",
prompt="Your ROLE_TYPE is sub-agent. You are working on Pf1a2b3c4/T42."
)
The agent calls sam_task to load the task. All acceptance criteria, verification steps, and context live in the task file.
Ad-hoc dispatch: follow the delegation template from /agent-orchestration:agent-orchestration — OBSERVATIONS, DEFINITION OF SUCCESS, CONTEXT.
Workers learn things during execution. Relay those discoveries to the next wave — this is experience sharing.
flowchart TD
Wave1(["Wave 1 workers complete"]) --> Collect["Collect discoveries:<br>- APIs that behaved unexpectedly<br>- Files that needed changes<br>- Constraints discovered during work<br>- Patterns found"]
Collect --> Q{"Are any discoveries<br>relevant to Wave 2 tasks?"}
Q -->|"Yes"| Inject["Inject as OBSERVATIONS into Wave 2 prompts<br>Label source: 'T42 worker reported: ...'"]
Q -->|"No"| Skip["Spawn Wave 2 with original task context"]
Inject --> Wave2(["Spawn Wave 2 workers"])
Skip --> Wave2
Workers report what they observed — relay facts, not interpretations, to the next wave.
When a worker sends a blocker message:
flowchart TD
Blocker(["Worker sends blocker"]) --> Classify{"What is blocking them?"}
Classify -->|"Missing information the orchestrator has"| Relay["SendMessage with the missing context<br>Worker resumes"]
Classify -->|"Conflict with another worker's changes"| Resolve["Read both workers' summaries<br>Decide which approach wins<br>SendMessage resolution to affected workers"]
Classify -->|"Scope question — out of task boundaries"| Bound["Confirm scope in task file via sam_task<br>SendMessage: stay within T{M} boundaries or<br>create a new task for the discovered work"]
Classify -->|"Hard blocker — cannot proceed"| Escalate["SendMessage shutdown<br>Capture blocker as backlog item<br>Adjust wave plan"]
When all workers return:
File pointer pattern: instruct workers to write findings to .tmp/scratch/reports/ and return the path, or register artifacts via artifact_register and return the artifact type. Read reports, not inline summaries, to keep orchestrator context lean.
TeamDelete()
Shut workers down via SendMessage before deleting the team.
Dispatch when:
sam_plan)Explore first, then dispatch when:
Micromanaging — "Use sed to edit line 42, then grep to verify." Workers are specialists. Describe what success looks like; let them determine how.
No discovery relay — Wave 2 workers miss context Wave 1 workers discovered. Always check if Wave 1 output changes what Wave 2 needs to know.
Ignoring blocker messages — Workers go idle waiting for a response. Check messages between waves.
Pre-gathering data — Running diagnostics before delegating wastes orchestrator context. Workers gather their own data.
development
When an application needs to store config, data, cache, or state files. When designing where user-specific files should live. When code writes to ~/.appname or hardcoded home paths. When implementing cross-platform file storage with platformdirs.
testing
Enforce mandatory pre-action verification checkpoints to prevent pattern-matching from overriding explicit reasoning. Use this skill when about to execute implementation actions (Bash, Write, Edit) to verify hypothesis-action alignment. Blocks execution when hypothesis unverified or action targets different system than hypothesis identified. Critical for preventing cognitive dissonance where correct diagnosis leads to wrong implementation.
tools
Reference guide for the Twelve-Factor App methodology — 15 principles (12 original + 3 modern extensions) for building portable, resilient, cloud-native applications. Use when evaluating application architecture, designing cloud-native services, reviewing codebases for methodology compliance, advising on configuration, scaling, observability, security, and deployment patterns. Incorporates the 2025 open-source community evolution and cloud-native reinterpretations of each factor.
tools
Converts user-facing documentation (how-to guides, tutorials, API references, examples) in any format — Markdown, PDF, DOCX, PPTX, XLSX, AsciiDoc, RST, HTML, Jupyter notebooks, man pages, TOML/YAML/JSON configs, and plain text — into Claude Code skill directories with SKILL.md plus thematically grouped references/*.md files. Use when given a docs directory or mixed-format documentation to transform into an AI skill. Uses MCP file-reader server for binary formats.