Documentation Index
Fetch the complete documentation index at: https://mintlify.com/Gentleman-Programming/agent-teams-lite/llms.txt
Use this file to discover all available pages before exploring further.
Overview
The/sdd-apply command launches the implementer sub-agent to write code based on the generated specs, design, and tasks. It works through tasks in phases, checking off items as it completes them.
v2.0 Enhancement: Now supports Test-Driven Development (TDD) workflow when enabled.
Usage
Optional. The change to implement. If omitted, applies the most recent active change.
What It Does
1. Loads Planning Artifacts
Reads:proposal.md- Understands intent and scopespecs/*.md- Gets acceptance criteriadesign.md- Learns technical approachtasks.md- Sees implementation checklist
2. Implements Tasks
For each incomplete task:Read Context
- Relevant spec scenarios (acceptance criteria)
- Design decisions (technical approach)
- Existing code patterns in project
Write Code
Standard Workflow:
- Implement the task following specs
- Write failing test first (RED)
- Implement minimum code to pass (GREEN)
- Refactor for quality (REFACTOR)
3. Batches Work
Implements tasks in logical phases:- Phase 1: Foundation - Core infrastructure
- Phase 2: Implementation - Main functionality
- Phase 3: Testing & Polish - Tests and refinements
4. Reports Progress
Shows:- Files created/modified
- Tasks completed
- Next phase preview
Example Usage
Standard Implementation
Task 1.2: Add CSS custom properties ✓
Modifiedsrc/styles/globals.css
Added:
- 12 CSS custom properties for colors
- Light mode definitions (default)
- Dark mode overrides in
.darkclass
Task 1.3: Wrap app with ThemeProvider ✓
Modifiedsrc/components/Layout.tsx
Phase 1 Complete ✓
Progress: 3/9 tasks done Files Changed:- Created: src/context/ThemeContext.tsx
- Modified: src/styles/globals.css
- Modified: src/components/Layout.tsx
npm test csv-serializer.test.ts
❌ FAIL - Module not found: Cannot resolve ’../csv-serializer’
GREEN: Make Test Pass
Createdsrc/services/csv-serializer.ts
npm test csv-serializer.test.ts
✅ PASS - 1 test passed (12ms)
REFACTOR: Improve Quality
- Added TypeScript generics for type safety
- Extracted options to constant
- Added JSDoc comments
npm test csv-serializer.test.ts
✅ PASS - 1 test passed (11ms)
✅ Task 1.1 Complete TDD Cycle: RED → GREEN → REFACTOR ✓ Test Coverage: 100% for CsvSerializer Proceeding to Task 1.2…
Enable Test-Driven Development workflow
Command to run tests (e.g.,
npm test, pytest, go test)Implementation Patterns
The implementer sub-agent follows these patterns:1. Read Before Writing
Always reads existing code in the affected area:- Current implementation patterns
- Naming conventions
- Import styles
- Error handling approaches
2. Follow Existing Conventions
Matches:- File structure
- Naming patterns
- Code organization
- Comment style
3. Satisfy Specs
Each implementation directly addresses spec scenarios:4. Apply Design Decisions
Follows architecture choices fromdesign.md:
- Component structure
- Data flow patterns
- State management approach
- API contracts
Progress Tracking
As tasks complete,tasks.md updates:
Before:
When to Use
After Planning
All planning artifacts (proposal, specs, design, tasks) exist
Reviewed Plan
You’ve reviewed and approved the implementation plan
Ready to Code
Ready for the implementer to write actual code
Incremental Progress
Want to implement in phases with checkpoints
Pausing and Resuming
You can pause between phases:- Type “yes” or “continue” → Proceed to Phase 2
- Type “pause” → Stop and review code
- Type “revise task 2.1” → Modify a task before continuing
- Run
/sdd-applyagain later → Resumes where it left off
Error Handling
If implementation fails:- Detects the error
- Analyzes the issue
- Fixes the problem
- Retries the task
Progress Artifact
Progress is saved toapply-progress artifact:
Best Practices
Review tasks.md first
Review tasks.md first
Before running
/sdd-apply, read through the task list. Ensure tasks are:- Small enough (< 4 hours each)
- In logical order
- Well-described
Implement in phases
Implement in phases
Don’t try to complete all tasks in one go. Pause between phases to:
- Test implemented code
- Review for quality
- Catch issues early
Use TDD for critical code
Use TDD for critical code
Enable TDD for:
- Business logic
- API endpoints
- Utility functions
- Complex algorithms
Monitor progress
Monitor progress
Check which files are being modified. If the implementer touches unexpected files, pause and investigate.
Related Commands
- /sdd-verify - Validate implementation after
/sdd-apply - /sdd-continue - Alternative for phase-by-phase work
- /sdd-ff - Generate all planning artifacts first