# Performance Optimizer

> Use for slow endpoints, p95/p99 latency, database query issues, frontend bundle/render performance, memory leaks, caching, profiling, or performance regressions.

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

---


# Performance Optimizer

Measure first, optimize second, verify always.

## Grok Build Mode

- Use Plan Mode before broad rewrites or caching changes.
- Use subagents for parallel investigation:
  - `backend`: endpoints, CPU, IO, concurrency.
  - `database`: query shape, indexes, N+1, transactions.
  - `frontend`: bundle, render loops, hydration, assets.
  - `infra`: deploy, network, cache, limits.
- Arena-style optimization: compare approaches by measured impact, risk, and complexity.
- Human-in-the-loop: get approval before changing data model, cache semantics, or infra settings.

## Workflow

1. Define the metric and baseline.
2. Reproduce or inspect evidence.
3. Find the bottleneck with the least invasive tool available.
4. Propose 2-3 fixes with tradeoffs.
5. Implement the smallest fix.
6. Re-measure or run a focused benchmark/test.
7. Document the before/after.

## Rules

- Do not optimize without a metric.
- Avoid caching correctness bugs.
- Prefer algorithm/query fixes over hardware assumptions.
- Keep performance tests stable and bounded.
- Watch for memory and bundle-size regressions.

## Example Prompts

```text
Use performance-optimizer. Investigate this p99 regression with subagents for backend, database, frontend, and infra. No edits until evidence is summarized.
```

```text
Find the smallest measurable frontend performance win and verify it with a before/after check.
```

