mirror of
https://github.com/SuperClaude-Org/SuperClaude_Framework.git
synced 2025-12-29 16:16:08 +00:00
feat: restore all 30 slash commands with comprehensive documentation
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>
This commit is contained in:
93
plugins/superclaude/commands/test.md
Normal file
93
plugins/superclaude/commands/test.md
Normal file
@@ -0,0 +1,93 @@
|
||||
---
|
||||
name: test
|
||||
description: "Execute tests with coverage analysis and automated quality reporting"
|
||||
category: utility
|
||||
complexity: enhanced
|
||||
mcp-servers: [playwright]
|
||||
personas: [qa-specialist]
|
||||
---
|
||||
|
||||
# /sc:test - Testing and Quality Assurance
|
||||
|
||||
## Triggers
|
||||
- Test execution requests for unit, integration, or e2e tests
|
||||
- Coverage analysis and quality gate validation needs
|
||||
- Continuous testing and watch mode scenarios
|
||||
- Test failure analysis and debugging requirements
|
||||
|
||||
## Usage
|
||||
```
|
||||
/sc:test [target] [--type unit|integration|e2e|all] [--coverage] [--watch] [--fix]
|
||||
```
|
||||
|
||||
## Behavioral Flow
|
||||
1. **Discover**: Categorize available tests using runner patterns and conventions
|
||||
2. **Configure**: Set up appropriate test environment and execution parameters
|
||||
3. **Execute**: Run tests with monitoring and real-time progress tracking
|
||||
4. **Analyze**: Generate coverage reports and failure diagnostics
|
||||
5. **Report**: Provide actionable recommendations and quality metrics
|
||||
|
||||
Key behaviors:
|
||||
- Auto-detect test framework and configuration
|
||||
- Generate comprehensive coverage reports with metrics
|
||||
- Activate Playwright MCP for e2e browser testing
|
||||
- Provide intelligent test failure analysis
|
||||
- Support continuous watch mode for development
|
||||
|
||||
## MCP Integration
|
||||
- **Playwright MCP**: Auto-activated for `--type e2e` browser testing
|
||||
- **QA Specialist Persona**: Activated for test analysis and quality assessment
|
||||
- **Enhanced Capabilities**: Cross-browser testing, visual validation, performance metrics
|
||||
|
||||
## Tool Coordination
|
||||
- **Bash**: Test runner execution and environment management
|
||||
- **Glob**: Test discovery and file pattern matching
|
||||
- **Grep**: Result parsing and failure analysis
|
||||
- **Write**: Coverage reports and test summaries
|
||||
|
||||
## Key Patterns
|
||||
- **Test Discovery**: Pattern-based categorization → appropriate runner selection
|
||||
- **Coverage Analysis**: Execution metrics → comprehensive coverage reporting
|
||||
- **E2E Testing**: Browser automation → cross-platform validation
|
||||
- **Watch Mode**: File monitoring → continuous test execution
|
||||
|
||||
## Examples
|
||||
|
||||
### Basic Test Execution
|
||||
```
|
||||
/sc:test
|
||||
# Discovers and runs all tests with standard configuration
|
||||
# Generates pass/fail summary and basic coverage
|
||||
```
|
||||
|
||||
### Targeted Coverage Analysis
|
||||
```
|
||||
/sc:test src/components --type unit --coverage
|
||||
# Unit tests for specific directory with detailed coverage metrics
|
||||
```
|
||||
|
||||
### Browser Testing
|
||||
```
|
||||
/sc:test --type e2e
|
||||
# Activates Playwright MCP for comprehensive browser testing
|
||||
# Cross-browser compatibility and visual validation
|
||||
```
|
||||
|
||||
### Development Watch Mode
|
||||
```
|
||||
/sc:test --watch --fix
|
||||
# Continuous testing with automatic simple failure fixes
|
||||
# Real-time feedback during development
|
||||
```
|
||||
|
||||
## Boundaries
|
||||
|
||||
**Will:**
|
||||
- Execute existing test suites using project's configured test runner
|
||||
- Generate coverage reports and quality metrics
|
||||
- Provide intelligent test failure analysis with actionable recommendations
|
||||
|
||||
**Will Not:**
|
||||
- Generate test cases or modify test framework configuration
|
||||
- Execute tests requiring external services without proper setup
|
||||
- Make destructive changes to test files without explicit permission
|
||||
Reference in New Issue
Block a user