agentleFS
MorganOnGitHubMorganOnGitHub/tackle/skills/delegating-to-subagents/SKILL.md

delegating-to-subagents

Skill0 starsChanged 46 days agoMITView on GitHub

Use when executing a plan whose tasks are independent enough to hand to subagents, and the harness supports dispatching them

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

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    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:

    DONE: verify it (below).

    line 25
  2. Very specific:

    DONE_WITH_CONCERNS: read the concerns. Resolve those about correctness before verifying.

    line 26
  3. Distinctive:

    Verify independently: Read the actual diff and run the task's check yourself.

    line 29
  4. Distinctive:

    Every task's diff has been read and its check run by you, review has matched each task's risk, and the full suite passes.

    line 43

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

Delegating to Subagents

Hand each task to a fresh subagent with exactly the context it needs, while you act as coordinator. This keeps your own context clear for integration and judgment. Delegation costs time and tokens, so match the amount of review to the risk of each task.

Scale it

Choose per task, not per plan:

Task riskImplementerReview
Routine (clear spec, 1–2 files)Fast, cheaper modelYou read the diff and run its check
Integration (several files, judgment needed)Standard modelDiff + check, plus a reviewer if anything looks off
Risky (security, data, public API, hard to undo)Most capable modelDiff + check + independent reviewer (requesting-review)

How

  1. Extract every task from the plan up front so each subagent gets the full task text rather than reading the plan file.
  2. Dispatch one implementer at a time for tasks that touch shared files. Use implementer-prompt.md. Include where the task fits, which interfaces it relies on, and its check.
  3. Handle the status it reports:
    • DONE: verify it (below).
    • DONE_WITH_CONCERNS: read the concerns. Resolve those about correctness before verifying; note the rest.
    • NEEDS_CONTEXT: supply what's missing and re-dispatch.
    • BLOCKED: change something before retrying: more context, a stronger model, a smaller task, or escalate to the user if the plan is wrong. Never retry unchanged.
  4. Verify independently. Read the actual diff and run the task's check yourself. A subagent's report is a claim, not evidence.
  5. Fix proportionately. Small, clear fixes you can make directly. Larger ones go back to a subagent with the specific issue.
  6. Pause at checkpoints the plan marks, and whenever several tasks in a row surprise you.
  7. Finish with a whole-change check: full test suite, plus one review of the complete diff for substantial work.

Skip or shorten when

  • The harness can't dispatch subagents (see using-tackle/references/platforms.md). Use executing-plans, keeping the risk-matched checks above.
  • Tasks are tightly coupled or each depends on the last. Use executing-plans.
  • There are only one or two small tasks. Dispatch overhead outweighs the benefit.
  • The user hasn't agreed to subagent use and the harness asks you to confirm first.

Done means

Every task's diff has been read and its check run by you, review has matched each task's risk, and the full suite passes.

Next

  • verifying-before-claiming
  • finishing-work

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.