2025-06-25 16:51:53 +02:00
|
|
|
**Purpose**: Multi-dimensional code and system analysis
|
|
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
2025-06-25 00:21:27 +02:00
|
|
|
@include shared/universal-constants.yml#Universal_Legend
|
2025-06-22 14:02:49 +02:00
|
|
|
|
2025-06-24 21:24:14 +02:00
|
|
|
## Command Execution
|
|
|
|
|
Execute: immediate. --plan→show plan first
|
|
|
|
|
Legend: Generated based on symbols used in command
|
|
|
|
|
Purpose: "[Action][Subject] in $ARGUMENTS"
|
2025-06-22 14:02:49 +02:00
|
|
|
|
|
|
|
|
Multi-dimensional analysis on code, arch, or problem in $ARGUMENTS.
|
|
|
|
|
|
2025-06-24 22:46:52 +02:00
|
|
|
@include shared/flag-inheritance.yml#Universal_Always
|
2025-06-22 14:02:49 +02:00
|
|
|
|
|
|
|
|
Examples:
|
2025-06-24 21:31:34 +02:00
|
|
|
- `/analyze --code --think` - Code review w/ context
|
|
|
|
|
- `/analyze --arch --think-hard` - Deep arch analysis
|
|
|
|
|
- `/analyze --security --ultrathink` - Comprehensive security audit
|
2025-06-22 14:02:49 +02:00
|
|
|
|
|
|
|
|
Analysis modes:
|
|
|
|
|
|
|
|
|
|
**--code:** Quality review→naming, structure, DRY, complexity | Bugs→null checks, boundaries, types | Security→injection, auth, validation | Perf→O(n²), N+1, memory
|
|
|
|
|
|
|
|
|
|
**--arch:** System design & patterns | Layer coupling | Scalability bottlenecks | Maintainability assessment | Improvement suggestions
|
|
|
|
|
|
|
|
|
|
**--profile:** CPU, memory, execution time | Network latency, DB queries | Frontend metrics | Bottleneck identification | Optimization recommendations
|
|
|
|
|
|
|
|
|
|
**--security:** OWASP top 10 | Auth & authorization | Data handling & encryption | Attack vector identification
|
|
|
|
|
|
|
|
|
|
**--perf:** Bottleneck analysis | Algorithm complexity | DB queries & indexes | Caching strategies | Resource utilization
|
|
|
|
|
|
|
|
|
|
**--watch:** Continuous file monitoring | Real-time quality tracking | Auto re-analysis | Live metrics
|
|
|
|
|
|
|
|
|
|
**--interactive:** Guided exploration | Step-by-step fixes | Live improvement
|
|
|
|
|
|
2025-06-24 22:46:52 +02:00
|
|
|
@include shared/research-patterns.yml#Mandatory_Research_Flows
|
2025-06-22 14:02:49 +02:00
|
|
|
|
2025-06-24 22:46:52 +02:00
|
|
|
@include shared/docs-patterns.yml#Standard_Notifications
|
2025-06-22 14:02:49 +02:00
|
|
|
|
2025-06-25 00:21:27 +02:00
|
|
|
@include shared/universal-constants.yml#Standard_Messages_Templates
|