agentleFS
userFRMuserFRM/agent-dispatch/skills/agent-dispatch/SKILL.md

agent-dispatch

Skill4 starsChanged 9 months agoMITView on GitHub

Lightweight agent registry and JIT router. Consult BEFORE performing specialized work such as code review, security audit, debugging, refactoring, performance optimization, infrastructure, data analysis, API design, testing, documentation, or any domain-specific engineering task. Maps tasks to specialized subagents, downloading them on demand if not installed locally.

9 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

11 rules. 0 are common, 9 are distinctive, and 2 are very specific to this project.

  • 0

    Common

    Most of the 5 edited versions we read keep these.

  • 9

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    When you encounter a specialized task, follow these steps in order.

    line 19
  2. Distinctive:

    If no keyword matches, do the work yourself.

    line 25
  3. Distinctive:

    Check if the agent file exists locally:

    line 29
  4. Distinctive:

    If the file exists, skip to step 4.

    line 33
  5. Distinctive:

    Do the work yourself. Do not retry.

    line 50
  6. Very specific:

    Validation: if the downloaded file does not start with --- (YAML frontmatter), treat it as corrupt, delete it, and handle the task yourself.

    line 52
  7. Very specific:

    Read the agent file. Extract everything after the YAML frontmatter (after the second --- line).

    line 56
  8. Distinctive:

    Use a general-purpose subagent with the full prompt inline — do not reference the agent by registered name.

    line 58
  9. Distinctive:

    When the Task completes, relay its output to the user in the main conversation.

    line 62
  10. Distinctive:

    If your platform does not have a programmatic dispatch tool, instruct the user to invoke the agent manually and pause until it completes.

    line 96
  11. Distinctive:

    If you are offline, agents not already cached will be unavailable — handle the task yourself

    line 102

“Common” is measured: kept by at least 6 in 10 of the 5 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

Agent dispatch

You have access to a registry of 130+ specialized subagents. Before doing specialized work yourself, check this index and dispatch to the appropriate agent. If the agent is not installed locally, download it on the fly.

JIT dispatch procedure

When you encounter a specialized task, follow these steps in order.

Step 1: index lookup

Scan the agent index at the bottom of this file. Format: keyword = "agent-name:category". Extract the agent name (before the colon) and category key (after the colon). If no keyword matches, do the work yourself.

Step 2: check local cache

Check if the agent file exists locally:

ls "${AGENTS_DIR:-$HOME/.claude/agents}/AGENT_NAME.md" 2>/dev/null

If the file exists, skip to step 4.

Step 3: download the agent

Construct the download URL from these parts:

  • Base: https://raw.githubusercontent.com/VoltAgent/awesome-claude-code-subagents/main/categories
  • Directory: look up the category key in the mapping below
  • File: AGENT_NAME.md

Download:

mkdir -p "${AGENTS_DIR:-$HOME/.claude/agents}" && curl -sfL "URL" -o "${AGENTS_DIR:-$HOME/.claude/agents}/AGENT_NAME.md"

If download fails (non-zero exit or empty file):

  • Run: rm -f "${AGENTS_DIR:-$HOME/.claude/agents}/AGENT_NAME.md"
  • Tell the user: "Could not download AGENT_NAME — handling this task directly."
  • Do the work yourself. Do not retry.

Validation: if the downloaded file does not start with --- (YAML frontmatter), treat it as corrupt, delete it, and handle the task yourself.

Step 4: read and dispatch

Read the agent file. Extract everything after the YAML frontmatter (after the second --- line). Pass that full text as the prompt to the Task tool, prepending the specific work request. Use a general-purpose subagent with the full prompt inline — do not reference the agent by registered name.

Step 5: return results

When the Task completes, relay its output to the user in the main conversation. The downloaded agent file stays cached in the agents directory for future sessions.

When to skip dispatch

  • The task is trivial (one-liner, quick fix, simple question)
  • You need tight back-and-forth with the user
  • The task spans multiple domains simultaneously
  • The user explicitly asks you to handle it directly

Category directory mapping

KeyDirectory
core01-core-development
languages02-language-specialists
infra03-infrastructure
quality04-quality-security
data05-data-ai
devex06-developer-experience
domains07-specialized-domains
business08-business-product
meta09-meta-orchestration
research10-research-analysis

Platform-specific paths

PlatformAgent locationDispatch mechanism
Claude Code~/.claude/agents/Task tool with inline prompt
OpenClaw~/.openclaw/workspace/sessions_spawn tool
Cursor.cursor/agents/Agent invocation
Codex.codex/agents/Agent invocation

If your platform does not have a programmatic dispatch tool, instruct the user to invoke the agent manually and pause until it completes.

Known limitations

  • Each keyword maps to exactly one agent (TOML requires unique keys)
  • Downloaded agents are cached permanently; delete manually to force re-download
  • If you are offline, agents not already cached will be unavailable — handle the task yourself

Agent index

Scan by keyword. Format: keyword = "agent-name:category".

# -- Code quality -----------------------------------------------
review          = "code-reviewer:quality"
refactor        = "refactoring-specialist:devex"
lint            = "code-reviewer:quality"
code-quality    = "code-reviewer:quality"
simplify        = "refactoring-specialist:devex"
dead-code       = "refactoring-specialist:devex"

