mirror of
https://github.com/SuperClaude-Org/SuperClaude_Framework.git
synced 2025-12-29 16:16:08 +00:00
Restored 26 additional commands from commitd4a17fc, bringing total from 5 to 30 commands. ## New Commands Added (26): - /analyze - Code and architecture analysis - /brainstorm - Structured brainstorming sessions - /build - Build and compilation workflows - /business-panel - Multi-expert business analysis - /cleanup - Code cleanup and refactoring - /design - System design and architecture - /document - Documentation generation - /estimate - Effort and time estimation - /explain - Code explanation - /git - Git operations and workflows - /help - Command help and usage - /implement - Implementation workflows - /improve - Code improvement suggestions - /index - Project indexing (alias for index-repo) - /load - Load saved sessions - /pm - Project management workflows - /reflect - Reflection and retrospectives - /save - Save current session - /select-tool - Tool selection guidance - /spawn - Spawn parallel tasks - /spec-panel - Multi-expert specification analysis - /task - Task management - /test - Testing workflows - /troubleshoot - Debugging and troubleshooting - /workflow - Custom workflow automation ## Documentation Updates: - Created docs/reference/commands-list.md with categorized command reference - Updated README.md with expandable 30-command list - Updated README-zh.md with Chinese translations - Updated README-ja.md with Japanese translations - Updated README-kr.md with Korean translations - Changed statistics: "3 plugins" → "30 commands" - Added command categories: Planning & Design, Development, Testing & Quality, Documentation, Version Control, Project Management, Research & Analysis, Utilities ## Files Changed: - 60 files changed, 7930 insertions(+), 267 deletions(-) - Added 26 commands to plugins/superclaude/commands/ - Added 26 commands to src/superclaude/commands/ - Created comprehensive command documentation Commands restored from:d4a17fc(superclaude/commands/) Total: 30 commands now available 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
94 lines
3.3 KiB
Markdown
94 lines
3.3 KiB
Markdown
---
|
|
name: build
|
|
description: "Build, compile, and package projects with intelligent error handling and optimization"
|
|
category: utility
|
|
complexity: enhanced
|
|
mcp-servers: [playwright]
|
|
personas: [devops-engineer]
|
|
---
|
|
|
|
# /sc:build - Project Building and Packaging
|
|
|
|
## Triggers
|
|
- Project compilation and packaging requests for different environments
|
|
- Build optimization and artifact generation needs
|
|
- Error debugging during build processes
|
|
- Deployment preparation and artifact packaging requirements
|
|
|
|
## Usage
|
|
```
|
|
/sc:build [target] [--type dev|prod|test] [--clean] [--optimize] [--verbose]
|
|
```
|
|
|
|
## Behavioral Flow
|
|
1. **Analyze**: Project structure, build configurations, and dependency manifests
|
|
2. **Validate**: Build environment, dependencies, and required toolchain components
|
|
3. **Execute**: Build process with real-time monitoring and error detection
|
|
4. **Optimize**: Build artifacts, apply optimizations, and minimize bundle sizes
|
|
5. **Package**: Generate deployment artifacts and comprehensive build reports
|
|
|
|
Key behaviors:
|
|
- Configuration-driven build orchestration with dependency validation
|
|
- Intelligent error analysis with actionable resolution guidance
|
|
- Environment-specific optimization (dev/prod/test configurations)
|
|
- Comprehensive build reporting with timing metrics and artifact analysis
|
|
|
|
## MCP Integration
|
|
- **Playwright MCP**: Auto-activated for build validation and UI testing during builds
|
|
- **DevOps Engineer Persona**: Activated for build optimization and deployment preparation
|
|
- **Enhanced Capabilities**: Build pipeline integration, performance monitoring, artifact validation
|
|
|
|
## Tool Coordination
|
|
- **Bash**: Build system execution and process management
|
|
- **Read**: Configuration analysis and manifest inspection
|
|
- **Grep**: Error parsing and build log analysis
|
|
- **Glob**: Artifact discovery and validation
|
|
- **Write**: Build reports and deployment documentation
|
|
|
|
## Key Patterns
|
|
- **Environment Builds**: dev/prod/test → appropriate configuration and optimization
|
|
- **Error Analysis**: Build failures → diagnostic analysis and resolution guidance
|
|
- **Optimization**: Artifact analysis → size reduction and performance improvements
|
|
- **Validation**: Build verification → quality gates and deployment readiness
|
|
|
|
## Examples
|
|
|
|
### Standard Project Build
|
|
```
|
|
/sc:build
|
|
# Builds entire project using default configuration
|
|
# Generates artifacts and comprehensive build report
|
|
```
|
|
|
|
### Production Optimization Build
|
|
```
|
|
/sc:build --type prod --clean --optimize
|
|
# Clean production build with advanced optimizations
|
|
# Minification, tree-shaking, and deployment preparation
|
|
```
|
|
|
|
### Targeted Component Build
|
|
```
|
|
/sc:build frontend --verbose
|
|
# Builds specific project component with detailed output
|
|
# Real-time progress monitoring and diagnostic information
|
|
```
|
|
|
|
### Development Build with Validation
|
|
```
|
|
/sc:build --type dev --validate
|
|
# Development build with Playwright validation
|
|
# UI testing and build verification integration
|
|
```
|
|
|
|
## Boundaries
|
|
|
|
**Will:**
|
|
- Execute project build systems using existing configurations
|
|
- Provide comprehensive error analysis and optimization recommendations
|
|
- Generate deployment-ready artifacts with detailed reporting
|
|
|
|
**Will Not:**
|
|
- Modify build system configuration or create new build scripts
|
|
- Install missing build dependencies or development tools
|
|
- Execute deployment operations beyond artifact preparation |