Autonomous workflow for systematic performance profiling, bottleneck analysis, incremental optimization with measurement, and ongoing monitoring setup. Covers bundle size, runtime speed, memory, database queries, API response times, and Core Web Vitals.
- Phase 1: Profiling — Detect project type and tooling, collect baseline metrics (bundle, runtime, memory, network, DB)
- Phase 2: Analysis — Identify bottlenecks, rank by user impact and effort-to-fix
- Phase 3: Optimization — Apply optimizations incrementally with before/after measurement
- Phase 4: Verification — Confirm improvements hold, no regressions
- Phase 5: Monitoring — Set up ongoing monitoring to detect future degradation
clean-code— Clean code principles during optimizationreact-performance— React performance optimization patternsreact-best-practices— React best practices and patterns- Command:
check-performance— Single-check performance with structured output
- "optimize performance of [module/app]"
- "why is this so slow"
- "reduce bundle size"
- "fix this memory leak"
- "improve page speed / Core Web Vitals"
- "profile this [function/endpoint/page]"
From your project root:
mkdir -p .cursor/agents
cp -r ~/.ai-skills/agents/performance .cursor/agents/performancemkdir -p ~/.cursor/agents
cp -r ~/.ai-skills/agents/performance ~/.cursor/agents/performanceFrom your project root:
mkdir -p .claude/agents
cp -r ~/.ai-skills/agents/performance .claude/agents/performancemkdir -p ~/.claude/agents
cp -r ~/.ai-skills/agents/performance ~/.claude/agents/performanceFor best results, also install the skills this agent references (see Skills Used above). Ensure the app builds and runs and git is clean before profiling.
Part of the Agents directory.