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.

SKILL.md

β‰ˆ70 tokens always: the name and description. β‰ˆ1.1k when used: this file. β‰ˆ1.4k more on demand in 2 files.

Task Coordination Strategies

Strategies for decomposing complex tasks into parallelizable units, designing dependency graphs, writing effective task descriptions, and monitoring workload across agent teams.

When to Use This Skill

  • Breaking down a complex task for parallel execution
  • Designing task dependency relationships (blockedBy/blocks)
  • Writing task descriptions with clear acceptance criteria
  • Monitoring and rebalancing workload across teammates
  • Identifying the critical path in a multi-task workflow

Task Decomposition Strategies

By Layer

Split work by architectural layer:

  • Frontend components
  • Backend API endpoints
  • Database migrations/models
  • Test suites

Best for: Full-stack features, vertical slices

By Component

Split work by functional component:

  • Authentication module
  • User profile module
  • Notification module

Best for: Microservices, modular architectures

By Concern

Split work by cross-cutting concern:

  • Security review
  • Performance review
  • Architecture review

Best for: Code reviews, audits

By File Ownership

Split work by file/directory boundaries:

  • src/components/ β€” Implementer 1
  • src/api/ β€” Implementer 2
  • src/utils/ β€” Implementer 3

Best for: Parallel implementation, conflict avoidance

Dependency Graph Design

Principles

  1. Minimize chain depth β€” Prefer wide, shallow graphs over deep chains
  2. Identify the critical path β€” The longest chain determines minimum completion time
  3. Use blockedBy sparingly β€” Only add dependencies that are truly required
  4. Avoid circular dependencies β€” Task A blocks B blocks A is a deadlock

Patterns

Independent (Best parallelism):

Task A ─┐
Task B ─┼─→ Integration
Task C β”€β”˜

Sequential (Necessary dependencies):

Task A β†’ Task B β†’ Task C

Diamond (Mixed):

        β”Œβ†’ Task B ─┐
Task A ──          β”œβ†’ Task D
        β””β†’ Task C β”€β”˜

Using blockedBy/blocks

TaskCreate: { subject: "Build API endpoints" }         β†’ Task #1
TaskCreate: { subject: "Build frontend components" }    β†’ Task #2
TaskCreate: { subject: "Integration testing" }          β†’ Task #3
TaskUpdate: { taskId: "3", addBlockedBy: ["1", "2"] }  β†’ #3 waits for #1 and #2

Task Description Best Practices

Every task should include:

  1. Objective β€” What needs to be accomplished (1-2 sentences)
  2. Owned Files β€” Explicit list of files/directories this teammate may modify
  3. Requirements β€” Specific deliverables or behaviors expected
  4. Interface Contracts β€” How this work connects to other teammates' work
  5. Acceptance Criteria β€” How to verify the task is done correctly
  6. Scope Boundaries β€” What is explicitly out of scope

Template

## Objective
Build the user authentication API endpoints.

## Owned Files
- src/api/auth.ts
- src/api/middleware/auth-middleware.ts
- src/types/auth.ts (shared β€” read only, do not modify)

## Requirements
- POST /api/login β€” accepts email/password, returns JWT
- POST /api/register β€” creates new user, returns JWT
- GET /api/me β€” returns current user profile (requires auth)

## Interface Contract
- Import User type from src/types/auth.ts (owned by implementer-1)
- Export AuthResponse type for frontend consumption

## Acceptance Criteria
- All endpoints return proper HTTP status codes
- JWT tokens expire after 24 hours
- Passwords are hashed with bcrypt

## Out of Scope
- OAuth/social login
- Password reset flow
- Rate limiting

Workload Monitoring

Indicators of Imbalance

Signal Meaning Action
Teammate idle, others busy Uneven distribution Reassign pending tasks
Teammate stuck on one task Possible blocker Check in, offer help
All tasks blocked Dependency issue Resolve critical path first
One teammate has 3x others Overloaded Split tasks or reassign

Rebalancing Steps

  1. Call TaskList to assess current state
  2. Identify idle or overloaded teammates
  3. Use TaskUpdate to reassign tasks
  4. Use SendMessage to notify affected teammates
  5. Monitor for improved throughput

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.