agentsclimarketplace

Team decision

Skill josix/agent-flow/skills/team-decision

This skill should be used when deciding whether to use Agent Teams for parallel execution or sequential subagent orchestration, based on task analysis, independence criteria, and cost-benefit.From its SKILL.md

Install
npx -y skills add josix/agent-flow --skill team-decision

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 7 stars7 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

SKILL.md

8.8 KB, as published. Nobody here has run it

Team Decision

Overview

The team decision skill guides the choice between parallel Agent Teams execution and sequential subagent orchestration. This skill analyzes task characteristics to determine whether parallel execution is safe, beneficial, and cost-effective.

Owner Agent: Senku (Planner Agent)

Consumers: Orchestrator (primary decision maker)

Key Principles

  1. Safety First: Only parallelize when tasks are truly independent
  2. Cost-Benefit Analysis: Parallel overhead must be justified by time savings
  3. File Ownership: Exclusive file ownership prevents conflicts
  4. Fail to Sequential: When in doubt, use sequential orchestration

When to Use This Skill

Apply team decision analysis when:

  • A task naturally decomposes into multiple subtasks
  • Subtasks could potentially run in parallel
  • Time-to-completion is a priority
  • Determining whether to spawn a team or orchestrate sequentially

Decision Criteria Table

CriterionUse Teams (Parallel)Use Sequential
Task IndependenceNo shared state or filesTasks have dependencies
File OwnershipExclusive file setsOverlapping file sets
Parallelism SafetySafe or ModerateRisky
Number of Tasks2-4 independent tasks1 task or 5+ tasks
Time SensitivityHigh (user waiting)Low (can afford serial)
Coordination CostLow (simple merge)High (complex merge)
Risk ToleranceHigh (can retry)Low (must be correct)

Quick Decision Flowchart

Task Decomposition Available?
  |
  +-- NO --> Sequential (single agent)
  |
  +-- YES
        |
        v
      Subtasks Share Files?
        |
        +-- YES --> Sequential (conflict risk)
        |
        +-- NO
              |
              v
            Subtasks Have Dependencies?
              |
              +-- YES --> Sequential (ordering required)
              |
              +-- NO
                    |
                    v
                  2-4 Subtasks?
                    |
                    +-- NO --> Sequential (too few or too many)
                    |
                    +-- YES
                          |
                          v
                        Time Savings > Overhead?
                          |
                          +-- YES --> TEAMS (Parallel)
                          |
                          +-- NO --> Sequential

Parallelism Safety Levels

Safe Parallelism

Tasks that are completely independent and share no resources.

Examples:

  • Implementing 3 independent API endpoints in different route files
  • Writing documentation in separate markdown files
  • Creating unit tests for different modules
  • Fixing bugs in isolated components

Characteristics:

  • No shared files (each task owns exclusive files)
  • No shared database tables
  • No API contract dependencies
  • Results can be merged with git merge or file concatenation

Moderate Parallelism

Tasks that may share some context but have isolated file ownership.

Examples:

  • Implementing related features that share type definitions (read-only)
  • Refactoring separate modules that use common utilities (read-only)
  • Adding tests that import the same test helpers (read-only)

Characteristics:

  • May read shared files (but each writes to exclusive files)
  • Low risk of semantic conflicts
  • Requires review to ensure consistency
  • May need coordination on shared patterns

Mitigation: Assign read-only files to coordinator, exclusive write ownership to teammates

Risky Parallelism

Tasks with high coordination costs or conflict potential.

Examples:

  • Modifying the same file from different tasks
  • Database migrations affecting shared schema
  • Refactoring with cross-cutting changes
  • Security changes requiring holistic review

Characteristics:

  • Multiple tasks write to same files
  • Semantic dependencies between changes
  • High merge conflict potential
  • Requires deep understanding of interactions

Decision: Do NOT parallelize - use sequential orchestration


Cost Analysis Framework

Overhead Costs of Teams

Overhead TypeEstimated CostWhen Significant
Team spawn/setup5-10 secondsAlways
Context duplication2-5 seconds per teammateLarge context
Result merging10-30 secondsComplex merge
Conflict resolution60-300 secondsIf conflicts occur
Coordination overhead5-15 secondsAlways

