Reusable template for creating detailed task prompts that spawn independent agents
[Replace with specific task description]
Objective: [Clear, measurable goal] Scope: [What's included/excluded] Timeline: [Expected completion time] Priority: [High/Medium/Low]
[Include relevant project structure]
- ✅ Completed: [List what's already done]
- 🔄 In Progress: [List current work]
- ❌ Pending: [List what needs to be done]
- 🚨 Blockers: [List any obstacles]
- Depends on: [Other components/features]
- Used by: [Components that depend on this]
- Related files: [List all relevant files]
- [REQ-001] [Specific requirement with acceptance criteria]
- [REQ-002] [Specific requirement with acceptance criteria]
- [REQ-003] [Specific requirement with acceptance criteria]
- [DES-001] [UI/UX requirements]
- [DES-002] [Styling requirements]
- [DES-003] [Responsive requirements]
- [TECH-001] [Technical specification]
- [TECH-002] [Performance requirements]
- [TECH-003] [Security requirements]
[Document key architectural choices and why they were made]
// Example patterns and conventions
interface ComponentProps {
// Required props
required: string;
// Optional props
optional?: string;
}
// Component structure
const ComponentName: React.FC<ComponentProps> = ({
required,
optional
}) => {
// Implementation
};- API Endpoints: [List endpoints to integrate with]
- External Services: [List external dependencies]
- Internal Components: [List components to integrate with]
- TypeScript Compliance: All components properly typed
- Linting: Passes all ESLint rules
- Testing: Unit tests with >80% coverage
- Documentation: Comprehensive TSDoc comments
- Bundle Size: < [X]KB increase
- Runtime: < [X]ms load time
- Memory: No memory leaks
- Accessibility: WCAG 2.1 AA compliance
- Core Features: All requirements implemented
- Edge Cases: Error handling for all scenarios
- Cross-browser: Works in target browsers
- Mobile: Responsive across all breakpoints
- Intuitive: Easy to understand and use
- Accessible: Screen reader compatible
- Performant: Smooth interactions
- Consistent: Matches design system
# Feature: [Feature Name]
## 1. Overview
[Purpose and goals]
## 2. Architecture
[Technical architecture and data flow]
## 3. API Reference
[Props, interfaces, and usage examples]
## 4. Implementation Details
[Key implementation decisions]
## 5. Usage Examples
[Code samples for different scenarios]
## 6. Testing
[Testing strategies and examples]
## 7. Maintenance
[Update procedures and troubleshooting]- TSDoc Comments: All public interfaces and functions
- Inline Comments: Complex logic explanations
- README Updates: Installation and usage instructions
- Changelog: Document breaking changes
- Requirements Review: All requirements understood
- Design Review: UI/UX approved
- Technical Review: Architecture approved
- Dependencies: All dependencies available
- Code Standards: Follows project conventions
- Security: No security vulnerabilities
- Performance: Meets performance targets
- Accessibility: WCAG compliance verified
- Unit Tests: All functions tested
- Integration Tests: Component interactions tested
- E2E Tests: User workflows tested
- Cross-browser: Tested in all target browsers
- Build: Successful production build
- Linting: No linting errors
- Type Check: No TypeScript errors
- Bundle Analysis: Size within limits
- Immediate Rollback: Revert to last working version
- Error Analysis: Check console for specific errors
- Dependency Check: Verify all imports are correct
- Type Check: Run TypeScript compiler for issues
- Bundle Analysis: Check for unnecessary imports
- Image Optimization: Verify Next.js Image usage
- Re-rendering: Check for unnecessary re-renders
- Lazy Loading: Implement for heavy components
- A/B Testing: Compare with previous version
- Analytics Review: Check user behavior metrics
- Heatmap Analysis: Identify usability issues
- User Interviews: Gather qualitative feedback
- Task Analysis: Understand requirements and scope
- Architecture Design: Design technical solution
- File Structure: Create necessary directories and files
- Dependencies: Install required packages
- Component Creation: Build main components
- Logic Implementation: Add business logic
- Styling: Implement responsive design
- Integration: Connect with existing systems
- Performance Optimization: Improve loading and runtime
- Accessibility: Add ARIA labels and keyboard support
- Error Handling: Implement comprehensive error boundaries
- Edge Cases: Handle all possible scenarios
- Unit Testing: Test individual functions and components
- Integration Testing: Test component interactions
- Documentation: Create comprehensive guides
- Code Review: Self-review and improvements
- Build Verification: Ensure production build works
- Performance Monitoring: Set up performance tracking
- Error Monitoring: Implement error tracking
- User Feedback: Monitor user satisfaction
# Code Quality
npm run lint # ESLint checking
npm run type-check # TypeScript validation
npm run test # Run test suite
npm run build # Production build
# Performance
npm run analyze # Bundle analysis
npm run lighthouse # Performance audit
# Development
npm run dev # Development server
npm run storybook # Component library- Design System: [Link to design system]
- API Documentation: [Link to API docs]
- Component Library: [Link to existing components]
- Style Guide: [Link to style guidelines]
- Daily Standup: Brief progress update
- Blocker Alerts: Immediate notification of obstacles
- Milestone Completion: Notification when phases complete
- Final Delivery: Comprehensive delivery summary
- Code Review: Address all review comments
- User Testing: Incorporate user feedback
- Performance Data: Adjust based on metrics
- Stakeholder Input: Consider all stakeholder requirements
- Source Code: Complete implementation
- Tests: Comprehensive test suite
- Documentation: User and developer guides
- Build Artifacts: Production-ready build
- Feature Documentation:
docs/features/[FeatureName].md - API Documentation: Complete API reference
- Usage Examples: Code samples and tutorials
- Troubleshooting Guide: Common issues and solutions
- Test Results: Test coverage and results
- Performance Report: Before/after metrics
- Accessibility Audit: WCAG compliance report
- Security Review: Security assessment results
- Performance: [Target metrics]
- Bundle Size: [Target size]
- Test Coverage: [Target percentage]
- Load Time: [Target time]
- User Satisfaction: [Target score]
- Code Quality: [Target score]
- Maintainability: [Target score]
- Accessibility: [Target compliance level]
- Review this prompt and ensure all requirements are clear
- Ask clarifying questions if anything is unclear
- Begin implementation following the outlined phases
- Provide regular updates on progress and any blockers
- Deliver final results with comprehensive documentation
This template ensures consistent, high-quality task execution with clear expectations, comprehensive documentation, and measurable success criteria.