/performance:profile <command | url>from performance
Profiles slow or memory-heavy programs, scripts, and web pages to identify runtime or memory bottlenecks. Guides selection of the right profiler (samply, py-spy, hyperfine) based on whether the workload is CPU-bound or waiting.
Ships in performance. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Goal: a ranked, readable list of where the program's time or peak memory goes on the scenario the user cares about, with each entry's share of the total. Every optimization decision rests on that list, so it must come from a measurement of the real scenario.
samply: !samply --version 2>/dev/null || echo "not found. Required for native and whole-process profiles."hyperfine: !hyperfine --version 2>/dev/null || echo "not found. Needed for the wall/CPU split."bun: !bun --version 2>/dev/null || echo "not found."node: !node --version 2>/dev/null || echo "not found."agent-browser: !agent-browser --version 2>/dev/null || echo "not found. Required for web apps."py-spy: !py-spy --version 2>/dev/null || echo "not found. Needed only for Python."malloc_history: !command -v malloc_history >/dev/null && echo found || echo "not found. Needed for native memory on macOS."heaptrack: !heaptrack --version 2>/dev/null || echo "not found. Needed for native memory on Linux."When a required tool is missing and the project's own tooling does not cover its job, tell the user which one, then stop.
Look for the project's own profiling setup before recording one: profiling scripts, an environment variable that turns on a profiler, a formatter for profiler output. Use it when it meets the requirements the references below are built to meet:
When it misses some, use it for what it covers and add a profiler from the references for the rest.
Run the scenario once under hyperfine --runs 3 and compare wall time with user plus system CPU.
Profile the same scenario the benchmark measures, from the same starting state. The references call bundled scripts under <skill-dir>, which is ${CLAUDE_SKILL_DIR}. Read the reference for the program's platform:
When the question is memory, read references/memory.md for native code. Runtimes with a garbage collector have their own heap profilers in the language references.
When macOS blocks the profiler or the metric needs hardware counters, read references/linux-vm.md.
Write the ranking as a table: entry (function, process, or phase), its time or bytes at peak, and its share of the scenario's total. Name the tool and the scenario that produced it. Keep the raw profile file beside the table so the user can open it in its viewer.
A profile finds candidates. It does not show that fixing one moves the metric. Hand the list to performance:benchmark or performance:hill-climb to measure a change.
/bin/sh, /usr/bin/*). Run the program through an interpreter or binary outside those directories, or move the run into a Linux VM (references/linux-vm.md).references/browser.md (opens in a new tab)references/go.md (opens in a new tab)references/javascript.md (opens in a new tab)references/linux-vm.md (opens in a new tab)references/memory.md (opens in a new tab)references/python.md (opens in a new tab)references/rust.md (opens in a new tab)references/samply.md (opens in a new tab)references/shell.md (opens in a new tab)scripts/__snapshots__/heap-top.test.ts.snap (opens in a new tab)scripts/__snapshots__/samply-top.test.ts.snap (opens in a new tab)scripts/heap-peak.integration.ts (opens in a new tab)scripts/heap-peak.test.ts (opens in a new tab)scripts/heap-peak.ts (opens in a new tab)scripts/heap-top.test.ts (opens in a new tab)scripts/heap-top.ts (opens in a new tab)scripts/samply-top.integration.ts (opens in a new tab)scripts/samply-top.test.ts (opens in a new tab)scripts/samply-top.ts (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub bendrucker/claude --plugin performance3 skills in this plugin
/benchmarkperformance:benchmarkUse when timing a program or command, asking whether a change or version made it faster, or building a benchmark harness. To hill-climb or repeatedly optimize toward a target, use performance:hill-climb./hill-climbperformance:hill-climbUse when asked to hill-climb a program, or to make software faster or leaner (runtime, startup, throughput, memory, bundle size) through repeated measured changes, including resuming a climb from its notes file. For prompts or skills scored by an eval suite, use evals:hill-climb.Other plugins' skills for the same job