From parallel-dispatch
Generate copy-paste agent prompts and a coordinator playbook from a pre-built parallel work plan. Use when the user has decomposed a large task into conflict-free parallel tracks and needs formatted prompts for multiple Claude Code sessions. Triggers on "parallel dispatch", "parallel agents", "dispatch tracks", "multi-agent", "generate agent prompts". Do NOT use to decompose a task into tracks (the user does that upfront), to author handover documents, or to launch/monitor agents. Do NOT use for single-session sub-agent delegation via the Agent tool — this is for spinning up separate Claude Code sessions.
How this skill is triggered — by the user, by Claude, or both
Slash command
/parallel-dispatch:parallel-dispatchThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Generate structured agent prompts and a coordinator playbook from a user-provided parallel work plan. The user has already done the decomposition — this skill formats the output.
Generate structured agent prompts and a coordinator playbook from a user-provided parallel work plan. The user has already done the decomposition — this skill formats the output.
Ask the user for track definitions if not already provided. Each track needs these 5 fields:
| Field | Required | Description |
|---|---|---|
| Name | Yes | Short label (e.g., "Track A — Server Conversion") |
| Handover doc | Yes | Path to the handover document for this track |
| Soldiers | Yes | List of sub-task IDs the agent should execute |
| File scope | Yes | CAN touch / CANNOT touch — explicit file lists or globs |
| Issues | Yes | GitHub issue numbers to close (code tracks) or comment on (analysis tracks) |
| Dependencies | No | Which tracks must merge before this one starts (default: none) |
| Type | No | code (default) or analysis |
The user may provide these as a table, a list, or point to a file. Accept any format — extract the 5 fields.
Before generating prompts, check for file overlap between tracks:
"Tracks A and D both claim
netlify/functions/firm-comp.mts. This will cause merge conflicts. Either split the file scope or add a dependency so they run sequentially."
For each track, produce a fenced code block (```markdown) the user can copy-paste into a new Claude Code session. Use the template that matches the track type:
assets/agent-prompt-code.mdassets/agent-prompt-analysis.mdRead the appropriate template, fill in the bracketed placeholders, and emit the result inside a fenced markdown block.
**DO NOT START until [dependency tracks] have merged their work to main.**shared-engine.cjs or parser/? Add: Run node tests/ AND npm run test:vitest:trackedRun node scripts/dead-code-check.jsRun npm run verifylib/ helpers" for function groups. ALWAYS include both CAN and CANNOT lists.After the agent prompts, produce a Coordinator Playbook section by reading assets/coordinator-playbook.md and filling in the track names, issue numbers, and any track-specific verification commands.
End with a summary table so the user can see the full dispatch at a glance:
## Dispatch Summary
| Agent | Track | Type | Soldiers | Issues | Dependencies | Can Start |
|-------|-------|------|----------|--------|--------------|-----------|
| 1 | ... | code | ... | ... | None | Now |
| 2 | ... | code | ... | ... | None | Now |
| 3 | ... | analysis | ... | ... | None | Now |
| 4 | ... | code | ... | ... | After 1+2 | After merge |
When dispatching parallel agents, each agent will do the work but often skip issue closure — leaving issues in a zombie-open state where the code is merged but the issue dangles. This happened systematically on the Layer C migration: all 16 issues across Tracks C and D were left open despite code being committed and pushed.
Root cause: Issue closure instructions at the end of an agent prompt are treated as low-priority after the primary code/analysis work is complete. Agents prioritize "commit and push" as their exit signal and drop the issue lifecycle step.
Prevention: The agent prompt templates below include gated issue closure (bolded, with "do not end the session until..."). The coordinator playbook includes a verification step. Both are needed — agents will still occasionally skip closure, so the coordinator must catch it.
An agent may commit documentation or minor changes under a track's commit message without touching the primary files it was supposed to modify. Always verify the commit's --stat output matches the expected file scope before closing issues.
Creates, edits, and optimizes skills for Claude Code, including drafting, evaluating with test prompts, iterating on performance, and improving skill descriptions for better triggering accuracy.
npx claudepluginhub bogdanbaciu21/skills --plugin parallel-dispatch