# -- Security ---------------------------------------------------
security        = "security-auditor:quality"
vulnerability   = "security-auditor:quality"
owasp           = "security-auditor:quality"
secrets         = "security-auditor:quality"
penetration     = "penetration-tester:quality"
audit           = "security-auditor:quality"
compliance      = "compliance-auditor:quality"
ad-security     = "ad-security-reviewer:quality"

# -- Debugging and errors ---------------------------------------
debug           = "debugger:quality"
error           = "error-detective:quality"
stacktrace      = "debugger:quality"
crash           = "debugger:quality"
troubleshoot    = "debugger:quality"

# -- Testing ----------------------------------------------------
test            = "qa-expert:quality"
e2e             = "test-automator:quality"
unit-test       = "test-automator:quality"
integration     = "test-automator:quality"
accessibility   = "accessibility-tester:quality"

# -- Performance ------------------------------------------------
performance     = "performance-engineer:quality"
optimize        = "performance-engineer:quality"
profiling       = "performance-engineer:quality"
bottleneck      = "performance-engineer:quality"
chaos           = "chaos-engineer:quality"

# -- Architecture and design ------------------------------------
api-design      = "api-designer:core"
architecture    = "architect-reviewer:quality"
microservices   = "microservices-architect:core"
graphql         = "graphql-architect:core"
websocket       = "websocket-engineer:core"

# -- Frontend ---------------------------------------------------
react           = "react-specialist:languages"
nextjs          = "nextjs-developer:languages"
vue             = "vue-expert:languages"
angular         = "angular-architect:languages"
ui              = "ui-designer:core"
frontend        = "frontend-developer:core"
electron        = "electron-pro:core"

# -- Backend ----------------------------------------------------
backend         = "backend-developer:core"
django          = "django-developer:languages"
rails           = "rails-expert:languages"
spring          = "spring-boot-engineer:languages"
laravel         = "laravel-specialist:languages"
dotnet          = "dotnet-core-expert:languages"

# -- Languages --------------------------------------------------
typescript      = "typescript-pro:languages"
javascript      = "javascript-pro:languages"
python          = "python-pro:languages"
rust            = "rust-engineer:languages"
golang          = "golang-pro:languages"
java            = "java-architect:languages"
kotlin          = "kotlin-specialist:languages"
swift           = "swift-expert:languages"
cpp             = "cpp-pro:languages"
csharp          = "csharp-developer:languages"
elixir          = "elixir-expert:languages"
php             = "php-pro:languages"
sql             = "sql-pro:languages"
flutter         = "flutter-expert:languages"
powershell      = "powershell-7-expert:languages"

# -- Infrastructure ---------------------------------------------
docker          = "docker-expert:infra"
kubernetes      = "kubernetes-specialist:infra"
terraform       = "terraform-engineer:infra"
terragrunt      = "terragrunt-expert:infra"
cloud           = "cloud-architect:infra"
aws             = "cloud-architect:infra"
azure           = "azure-infra-engineer:infra"
cicd            = "deployment-engineer:infra"
devops          = "devops-engineer:infra"
sre             = "sre-engineer:infra"
platform        = "platform-engineer:infra"
network         = "network-engineer:infra"
incident        = "devops-incident-responder:infra"
database        = "database-administrator:infra"

# -- Data and AI ------------------------------------------------
data-analysis   = "data-analyst:data"
data-eng        = "data-engineer:data"
data-science    = "data-scientist:data"
machine-learning = "machine-learning-engineer:data"
ml-ops          = "mlops-engineer:data"
llm             = "llm-architect:data"
nlp             = "nlp-engineer:data"
prompt-eng      = "prompt-engineer:data"
postgres        = "postgres-pro:data"
db-optimize     = "database-optimizer:data"

# -- Developer experience ---------------------------------------
documentation   = "documentation-engineer:devex"
cli             = "cli-developer:devex"
build           = "build-engineer:devex"
dependencies    = "dependency-manager:devex"
git-workflow    = "git-workflow-manager:devex"
dx              = "dx-optimizer:devex"
legacy          = "legacy-modernizer:devex"
mcp             = "mcp-developer:devex"
tooling         = "tooling-engineer:devex"

# -- Specialized domains ----------------------------------------
blockchain      = "blockchain-developer:domains"
fintech         = "fintech-engineer:domains"
gamedev         = "game-developer:domains"
iot             = "iot-engineer:domains"
embedded        = "embedded-systems:domains"
payments        = "payment-integration:domains"
seo             = "seo-specialist:domains"
mobile          = "mobile-app-developer:domains"

# -- Business and product ---------------------------------------
product         = "product-manager:business"
project         = "project-manager:business"
technical-write = "technical-writer:business"
ux-research     = "ux-researcher:business"
scrum           = "scrum-master:business"
business        = "business-analyst:business"

# -- Orchestration ----------------------------------------------
coordinate      = "multi-agent-coordinator:meta"
organize        = "agent-organizer:meta"
workflow        = "workflow-orchestrator:meta"
distribute      = "task-distributor:meta"

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.