From optimize
Profiles code, identifies bottlenecks, applies targeted optimizations, and measures before/after improvements with documented trade-offs.
How this command is triggered — by the user, by Claude, or both
Slash command
/optimize:optimize-perfThe summary Claude sees in its command listing — used to decide when to auto-load this command
Analyze and optimize code for runtime performance with measurable improvements. ## Steps 1. Identify the performance target: 2. Profile the code: 3. Analyze common performance issues: 4. Apply optimizations in order of impact: 5. Measure the improvement after each optimization. 6. Document the trade-offs of each optimization. ## Format ## Rules - Always measure before and after; never optimize without data. - Fix the biggest bottleneck first (Amdahl's Law). - Do not sacrifice readability for marginal gains.
Analyze and optimize code for runtime performance with measurable improvements.
Target: <what was optimized>
Before: <baseline metric>
After: <improved metric>
Improvement: <percentage>
2plugins reuse this command
First indexed Mar 30, 2026
npx claudepluginhub costrict-plugins-repo/github-trending-plan --plugin optimize/optimize-perfProfiles code, identifies bottlenecks, applies targeted optimizations, and measures before/after improvements with documented trade-offs.
/optimizeAnalyzes code performance and proposes three specific optimization improvements.
/optimize-codeAnalyze algorithms and choose optimal implementation for performance.
/optimizeOptimizes performance of <PERFORMANCE_TARGET> via bottleneck analysis, expert-coordinated strategies for algorithms/resources/scalability, and outputs plans with benchmarks/monitoring.
/optimizeOptimizes project performance for a specified target/bottleneck via expert analysis, producing baseline metrics, strategy, code implementation plan, benchmarks, and monitoring setup.
/perf-profileProfiles a slow code path to identify top bottlenecks by self-time, categorizes them (CPU, I/O, memory, lock contention), and suggests targeted fixes ordered by impact.