# Optimize

> Analyze and improve performance of a file, component, or system. Measure first, then fix.

- Skill: `rhythmmittal19/optimize` (Agent Skill)
- Install (CLI): `npx skillmds@latest add rhythmmittal19/optimize`
- Raw SKILL.md: https://api.skillmd.com/api/skills/rhythmmittal19/optimize/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Web & Frontend
- Author: RhythmMittal19 (https://skillmd.com/u/rhythmmittal19)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/rhythmmittal19/optimize

---


## Target
$ARGUMENTS

## Protocol: Measure → Profile → Prioritize → Optimize → Verify

1. **Measure**: Read target, identify bottlenecks (re-renders, N+1 queries, O(n²), memory leaks)
2. **Profile**: Check bundle size, render frequency, query performance
3. **Prioritize**: Rank by impact — only fix what matters
4. **Optimize**: ONE change at a time, measure before/after
5. **Quick Wins**: React.memo, useMemo, dynamic imports, debounce, pagination, lazy loading

Show findings with estimated impact before making changes.

