feat: add /sc:implement command and fix documentation consistency

- NEW COMMAND: /sc:implement for feature and code implementation
- Addresses v2 user feedback about /build command functionality change
- Updates command count from 15 to 16 across all documentation
- Adds comprehensive implementation examples and auto-activation patterns
- Includes v2 migration guidance for smooth upgrade path
- Fixes numerical inconsistencies in commands-guide.md, CHANGELOG.md, installation-guide.md

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
NomenAK
2025-07-14 20:16:57 +02:00
parent 64455cc91c
commit d04beca008
8 changed files with 164 additions and 24 deletions

View File

@@ -0,0 +1,54 @@
---
allowed-tools: [Read, Write, Edit, MultiEdit, Bash, Glob, TodoWrite, Task]
description: "Feature and code implementation with intelligent persona activation and MCP integration"
---
# /sc:implement - Feature Implementation
## Purpose
Implement features, components, and code functionality with intelligent expert activation and comprehensive development support.
## Usage
```
/sc:implement [feature-description] [--type component|api|service|feature] [--framework react|vue|express|etc] [--safe]
```
## Arguments
- `feature-description` - Description of what to implement
- `--type` - Implementation type (component, api, service, feature, module)
- `--framework` - Target framework or technology stack
- `--safe` - Use conservative implementation approach
- `--iterative` - Enable iterative development with validation steps
- `--with-tests` - Include test implementation
- `--documentation` - Generate documentation alongside implementation
## Execution
1. Analyze implementation requirements and detect technology context
2. Auto-activate relevant personas (frontend, backend, security, etc.)
3. Coordinate with MCP servers (Magic for UI, Context7 for patterns, Sequential for complex logic)
4. Generate implementation code with best practices
5. Apply security and quality validation
6. Provide testing recommendations and next steps
## Claude Code Integration
- Uses Write/Edit/MultiEdit for code generation and modification
- Leverages Read and Glob for codebase analysis and context understanding
- Applies TodoWrite for implementation progress tracking
- Integrates Task tool for complex multi-step implementations
- Coordinates with MCP servers for specialized functionality
- Auto-activates appropriate personas based on implementation type
## Auto-Activation Patterns
- **Frontend**: UI components, React/Vue/Angular development
- **Backend**: APIs, services, database integration
- **Security**: Authentication, authorization, data protection
- **Architecture**: System design, module structure
- **Performance**: Optimization, scalability considerations
## Examples
```
/sc:implement user authentication system --type feature --with-tests
/sc:implement dashboard component --type component --framework react
/sc:implement REST API for user management --type api --safe
/sc:implement payment processing service --type service --iterative
```

View File

@@ -59,6 +59,21 @@ performance-profile: "optimization"
- **Tool Orchestration**: [Read, Grep, Glob, Bash, TodoWrite, Edit, MultiEdit]
- **Arguments**: `[target]`, `@<path>`, `!<command>`, `--<flags>`
**`/implement $ARGUMENTS`**
```yaml
---
command: "/implement"
category: "Development & Implementation"
purpose: "Feature and code implementation with intelligent persona activation"
wave-enabled: true
performance-profile: "standard"
---
```
- **Auto-Persona**: Frontend, Backend, Architect, Security (context-dependent)
- **MCP Integration**: Magic (UI components), Context7 (patterns), Sequential (complex logic)
- **Tool Orchestration**: [Read, Write, Edit, MultiEdit, Bash, Glob, TodoWrite, Task]
- **Arguments**: `[feature-description]`, `--type component|api|service|feature`, `--framework <name>`, `--<flags>`
**`/dev-setup $ARGUMENTS`**
- **Purpose**: Development environment configuration
- **Category**: Development & Infrastructure
@@ -174,7 +189,7 @@ complex: "Resource-intensive with comprehensive analysis"
```
### Command Categories
- **Development**: build, dev-setup, design
- **Development**: build, implement, dev-setup, design
- **Analysis**: analyze, troubleshoot, explain, review
- **Quality**: improve, scan, cleanup
- **Testing**: test
@@ -186,5 +201,5 @@ complex: "Resource-intensive with comprehensive analysis"
- **Meta**: index, loop, spawn
### Wave-Enabled Commands
8 commands: `/analyze`, `/build`, `/design`, `/improve`, `/review`, `/scan`, `/task`
9 commands: `/analyze`, `/build`, `/design`, `/implement`, `/improve`, `/review`, `/scan`, `/task`

View File

@@ -72,12 +72,12 @@ complex:
#### Domain Identification
```yaml
frontend:
keywords: [UI, component, React, Vue, CSS, responsive, accessibility]
keywords: [UI, component, React, Vue, CSS, responsive, accessibility, implement component, build UI]
file_patterns: ["*.jsx", "*.tsx", "*.vue", "*.css", "*.scss"]
typical_operations: [create, style, optimize, test]
typical_operations: [create, implement, style, optimize, test]
backend:
keywords: [API, database, server, endpoint, authentication, performance]
keywords: [API, database, server, endpoint, authentication, performance, implement API, build service]
file_patterns: ["*.js", "*.ts", "*.py", "*.go", "controllers/*", "models/*"]
typical_operations: [implement, optimize, secure, scale]
@@ -121,6 +121,11 @@ creation:
outputs: [new files, features, components]
typical_tools: [Write, Magic, Context7]
implementation:
verbs: [implement, develop, code, construct, realize]
outputs: [working features, functional code, integrated components]
typical_tools: [Write, Edit, MultiEdit, Magic, Context7, Sequential]
modification:
verbs: [update, refactor, improve, optimize, fix]
outputs: [edited files, improvements]
@@ -193,6 +198,10 @@ wave-strategies:
|---------|------------|---------|----------------|------------|
| "analyze architecture" | complex | infrastructure | architect persona, --ultrathink, Sequential | 95% |
| "create component" | simple | frontend | frontend persona, Magic, --uc | 90% |
| "implement feature" | moderate | any | domain-specific persona, Context7, Sequential | 88% |
| "implement API" | moderate | backend | backend persona, --seq, Context7 | 92% |
| "implement UI component" | simple | frontend | frontend persona, Magic, --c7 | 94% |
| "implement authentication" | complex | security | security persona, backend persona, --validate | 90% |
| "fix bug" | moderate | any | analyzer persona, --think, Sequential | 85% |
| "optimize performance" | complex | backend | performance persona, --think-hard, Playwright | 90% |
| "security audit" | complex | security | security persona, --ultrathink, Sequential | 95% |