Skip to content
Skills Library
Programming · Analysis

perf

/perf

Use for dedicated performance profiling — wall time, CPU, memory, allocation, query count, network. Different from /optimize (which assumes a target). Perf measures + reports; optimize fixes.

Repository
sift-coder ↗
Licence
MIT
Last repository change
03.06.2026

Assessment and security

100/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
1
Scripts
0
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 03.06.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What it does and when to use it

Use for dedicated performance profiling — wall time, CPU, memory, allocation, query count, network. Different from /optimize (which assumes a target). Perf measures + reports; optimize fixes.

Original author description

Use for dedicated performance profiling — wall time, CPU, memory, allocation, query count, network. Different from /optimize (which assumes a target). Perf measures + reports; optimize fixes.

How it works

  1. When this differs from /optimize
  2. Method
  3. Output shape
  4. Rules
  5. Anti-patterns
  6. When NOT to use
  7. Subagent dispatch
  8. Value over native CC
Original SKILL.md headings · 92 lines, 452 words
SKILL.md preview
---
name: perf
description: Use for dedicated performance profiling — wall time, CPU, memory, allocation, query count, network. Different from /optimize (which assumes a target). Perf measures + reports; optimize fixes.
---

# perf

Dedicated performance measurement. Different from `/optimize` — perf produces a baseline + report; optimize uses that baseline to drive a fix.

## When this differs from /optimize

- `/perf` — measure + report; no code changes
- `/optimize` — measure + improve + verify (uses perf as input)

Use `/perf` first when you don't yet have a baseline. Use `/optimize` after.

## Method

1. **Pick metric.** Wall-time | CPU-time | memory | allocations | query count | network calls | latency p95 — pick the one that matters.
2. **Pick reproducible workload.** Synthetic test, real prod-shaped input, load-test scenario. **Same inputs every run** is non-negotiable.
3. **Pick tool per stack:**
   - Node: `--prof`, `clinic.js`, `0x`, `autocannon` (HTTP)
   - Python: `cProfile`, `py-spy`, `scalene`, `locust`
   - Go: `pprof`, `vegeta`, `hey`
   - Rust: `cargo flamegraph`, `criterion`
   - Browser: DevTools Performance, Lighthouse
   - Salesforce: debug log analysis (`/sf-debug parse`)
   - SQL: `EXPLAIN ANALYZE`
4. **Run multiple iterations.** Single-run numbers lie. Minimum N=5; report p50, p95, p99.
5. **Identify hotspots.** Top 5 functions / queries / endpoints by self-time or contribution.
6. **Capture baseline to memory** so future perf runs detect regression.

## Output shape

```
Workload:    <description, deterministic inputs>
Iterations:  N=10
Tool:        <profiler used>

Metrics:
  Wall p50:    142 ms
  Wall p95:    310 ms
  Wall p99:    520 ms
  CPU avg:     78%
  RSS peak:    245 MB
  Allocs/op:   18,400

Hotspots (top 5 by self-time):
  1. parseRequest         42% — src/server/parse.ts:88
  2. validateSchema       18% — src/schema/validate.ts:120
  3. <fn>                 12%
  4. <fn>                  8%
  5. <fn>                  5%

Query count (if applicable):
  N+1 detected:    yes — at src/users/list.ts:34 (200 queries for 1 list endpoint)

Recommendations:
  - Run /siftcoder:optimize on parseRequest (highest hotspot)
  - Fix N+1 at users/list.ts (cheap win)
  - Cache schema validation results (validateSchema is pure)

Baseline captured: <memory id>
```

## Rules

- **Multiple iterations always.** Single-run = noise.
- **Same inputs every run** for comparability.
- **Pick the metric that matters** — don't dump all of them.
- **Pareto rule** — top 5 hotspots cover usually 80%+ of cost.
- **Baseline captured to memory** so trend over time is visible.

## Anti-patterns

- "Faster" without numbers
- Single-run measurements
- Profiling in dev with debug builds (production-shape required)
- Mixing profiling with optimisation in the same pass (separate concerns)

## When NOT to use

- Already have baseline + target — `/optimize` skill
- Pure latency at edge — needs synthetic load testing, not local profiler
- Salesforce-specific perf — `/sf-debug parse` is more targeted

## Subagent dispatch

- `Bash` for profiler invocation
- `general-purpose` for hotspot synthesis
- Memory MCP for baseline + trend

## Value over native CC

CC will discuss performance. CC won't naturally insist on tool-per-stack, multi-iteration, deterministic-workload, top-N-hotspot-Pareto discipline. The discipline IS the value.

Versions

RepositoryScoreLicence
This page · ialameh/sift-coder100MIT
duronext/jig100MIT
dxos/dxos100Apache-2.0
anilsoylu/famiglia100Apache-2.0
jisuzzzz/haechi100MIT
oliver-kriska/claude-elixir-phoenix100MIT
8beeeaaat/touchdesigner-mcp100MIT
8beeeaaat/touchdesigner-mcp100MIT
htlin222/dotfiles100MIT

Database snapshot: 13.11.2026 · package version 5beed3740dc8 (SHA-256 digest of the entire package)

Downloads in the last 30 days: 4 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 100linux-perf
    Linux perf profiler skill for CPU performance analysis. Use when collecting sampling profiles with perf record, generating perf report, measuring hardware counters (cache misses, branch mispredicts, IPC), identifying hot functions, or feeding perf data into flamegraph tools.…
  • 100profiling-application-performance
    Execute this skill enables AI assistant to profile application performance, analyzing cpu usage, memory consumption, and execution time. it is triggered when the user requests performance analysis, bottleneck identification, or optimization recommendations. the... Use when…
  • 100profiling-application-performance
    Execute this skill enables AI assistant to profile application performance, analyzing cpu usage, memory consumption, and execution time. it is triggered when the user requests performance analysis, bottleneck identification, or optimization recommendations. the... Use when…
  • 100systems-profiling
    Profile native code with perf and flamegraphs, then read cache, syscall, and allocation behavior to find the real bottleneck. Use when optimizing systems software or explaining why fast code is slow.
  • 100plan-perf-audit
    Plan-only performance audit across web, mobile, backend, and data; measures first, fixes nothing. Use when "performance audit plan", "perf burndown", "measure before optimize", or "N+1 audit plan". Apply fixes → audit-performance.
  • 100performance-profiler
    Performance profiling for Node.js, Python, and Go: CPU flamegraphs, memory leak detection, bundle analysis, query optimization, and k6 load testing. Use when diagnosing slow endpoints, memory growth, large bundles, or traffic spikes.

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.