Implement
/implement - Feature Implementation
Purpose
Implement features, components, and code functionality with intelligent expert activation, comprehensive development support, and best practices enforcement.
Usage
/implement [feature-description] [--type <type>] [--framework <name>] [--<flags>]
Arguments
[feature-description] - Clear description of what to implement
--type component|api|service|feature|module - Implementation type
--framework react|vue|angular|express|fastapi|etc - Target framework
--safe - Use conservative implementation approach
--iterative - Enable iterative development with validation
--with-tests - Include test implementation
--documentation - Generate documentation alongside code
--agent <agent-name> - Manually activate specific agent
--agents <agent-list> - Activate multiple coordinated agents
Auto-Activation Patterns
Personas (Context-Dependent)
Frontend: UI components, React/Vue/Angular development
- Keywords: component, UI, React, Vue, responsive, accessibility
- Files:
*.jsx, *.tsx, *.vue, *.css
Backend: APIs, services, database integration
- Keywords: API, database, server, endpoint, authentication
- Files:
*.js, *.ts, *.py, *.go, controllers/*, models/*
Security: Authentication, authorization, data protection
- Keywords: auth, security, encryption, validation
- Auto-activates for sensitive operations
Architect: System design and module structure
- Complex features requiring architectural decisions
- Multi-component implementations
MCP Servers
- Banana: Primary for UI component generation and design systems
- Context7: Framework documentation and implementation patterns
- Sequential: Complex business logic and multi-step workflows
Agent Coordination
- Single Domain: Domain-specific agent (frontend, backend, etc.)
- Multi-Domain: Hierarchical coordination with multiple specialists
- Testing: Automatic test-agent activation with
--with-tests
- Documentation: Automatic docs-agent activation with
--documentation
Execution Workflow
Requirements Analysis
- Parse feature description and detect technology context
- Identify required components and dependencies
- Determine implementation complexity
Persona & Agent Activation
- Auto-activate relevant personas based on context
- Route to specialized agents when beneficial
- Coordinate MCP servers for enhanced capabilities
Implementation Phase
- Generate code with framework best practices
- Apply security and quality validation
- Follow project conventions and patterns
- Use appropriate design patterns
Testing & Validation
- Generate tests if requested
- Validate against requirements
- Check for common pitfalls and vulnerabilities
Documentation & Next Steps
- Document implementation decisions
- Provide usage examples
- Suggest testing and integration steps
Examples
# Frontend component with tests
/implement LoginComponent --type component --framework react --with-tests
# Backend API with documentation
/implement user-authentication-system --type feature --documentation
# Multi-agent full-stack feature
/implement user-dashboard --agents frontend,backend,test,docs
# Safe iterative implementation
/implement payment-processing-service --type service --safe --iterative
# Explicit agent selection
/implement REST-API-users --type api --agent gd-backend-agent
Integration Features
Framework Detection
- Automatically detects project framework and conventions
- Adapts code style to existing patterns
- Uses project-specific dependencies
Security-First
- Security persona auto-activates for sensitive operations
- Input validation by default
- OWASP compliance checks
Quality Assurance
- Code quality validation
- Performance considerations
- Accessibility compliance (for UI components)
Testing Integration
- Unit test generation
- Integration test suggestions
- E2E test strategies with Playwright agent
Output Structure
# Implementation: [Feature Name]
## Summary
- Type: [component|api|service|feature]
- Framework: [framework-name]
- Complexity: [low|medium|high]
- Estimated time: [time estimate]
## Files Created/Modified
- `path/to/file1.ts` - Description
- `path/to/file2.ts` - Description
## Implementation Details
[Code with explanations]
## Security Considerations
- [Security measure 1]
- [Security measure 2]
## Testing
- Unit tests: [location]
- Integration tests: [strategy]
- E2E tests: [recommendations]
## Next Steps
1. [Step 1]
2. [Step 2]
3. [Step 3]
## Documentation
[Usage examples and API documentation]
Best Practices
Code Quality
- Follow SOLID principles
- Use appropriate design patterns
- Maintain DRY principle
- Ensure proper error handling
Performance
- Optimize critical paths
- Consider scalability
- Monitor resource usage
- Implement caching strategies
Security
- Input validation
- Authentication/Authorization
- Secure data handling
- OWASP compliance
Testing
- Comprehensive test coverage
- Edge case handling
- Integration testing
- Performance testing
Related Commands
/build - Build and compile project
/test - Run test suite
/improve - Enhance existing implementation
/review - Code review before merge
/document - Generate documentation
1---2name: implement3description: No description provided.4---56# Implement78910# /implement - Feature Implementation1112## Purpose13Implement features, components, and code functionality with intelligent expert activation, comprehensive development support, and best practices enforcement.1415## Usage16```bash17/implement [feature-description] [--type <type>] [--framework <name>] [--<flags>]18```1920## Arguments21- `[feature-description]` - Clear description of what to implement22- `--type component|api|service|feature|module` - Implementation type23- `--framework react|vue|angular|express|fastapi|etc` - Target framework24- `--safe` - Use conservative implementation approach25- `--iterative` - Enable iterative development with validation26- `--with-tests` - Include test implementation27- `--documentation` - Generate documentation alongside code28- `--agent <agent-name>` - Manually activate specific agent29- `--agents <agent-list>` - Activate multiple coordinated agents3031## Auto-Activation Patterns3233### Personas (Context-Dependent)34- **Frontend**: UI components, React/Vue/Angular development35 - Keywords: component, UI, React, Vue, responsive, accessibility36 - Files: `*.jsx`, `*.tsx`, `*.vue`, `*.css`3738- **Backend**: APIs, services, database integration39 - Keywords: API, database, server, endpoint, authentication40 - Files: `*.js`, `*.ts`, `*.py`, `*.go`, `controllers/*`, `models/*`4142- **Security**: Authentication, authorization, data protection43 - Keywords: auth, security, encryption, validation44 - Auto-activates for sensitive operations4546- **Architect**: System design and module structure47 - Complex features requiring architectural decisions48 - Multi-component implementations4950### MCP Servers51- **Banana**: Primary for UI component generation and design systems52- **Context7**: Framework documentation and implementation patterns53- **Sequential**: Complex business logic and multi-step workflows5455### Agent Coordination56- **Single Domain**: Domain-specific agent (frontend, backend, etc.)57- **Multi-Domain**: Hierarchical coordination with multiple specialists58- **Testing**: Automatic test-agent activation with `--with-tests`59- **Documentation**: Automatic docs-agent activation with `--documentation`6061## Execution Workflow62631. **Requirements Analysis**64 - Parse feature description and detect technology context65 - Identify required components and dependencies66 - Determine implementation complexity67682. **Persona & Agent Activation**69 - Auto-activate relevant personas based on context70 - Route to specialized agents when beneficial71 - Coordinate MCP servers for enhanced capabilities72733. **Implementation Phase**74 - Generate code with framework best practices75 - Apply security and quality validation76 - Follow project conventions and patterns77 - Use appropriate design patterns78794. **Testing & Validation**80 - Generate tests if requested81 - Validate against requirements82 - Check for common pitfalls and vulnerabilities83845. **Documentation & Next Steps**85 - Document implementation decisions86 - Provide usage examples87 - Suggest testing and integration steps8889## Examples9091```bash92# Frontend component with tests93/implement LoginComponent --type component --framework react --with-tests9495# Backend API with documentation96/implement user-authentication-system --type feature --documentation9798# Multi-agent full-stack feature99/implement user-dashboard --agents frontend,backend,test,docs100101# Safe iterative implementation102/implement payment-processing-service --type service --safe --iterative103104# Explicit agent selection105/implement REST-API-users --type api --agent gd-backend-agent106```107108## Integration Features109110### Framework Detection111- Automatically detects project framework and conventions112- Adapts code style to existing patterns113- Uses project-specific dependencies114115### Security-First116- Security persona auto-activates for sensitive operations117- Input validation by default118- OWASP compliance checks119120### Quality Assurance121- Code quality validation122- Performance considerations123- Accessibility compliance (for UI components)124125### Testing Integration126- Unit test generation127- Integration test suggestions128- E2E test strategies with Playwright agent129130## Output Structure131132```markdown133# Implementation: [Feature Name]134135## Summary136- Type: [component|api|service|feature]137- Framework: [framework-name]138- Complexity: [low|medium|high]139- Estimated time: [time estimate]140141## Files Created/Modified142- `path/to/file1.ts` - Description143- `path/to/file2.ts` - Description144145## Implementation Details146[Code with explanations]147148## Security Considerations149- [Security measure 1]150- [Security measure 2]151152## Testing153- Unit tests: [location]154- Integration tests: [strategy]155- E2E tests: [recommendations]156157## Next Steps1581. [Step 1]1592. [Step 2]1603. [Step 3]161162## Documentation163[Usage examples and API documentation]164```165166## Best Practices167168### Code Quality169- Follow SOLID principles170- Use appropriate design patterns171- Maintain DRY principle172- Ensure proper error handling173174### Performance175- Optimize critical paths176- Consider scalability177- Monitor resource usage178- Implement caching strategies179180### Security181- Input validation182- Authentication/Authorization183- Secure data handling184- OWASP compliance185186### Testing187- Comprehensive test coverage188- Edge case handling189- Integration testing190- Performance testing191192## Related Commands193- `/build` - Build and compile project194- `/test` - Run test suite195- `/improve` - Enhance existing implementation196- `/review` - Code review before merge197- `/document` - Generate documentation