Analyze code and provide performance optimization recommendations.
Analyzes code and provides performance optimization recommendations with impact assessments.
/plugin marketplace add marcel-Ngan/ai-dev-team/plugin install marcel-ngan-ai-dev-team@marcel-Ngan/ai-dev-teamAnalyze code and provide performance optimization recommendations.
/optimize [target] [focus]
Arguments:
target - File or directory to analyzefocus - (optional) Focus area: speed, memory, bundle, database/optimize src/services/data-processor.ts
/optimize src/api/ speed
/optimize src/components/ bundle
/optimize src/db/queries.ts database
Analyzes code for performance issues:
Provides recommendations with:
## Optimization Analysis: {target}
### High Impact Opportunities
#### 1. {Issue Title}
- **Location:** `file.ts:123`
- **Current:** {description of current implementation}
- **Issue:** {why it's slow/inefficient}
- **Recommendation:** {what to change}
- **Expected Impact:** {improvement estimate}
**Before:**
\`\`\`javascript
// Current code
\`\`\`
**After:**
\`\`\`javascript
// Optimized code
\`\`\`
### Medium Impact
- {optimization 2}
- {optimization 3}
### Summary
- Critical optimizations: X
- Estimated improvement: {estimate}
- Recommended priority: {1, 2, 3...}
skills/performance/optimization/
Use the Software Architect agent when: