
optimize
Command that analyzes code performance and suggests optimizations for slow or inefficient code.
- version
- 1.0.0
- GitHub stars
- 689
What it does
- Adds an
/optimizecommand that analyzes code performance and proposes optimizations - Covers performance analysis of the code you point it at, with optimization suggestions for the problems it finds
Analyze and optimize code performance
Add marketplace
/plugin marketplace add ananddtyagi/cc-marketplaceRun it inside Claude Code once, then install the plugin below.
Install
/plugin install optimize@cc-marketplaceRun it inside Claude Code after adding the marketplace.
Files
Discovered from sourceContext
- 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:
- Algorithm efficiency: Improve time/space complexity
- Memory usage: Reduce memory footprint
- I/O operations: Optimize file/network operations
- Caching opportunities: Identify cacheable operations
- Lazy loading: Implement lazy loading where beneficial
- Bundle optimization: Reduce bundle size (if applicable)
Provide before/after comparisons and performance impact estimates.
From the ananddtyagi/cc-marketplace README
Claude Code Marketplace
Community-driven marketplace for Claude Code commands and plugins.
🚀 Quick Start
Add this marketplace to Claude Code:
/plugin marketplace add ananddtyagi/cc-marketplace
Then browse and install individual plugins (commands or agents):
/plugin
Install a specific command:
/plugin install lyra@cc-marketplace
Install a specific agent:
/plugin install accessibility-expert@cc-marketplace
🌟 Featured Commands
- Documentation Generator - Create comprehensive documentation for code, APIs, and projects. (by Anonymous)
- Lyra - Lyra - a master-level AI prompt optimization specialist. (by @ananddtyagi)
- Analyze Codebase - Generate comprehensive analysis and documentation of entire codebase (by @ananddtyagi)
- Update Claude.md - Automatically update CLAUDE.md file based on recent code changes (by @ananddtyagi)
- Ultrathink - Use /ultrathink <TASK_DESCRIPTION> to launch a Coordinator Agent that directs four specialist sub-agents—Architect, Research, Coder, and Tester—to analyze, design, implement, and validate your coding task. The process breaks the task into clear steps, gathers insights, and synthesizes a cohesive solution with actionable outputs. Relevant files can be referenced ad-hoc using @ filename syntax. (by Jeronim Morina)
- Code Review - Perform a comprehensive code review of recent changes (by @ananddtyagi)
- Refractor - Refactor code following best practices and design patterns (by @ananddtyagi)
- Code Review Assistant - Get comprehensive code reviews with suggestions for improvements, best practices, and potential issues. (by Anonymous)
- Bug Detective - Systematically debug issues with step-by-step troubleshooting approaches. (by Anonymous)
- Audit - Perform security audit on codebase (by @ananddtyagi)
🤖 Featured Agents
- Accessibility Expert - Specialized agent for accessibility reviews and improvements
- AI Engineer - Expert in AI/ML implementation and optimization
- Frontend Developer - React, Vue, Angular expert for UI development
- DevOps Automator - CI/CD and infrastructure automation specialist
- Code Reviewer - Thorough code review and best practices enforcement
💡 Browse & Submit
Visit claudecodecommands.directory to:
- 🔍 Browse all commands and agents with descriptions and examples
- 📤 Submit your own commands and agents
- ⭐ Favorite plugins
- 🏷️ Filter by category and tags
🎯 How It Works
Each plugin in this marketplace is independently installable:
- Commands: Add custom slash commands to your Claude Code workflow (e.g.,
/lyra,/audit,/ultrathink) - Agents: Add specialized AI agents with specific expertise (e.g., accessibility-expert, frontend-developer, devops-automator)
Install only what you need - no bloat, full granular control!
🔄 Auto-Sync
This marketplace is automatically synced from the live database whenever commands are published or updated.
📝 License
Individual commands may have their own licenses. See each command file for details.
🤝 Contributing
Submit commands at claudecodecommands.directory/submit Submit agents at claudecodecommands.directory/submit-agent
Built with ❤️ by the Claude Code community
Details
- Marketplace
- ananddtyagi/cc-marketplace
- Source
- plugins/optimize
- Author
- Anand Tyagi
- Category
- Performance
- Keywords
- performance
- Listed since
- Apr 7, 2026
More from ananddtyagi/cc-marketplace
All 119- performance-benchmarkerv1.0.0
- planv1.0.0
- planning-prd-agentv1.0.0
- pr-issue-resolvev1.0.0
- pr-reviewv1.0.0
- prd-specialistv1.0.0
- pricing-packaging-specialistv1.0.0
- problem-solver-specialistv1.0.0
- product-sales-specialistv1.0.0
- project-curatorv1.0.0
- project-shipperv1.0.0
- python-expertv1.0.0
- rapid-prototyperv1.0.0
- react-native-devv1.0.0
- reddit-community-builderv1.0.0
- refractorv1.0.0
- sprint-prioritizerv1.0.0
- studio-coachv1.0.0
- studio-producerv1.0.0
- sugarv2.0.0
- support-responderv1.0.0
- technical-sales-engineerv1.0.0
- test-filev1.0.0
- test-results-analyzerv1.0.0
Similar to optimize
More Code Review & Quality
performance-optimizerglincker/claude-code-marketplace38 starsAnalyze and optimize code performance, identify bottlenecks, and suggest improvements
perfComposioHQ/awesome-claude-plugins2K starsPerformance analysis and optimization
performance-reviewerposhan0126/dotclaude871 starsFinds real bottlenecks. DB N+1, memory leaks, blocking calls, re-renders.
performance-optimizationmiles990/claude-software-skills26 starsProfiling, optimization techniques, and performance best practices
application-performancewshobson/agents42.8K starsApplication profiling, performance optimization, and observability for frontend and backend systems
perf-profilerrohitg00/awesome-claude-code-toolkit2.8K starsPerformance analysis, profiling, and optimization recommendations