mirror of
https://github.com/luongnv89/claude-howto.git
synced 2026-07-07 11:17:48 +02:00
ee0f4bd5d9
- 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
20 lines
677 B
Markdown
20 lines
677 B
Markdown
---
|
|
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
|