Total Overhead: ~30-60 seconds for 2-3 teammates with simple merge

Time Savings Calculation

Sequential Time = Task1 + Task2 + Task3
Parallel Time = max(Task1, Task2, Task3) + Overhead

Net Savings = Sequential Time - Parallel Time

Break-Even Analysis:

  • 2 tasks, 30s each: Parallel = 30s + overhead (~40s) vs Sequential = 60s → Save 20s
  • 3 tasks, 20s each: Parallel = 20s + overhead (~35s) vs Sequential = 60s → Save 25s
  • 2 tasks, 10s each: Parallel = 10s + overhead (~40s) vs Sequential = 20s → Lose 20s

Rule of Thumb: Parallelize only if each task takes 20+ seconds and tasks are independent


File Ownership Rules

Exclusive Ownership Principle

Each teammate in a team MUST have exclusive write ownership of their files.

Valid Assignment:

Teammate 1: src/auth/login.ts, src/auth/login.test.ts
Teammate 2: src/auth/register.ts, src/auth/register.test.ts
Teammate 3: src/auth/logout.ts, src/auth/logout.test.ts
Coordinator: src/auth/types.ts (read-only for teammates)

Invalid Assignment (conflict risk):

Teammate 1: src/auth/auth.ts (lines 1-50)
Teammate 2: src/auth/auth.ts (lines 51-100)  ❌ Same file!

Directory Partitioning

When tasks can be partitioned by directory, use directory-level ownership.

Example:

Teammate 1: src/components/Header/*
Teammate 2: src/components/Footer/*
Teammate 3: src/components/Sidebar/*

Benefits:

  • Clear ownership boundaries
  • No file conflicts possible
  • Easy to verify in review

Shared Read-Only Resources

Common resources (types, utilities, configs) can be read by all teammates but owned by coordinator.

Pattern:

Coordinator owns (may modify):
  - src/types/common.ts
  - src/utils/helpers.ts
  - config/constants.ts

Teammates read (do NOT modify):
  - Import types from common.ts
  - Use helpers from helpers.ts
  - Read constants from constants.ts

For detailed ownership rules, see references/file-ownership-rules.md.


Team Size Guidelines

Team SizeWhen AppropriateCoordination Overhead
2 teammatesSimple decomposition, clear separationLow
3 teammatesModerate complexity, 3-way splitMedium
4 teammatesComplex task, highly parallelizableHigh
5+ teammatesRarely beneficial - overhead dominatesVery High

Optimal: 2-3 teammates for most parallel tasks


Quick Reference

Parallel Eligibility Checklist

Before deciding to use teams, verify:

  • Task naturally decomposes into 2-4 subtasks
  • Each subtask is genuinely independent (no sequential dependencies)
  • File ownership is exclusive (no file conflicts possible)
  • Each subtask takes 20+ seconds (parallelism overhead justified)
  • Merge complexity is low (simple file concatenation or git merge)
  • Risk tolerance is appropriate (can afford retries if issues arise)

If ALL checks pass → Consider Teams

If ANY check fails → Use Sequential Orchestration

Decision Template

## Team vs Sequential Decision

Task: [Brief description]

Decomposition:
  - Subtask 1: [description]
  - Subtask 2: [description]
  - Subtask 3: [description]

Independence Analysis:
  - Shared files: [None / List files]
  - Dependencies: [None / List dependencies]
  - Safety level: [Safe / Moderate / Risky]

Cost-Benefit:
  - Sequential time: ~[X] seconds
  - Parallel time: ~[Y] seconds (including overhead)
  - Net savings: ~[Z] seconds

Decision: [TEAMS / SEQUENTIAL]
Rationale: [1-2 sentence justification]

Related Skills

  • task-classification: Determines task complexity before team decision
  • agent-behavior-constraints: Defines which agents can be teammates
  • verification-gates: Ensures quality regardless of execution mode

Additional Resources

Reference Files

Examples

Keep looking

Skills are one crate of 628,853. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.