Files
claude-howto/01-slash-commands/optimize.md
T
Luong NGUYEN 72d3b016e6 docs: sync all tutorials with latest Claude Code docs (April 2026) (#56)
* docs: sync all tutorials with latest Claude Code official docs (April 2026)

Update 44 documentation files to reflect the latest Claude Code features
from code.claude.com. Key content changes include new slash commands
(/ultraplan, /powerup, /sandbox), deprecated command removals (/pr-comments,
/vim), corrected skill description budget (1%/8K), new hook events
(PermissionDenied, InstructionsLoaded, ConfigChange), expanded Agent Teams
section, new plugin components (LSP, bin/, settings.json), and new CLI
flags (--bare, --tmux, --effort, --channels). Added "Last Updated: April
2026" metadata footer to all documentation files.

* fix(docs): correct env var values and alphabetical ordering

- CLAUDE_CODE_NEW_INIT=true → =1 in 02-memory and 09-advanced-features
- CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=true → =1 in 09-advanced-features
- Fix /powerup vs /plugin alphabetical order in slash commands table

* fix(docs): correct env var values in locale files (vi, zh)

Propagate CLAUDE_CODE_NEW_INIT=true → =1 and
CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=true → =1 corrections
to Vietnamese and Chinese translations.
2026-04-07 10:20:53 +02:00

711 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

Last Updated: April 2026