en un clic
optimize
// Review code for efficiency and performance. Triggered by "/optimize" when user wants to identify bottlenecks or improve performance.
// Review code for efficiency and performance. Triggered by "/optimize" when user wants to identify bottlenecks or improve performance.
Multi-phase project assessment with scoring. Triggered by "/assess" to evaluate project health across dimensions and generate a comprehensive report.
Comprehensive rule-based check. Triggered by "/check [target]" to evaluate all source files against project rules and report every violation.
Set and track project goals. Triggered by "/goal" to define objectives, track milestones, or review progress.
Schedule recurring tasks with notifications. Triggered by "/loop <interval> <prompt>" to set up periodic monitoring.
Review pull requests or code changes. Triggered by "/review [pr_link]" or when user asks to review pending changes.
Quick greedy scan for critical violations. Triggered by "/scan [target]" to find the top 1-5 most severe issues and stop early.
| name | optimize |
| description | Review code for efficiency and performance. Triggered by "/optimize" when user wants to identify bottlenecks or improve performance. |
| tools | Bash, Read |
Use when:
/optimizeDo NOT use when:
/simplify)/security-review)If user provides runtime data or if profiling is straightforward:
# Examples by platform/language
/usr/bin/time -v ./script.sh # Linux
python -m cProfile -s cumtime script.py
node --prof script.js
If no runtime data, skip to Step 2 with static analysis.
Analyze for:
Use the output format below.
## Performance Review
### Bottlenecks Found
#### 🔴 [Severity] [Category]
**File**: `path:line`
**Issue**: [Description]
**Impact**: [Quantify if possible]
**Fix**: [Recommendation]
#### 🟠 ...
### Recommendations (Priority Order)
1. [Highest impact fix]
2. [Next fix]