plugins/agent-teams/skills/task-coordination-strategies/references/task-decomposition.md
Practical examples of decomposing features into parallelizable tasks with clear ownership.
Add email/password authentication with login, registration, and profile pages.
Stream 1: Login Flow (implementer-1)
src/pages/login.tsx, src/api/login.ts, tests/login.test.tsAuthResponse from src/types/auth.tsStream 2: Registration Flow (implementer-2)
src/pages/register.tsx, src/api/register.ts, tests/register.test.tsAuthResponse from src/types/auth.tsStream 3: Shared Infrastructure (implementer-3)
src/types/auth.ts, src/middleware/auth.ts, src/utils/jwt.tsStream 3 (types/middleware) ──→ Stream 1 (login)
└→ Stream 2 (registration)
Add CRUD endpoints for a new "Projects" resource.
Stream 1: Data Layer (implementer-1)
src/models/project.ts, src/migrations/add-projects.ts, src/repositories/project-repo.tsStream 2: Business Logic (implementer-2)
src/services/project-service.ts, src/validators/project-validator.tsStream 3: API Layer (implementer-3)
src/routes/projects.ts, src/controllers/project-controller.ts## Task: {Stream Name}
### Objective
{1-2 sentence description of what to build}
### Owned Files
- {file1} — {purpose}
- {file2} — {purpose}
### Requirements
1. {Specific deliverable 1}
2. {Specific deliverable 2}
3. {Specific deliverable 3}
### Interface Contract
- Exports: {types/functions this stream provides}
- Imports: {types/functions this stream consumes from other streams}
### Acceptance Criteria
- [ ] {Verifiable criterion 1}
- [ ] {Verifiable criterion 2}
- [ ] {Verifiable criterion 3}
### Out of Scope
- {Explicitly excluded work}