plugins/agent-teams/skills/task-coordination-strategies/SKILL.md
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.
npx skillsauth add acaprino/anvil-toolset task-coordination-strategiesInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Strategies for decomposing complex tasks into parallelizable units, designing dependency graphs, writing effective task descriptions, and monitoring workload across agent teams.
Split work by architectural layer:
Best for: Full-stack features, vertical slices.
Caveat: "By Layer" is a form of problem-centric decomposition (planner / coder / tester roles in disguise). It works when the layers genuinely have isolable contexts; it fails when teammates end up handing context back and forth at every layer boundary. Default to By File Ownership or By Component when context can be cleanly partitioned. Use "By Layer" only when context isolation per layer is real, not aspirational. Reference: docs/references/agent-teams-best-practices.md § When to use a team.
Split work by functional component:
Best for: Microservices, modular architectures
Split work by cross-cutting concern:
Best for: Code reviews, audits
Split work by file/directory boundaries:
src/components/ -- Implementer 1src/api/ -- Implementer 2src/utils/ -- Implementer 3Best for: Parallel implementation, conflict avoidance
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 --+
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
Every task should include:
TaskUpdate(completed) BEFORE messaging the lead." Tasks left in in_progress block dependent work.## 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
| 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 |
TaskList to assess current stateTaskUpdate to reassign tasksSendMessage to notify affected teammatesTo enforce rules at task-level boundaries without babysitting, wire the native team hooks:
TaskCreated -- exit code 2 blocks task creation. Use to enforce that every task description includes ownership and acceptance criteria.TaskCompleted -- exit code 2 blocks completion. Use to gate lint / type-check / test before a task closes.TeammateIdle -- exit code 2 returns the teammate to work with feedback. Use when a teammate marks itself idle but the work is not actually finished.Hooks turn "trust and hope" into "trust and verify" without inflating spawn prompts. Reference: docs/references/agent-teams-best-practices.md § Hooks for quality gates.
development
Unified web frontend knowledge base covering CSS architecture, UX psychology, UI components, distinctive aesthetics, and interface design generation. TRIGGER WHEN: working on web styling, design systems, component decisions, responsive strategy, distinctive frontend aesthetics, or exploring multiple interface designs. DO NOT TRIGGER WHEN: the task is purely backend or unrelated to web frontend.
development
Coordinate parallel code reviews across multiple quality dimensions with finding deduplication, severity calibration, and consolidated reporting. Use this skill when organizing multi-reviewer code reviews, calibrating finding severity, or consolidating review results.
tools
Knowledge base for the codebase-mapper plugin. Provides writing guidelines, tone rules, and diagram conventions for generating human-readable project guides. Referenced by all codebase-mapper agents during document generation. TRIGGER WHEN: referenced by codebase-mapper pipeline agents (codebase-explorer, overview-writer, tech-writer, flow-writer, onboarding-writer, ops-writer, config-writer, guide-reviewer) during document generation. DO NOT TRIGGER WHEN: outside the /map-codebase pipeline (general documentation work should use docs:readme-craft or codebase-mapper:docs-create).
tools
Progressive Web App knowledge base for 2025-2026: Web App Manifest, Service Workers (Workbox 7, Serwist), Web Push (VAPID, RFC 8030/8291/8292, Declarative Push for Safari 18.4+), install flows (beforeinstallprompt, Window Controls Overlay), OPFS storage, Project Fugu, Core Web Vitals (INP < 200ms), security (HTTPS, CSP, COOP/COEP), and distribution (Bubblewrap, PWA Builder MSIX, Capacitor). TRIGGER WHEN: building, auditing, or debugging PWAs, including manifest, service worker, Web Push, install flow, OPFS, Background Sync, Wake Lock, vite-plugin-pwa, Next.js Serwist, @angular/pwa, @vite-pwa/nuxt, Bubblewrap, TWA, PWA Builder, or Capacitor wrapping. DO NOT TRIGGER WHEN: the task is generic frontend styling (use frontend), React performance (use react-development:review-react), cross-platform security unrelated to PWA (use platform-engineering), Tauri or Electron wrappers (use tauri-development), or GA4 / analytics (use digital-marketing).