Files
claude-howto/01-slash-commands/optimize.md
T
Luong NGUYEN ee0f4bd5d9 docs: Update slash commands documentation with official features
- Add comprehensive built-in commands reference (40+ commands)
- Document argument handling ($ARGUMENTS, $1, $2, etc.)
- Add bash execution syntax (! prefix) and file references (@ prefix)
- Update frontmatter to official fields (allowed-tools, argument-hint, model, etc.)
- Add Plugin Commands and MCP Slash Commands sections
- Add SlashCommand Tool documentation for programmatic invocation
- Add Skills vs Slash Commands comparison table
- Create commit.md example with bash execution and context
- Update existing examples to use official frontmatter format
- Add OpenSpec proposal for change tracking
2025-12-24 15:30:47 +01:00

677 B

description
description
Analyze code for performance issues and suggest optimizations

Code Optimization

Review the provided code for the following issues in order of priority:

  1. Performance bottlenecks - identify O(n²) operations, inefficient loops
  2. Memory leaks - find unreleased resources, circular references
  3. Algorithm improvements - suggest better algorithms or data structures
  4. Caching opportunities - identify repeated computations
  5. Concurrency issues - find race conditions or threading problems

Format your response with:

  • Issue severity (Critical/High/Medium/Low)
  • Location in code
  • Explanation
  • Recommended fix with code example