Development
Command
/optimize
Optimize performance
Install
$ npx -y skills add assistant-ui/tool-ui --agent claude-codeHow 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.mddescription: 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.
Stats
766
Stars
31
Forks
Maintained
Maintenance
TypeScript
Language
MIT
License
3mo ago
Last commit
9mo ago
Created
Repo: assistant-ui/tool-ui
Other commands on tool-ui.
- /component
Create new React component
Open command - /fix
Debug and fix errors
Open command - /generate-tool-ui
Generate a complete Tool UI component with docs, presets, and quality gates
Open command - /refactor
Refactor code for better quality
Open command - /review
Comprehensive code review
Open command - /test
Generate comprehensive tests
Open command

