agentleFS
liwuhouliwuhou/skills/multi-agent/SKILL.md

multi-agent

Skill1 starsChanged 6 months agoMITView on GitHub

Coordinate multiple agents to execute tasks in parallel. Use when user says 'use multiple agents in parallel', 'split task', 'concurrent execution', 'do multiple things at the same time', '/multi-agent', or any explicit request for multi-agent collaboration on complex tasks. Automatically assesses task parallelizability, splits subtasks, and coordinates execution. Works with any LLM platform that supports the skills.sh protocol.

2 other projects use a version of this.

Adopted by

Most recently taken up by

  • Other versions2 projects use a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 2

    1. strikersam/autonomous-ai-agency★ 9same name
    2. byshahriar/skill-forge★ 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 repository2 other files it gives its agents.

The file

Files
SKILL.md

Multi-Agent Coordinator

Assess if a task can be split into multiple parallelizable subtasks, and coordinate multiple sub-agents to execute concurrently when appropriate. Execute directly when parallelism is unnecessary or impossible.

Workflow Checklist

Copy this checklist and check off items as you complete them:

Multi-Agent Workflow Progress:

  • Step 0: Load core concepts ⛔ BLOCKING
    • Read references/core-concepts.md for parallelizability assessment criteria
    • Load templates from references/templates.md if needed
  • Step 1: Assess task parallelizability ⛔ BLOCKING
    • Ask yourself: Can this task be split into independent subtasks?
    • Ask yourself: Did the user explicitly request parallel execution?
    • Ask yourself: Will splitting provide significant performance benefits?
  • Step 2: Decision Branch
    • Branch A: Not parallelizable/unnecessary → Go to Step 8 (Direct Execution)
    • Branch B: Parallelizable → Continue to Step 3
  • Step 3: Split into subtasks
    • Split into 2-5 independent subtasks (max based on --max-agents parameter)
    • Define clear goals, inputs/outputs, and acceptance criteria for each subtask
    • Save decomposition to task_decomposition.json using template from references/templates.md
  • Step 4: Confirm split scheme with user ⚠️ REQUIRED (unless --no-confirm flag is set)
    • Present split scheme to user using template from references/templates.md
    • Get explicit user approval before proceeding
    • Adjust split based on user feedback if needed
  • Step 5: Prepare execution environment
    • If --no-worktree flag is NOT set: Create git worktree for each subtask
    • Create output directories for each subtask
  • Step 6: Execute subtasks in parallel
    • Spawn one sub-agent per subtask with isolated working directory
    • Use sub-agent prompt template from references/templates.md
    • Start all agents concurrently, not sequentially
    • Read references/coordinator-guide.md for best practices
  • Step 7: Collect and merge results
    • Wait for all sub-agents to complete
    • Collect outputs from each subtask directory
    • Choose appropriate merge strategy based on task type
    • Check for conflicts or issues
    • Read references/scenario-handling.md for edge case handling
    • Read references/merger-guide.md for merging best practices
  • Step 8: Final output
    • If executed directly: Present task results
    • If parallel execution: Present merged results using summary template from references/templates.md
    • Clean up worktrees if auto_cleanup is enabled in settings
    • Ask user if they need further assistance

Parameter Reference

ParameterDescriptionDefault
--max-agents NMaximum number of parallel agents5
--no-worktreeDon't use git worktree isolation (use if not in a git repository)false
--dry-runOnly assess parallelizability and show split scheme, don't executefalse
--no-confirmSkip user confirmation step for split schemefalse
--output-dir PATHCustom base directory for subtask outputs./outputs
--worktree-base PATHCustom base directory for git worktrees./worktrees

Issue Severity Definitions

SeverityMeaningHandling
P0Critical failure, task cannot continueNotify user immediately and stop
P1Subtask failure, but overall task can continueRecord issue and proceed with remaining subtasks
P2Minor issue, no impact on overall executionRecord in notes and mention in final report
P3Optimization suggestionNote for future improvements

Configuration

See references/configuration.md for available user configuration options.

Usage Examples

See references/examples.md for detailed usage examples.

Special Scenarios

See references/scenario-handling.md for handling edge cases and exceptions.

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.