agentleFS
renzrollonrenzrollon/interlock/skills/dispatch/SKILL.md

dispatch

Skill17 starsChanged 3 months agoMITView on GitHub

Route a request to the right interlock skill, after one batched pre-flight that loads git state, OpenSpec status, open tasks and graph presence in a single pass. Use when you are not sure which skill applies, or at the start of a session to orient before doing anything else.

26 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use orient, tdd and 2 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.
  • moredipSkill

    orient

    Orient yourself to this codebase by reading the README and documentation

    Also in 3 projects that use this

  • AWSSkill

    tdd

    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

  • MicrosoftSkill

    handoff

    Compact the current conversation into a handoff document for another agent to pick up.

    Also in 4 projects that use this

  • GoogleSkill

    code-review

    Adversarial systems, concurrency, memory-model, and architecture code review protocol. Use this skill whenever asked to review code, PRs, diffs, or branches in Filament.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

3 rules. 0 are common, 2 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 24 edited versions we read keep these.

  • 2

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Run these in one turn, joined with .

    line 17
  2. Distinctive:

    When two routes fit, prefer the earlier phase.

    line 76
  3. Distinctive:

    When the request genuinely does not fit any skill, say so and handle it directly.

    line 78

“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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Figure out where the user actually is in the flow, then route. One cheap pre-flight beats an exploratory warm-up.


Step 0 — Pre-flight, batched

Run these in one turn, joined with ; not && — you want every answer regardless of which ones fail:

git branch --show-current; git status --short; git log --oneline -5
openspec list --json 2>/dev/null
interlock changes 2>/dev/null
ls -t .claude/handoff/explore-*.md 2>/dev/null | head -3
ls .claude/graph/GRAPH_REPORT.md .claude/graph/DOCS_DIGEST.md 2>/dev/null

That is Rules 2 and 3 of ${CLAUDE_PLUGIN_ROOT}/shared/TOOL-ECONOMY.md: read state, do not re-derive it. Do not traverse the tree to reconstruct what these already tell you.


The flow

graph → docs-digest → bootstrap        (once per repo)
/interlock:spec    explore → artifacts → review     ⟵ STOPS. Human reviews.
/interlock:ship    waves → verify → commit  (workflow, zero-touch; --strict adds review)
/interlock:mr      summary → merge request

The gap between spec and ship is deliberate. Never bridge it automatically — if a spec is ready, say so and let the user start ship. The user can bridge it themselves with /interlock:spec --continue, but that is theirs to ask for; routing never offers it.

ship is a dynamic workflow. /interlock:ship is a skill trampoline that launches it via the Workflow tool (scriptPath → workflows/ship.js). Invoke the skill interlock:ship (or call Workflow with that scriptPath yourself). Do not treat a missing Workflow-namespaced command as "ship does not exist" — the skill is the entry point. If the trampoline halts because the Workflow tool is unavailable, that is the runtime gap (v2.1.154+, Dynamic workflows on in /config); do not implement the loop inline.


Routing table

SituationRoute to
No openspec/ directory, or no specs on an existing codebase/interlock:bootstrap
No .claude/graph/, and the session will explore or review heavily/interlock:graph (build)
Docs context too large, or the digest is stale/interlock:docs-digest
"How does X work?", "what breaks if I change Y?", tracing, comparing options/interlock:explore
"I want to build / fix X" — no change exists yet/interlock:spec
A change exists with reviewed artifacts and unchecked tasks/interlock:ship — only if the user asked to ship, and this conversation has not already run ship
Leftover unchecked boxes after a ship workflow just returnedReport them. Do not route to ship.
Implementation done, diff needs review/interlock:review-code
Artifacts written but not yet reviewed/interlock:review-artifacts
Suite is red, or a CI log was pasted/interlock:fix-tests
"Explain this code" / "what changed in that commit?"/interlock:explain-code
Need a QA checklist for a change/interlock:manual-test-plan
Work is done and needs committing/interlock:commit
MR or PR needs creating or updating/interlock:mr
"I want to skip the checkpoint" / "don't stop and make me read it"/interlock:spec --continue — advanced. Opt-in, fail-closed, and it stops anyway on anything a machine cannot settle. It cannot catch a wrong idea; only the read can.

Prerequisite checks before routing:

  • Routing to ship — run interlock validate <change> first. Not ready means route to spec, not ship. If a ship workflow already returned in this conversation, leftover boxes are a report, not a retry.
  • Routing to spec with no explore brief and a question that spans subsystems — run explore first.
  • Routing to anything that reads the graph when .claude/graph/ is absent — offer to build it once.

Ambiguity

When two routes fit, prefer the earlier phase. Exploring when you should have specced costs one turn; shipping when you should have specced costs a bad change and a review cycle.

When the request genuinely does not fit any skill, say so and handle it directly. Not everything is a workflow, and forcing an ordinary question through a skill is worse than just answering it.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.