# extreme-software-optimization

The extreme-software-optimization skill locates performance hot spots with measurements, then checks that changes preserve behavior. Use it for slow code, latency, throughput, or algorithm work.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode, Windsurf (Devin Desktop), Claude.ai · 286 installs · ★ 655 repo stars
- Author: pedronauck
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/pedronauck/skills/tree/HEAD/skills/curated/extreme-software-optimization/SKILL.md
- Updated: 2026-10-20
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/skills/extreme-software-optimization

## What it does

The skill structures optimization as a repeatable loop: capture a baseline, inspect runtime behavior, rank opportunities, make one change, verify the result, then measure again. It can use `hyperfine`, `cargo flamegraph`, `py-spy`, `clinic flame`, `heaptrack`, and `strace` for measurement and profiling.

Every change gets a behavior check covering ordering, tie-breaking, floating-point results, RNG seeds, and golden outputs. Checksums are handled with `sha256sum` and `golden_checksums.txt`; a change can be rolled back with `git revert <sha>`.

Its patterns include batching repeated fetches, memoization, buffer reuse, binary search, and alternate data structures. Profiling is mandatory here, so the workflow starts with measurements for p50, p95, p99, throughput, and memory.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add pedronauck/skills --skill extreme-software-optimization -a claude-code
```

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

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add pedronauck/skills --skill extreme-software-optimization -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/extreme-software-optimization/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add pedronauck/skills --skill extreme-software-optimization -a cursor
```

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

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install pedronauck/skills skills/curated/extreme-software-optimization
```

2. **Manually: put the files in place**
- File: `.github/skills/extreme-software-optimization/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add pedronauck/skills --skill extreme-software-optimization -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/pedronauck/skills --path skills/curated/extreme-software-optimization
```

### Windsurf (Devin Desktop)

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

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add pedronauck/skills --skill extreme-software-optimization -a opencode
```

### 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/pedronauck/skills/tree/HEAD/skills/curated/extreme-software-optimization/SKILL.md

## When to use it
- locate runtime hot spots
- capture latency and throughput baselines
- compare algorithmic alternatives
- verify outputs after an optimization
- detect regressions with golden files

## Example prompts
- Profile this code, rank its hot spots, and build an opportunity matrix with a Score.
- Capture a baseline, inspect the slowest path, and propose one isolated optimization.
- Optimize this function, save golden outputs, and verify them with `sha256sum -c golden_checksums.txt`.

## Similar
- [m10-performance](https://affpapa.org/en/nevibecode/skills/m10-performance.md) — skill · 4000 installs
- [go-performance](https://affpapa.org/en/nevibecode/skills/go-performance.md) — skill · 1300 installs
- [perf](https://affpapa.org/en/nevibecode/skills/perf.md) — skill · 899 installs
- [w-perf](https://affpapa.org/en/nevibecode/skills/w-perf.md) — skill · 647 installs
- [performance-analysis](https://affpapa.org/en/nevibecode/skills/autohandai-performance-analysis.md) — skill · ★ 219 repo stars
- [performance-engineer](https://affpapa.org/en/nevibecode/agents/superclaude-org-performance-engineer.md) — subagent · ★ 23950 repo stars

From the same set: [pedronauck/skills](https://affpapa.org/en/nevibecode/by/pedronauck/skills.md) — 52 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
