agentleFS
haliphax-aihaliphax-ai/skills/fan-out/SKILL.md

fan-out

Skill0 starsChanged 8 months agoUnlicenseView on GitHub

Fan out a list of tasks to subagents with unified tracking and status updates.

8 other projects use a version of this.

Adopted by

Most recently taken up by

  • Other versions8 projects use a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 8

    1. me2resh/apexyard★ 542same name
    2. keli-wen/dev-skills★ 12same name
    3. keli-wen/rondo★ 12same name
    4. Suge8/friedbun★ 12same name
    5. alexanderpino/skills★ 1same name
    6. darrenCWJ/agent-skills-scaffold★ 0same name
    7. reaatech/mcp-gateway★ 0same name
    8. stjarnstrom/spec-system★ 0same name

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

  • In this repository4 other files it gives its agents.

The file

Show its rules and text

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 6 edited versions we read keep these.

  • 11

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

    Use current agentId if working on agent-specific tasks

    line 35
  2. Distinctive:

    Create new list with descriptive slug

    line 37
  3. Distinctive:

    Use a short description of the project

    line 40
  4. Very specific:

    All tasks and their current status (pending/running/completed/failed)

    line 81
  5. Distinctive:

    If a subagent is blocked on something the parent agent has context for:

    line 118
  6. Distinctive:

    When all subagents complete (or are killed for inactivity):

    line 135
  7. Distinctive:

    Create list (agent generates name)

    line 171
  8. Distinctive:

    If subagent encounters issues, steer it with context

    line 175
  9. Distinctive:

    When all complete, post summary

    line 176
  10. Distinctive:

    Use descriptive list_id that links to project/task

    line 195
  11. Distinctive:

    Keep task descriptions clear and actionable

    line 196
  12. Distinctive:

    Use progressive backoff when monitoring ACP subagents doing complex work (e.g.

    line 200
  13. Distinctive:

    Always aggregate results at the end

    line 203

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

Fan-Out

Overview

This skill distributes work across multiple subagents with unified status tracking. It creates a to-do list, spawns subagents, maintains a live discussion post of task status, steers subagents when they encounter known issues, and summarizes outputs when complete. Subagents can be spawned asynchronously to complete tasks in parallel.

Requirements

When to Use

  • User provides multiple tasks ("help me do X, Y, and Z")
  • A to-do list exists and each item should become an independent subagent
  • Long-running tasks benefit from parallel execution rather than sequential
  • Need unified tracking and summary of multiple workers

Workflow

Step 1: Accept Input

  • tasks: Bullet list or comma-separated list of task descriptions
  • async: Whether the tasks should be completed asynchronously (parallel subagents)

For item names in the to-do list, use the task content directly.

Step 2: Create To-Do List

For the list ID:

  • Use current agentId if working on agent-specific tasks
  • Generate a project slug based on task content
  • Create new list with descriptive slug

For the list name:

  • Use a short description of the project

Create new list:

mcporter call todo.todo_list_create key=<list_id> name="<name>"

Add items:

mcporter call todo.todo_item_add key=<list_id> content="<task description>"

Each item returns a unique item_id for tracking.

Step 3: Spawn Subagents Asynchronously

For each to-do item, spawn a subagent using sessions_spawn:

sessions_spawn(
  task="<task description>",
  label="fanout-<list_id>-<item_short_id>",
  runtime="subagent",
  mode="run",
  cleanup="keep"  # Keep for status polling
)

Key settings:

  • runtime="subagent" - Spawns isolated subagent session
  • mode="run" - One-shot execution
  • cleanup="keep" - Retain session for status checks
  • label - Trackable identifier for steering/polling

Store mapping: item_id → session_key

Step 4: Maintain Live Status Post

Post the initial status to a single message, then edit that same message in-place as tasks progress. Do not add new messages for each update—edit the original to keep the channel clean. When a task completes, the status post reflecting this is enough. Save additional output for the summary.

Track:

  • All tasks and their current status (pending/running/completed/failed)
  • Elapsed time for each task
  • Errors or blockers encountered

Format as a list with emoji for status:

**Fan-Out Status: some-list-id**

- 🕰️ task-id-1 (1m13s)
- ⚡️ task-id-2 (15s)
- ❌ task-id-3 (5m3s)
- ✅ task-id-4 (8s)
- 🚫 task-id-5 (10m)

Emoji key:

  • 🕰️ pending (not started)
  • ⚡️ running
  • 🚫 canceled
  • ❌ failed
  • ✅ succeeded

Edit this same message periodically as subagents progress.

Step 5: Poll and Steer Subagents

Poll status:

subagents(action="list", recentMinutes=10)

For each subagent, check:

  • Is it still running?
  • Did it encounter a known issue the parent agent can help with?
  • Has it exceeded expected time?

Steering: If a subagent is blocked on something the parent agent has context for:

subagents(
  action="steer",
  target="<session_key>",
  message="<guidance based on parent agent context>"
)

Examples:

  • "Use the todo MCP server: mcporter call todo.todo_list_create key=..."
  • "The repo is at /path/to/repo - don't re-clone it"
  • "Credentials are in env vars, not in code"

Step 6: Aggregate Results

When all subagents complete (or are killed for inactivity):

  1. Collect outputs:
    • Poll each session for final status
    • Fetch session history if needed
  2. Summarize:
    • Group by status (success/failed/canceled/timeout)
    • Include individual task durations and total duration
    • Extract key outputs from each
    • Note any patterns or common blockers
  3. Final report:
    **Fan-Out Complete: <list_id>**
    
    **✅ Succeeded (<n>):**
    - <task> (<duration>): <result summary>
    
    **❌ Failed (<n>):**
    - <task> (<duration>): <error>
    
    **🚫 Canceled (<n>):**
    - <task> (<duration>): <reason>
    
    **Total Duration:** <time>

Example Usage

Tasks to fan out:

  • Fix bug in auth module
  • Update README
  • Run tests

Execution flow:

  1. Create list (agent generates name)
  2. Spawn subagents for each task (in parallel if async is requested)
  3. Post initial status to channel
  4. Poll every 5-10s for updates
  5. If subagent encounters issues, steer it with context
  6. When all complete, post summary

Key Commands Reference

ActionCommand
Create listmcporter call todo.todo_list_create key=<id> name=<name>
Add itemsmcporter call todo.todo_item_add key=<id> content="..."
Spawn subagentsessions_spawn(task="...", runtime="subagent", cleanup="keep")
List subagentssubagents(action="list", recentMinutes=10)
Steer subagentsubagents(action="steer", target="<key>", message="...")
Kill subagentsubagents(action="kill", target="<key>")
Get session historysessions_history(sessionKey="<key>")
Update todo statusmcporter call todo.todo_item_update key=<list_id> item_id=<item_id> status=<status>

Note: You may need to supply additional arguments to mcporter (such as --config to specify the configuration file path).

Best Practices

  • Use descriptive list_id that links to project/task
  • Keep task descriptions clear and actionable
  • Set reasonable cleanup="keep" for status tracking
  • Execute tasks in parallel whenever possible to save time
  • Poll every 5-10s for updates (native subagents)
  • Use progressive backoff when monitoring ACP subagents doing complex work (e.g. 20s → 40s → 60s → 120s, capped at 2 minutes)
  • Edit status post in-place—never add new messages for updates
  • Steer proactively when you see common blockers
  • Always aggregate results at the end

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.