From example-skills
Designs parallel agent workstreams for large feature sets by analyzing dependencies, assigning specialized agent types (Explore, Plan, Bash, Edit), maximizing parallelization, and creating execution plans with progress tracking and failure recovery. Use when breaking down large features into parallel agent work.
npx claudepluginhub organvm-iv-taxis/a-i--skills --plugin document-skillsThis skill uses the workspace's default tool permissions.
Design parallel agent workstreams for large feature implementations by analyzing dependencies, assigning specialized agents, and maximizing parallelization.
Compares coding agents like Claude Code and Aider on custom YAML-defined codebase tasks using git worktrees, measuring pass rate, cost, time, and consistency.
Designs and optimizes AI agent action spaces, tool definitions, observation formats, error recovery, and context for higher task completion rates.
Designs, implements, and audits WCAG 2.2 AA accessible UIs for Web (ARIA/HTML5), iOS (SwiftUI traits), and Android (Compose semantics). Audits code for compliance gaps.
Design parallel agent workstreams for large feature implementations by analyzing dependencies, assigning specialized agents, and maximizing parallelization.
Feature Spec → Requirements → Dependency Graph → Parallel Streams → Agent Assignment
↓ ↓ ↓ ↓ ↓
Input Breakdown Identify Group into Match to
Document into tasks blockers workstreams agent types
| Level | Description | Typical Scope |
|---|---|---|
| Epic | Large feature area | Days to weeks |
| Workstream | Parallelizable track | Hours to days |
| Task | Single work unit | 30min - 2 hours |
| Subtask | Atomic action | 5-30 minutes |
| Agent | Specialization | Best For |
|---|---|---|
| Explore | Read-only analysis | Finding files, understanding patterns, codebase research |
| Plan | Architecture design | System design, dependency analysis, implementation planning |
| Bash | Command execution | Tests, builds, git operations, file system commands |
| Edit | File modifications | Implementation, refactoring, code changes |
Need to understand code? → Explore
Need to design solution? → Plan
Need to run commands? → Bash
Need to modify files? → Edit
Break the feature into discrete tasks:
feature: "User Authentication System"
tasks:
- id: T1
name: "Research existing auth patterns"
type: research
agent: Explore
- id: T2
name: "Design auth architecture"
type: design
agent: Plan
depends_on: [T1]
- id: T3
name: "Implement User model"
type: implementation
agent: Edit
depends_on: [T2]
- id: T4
name: "Implement auth middleware"
type: implementation
agent: Edit
depends_on: [T2]
- id: T5
name: "Write auth tests"
type: testing
agent: Edit
depends_on: [T3, T4]
- id: T6
name: "Run test suite"
type: verification
agent: Bash
depends_on: [T5]
graph TD
T1[Research patterns] --> T2[Design architecture]
T2 --> T3[Implement User model]
T2 --> T4[Implement middleware]
T3 --> T5[Write tests]
T4 --> T5
T5 --> T6[Run tests]
Tasks without dependencies between them can run in parallel:
Phase 1: T1 (solo - must complete first)
Phase 2: T2 (solo - design phase)
Phase 3: T3, T4 (parallel - independent implementations)
Phase 4: T5 (solo - needs both implementations)
Phase 5: T6 (solo - verification)
Group related tasks into workstreams:
workstreams:
- name: "Core Auth"
tasks: [T3, part of T5]
owner: agent-1
- name: "Middleware"
tasks: [T4, part of T5]
owner: agent-2
Multiple independent features simultaneously:
Feature A ─────────────────────>
Feature B ─────────────────────>
Feature C ─────────────────────>
Different layers of same feature:
Frontend ─────────────>
Backend ─────────────>
Database ─────────────>
Tests ─────────────>
Define contracts, implement in parallel:
1. Define interfaces/types (blocking)
2. Implement producer and consumer in parallel
phase1:
- task: "Define API contract"
agent: Plan
blocking: true
phase2_parallel:
- task: "Implement API server"
agent: Edit
- task: "Implement API client"
agent: Edit
Start likely-needed work early:
main_path:
- task: "Implement feature"
agent: Edit
speculative:
- task: "Prepare test fixtures"
agent: Edit
confidence: high # Will definitely be needed
- task: "Draft documentation"
agent: Edit
confidence: medium # Might need revision
Workstream A: [████████░░] 80% (8/10 tasks)
└─ Blocked: Waiting on API contract from B
Workstream B: [██████████] 100% ✓
Workstream C: [████░░░░░░] 40%
└─ At Risk: Task 7 failed twice
| State | Symbol | Meaning |
|---|---|---|
| Pending | ○ | Not started |
| In Progress | ◐ | Currently executing |
| Completed | ● | Successfully finished |
| Blocked | ⊘ | Waiting on dependency |
| Failed | ✗ | Needs intervention |
| Skipped | ⊖ | Intentionally skipped |
| Task | Agent | Status | Blocked By | Notes |
|------|-------|--------|------------|-------|
| T1 | Explore | ● | - | Completed |
| T2 | Plan | ● | - | Completed |
| T3 | Edit | ◐ | - | In progress |
| T4 | Edit | ◐ | - | In progress |
| T5 | Edit | ○ | T3, T4 | Waiting |
| T6 | Bash | ○ | T5 | Waiting |
retry_policy:
max_attempts: 3
backoff: exponential
base_delay: 30s
on_failure:
- log_error
- notify_supervisor
- attempt_recovery
- escalate_if_exhausted
checkpoints:
- after: phase1
save: ["contracts", "interfaces"]
- after: phase2
save: ["implementations"]
validate: ["types_match", "tests_pass"]
workstream:
name: "Feature Name"
id: WS-001
owner: agent-type
objectives:
- "Primary goal"
- "Secondary goal"
tasks:
- id: T1
name: "Task description"
agent: Explore
estimated: 15min
- id: T2
name: "Next task"
agent: Edit
depends_on: [T1]
estimated: 30min
success_criteria:
- "All tests pass"
- "No type errors"
risks:
- risk: "Complex integration"
mitigation: "Early interface definition"
epic:
name: "User Profile Editing"
workstreams:
- name: "Backend API"
tasks:
- {id: B1, name: "Research current user model", agent: Explore}
- {id: B2, name: "Design profile update endpoint", agent: Plan, depends_on: [B1]}
- {id: B3, name: "Implement PUT /users/:id/profile", agent: Edit, depends_on: [B2]}
- {id: B4, name: "Add validation middleware", agent: Edit, depends_on: [B2]}
- {id: B5, name: "Write API tests", agent: Edit, depends_on: [B3, B4]}
- name: "Frontend UI"
tasks:
- {id: F1, name: "Research existing form patterns", agent: Explore}
- {id: F2, name: "Design ProfileEdit component", agent: Plan, depends_on: [F1]}
- {id: F3, name: "Implement form component", agent: Edit, depends_on: [F2]}
- {id: F4, name: "Add form validation", agent: Edit, depends_on: [F3]}
- {id: F5, name: "Write component tests", agent: Edit, depends_on: [F4]}
- name: "Integration"
tasks:
- {id: I1, name: "Connect frontend to API", agent: Edit, depends_on: [B3, F3]}
- {id: I2, name: "Write E2E tests", agent: Edit, depends_on: [I1]}
- {id: I3, name: "Run full test suite", agent: Bash, depends_on: [B5, F5, I2]}
parallel_execution:
phase1: [B1, F1] # Research in parallel
phase2: [B2, F2] # Design in parallel
phase3: [B3, B4, F3] # Implementation
phase4: [F4, B5] # Validation + tests
phase5: [F5, I1] # More tests + integration
phase6: [I2]
phase7: [I3]
references/dependency-analysis.md — Identifying task dependenciesreferences/parallelization-strategies.md — Maximizing parallel workreferences/agent-type-catalog.md — Agent capabilities referencereferences/failure-recovery-patterns.md — Handling failuresreferences/workflow-integration.md — Ecosystem integration