agentleFS
RBraga01RBraga01/a-team/skills/dispatching-parallel-agents/SKILL.md

dispatching-parallel-agents

Skill24 starsChanged 24 days agoMITView on GitHub

Use when facing 2+ independent tasks that can be worked on without shared state or sequential dependencies. Dispatches one focused agent per problem domain, runs them concurrently, then integrates.

189 other projects use a version of this, 152 of them edited.

Adopted by

Most recently taken up by

Used with

Projects with it also use chinese-code-review, chinese-commit-conventions and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • Leodorareluctant259Skill

    chinese-code-review

    中文代码审查规范——在保持专业严谨的同时,用符合国内团队文化的方式给出有效反馈

    Also in 8 projects that use this

  • Leodorareluctant259Skill

    chinese-commit-conventions

    中文 Git 提交规范 — 适配国内团队的 commit message 规范和 changelog 自动化

    Also in 8 projects that use this

  • obraSkill

    diagnosing-superpowers

    Use when a superpowers session went wrong and your human partner wants to know why — repeated work, ignored plans, stumbles, poor results, a skill that didn't fire, "it took too long", "why is it so expensive", "what is it doing" — or wants to build a bug report for the superpowers maintainers, for the current session or a past one identified by id or path, on any harness.

    Also in 19 projects that use this

  • kntismSkill

    condition-based-waiting

    Use when tests have race conditions, timing dependencies, or inconsistent pass/fail behavior - replaces arbitrary timeouts with condition polling to wait for actual state changes, eliminating flaky tests from timing guesses

    Also in 3 projects that use this

  • xfstudioSkill

    context-driven-development

    Use this skill when working with Conductor's context-driven

    Also in 3 projects that use this

  • EvezArtSkill

    analytics-dashboard

    User behavior tracking and analytics dashboards

    Also in 3 projects that use this

  • +3 more from Leodorareluctant259

The file

We split this skill into the rules it gives an agent

8 rules. 3 are common, 5 are distinctive, and 0 are very specific to this project.

  • 3

    Common

    Most of the 179 edited versions we read keep these.

  • 5

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Common:

    No shared state between investigations

    line 19
  2. Distinctive:

    Do NOT use when:

    line 21
  3. Distinctive:

    Verify fixes don't conflict (check for edits to same files)

    line 50
  4. Common:

    Run full test suite

    line 51
  5. Distinctive:

    No constraints → agent refactors everything

    line 75
  6. Distinctive:

    No expected output → you don't know what changed

    line 76
  7. Distinctive:

    Check for conflicts — did agents edit the same code?

    line 82
  8. Common:

    Run full suite — verify all fixes work together

    line 83

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

Dispatching Parallel Agents

Core Principle

Dispatch one agent per independent problem domain. Let them work concurrently. 3 problems solved in parallel = time of 1.

When to Use

Use when:

  • 3+ test files failing with different root causes
  • Multiple subsystems broken independently
  • Each problem can be understood without context from others
  • No shared state between investigations

Do NOT use when:

  • Failures are related (fixing one might fix others)
  • Agents would edit the same files
  • You need full system context to understand any single problem

The Pattern

1. Identify Independent Domains

Group problems by what's broken. Each domain must be fixable independently.

2. Create Focused Agent Tasks

Each agent gets:

  • Specific scope: One test file or subsystem
  • Clear goal: Exactly what to achieve
  • Constraints: What NOT to change
  • Expected output: Summary of what was found and fixed

3. Dispatch in Parallel

Task("Fix auth-flow.test.ts failures — timing issues in login flow")
Task("Fix payment-webhook.test.ts failures — missing mock for Stripe")
Task("Fix user-profile.test.ts failures — stale closure in useEffect")

4. Review and Integrate

  • Read each summary
  • Verify fixes don't conflict (check for edits to same files)
  • Run full test suite
  • Integrate all changes

Agent Prompt Structure

Good prompts are:

  1. Focused — one clear problem domain
  2. Self-contained — all context to understand the problem included
  3. Specific about output — what should the agent return?
Fix the 3 failing tests in src/auth/auth-flow.test.ts:
1. "should redirect after login" - expects /dashboard but gets /
2. "should persist session" - session expires immediately
3. "should handle expired tokens" - throws instead of redirecting

Root context: auth was refactored in commit a1b2c3 to use JWT.
Do NOT change production code — test-only fix unless you find a real auth bug.
Return: what you found and what you changed.

Common Mistakes

  • Too broad: "Fix all the tests" → agent gets lost
  • No constraints → agent refactors everything
  • No expected output → you don't know what changed
  • Parallel agents editing the same files → conflicts

Verification After Agents Return

  1. Review each summary — understand what changed
  2. Check for conflicts — did agents edit the same code?
  3. Run full suite — verify all fixes work together
  4. Spot check — agents can make systematic errors

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.

Reviews can't be read right now.

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.