dispatch
Skill1 starsChanged 5 months agoMITView on GitHub
Autonomously match a free-form task description (or GitHub issue) against this project's pipeline manifests and run the matching pipeline(s) — single or chained — without asking for confirmation. Invoke when an inbound task description may have a pre-authored pipeline. /pipeline:find is the ask-first inspection variant.
26 other projects use a version of this.
Adopted by
Most recently taken up by
- vu1n/pillboxtheir own version, first seen Oct 4, 2026
- mb-89/quackitecttheir own version, first seen Oct 3, 2026
- s2b-dev/smart-second-braintheir own version, first seen Sep 27, 2026
- SantiagoVqz/claude-skillstheir own version, first seen Sep 23, 2026
- ntorga/agent-starter-kittheir own version, first seen Sep 12, 2026
- renzrollon/interlocktheir own version, first seen Sep 10, 2026
Used with
Projects with it also use orient, spec and 5 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
moredipSkillorient
Orient yourself to this codebase by reading the README and documentation
Also in 3 projects that use this
SentrySkillspec
Produce a verified spec — problem, desired outcome, and acceptance criteria — before building. Use when given a GitHub/Linear issue link, when starting from a fuzzy in-conversation idea, or asked to "figure out what to do" / "scope this" / "what should I build" — whenever the *what* isn't yet pinned down. Grills the ambiguities, checks the premise against the code, and produces acceptance criteria you sign off on — then hands to design-first.
Also in 3 projects that use this
AWSSkillship
Finalize dev work on an issue branch — update docs, push, and open a PR.
Also in 3 projects that use this
AWSSkilltdd
Test-driven development. Use when the user wants to build features or fix bugs test-first, mentions "red-green-refactor", or wants integration tests.
Also in 4 projects that use this
MicrosoftSkillhandoff
Compact the current conversation into a handoff document for another agent to pick up.
Also in 4 projects that use this
SentrySkillcommit
Create commit messages following Sentry conventions. Use when committing code changes, writing commit messages, or formatting git history. Follows conventional commits with Sentry-specific issue references.
Also in 3 projects that use this
Other versions26 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 26
- s2b-dev/smart-second-brain★ 1.3ksame name
- bassimeledath/dispatch★ 411same name
- epilande/ccmux★ 213same name
- ntorga/agent-starter-kit★ 146same name
- fagemx/edda★ 36same name
- phj128/autoworker★ 19same name
- clonable-eden/cekernel★ 17same name
- renzrollon/interlock★ 17same name
- BigY0shi/super-skills★ 4same name
- fuzzyfox/skills★ 4same name
16 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
The file
Show its rules and text
We split this skill into the rules it gives an agent
13 rules. 0 are common, 7 are distinctive, and 6 are very specific to this project.
0
Common
Most of the 24 edited versions we read keep these.
7
Distinctive
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 17
Deterministic match (free): Always runs first. Shells out to the pipeline match command that scores manifests with Okapi BM25 over the …
- Very specific: line 26
Run the deterministic matcher (pipeline match).
- Very specific: line 29
Run via /pipeline:run — once per matched pipeline, in order.
- Distinctive: line 35
In tier 2, do NOT load all manifests into your context: Read only the 2–5 ambiguous candidates' manifests (each ≤ 300 tokens) and inline …
- Very specific: line 83
If ratio >= 2.0 → confident top match.
- Very specific: line 84
If ratio < 2.0 → ambiguous.
- Distinctive: line 87
If chain phrasing found → tier 3 (chain detection).
- Distinctive: line 88
If no chain phrasing → genuinely no match.
- Distinctive: line 134
If you cannot construct a chain, stop and report:
- Distinctive: line 159
Wait for the chain to finish before starting the next pipeline.
- Distinctive: line 163
After all pipelines complete (or one halts):
- Very specific: line 184
Do not invoke
step-executordirectly: Always go through /pipeline:run. - Distinctive: line 186
Do not silently skip a pipeline in a declared chain: If your match result says A → B, run A, then B.
“Common” is measured: kept by at least 6 in 10 of the 24 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Dispatch a Task to the Right Pipeline
Given a task description (or GitHub issue ref) in $1, select the best-matching pipeline(s) from the current project's .pipeline/ and run them in order — autonomously, without confirmation. This is the auto-run sibling of /pipeline:find (which is the inspection variant that asks before running).
Three-tier token cost ladder (CRITICAL)
This skill is engineered so most calls cost near-zero LLM tokens. Each call walks down a ladder; you stop at the first tier that produces a usable answer.
- Deterministic match (free). Always runs first. Shells out to the
pipeline matchcommand that scores manifests with Okapi BM25 over the positive corpus and hard-filters onScope.Out. Returns ranked JSON. ~zero LLM tokens. Most tasks resolve here. - LLM disambiguation (cheap, Haiku). Only when the matcher returns 2+ candidates with comparable scores (top1/top2 ratio < 2.0). Spawns the
pipeline-disambiguatorsubagent (Haiku 4.5) with the task text and the 2–5 ambiguous candidates' manifests inlined. Tokens scale with ambiguity, not with project size — typically a few thousand tokens of Haiku, total cost is fractions of a cent. - LLM chain detection (expensive, Sonnet/main). Only when the matcher returns 0 candidates AND the task contains chain phrasing (
then,after that,followed by, etc.). Loads every project manifest into your context and reasons over them to produce a chain. This is the only path that costs what dispatch used to cost on every call before the refactor — now it runs maybe 5% of the time.
The 80% case (one pipeline obviously matches): tier 1 only, no LLM tokens. The 15% case (ambiguous match): tier 1 + tier 2, Haiku tokens only. The 5% case (chain across pipelines): tier 1 + tier 3, full reasoning. Average token cost per dispatch drops by ~90% versus the pre-refactor design.
What you are doing
- Detect input shape (free-form task vs GitHub issue URL/ref).
- Run the deterministic matcher (
pipeline match). - Apply the decision tree below to pick a tier.
- Resolve to one pipeline (or a 2-pipeline chain).
- Run via
/pipeline:run— once per matched pipeline, in order. - Report progress compactly (the report may be relayed to a remote caller).
Token discipline
- Never
ReadPIPELINE.mdfiles yourself in tier 1. The matcher reads them inside its own process; you only consume the small JSON result it prints to stdout. - In tier 2, do NOT load all manifests into your context. Read only the 2–5 ambiguous candidates' manifests (each ≤ 300 tokens) and inline them into the disambiguator's prompt. The disambiguator runs on Haiku and reasons over them.
- Tier 3 is the only path where you load all manifests. Save it for genuine chain detection — never as a generic fallback when the matcher gave a usable answer.
- Never
Readiteration files (steps/**/*.md). Hand the path to/pipeline:run; let the executor read.
Prerequisites
$1is non-empty. If empty, ask the user what task to dispatch. Do not proceed.- Current working directory is the consumer project's root.
- The
pipelineCLI is installed and on PATH (@baizor/pipeline; seedocs/running-pipelines.md) — the matcher runs through it. - For
--issueinputs only:ghCLI installed and authenticated. - At least one pipeline exists under
./.pipeline/. If none, stop and tell the user to run/pipeline:designfirst.
Procedure
Step 1 — Resolve input
Inspect $1:
- Starts with
https://github.com/.../issues/<n>→ GitHub issue URL. - Matches
owner/repo#<n>→ issue shorthand. - Plain digits AND user explicitly framed it as an issue → numeric issue ref.
- Anything else → free-form task text.
For the issue cases, you do NOT need to call gh yourself — the matcher accepts --issue and fetches the title+body internally. Pass it through.
Step 2 — Run the deterministic matcher (tier 1)
Invoke the matcher (pipeline match):
pipeline match \
--pipelines-dir "./.pipeline" \
--task "<verbatim task text>" # OR --issue "<issue ref>"
--top 5Quote the task verbatim — do not paraphrase. For tasks with shell-significant characters, write to a temp file and use --task "$(cat tmpfile)".
Parse the JSON result. The script writes one JSON object to stdout with keys task, candidates, excluded. Each candidate has name, manifest, first_iteration, end_state, score, matched_terms.
Step 3 — Decision tree
Let C = result.candidates (already sorted by score descending).
len(C) == 1→ single confident match. Skip tier 2. Go to step 5 with this pipeline.len(C) >= 2→ check confidence ratio:- Compute
ratio = C[0].score / C[1].score. - If
ratio >= 2.0→ confident top match. Skip tier 2. Go to step 5 withC[0]. - If
ratio < 2.0→ ambiguous. Go to step 4 (tier 2 — disambiguator).
- Compute
len(C) == 0→ no positive match. Check task text for chain phrasing — case-insensitive search for any of:then,after that,after which,followed by,and then,next,,subsequently,, then.- If chain phrasing found → tier 3 (chain detection). Go to step 4b.
- If no chain phrasing → genuinely no match. Stop and report:
No pipeline matched "<task>" deterministically. Excluded by Scope.Out: <list excluded entries from result.excluded with their matching_terms> Suggest: /pipeline:design <goal> (to author a new pipeline) or rephrase the task and try again.
Step 4 — Tier 2: spawn pipeline-disambiguator (Haiku)
Build the prompt. For each candidate in C[:5], read its manifest content via Read (each ≤ 300 tokens — bounded read). Compose:
## Task
<verbatim task text or issue title+body>
## Candidates
### <candidate.name>
- manifest: <candidate.manifest>
- first_iteration: <candidate.first_iteration>
- score: <candidate.score>
- matched_terms: <candidate.matched_terms>
<verbatim manifest content>
---
### <next candidate>
...Spawn via the Agent tool with subagent_type: "pipeline-disambiguator", passing the composed prompt as the entire input. Do NOT add other instructions — the agent's system prompt has its protocol.
Parse the agent's Disambiguation Result:
chosen.first_iterationis set,chained_afteris null → run that single pipeline (step 5).chosen.first_iterationis set,chained_afteris set → run the two pipelines in order (step 5, twice).chosenis null (refusal) → surface the rationale to the user and stop. Do NOT silently fall back to tier 3 — Haiku has more context than the matcher and its refusal is informative.
Step 4b — Tier 3: chain detection (only on 0 candidates + chain phrasing)
This is the expensive path. Enumerate every project manifest with the Glob tool: ./.pipeline/**/PIPELINE.md.
Read each manifest (still ≤ 300 tokens each by plugin convention; the bulk read is safe).
Reason over the manifests in your own context (you are the main session). Produce an ordered chain of pipelines whose End States, run sequentially, satisfy the task. Each step in the chain is one pipeline's first iteration path.
If you cannot construct a chain, stop and report:
Task seems to span multiple pipelines but no consistent chain found.
Candidates considered: <list>
Suggest: rephrase, or /pipeline:design <goal> for the missing piece.Step 5 — Announce and run
For the chosen pipeline (or chain), output a compact structured message (≤ 300 tokens):
▶ Task: <verbatim $1>
▶ Matched: <pipeline-name>[ → <next-pipeline-name>]
▶ End state: <End State of the last pipeline in the chain — read it now from PIPELINE.md if you don't have it>
▶ Why: <one sentence — for tier 1: "BM25 confident match (ratio X.X)"; for tier 2: disambiguator's rationale verbatim; for tier 3: your own chain reasoning summarized>Then for each pipeline in the chain (just one, in the common case), invoke:
/pipeline:run <pipeline.first_iteration>Wait for the chain to finish before starting the next pipeline. If a chain halts on a blocker, STOP — do not start the next pipeline. Report the blocker.
Step 6 — Final report
After all pipelines complete (or one halts):
✓ Completed: <comma-separated pipeline names>or
✗ Halted at <pipeline>/<iteration>
Blocker: <text from the executor>Tuning the confidence ratio
The default ratio >= 2.0 threshold for "skip disambiguation" is empirical, not sacred. If you observe disambiguator calls that ALWAYS pick the top BM25 candidate anyway, raise the threshold (e.g. 1.5) — running Haiku for nothing wastes tokens. If you see disambiguator picks differing from BM25's top often, lower it (e.g. 3.0) — the deterministic matcher's confidence is overstated.
This is the one knob worth tuning over time. Don't tune it from a single bad call; gather a handful of examples first.
Do not
- Do not invoke
step-executordirectly. Always go through/pipeline:run. - Do not modify pipeline files during dispatch. Matching is read-only.
- Do not silently skip a pipeline in a declared chain. If your match result says A → B, run A, then B. If you think B isn't needed, say so and let the user confirm before skipping.
- Do not paraphrase the user's task before passing it to the matcher. The deterministic matcher tokenizes the verbatim text — paraphrasing changes the token set and shifts scores. If the task is too short to score well, you'll see 0 candidates; let the chain-detection path or the user handle it.
- Do not fall back from a disambiguator refusal to tier 3. The disambiguator has more context than the matcher; if it refuses, surface its rationale and stop. Tier 3 is reserved for the genuinely-no-candidates case.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

