All skills
wshobson avatar

/task-coordination-strategies

@a5ab5d8
by Seth Hobsonwshobson/agents40k stars
4,281

Decompose complex tasks, design dependency graphs, and coordinate multi-agent work with proper task descriptions and workload balancing. Use this skill when breaking down work for agent teams, managing task dependencies, or monitoring team progress.

Use this Skill: https://skilld.dev/gh/wshobson/agents/task-coordination-strategies

This session only. Nothing lands on disk.

referencesdependency-graphs.md

≈677 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Dependency Graph Patterns

Visual patterns for task dependency design with trade-offs.

Pattern 1: Fully Independent (Maximum Parallelism)

Task A ─┐
Task B ─┼─→ Final Integration
Task C ─┘
  • Parallelism: Maximum — all tasks run simultaneously
  • Risk: Integration may reveal incompatibilities late
  • Use when: Tasks operate on completely separate files/modules
  • TaskCreate: No blockedBy relationships; integration task blocked by all

Pattern 2: Sequential Chain (No Parallelism)

Task A → Task B → Task C → Task D
  • Parallelism: None — each task waits for the previous
  • Risk: Bottleneck at each step; one delay cascades
  • Use when: Each task depends on the output of the previous (avoid if possible)
  • TaskCreate: Each task blockedBy the previous

Pattern 3: Diamond (Shared Foundation)

           ┌→ Task B ─┐
Task A ──→ ┤          ├→ Task D
           └→ Task C ─┘
  • Parallelism: B and C run in parallel after A completes
  • Risk: A is a bottleneck; D must wait for both B and C
  • Use when: B and C both need output from A (e.g., shared types)
  • TaskCreate: B and C blockedBy A; D blockedBy B and C

Pattern 4: Fork-Join (Phased Parallelism)

Phase 1:  A1, A2, A3  (parallel)
          ────────────
Phase 2:  B1, B2      (parallel, after phase 1)
          ────────────
Phase 3:  C1          (after phase 2)
  • Parallelism: Within each phase, tasks are parallel
  • Risk: Phase boundaries add synchronization delays
  • Use when: Natural phases with dependencies (build → test → deploy)
  • TaskCreate: Phase 2 tasks blockedBy all Phase 1 tasks

Pattern 5: Pipeline (Streaming)

Task A ──→ Task B ──→ Task C
  └──→ Task D ──→ Task E
  • Parallelism: Two parallel chains
  • Risk: Chains may diverge in approach
  • Use when: Two independent feature branches from a common starting point
  • TaskCreate: B blockedBy A; D blockedBy A; C blockedBy B; E blockedBy D

Anti-Patterns

Circular Dependency (Deadlock)

Task A → Task B → Task C → Task A  ✗ DEADLOCK

Fix: Extract shared dependency into a separate task that all three depend on.

Unnecessary Dependencies

Task A → Task B → Task C
(where B doesn't actually need A's output)

Fix: Remove the blockedBy relationship; let B run independently.

Star Pattern (Single Bottleneck)

     ┌→ B
A →  ├→ C  → F
     ├→ D
     └→ E

Fix: If A is slow, all downstream tasks are delayed. Try to parallelize A's work.

Source: SKILL.md on GitHub

No alerts16d5 checks · Risk SAFE
  • Gen Agent Trust Hub16d

    The skill provides strategies and documentation for task decomposition and coordination. No security risks were identified in the provided documentation files.

  • Socket16d

    No alerts

  • Snyk16d

    Risk: LOW · No issues

  • Runlayer7mo

    3 files scanned · No issues

  • ZeroLeaks5mo

    Score: 93/100 · 2 sections analyzed

Signed by skilld at a5ab5d8. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 3 days ago.

Activeupdated 8 months ago
version
1.0.2
  • task-decomposition
  • multi-agent
  • dependency-graph
  • workload-balancing
  • task-coordination
  • parallel-execution
  • critical-path
  • team-management

README badge

README badge for wshobson/agents/task-coordination-strategies

Breaks down complex tasks into parallelizable units using decomposition strategies (by layer, component, concern, or ownership), designs dependency graphs to minimize chain depth and identify critical paths, and provides templates for task descriptions with acceptance criteria and interface contracts. Use this skill when coordinating work across multiple agents to avoid dependencies, balance workload, and monitor team progress.

Generated from the current SKILL.md.

How do I decide which decomposition strategy to use?
Choose by layer for full-stack features, by component for microservices, by concern for reviews/audits, and by file ownership to avoid merge conflicts during parallel work.
What's the difference between blockedBy and blocks?
blockedBy means a task waits for other tasks to complete before starting; blocks means a task prevents other tasks from starting. They describe the same dependency from different perspectives.
How do I identify the critical path in a dependency graph?
Find the longest chain of dependent tasks from start to finish—this chain determines the minimum time to complete all work, even with parallel execution of independent tasks.
What signals indicate uneven workload distribution?
One teammate idle while others are busy, one teammate assigned 3x more tasks than others, or all tasks blocked on dependencies suggests rebalancing is needed.

Generated from the current SKILL.md. These answers refresh after source changes.