feat: Add comprehensive review command with quality analysis (#24)

* feat: Add comprehensive review command with quality analysis

- Add new /review command with --files, --commit, --pr flags
- Implement evidence-based quality assessment patterns
- Create comprehensive review patterns YAML resource
- Update command index to reflect 19 total commands
- Integrate with existing analysis workflow

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

Co-Authored-By: Claude <noreply@anthropic.com>
Signed-off-by: Kevin Pauer <kevinpauer@users.noreply.github.com>

* fix: remove new custom .yml and reuse existing ones; adjust compression-performance-patterns

* feat: add command documentation

---------

Signed-off-by: Kevin Pauer <kevinpauer@users.noreply.github.com>
Co-authored-by: Kevin Pauer <kevinpauer@users.noreply.github.com>
Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
kevinpauer
2025-06-26 15:31:35 +02:00
committed by GitHub
parent 3cb8217c34
commit 65915024a1
5 changed files with 121 additions and 9 deletions

View File

@@ -15,6 +15,7 @@
**Example Commands**:
```bash
/review --files src/ --quality --evidence # Comprehensive code review with evidence
/analyze --code --persona-architect # Code analysis with architect mindset
/build --react --magic --tdd # Build React app with AI components
/troubleshoot --prod --five-whys --seq # Production debugging with reasoning
@@ -154,7 +155,27 @@ Create, run, and maintain testing strategies across the stack.
/test --mutation --strict # Test quality validation
```
### 🔍 Analysis & Improvement Commands (4)
### 🔍 Analysis & Improvement Commands (5)
#### `/review` - AI-Powered Code Review
Comprehensive code review and quality analysis with evidence-based recommendations.
**Command-Specific Flags:**
- `--files` - Review specific files or directories
- `--commit` - Review changes in specified commit (HEAD, hash, range)
- `--pr` - Review pull request changes (git diff main..branch)
- `--quality` - Focus on code quality issues (DRY, SOLID, complexity)
- `--evidence` - Include sources and documentation for all suggestions
- `--fix` - Suggest specific fixes for identified issues
- `--summary` - Generate executive summary of review findings
**Examples:**
```bash
/review --files src/auth.ts --persona-security # Security-focused file review
/review --commit HEAD --quality --evidence # Quality review with sources
/review --pr 123 --all --interactive # Comprehensive PR review
/review --files src/ --persona-performance --think # Performance analysis
```
#### `/analyze` - Multi-Dimensional Analysis
Comprehensive analysis of code, architecture, performance, and security.
@@ -442,6 +463,14 @@ Load and analyze project context.
/test --performance --load
```
**Quality Assurance**
```bash
/review --quality --evidence --persona-qa
/improve --quality --refactor --strict
/scan --validate --quality
/test --coverage --mutation
```
### 💡 Best Practices
1. **Always validate risky operations**