agentleFS
LL4nc33LL4nc33/code-workspace-engine/skills/delegator/SKILL.md

delegator

Skill0 starsChanged 7 months agoMITView on GitHub

Use PROACTIVELY when a user request requires TWO OR MORE different agents to complete. Decomposes multi-step requests into sub-tasks with dependency ordering and executes them via wave-based parallel dispatch. NOT for single-agent tasks (-> auto-delegation directly).

1 other project uses a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

8 rules. About 0 are common, 6 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈6

    Distinctive · estimate

    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. Very specific:

    Create one TaskCreate per identified concern.

    line 51
  2. Distinctive:

    Use default phase ordering:

    line 58
  3. Distinctive:

    Skip confirmation: when user says "just do it", "mach einfach", or similar.

    line 86
  4. Very specific:

    After confirmation, execute using the wave pattern from /cwe:start:

    line 90
  5. Distinctive:

    Wait for all tasks in the wave to complete

    line 97
  6. Distinctive:

    After all waves complete successfully:

    line 117
  7. Distinctive:

    Check if any docs need updating (Principle 6: Always Document)

    line 119
  8. Distinctive:

    If researcher was part of the delegation, docs are likely already handled

    line 121

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

Delegator — Multi-Agent Request Coordination

Decompose multi-step user requests into sub-tasks and dispatch them to specialized agents in dependency-ordered waves.

Scope: Requests that require 2+ different CWE agents working together. Not for: Single-agent tasks (use auto-delegation), full feature workflows (use /cwe:start).

When to Activate

Both criteria must be met:

  1. Request keywords match 2+ different agents (from the Intent → Agent keyword table)
  2. User expects a coordinated end result (not separate answers)

Detection Signals

  • Conjunctions across domains: "Build X and write tests and update docs"
  • Compound verbs: "implement, test, and deploy"
  • Feature-level implicit: "Add user authentication" (implies code + tests + docs)
  • Completeness keywords: "full", "complete", "end-to-end", "komplett", "mit allem"
  • Explicit sequencing: "First X, then Y, then Z"

NOT Multi-Step (Single Agent)

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

Decomposition Algorithm

Step 1: Identify Concerns

Scan the request for keywords that map to different agents.

Keyword table: see skills/auto-delegation/SKILL.md and hooks/scripts/intent-router.py (source of truth).

Count how many distinct agents are referenced by the request's keywords — 2 or more distinct agents means multi-step (proceed), 1 means fall back to auto-delegation.

Step 2: Create Sub-Tasks

Create one TaskCreate per identified concern. Each sub-task gets:

  • A clear, single-agent scope
  • The relevant portion of the original request
  • Context from the original request (what the user wants overall)

Step 3: Assign Dependencies

Use default phase ordering:

PhaseAgentsDepends On
1 Designarchitect—
2 Buildbuilder, devopsarchitect (if present)
3 Verifyquality, securitybuilder (if present)
4 Documentresearcherbuilder (if present)

Skip phases where no agent was identified. Dependencies only apply between phases that both exist.

Step 4: Confirm with User

Present the decomposition plan:

I'll split this into [N] sub-tasks:

1. [architect] Design the API schema
2. [builder] Implement the endpoints (depends on 1)
3. [quality] Write integration tests (depends on 2)
4. [researcher] Update API documentation (depends on 2)

Tasks 3 and 4 will run in parallel after task 2 completes.

Proceed?

Skip confirmation when user says "just do it", "mach einfach", or similar.

Execution — Wave Algorithm

After confirmation, execute using the wave pattern from /cwe:start:

Wave Loop

  1. TaskList → filter for unblocked tasks (no open blockedBy)
  2. Select up to 3 tasks per wave
  3. Dispatch each via Task tool with the appropriate subagent_type
  4. Wait for all tasks in the wave to complete
  5. TaskUpdate each as completed
  6. Repeat until no tasks remain

Dispatch Template

For each sub-task, dispatch with:

  • subagent_type: The CWE agent type (e.g., cwe:builder)
  • prompt: The sub-task description + relevant context from the original request
  • Context isolation: Each agent gets only its portion

Error Handling

  • Agent failed → Pause execution, report to user, ask: retry / skip / abort
  • No auto-retry — failures need human judgment
  • Dependency failed → Mark dependent tasks as blocked, report which tasks are affected
  • No cascading failures — one failure doesn't abort unrelated parallel tasks

Documentation Reminder

After all waves complete successfully:

  1. Check if any docs need updating (Principle 6: Always Document)
  2. Remind about: memory/, CHANGELOG.md, docs/ updates
  3. If researcher was part of the delegation, docs are likely already handled

Common Patterns

PatternWaves
Feature Devarchitect → builder → quality + researcher
Bug Fix + Testbuilder → quality
Refactor + Verifybuilder → quality
Security Hardeningsecurity → builder → security
Full Pipelinearchitect → builder → quality + security + researcher → devops

Rules

  1. Min 2 agents — if only 1 agent identified, fall back to auto-delegation
  2. Max 5 sub-tasks — above 5, recommend /cwe:start with a full spec
  3. Confirm before dispatch (unless "just do it" / "mach einfach")
  4. Context isolation — each agent gets only its sub-task, not the full plan
  5. No cascading failures — independent tasks continue even if a parallel task fails
  6. Document after completion — remind about Principle 6 updates

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.