From optimize
Analyzes specified code file for performance optimizations in algorithms, memory, I/O, caching, lazy loading, and bundles. Provides before/after comparisons and impact estimates.
How this command is triggered — by the user, by Claude, or both
Slash command
/optimize:optimizeThis command is limited to the following tools:
The summary Claude sees in its command listing — used to decide when to auto-load this command
## Context - File size: !`du -h $ARGUMENTS 2>/dev/null || echo "File not specified"` - Line count: !`wc -l $ARGUMENTS 2>/dev/null || echo "File not specified"` ## Your task Analyze and optimize: @$ARGUMENTS Focus areas: 1. **Algorithm efficiency**: Improve time/space complexity 2. **Memory usage**: Reduce memory footprint 3. **I/O operations**: Optimize file/network operations 4. **Caching opportunities**: Identify cacheable operations 5. **Lazy loading**: Implement lazy loading where beneficial 6. **Bundle optimization**: Reduce bundle size (if applicable) Provide before/after compari...
du -h $ARGUMENTS 2>/dev/null || echo "File not specified"wc -l $ARGUMENTS 2>/dev/null || echo "File not specified"Analyze and optimize: @$ARGUMENTS
Focus areas:
Provide before/after comparisons and performance impact estimates.
npx claudepluginhub ccplugins/awesome-claude-code-plugins --plugin optimize/optimizeAnalyzes specified code file for performance optimizations in algorithms, memory, I/O, caching, lazy loading, and bundles. Provides before/after comparisons and impact estimates.
/neo-optimizeAnalyzes specified file path or function for algorithmic complexity, bottlenecks, and inefficiencies, suggesting optimizations with confidence scores.
/perf-reviewAnalyzes performance bottlenecks and optimization opportunities in codebase scope (entire project, path, git changes, or PR) and saves prioritized plan as markdown report in /reports.
/bash-optimizeOptimizes bash script for performance by reducing execution time and resource usage. Targets speed, memory, or both with subshell elimination, builtin replacements, and loop improvements.
/optimizeAnalyzes code performance and proposes three specific optimization improvements.
/optimize-codeAnalyze algorithms and choose optimal implementation for performance.