agentleFS
WenyuChiouWenyuChiou/agent-collab-skills/skills/agent-task-splitter/SKILL.md

agent-task-splitter

Skill31 starsChanged 47 days agoMITView on GitHub

Use when about to run two or more subagents, workflow lanes, or delegated CLI executors on one goal. Gives each lane a role, a pinned model tier, a disjoint file scope, a bounded brief, and a capped return, and fixes the merge and verification step before launch. Not for research-domain routing that owns .research, .paper, Zotero, Obsidian, or NotebookLM workflows; use research-hub-multi-ai for those.

The file

Show its rules and text

We split this skill into the rules it gives an agent

15 rules. About 0 are common, 12 are distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈12

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Do not split exploratory debugging before the cause is known, a small coherent change, or work where every lane needs the same context in …

    line 30
  2. Distinctive:

    Write it before launching anything:

    line 36
  3. Distinctive:

    Write scopes are disjoint.

    line 54
  4. Distinctive:

    If scopes might touch, isolate the writers or run them in sequence.

    line 55
  5. Distinctive:

    Every lane has at least one runnable or objectively checkable acceptance criterion.

    line 56
  6. Very specific:

    Every lane has a capped return: a short summary plus file paths, never raw logs or full diffs.

    line 58
  7. Distinctive:

    Write down, before any lane starts:

    line 68
  8. Distinctive:

    commit boundaries: one reviewed commit per writing lane, or one commit after the merged result passes.

    line 73
  9. Distinctive:

    Before editing, list the exact paths you may write and must not touch.

    line 83
  10. Distinctive:

    Stop and report if they conflict with this brief.

    line 84
  11. Distinctive:

    Must not touch: <paths> External actions: none unless named here.

    line 88
  12. Very specific:

    If the job already has a plan header (for example from the aim-higher skill), copy its outcome, outside check, not-doing and …

    line 100
  13. Distinctive:

    Check each return against its brief when it arrives, not only at the end: a "done" without the acceptance command's actual output stays …

    line 115
  14. Very specific:

    Write .coord/plan.yml (schema_version 2) and one packet per non-inline task, using references/harness-plan.md.

    line 125
  15. Distinctive:

    Do not encode retries in the plan.

    line 133

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 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

agent-task-splitter (fan-out planner)

Plan a fan-out before launching it. This skill plans; the host launches the lanes. The name stays agent-task-splitter so existing prompts and plans keep working.

Pick the mode

ModeUse whenArtifacts
Native (default)All lanes run inside one host session: parallel or background subagents, workflow lanes, one-shot CLI delegates, with the user presentLane table in the conversation and one brief per lane. No .coord/ plan, packets, or checkpoint.
HarnessA round spans sessions or tools, an unattended loop runs, work must resume after an interruption, a signed human gate is needed, or AGENT_COLLAB_POLICY is configured.coord/plan.yml (schema v2) and .ai/task_<NNN>_<slug>.md packets; see references/harness-plan.md

A configured policy always selects harness mode, and an unreadable configured policy fails closed. Native mode follows the host's own limits and permissions and adds no numeric limits of its own. Host mechanics are in native lanes.

Fan out only when

  • two or more pieces are independent (none needs another's result) and each has a checkable result; or
  • implementation and independent review must be separate lanes.

Do not split exploratory debugging before the cause is known, a small coherent change, or work where every lane needs the same context in tight sequence. Doing it directly is the default.

The lane table

Write it before launching anything:

LaneRoleExecutorModel tierMay writeMust not touchAcceptanceReturnDepends on
L1delegated-executorsubagent in a worktreecheapsrc/a/**everything elsepytest tests/a -qsummary + pathsnone
L2delegated-executorCLI delegatecheapdocs/x.mdsrc/**link check passessummary + pathsnone
L3reviewerread-only subagentstrongnothing**/*verdict with evidenceverdict + findingsL1, L2

Rules:

  1. Roles are primary-agent, delegated-executor, reviewer, and synthesizer, defined in the public contract. The executor and model columns are host-adapter choices, not public plan fields.
  2. The orchestrator assigns the model tier; a lane never picks its own. Mechanical, pattern-following work goes to a cheap tier. Review, verdicts, root-cause analysis, security, governance, and anything ambiguous go to a strong tier.
  3. Write scopes are disjoint. Two parallel writers never own the same file. If scopes might touch, isolate the writers or run them in sequence.
  4. Every lane has at least one runnable or objectively checkable acceptance criterion.
  5. Every lane has a capped return: a short summary plus file paths, never raw logs or full diffs. agent-context-budget covers sizing.
  6. A lane cannot approve its own output. Author and reviewer are different lanes.

references/task_splitter_heuristics.md helps when a task could fit more than one role or DAG shape.

Fix the merge step before launch

Write down, before any lane starts:

  • who merges the results (normally the primary-agent) and in what order;
  • the verification command run on the merged result, not only per lane;
  • which agent-acceptance-gate presets the merged diff will trigger;
  • commit boundaries: one reviewed commit per writing lane, or one commit after the merged result passes. Read-only lanes need no commit.

Brief per lane

# Lane <id>: <one bounded deliverable>
Repo/worktree: <absolute path>
Role: <role>. Model tier: <tier>.
Depends on: <lane ids and artifact paths>

Before editing, list the exact paths you may write and must not touch.
Stop and report if they conflict with this brief.

May read: <paths>
May write: <paths>
Must not touch: <paths>
External actions: none unless named here.
Edits required: yes | unchanged output allowed because <reason>

Goal this lane serves: <the outcome of the whole job, one line>
Already decided (do not reopen): <decisions, copied word for word>

Acceptance: <runnable check>
Return (capped): status; short summary; files changed; the acceptance
command and the last lines of its actual output; other checks run and
results; risks; blockers. Put long output in a file and return its path.

If the job already has a plan header (for example from the aim-higher skill), copy its outcome, outside check, not-doing and already-decided lines into these fields instead of rewriting them. Without one, fill the fields yourself.

Drift guards

  • Copy identifiers (slugs, paths, field names, version strings) verbatim into the brief. Do not paraphrase them.
  • Record the pre-lane baseline (commit or file hashes) so the result can be attributed. File times and a process exit status do not prove the work was done; use the task-content evidence review.
  • State whether edits are required. A lane that reports success without changing its required files has failed unless the brief allowed unchanged output.
  • Check each return against its brief when it arrives, not only at the end: a "done" without the acceptance command's actual output stays unverified, and a result that departs from the brief's steps or decided items is drift even when its own checks pass.
  • Missing, null, failed, declined, cancelled, and timed-out lanes stay non-success. Filter them out of synthesis but keep their records.
  • Agent agreement never replaces running the checks.

Harness mode

  1. Write .coord/plan.yml (schema_version 2) and one packet per non-inline task, using references/harness-plan.md.
  2. Immediately before each spawn the host runs agent-collab policy evaluate --policy <policy_ref> --checkpoint <checkpoint_ref> --json and spawns only on decision=continue with spawn_allowed=true. The plan never overrides that decision.
  3. Coordination files are scratch and gitignored. Promote only an explicit checkpoint snapshot, shipping artifact, or acceptance record.
  4. Do not encode retries in the plan; the policy decides them.

Historical schema-less plans and provider-specific task paths are parse-only; see migration 0.4.

Output

Return the lane table, each brief (or its path), the ready lanes in launch order, and the merge-and-verify step. Do not launch lanes from this skill and do not turn a planning-only request into implementation.

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.