agentleFS
LL4nc33LL4nc33/code-workspace-engine/skills/auto-delegation/SKILL.md

auto-delegation

Skill0 starsChanged 7 months agoMITView on GitHub

Use PROACTIVELY when user sends a free-text request (not a /command). Routes natural language to the right agent or plugin skill. NOT for Build-phase task assignment — see agent-detection for that.

The file

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    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. Distinctive:

    Before routing to a single agent, check if the request requires multiple agents:

    line 77
  2. Very specific:

    When multi-step is detected, invoke the delegator skill for decomposition and wave-based dispatch.

    line 101

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “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

Auto-Delegation

Route free-text user requests to agents and plugin skills.

Scope: Interactive user requests (natural language in chat). Not for: Structured task assignment during Build phase (→ use agent-detection).

Decision Flow

User request
    ↓
Explicit /command? → Execute command
    ↓ no
Plugin skill matches? → Invoke skill
    ↓ no
CWE agent matches? → Delegate to agent
    ↓ no
Multi-step task? → Delegate to subagents (via delegator skill)
    ↓ no
Unclear? → Ask (max 2 questions)

Override: Say "manual" or "no delegation" to disable.

Intent → Agent

IntentAgentKeywords
Write/fix codebuilderimplement, fix, build, create, code, feature, bug, refactor
Questions/discussionaskquestion, discuss, think about
Explain code/conceptsexplainerexplain, how, what, why, understand
Testing/qualityqualitytest, write tests, coverage, quality, validate, assert, metrics, flaky, gate
Security auditsecuritysecurity, audit, vulnerability, scan, gdpr, owasp, cve
Infrastructuredevopsdeploy, docker, ci, cd, release, kubernetes, k8s, terraform
System designarchitectdesign, architecture, adr, api, schema
Research/docsresearcheranalyze, document, research, compare
Brainstorminginnovatorbrainstorm, idea, ideas, what if, alternative, explore
Process improvementguideworkflow, process, pattern, improve, optimize, optimization

"test" Routing

"test" and related keywords always route to quality first. Quality decides next steps:

  • Coverage analysis, metrics, review → quality handles directly
  • Writing new tests (TDD, regression) → quality delegates to builder
  • CI pipeline tests → quality delegates to devops

Intent → Plugin Skill

Plugin skills take priority over agent routing when matched.

KeywordsSkillPlugin
UI, frontend, component, pagefrontend-designfrontend-design
simplify, cleanup, refactorcode-simplifiercode-simplifier
debug, investigate bugsystematic-debuggingsuperpowers
write plan, planningwriting-planssuperpowers
review coderequesting-code-reviewsuperpowers
TDD, test firsttest-driven-developmentsuperpowers
update CLAUDE.mdclaude-md-improverclaude-md-management
create plugin, hook, commandplugin-dev skillsplugin-dev
develop feature/feature-devfeature-dev
youtube/instagram/tiktok/media URLtranscriptcwe (auto via hook)

Multi-step Detection

Before routing to a single agent, check if the request requires multiple agents:

Triggers (invoke delegator skill)

  • Keywords match 2+ different agents (e.g., "build" + "test" + "document")
  • Conjunctions across domains: "implement X and write tests and update docs"
  • Completeness keywords: "full", "complete", "end-to-end", "komplett", "mit allem"
  • Compound verbs: "implement, test, and deploy"
  • Feature-level implicit: "Add user authentication" (code + tests + docs)

NOT Multi-step (stay with single agent)

  • One verb, one domain: "Fix login bug" → builder
  • Question across topics: "Explain auth and caching" → explainer
  • Vague: "Look at the API" → ask (clarify first)

Examples

"Build auth with tests and docs"     → delegator (builder + quality + researcher)
"Fix bug and add regression test"    → delegator (builder + quality)
"Implement, test, and deploy"        → delegator (builder + quality + devops)

When multi-step is detected, invoke the delegator skill for decomposition and wave-based dispatch.

Context Injection (Automatic)

Standards are auto-loaded via .claude/rules/ with paths frontmatter. The _index.yml maps standards to both file paths AND task keywords.

Task KeywordsRules Loaded
All files.claude/rules/global-standards.md (always)
api, endpoint, REST.claude/rules/api-standards.md
component, UI, frontend.claude/rules/frontend-standards.md
migration, schema, database.claude/rules/database-standards.md
docker, deploy, CI/CD.claude/rules/devops-standards.md
test, coverage, TDD.claude/rules/testing-standards.md
agent, skill, hook.claude/rules/agent-standards.md

Rules

  1. Never guess — ask when unclear (max 2 questions)
  2. Respect explicit commands — /cwe:builder, /feature-dev etc. bypass this
  3. Context isolation — agent result is summary, not full context
  4. Plugin skills first — check plugin skill match before agent match

Examples

"Fix login bug"           → builder
"How does auth work?"     → explainer
"Audit the API"           → security
"Create release"          → devops
"Write tests for auth"    → quality (may delegate to builder)
"What if we used GraphQL" → innovator
"Look at this"            → ASK: "Fix, explain, or analyze?"
"Build auth with tests and docs" → delegator (builder + quality + researcher)
"Fix bug and add regression test" → delegator (builder + quality)

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.