Profiles native code using perf and flamegraphs to identify CPU stalls from cache misses, syscalls, lock contention, and allocation churn. Helps optimize systems software performance.
At the systems level, the question shifts from "which function is hot" to "why is the CPU stalled": cache misses, branch mispredicts, syscalls, lock contention, and allocator churn hide inside innocent-looking hot functions.
-O2 -g, frame pointers on or DWARF unwinding configured);
debug builds lie about what is slow, stripped builds tell you
nothing. For JIT/interpreted layers in the stack, enable their
perf-map support so mixed stacks resolve.perf record -g (or py-spy/async-profiler equivalents in mixed
stacks) under representative load, rendered as a flamegraph:
width = inclusive time. Read for the widest towers you did not
expect: serialization, logging, allocator frames (malloc wide
= allocation churn), and kernel time (sys_ frames = syscall
pressure). Fix the widest thing first (see
performance-optimization discipline).perf stat for IPC, cache-miss and branch-miss rates: IPC well
under ~1 on hot loops points at memory stalls, not instruction
count. Then perf record -e cache-misses (or perf c2c for
false sharing) to place them. The fixes are data-layout fixes:
contiguous arrays over pointer chases, struct-of-arrays for
scanned fields, hot/cold splitting, smaller working sets (see
gpu-memory-hierarchy for the accelerator analog of the same
idea).strace -c/perf trace summarize call counts: thousands of
small read/write/futex calls per second are the smell; the cures
are buffering, readv/writev, io_uring-class batching, and
caching (see io-optimization). Futex storms mean lock
contention: take the mutex profile (perf lock, TSan-adjacent
tooling) and shrink critical sections or shard the lock (see
concurrency-tuning, deadlock-analysis).pprof) show allocation
sites by rate, not just leaks: per-iteration allocations in hot
loops become buffers reused across iterations, arenas per phase
(see c-memory-safety), or value types that never hit the heap.
Allocation rate also drives GC pressure in managed runtimes
(see gc-tuning, jvm-profiling).What SKILL.md sets; muted values are Claude Code's defaults
Not loaded · from ai-skills-commands
Claude Code won't load this skill
It ships in ai-skills-commands at skills/, but Claude Code only loads skills/<name>/SKILL.md and folders listed under skills in plugin.json. Installing the plugin doesn't add it.
npx claudepluginhub amey-thakur/ai-skills --plugin ai-skills-commands1,000 skills in this plugin
/ab-test-designDesign product experiments with real hypotheses, honest sample-size math, guardrails, and peeking discipline. Use when validating a change by experiment or reviewing a test before believing its result./accessibility-reviewAudit a UI for real accessibility, keyboard-first, with concrete failures and fixes rather than checkbox compliance. Use when reviewing or building any user interface./accessibility-specialist-roleOperate as an accessibility specialist who audits against WCAG, trains teams to stop shipping the same defects, and owns the compliance sign-off. Use when a product needs to be usable with a keyboard, a screen reader, or magnification and someone must certify it before launch.Other plugins' skills for the same job