Skip to content
Development
Command

/optimize

Optimize performance

From plugin
tool-ui
7657 skills5 agents7 commands
Install
$ npx -y skills add assistant-ui/tool-ui --agent claude-code

How it fires

How this command gets triggered: by you, by Claude, or both.

  • Fires itselfClaude auto-loads it when your prompt matches the work.
  • You can call itInvoke it directly when you want it.
  • Slash command/optimize

Context preview

What this command does when you run it.

Optimize performance

Command definition

optimize.md
description: Optimize performance

Analyze and optimize $ARGUMENTS for performance:

1. **React Performance**

  • Unnecessary re-renders
  • Missing React.memo/useMemo/useCallback
  • Large component trees
  • Expensive computations in render

2. **Bundle Size**

  • Heavy dependencies
  • Code splitting opportunities
  • Dynamic imports for heavy components
  • Tree-shaking issues

3. **Network**

  • API call efficiency
  • Caching strategies
  • Parallel vs sequential requests
  • Unnecessary data fetching

4. **Runtime**

  • Algorithm complexity
  • Memory leaks
  • Event listener cleanup
  • Inefficient loops/filters

Provide measurable improvements with before/after comparisons when possible.

Ships withtool-ui

UI components for AI interfaces

Get the whole plugin