A comprehensive multi-agent development framework that enables parallel, AI-driven software development with specialized agent roles and file-based task management.
This template transforms how teams work with AI agents by providing:
- Specialized Agent Roles - Architect, Planner, Developer, Tester, Docs, PM
- Parallel Task Execution - Multiple agents work simultaneously
- File-Based Task Management - Simple folder structure for task flow
- Continuous Documentation - Docs stay synchronized with code
- PRD-Driven Development - Start from requirements, not implementation
- Multi-Agent Orchestration: Six specialized agents with distinct responsibilities
- Folder-Based Tasks: Simple
todo/→in-progress/→done/workflow - Dependency Management: Automatic task sequencing and blocking
- Documentation-First: PRDs drive development, docs update automatically
- Command Integration: Slash commands for Claude, @ commands for Cursor
- Parallel Workstreams: Frontend, backend, database, and infra tasks run concurrently
- Token Optimized: Minimal command files reference full documentation
- Organized Structure: Agent operations in
.agents/, documentation indocs/
- Copy this template to your project repository
- Read CLAUDE.md or AGENTS.md depending on whether you're using Claude or Cursor
- Create your first PRD in
docs/product/[feature-name].md - Run the Architect to design the solution:
/architect docs/product/[feature-name].md - Generate tasks with the Planner:
/planner [feature-name] - Start development with multiple agents:
/developer frontend,/developer backend
- Copy this template to your project repository
- Run the Setup Agent to analyze and document your codebase:
/setup - Review generated documentation in
docs/ - Continue with PRD-driven development for new features
graph TD
A[Product Requirements Document - PRD] --> B[Architect Agent]
B --> C{Technical Analysis}
C --> D[System Design]
C --> E[Architecture Decisions]
C --> F[Technology Stack]
D --> G[Task Breakdown]
E --> G
F --> G
G --> H[Task Definition & Dependencies]
H --> I[Task Assignment Engine]
I --> J[Frontend Agent Tasks]
I --> K[Backend Agent Tasks]
I --> L[Database Agent Tasks]
I --> M[API Agent Tasks]
I --> N[Testing Agent Tasks]
J --> O[Parallel Execution]
K --> O
L --> O
M --> O
N --> O
O --> P[Integration & Merge]
P --> Q[Review & Quality Check]
Q --> R[Deployment Ready]
style A fill:#f9f,stroke:#333,stroke-width:4px
style B fill:#bbf,stroke:#333,stroke-width:2px
style O fill:#bfb,stroke:#333,stroke-width:2px
style R fill:#fbf,stroke:#333,stroke-width:2px
Create a Product Requirement Document in docs/product/:
# PRD: User Authentication
Define what to build, user stories, and success criteria.../architect docs/product/user-authentication.md
Creates technical design in scratch/user-authentication-architecture.md
/planner user-authentication
Generates task files in .agents/tasks/todo/:
frontend-login-form.mdbackend-auth-api.mddatabase-user-schema.md
Multiple agents claim and implement tasks:
/developer frontend # Works on UI tasks
/developer backend # Works on API tasks
/developer database # Works on schema tasks
/tester # Validates completed tasks
/docs-agent # Updates documentation
/pm status # Get progress report
/pm archive # Archive old completed tasks
/setup- Analyze codebase and generate documentation/architect [product-file]- Design technical architecture/planner [feature]- Create task breakdown/developer [workstream]- Implement tasks/tester- Test completed work/docs-agent- Update documentation/pm [status|archive]- Manage progress
Commands are defined in .claude/commands/ as minimal stubs that reference full documentation.
@architect- Architecture design prompt@planner- Task planning prompt@developer- Development prompt@tester- Testing prompt@docs-agent- Documentation prompt@pm- Project management prompt
Commands are defined in .cursor/rules/ as .mdc files that reference full documentation.
project-root/
├── docs/ # All documentation
│ ├── product/ # Product requirements
│ ├── tech/ # Technical docs
│ ├── guides/ # How-to guides
│ ├── system-overview.md # Architecture
│ └── INDEX.md # Navigation hub
├── .agents/ # Agent operations
│ ├── definitions/ # Agent definitions
│ ├── tasks/ # Task management
│ │ ├── todo/ # Available tasks
│ │ ├── in-progress/ # Active work
│ │ ├── done/ # Completed tasks
│ │ └── archive/ # Historical tasks
│ ├── rules/ # Development rules
│ └── templates/ # Document templates
├── scratch/ # Temporary notes
│ └── archive/ # Old brainstorms
├── .claude/ # Claude configuration
│ ├── commands/ # Minimal agent command stubs
│ └── settings.json # Claude settings
├── .cursor/ # Cursor configuration
│ ├── rules/ # Agent rules (.mdc files)
│ └── mcp.json # MCP server config
├── CLAUDE.md # Claude usage instructions
├── AGENTS.md # Cursor usage instructions
└── CHANGELOG.md # Version history
todo/ → in-progress/ → done/ → archive/
---
id: backend-user-auth
workstream: backend
dependencies: [database-user-schema]
assigned_to: null
created: 2025-01-20
---
# Task Title
## Subtasks
- [ ] Implementation steps
- [ ] Write tests
- [ ] Update docs
## Acceptance Criteria
- Clear success conditions- frontend - UI components and interactions
- backend - APIs and business logic
- database - Schema and migrations
- infra - Deployment and configuration
- Documentation-First - Changes must update docs
- Single Source of Truth -
docs/is canonical - Continuous Sync - Docs Agent maintains accuracy
- Immutable Scratch - Brainstorms are never edited
docs/product/- Product requirements (PRDs)docs/tech/- Technical documentationdocs/guides/- How-to guidesdocs/system-overview.md- Architecture overviewdocs/INDEX.md- Documentation navigation hubCHANGELOG.md- Version history (root level)
.agents/definitions/- Full agent role definitions.agents/tasks/- Task management system.agents/rules/- Development rules (package manager, database, etc.).agents/templates/- Document templates
# Create PRD
echo "# PRD: Product Search..." > docs/product/product-search.md
# Design architecture
/architect docs/product/product-search.md
# Generate tasks
/planner product-search# Parallel execution
/developer frontend # Terminal 1
/developer backend # Terminal 2
/developer database # Terminal 3# Test and document
/tester
/docs-agent
/pm status- Write clear PRDs with specific requirements
- Review architecture before task generation
- Monitor task progress regularly
- Keep PRDs updated as requirements change
- One task at a time
- Check dependencies first
- Update docs immediately
- Test before marking done
- Context7 - Context management
- Browser Tools - Web automation
- Pre-commit documentation checks
- Task status validation
- Automated archival
- Progress reporting
| Need | Command | Creates |
|---|---|---|
| Setup project | /setup |
Complete docs/ structure |
| Design solution | /architect docs/product/feature.md |
scratch/feature-architecture.md |
| Create tasks | /planner feature |
.agents/tasks/todo/*.md |
| Start coding | /developer backend |
Moves task to in-progress/ |
| Test feature | /tester |
Validates done/ tasks |
| Update docs | /docs-agent |
Updates docs/ |
| Check progress | /pm status |
Progress report |
If you're currently using the simple progress.md workflow:
- Create PRDs for active features
- Run architect on each PRD
- Use planner to generate tasks
- Continue with multi-agent workflow
This template has been optimized for:
- Token Efficiency: Agent command files reduced by ~80%
- Clear Organization: Agent operations separated from documentation
- Modular Rules: Individual rule files instead of monolithic RULES.md
- Consistent Structure: Both Claude and Cursor use the same agent definitions
- Improved Navigation: Simplified INDEX.md focused on documentation only
To improve this template:
- Test agent interactions
- Keep commands simple
- Maintain clear separation of concerns
- Document new patterns
- Share successful workflows
This template is provided as-is for use in your projects. Customize and adapt as needed.
For detailed guides, see: