Skip to content
Agentmart
Submit a tool

perf-hunt

Measure-first performance optimization.

Skill by shankarr1503

IndexedMIT
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/shankarr1503-perf-hunt

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Measure-first performance optimization. Use when something is slow, uses too much memory or CPU, times out, or when asked to optimize, speed up or scale code. Profiles to find the real bottleneck, fixes it, and proves the gain with numbers.

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/perf-hunt

What's inside

Skill name
perf-hunt
Description
Measure-first performance optimization. Use when something is slow, uses too much memory or CPU, times out, or when asked to optimize, speed up or scale code. Profiles to find the real bottleneck, fixes it, and proves the gain with numbers.
License
MIT
Instructions
51 lines in SKILL.md · view on GitHub

Files (1)

  • SKILL.md

SKILL.md (first lines)

# Perf hunt

Intuition about performance is wrong more often than right. Measure, change one thing, measure again.

## 1. Define the target

- What is slow, for whom, under what load and data size? "Endpoint p95 is 2.1 s with 10k rows; target < 300 ms."
- Build a repeatable benchmark: a script, load test or benchmark harness that reproduces the slowness with realistic data. Run it 3–5 times and record the median and spread. Warm up first for JIT runtimes.

## 2. Profile — don't guess

Use the tool for the stack, and look at where time is _actually_ spent:

- Node: `node --cpu-prof`, `--heap-prof`, clinic.js, Chrome DevTools. Browser: Performance panel, Lighthouse.
- Python: `py-spy record`, `cProfile` + snakeviz, `scalene` for memory.
- Go: `pprof` (CPU, heap, block, mutex). Rust: `cargo flamegraph`, `perf`. JVM: async-profiler, JFR.
- Databases: `EXPLAIN (ANALYZE, BUFFERS)`, slow query log, query count per request.
- Distributed: traces/spans to see which service or call dominates.

## 3. Usual suspects (check against the profile)

- **N+1 queries** and chatty network calls inside loops → batch, join, or prefetch.
- **Missing index** or a query scanning far more rows than it returns.
- **Accidental quadratic** work: nested loops over the same data, `array.includes` / list membership inside a loop, repeated string concatenation, re-sorting.
- **Repeated work**: recomputing or re-fetching the same thing → hoist, memoise, cache with a clear invalidation rule.
- **Serial I/O** that could run concurrently (with bounded concurrency).
- **Too much data**: selecting all columns, no pagination, large payloads, unbounded result sets.
- **Allocation and GC pressure** in hot loops; synchronous blocking work on an event loop.
- Frontend: bundle size, render waterfalls, unnecessary re-renders, layout thrashing, unoptimised images.

## 4. Change one thing, re-measure

- Fix the biggest bottleneck first; Amdahl's law says shaving 5% elsewhere is noise.
- Re-run the same benchmark. Keep the change only if the gain is clearly beyond run-to-run variance.
- Run the test suite — fast and wrong is a regression.
- Stop when the target is met. Further micro-optimisation costs readability.

## Report

```
Target:     <metric and goal>
Baseline:   <median ± spread, how measured>
Bottleneck: <what the profile showed, with evidence>
Change:     <what you changed>
Result:     <new median ± spread>  (<x>× faster / <y>% less memory)
Trade-offs: <memory, complexity, staleness from caching, etc.>
```

No numbers, no claim. "Should be faster" is not a result.

From shankarr1503/omnistack, MIT.

More from shankarr1503/omnistack

Signals

Stars
0
Forks
0
Open issues
0
Last commit (this folder)
Oct 7, 2026 (22 days ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from shankarr1503

Cite this page

perf-hunt skill. Agent Mart. https://agentmart.dev/skills/shankarr1503-perf-hunt (last updated 2026-10-24)