# performance-optimizer

This skill helps locate slow points in code, databases, and APIs, then compare measurements before and after changes. Use it when a page, query, or endpoint feels slow.

- skill · `type=skill` · Claude Code · 70 installs
- Author: davila7
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/davila7/claude-code-templates/tree/HEAD/cli-tool/components/skills/productivity/performance-optimizer
- Updated: 2026-10-24
- HTML: https://affpapa.org/en/nevibecode/skills/performance-optimizer

## What it does

The skill starts with measurements: page load, API response, database query, function runtime, or memory use. It then points to profiling options and suggests working on the slowest part first. Measure again after the change to see what improved.

Its examples cover database queries, API handlers, frontend rendering, algorithms, and memory use. They include replacing repeated lookups with a populated query, adding an index, running independent calls with `Promise.all`, and memoizing a React component. One constraint matters: the workflow relies on measurements, so changing code before identifying a bottleneck goes against its stated process.

## Install

### Claude Code (native platform)

1. **claude-code-templates**
```bash
npx claude-code-templates@latest --skill productivity/performance-optimizer
```

2. **Skills CLI (Vercel)**
```bash
npx skills add davila7/claude-code-templates --skill performance-optimizer -a claude-code
```

3. **Manually: put the files in place**
- File: `~/.claude/skills/performance-optimizer/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/performance-optimizer/

### Codex

**Manually: put the files in place**
- File: `.agents/skills/performance-optimizer/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

**Manually: put the files in place**
- File: `.cursor/skills/performance-optimizer/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install davila7/claude-code-templates performance-optimizer
```

2. **Manually: put the files in place**
- File: `.github/skills/performance-optimizer/SKILL.md`

### Gemini CLI

**Platform CLI**
```bash
gemini skills install https://github.com/davila7/claude-code-templates --path cli-tool/components/skills/productivity/performance-optimizer
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/performance-optimizer/SKILL.md` — The legacy .windsurf/skills/ path still works

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/davila7/claude-code-templates/tree/HEAD/cli-tool/components/skills/productivity/performance-optimizer

## When to use it
- trace a slow database query
- reduce API latency by running independent calls in parallel
- limit the fields returned to a client
- prevent needless component renders
- compare performance before and after a code change

## Example prompts
- Find what is slowing this page down, then measure before and after the fix.
- Check these database calls for an N+1 pattern and suggest a measured improvement.
- Profile this API handler and identify its slowest operation.

## Similar
- [mcp-builder](https://affpapa.org/en/nevibecode/skills/mcp-builder.md) — skill · 130949 installs
- [claude-api](https://affpapa.org/en/nevibecode/skills/claude-api.md) — skill · 74198 installs
- [lark-im](https://affpapa.org/en/nevibecode/skills/lark-im.md) — skill · 472900 installs
- [lark-event](https://affpapa.org/en/nevibecode/skills/lark-event.md) — skill · 466800 installs
- [caveman-discover](https://affpapa.org/en/nevibecode/skills/caveman-discover.md) — skill · 104400 installs
- [migration](https://affpapa.org/en/nevibecode/skills/migration.md) — skill · 103900 installs

From the same set: [davila7/claude-code-templates](https://affpapa.org/en/nevibecode/by/davila7/claude-code-templates.md) — 804 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
