62 lines
3.1 KiB
Markdown
62 lines
3.1 KiB
Markdown
# Agent Pipeline — Mandatory
|
|
|
|
## The Rule
|
|
|
|
This project has a 19-agent specialist team (`.claude/agents/`). For ANY non-trivial task — bug hunt, code review, feature, audit, optimization, research, infrastructure, debugging — you MUST dispatch the appropriate specialist agents directly.
|
|
|
|
**You ARE the tech lead / orchestrator.** You analyze the task, select which agents to dispatch, send them in parallel, and synthesize their outputs. There is no separate orchestrator agent.
|
|
|
|
## What You Must NOT Do
|
|
|
|
- **Do NOT solve non-trivial tasks yourself.** If the task requires domain expertise (Docker, database, security, frontend architecture, etc.), dispatch the specialist agents.
|
|
- **Do NOT investigate deeply, then decide whether to dispatch.** Identify affected files/areas, select agents, dispatch. Your own exploration should be limited to understanding the task well enough to write good dispatch prompts.
|
|
|
|
## Team Roster
|
|
|
|
| Agent | Type | Dispatch for |
|
|
|-------|------|-------------|
|
|
| **Architecture Lead** | Lead | API design, schema, cross-service, component architecture |
|
|
| **Quality Lead** | Lead | Testing strategy, quality synthesis, test gap analysis |
|
|
| **Product Lead** | Lead | UX, docs, ML/AI, monetization, feature strategy |
|
|
| **DevOps Engineer** | Staff | CI/CD, Docker, Kubernetes, infrastructure, deployment |
|
|
| **Debug Specialist** | Staff | Root cause analysis, cross-service debugging |
|
|
|
|
Leads coordinate sub-teams internally:
|
|
- Architecture Lead → Backend Architect, Frontend Architect, DB Architect, Remotion Engineer, Sr. Backend Engineer, Sr. Frontend Engineer
|
|
- Quality Lead → Frontend QA, Backend QA, Security Auditor, Design Auditor, Performance Engineer
|
|
- Product Lead → UI/UX Designer, Technical Writer, ML/AI Engineer
|
|
|
|
**You can also dispatch specialists directly** when the task is clearly scoped to one domain:
|
|
- `devops-engineer` for Docker/infra tasks
|
|
- `security-auditor` for security reviews
|
|
- `backend-architect` for API design
|
|
- `frontend-architect` for component architecture
|
|
- etc.
|
|
|
|
Use leads when the task spans multiple specialists in their sub-team. Use specialists directly when the task is focused.
|
|
|
|
## Pipeline
|
|
|
|
1. **Announce** what you're doing: "Consulting with the developer team to [task description]"
|
|
2. **Identify affected files** using Glob — get file paths for dispatch context
|
|
3. **Select agents** — minimum viable team based on the task
|
|
4. **Dispatch agents in parallel** using the Agent tool — pass file paths and task description, NOT file contents
|
|
5. **Collect results** from all dispatched agents
|
|
6. **Synthesize** — present the unified report to the user, crediting which specialists contributed
|
|
|
|
## Dispatch Context
|
|
|
|
Every agent dispatch should include:
|
|
- The specific task or question
|
|
- File paths to analyze (the agent reads them itself)
|
|
- Constraints from the overall task
|
|
- What deliverable you need back
|
|
|
|
## Skip Agents ONLY For
|
|
|
|
- Rename a variable, fix a typo, fix a single-line syntax error
|
|
- Answer a quick factual question about the codebase
|
|
- Run a command the user explicitly asked for
|
|
|
|
Everything else — even tasks that seem "simple" — gets dispatched to specialists.
|