/engineering-advanced-skills:performance-profilerfrom engineering-advanced-skills
Profiles Node.js, Python, and Go apps with 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.
Ships in engineering-advanced-skills. 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.
Systematic performance profiling for Node.js, Python, and Go applications. Identifies CPU bottlenecks with flamegraphs, detects memory leaks with heap snapshots, analyzes bundle sizes, optimizes database queries, detects N+1 patterns, and runs load tests with k6 and Artillery. Enforces a measure-first methodology: establish baseline, identify bottleneck, fix, and verify improvement.
Golden Rule — Measure First: Profile → Confirm bottleneck → Fix → Measure again → Verify improvement. Every optimization needs baseline metrics, profiler evidence, the fix, post-fix metrics, and a delta. Full rule in references/cpu-and-memory-profiling.md.
Before profiling, settle the inputs below. When one is missing or vague and would change the result, ask about it; when it wouldn't, use a sensible default and say which one you used.
Ask about the two or three inputs that matter most for this request, not the whole list. If the user wants a result straight away, produce it and state your assumptions at the top.
| Tool | Input (JSON) | Key flags | Exit codes |
|---|---|---|---|
scripts/benchmark_reporter.py | {"baseline": [...], "current": [...]}, each entry name, iterations, mean_ms, median_ms, min_ms, max_ms, p95_ms | --regression-threshold 5, --improvement-threshold 5, --fail-on-regression, --json | 0 report; 1 regression with --fail-on-regression; 2 unreadable input |
scripts/bottleneck_detector.py | Array or JSONL of requests: endpoint, duration_ms, optional queries (template, duration_ms) and spans (name, type, duration_ms) | --latency-threshold, --cv-threshold, --json | 0 report; 2 unreadable input |
scripts/resource_analyzer.py | Array of snapshots: timestamp plus cpu, memory, disk (number or {"percent": n}) | --cpu-threshold, --memory-threshold, --disk-threshold, --json | 0 report; 2 unreadable input |
# from engineering/performance-profiler/
python3 scripts/benchmark_reporter.py assets/sample_benchmarks.json --fail-on-regression # exit 1: parse_invoice +50%
python3 scripts/bottleneck_detector.py assets/sample_request_log.json # slow GET /orders, N+1 confirmed
python3 scripts/resource_analyzer.py assets/sample_resources.json # memory climbing all day
Load the reference that matches the task — keep this file lean and pull detail on demand:
Mistake: Optimizing before measuring. Why it matters: Intuition picks the wrong hotspot most of the time, and the change adds risk without moving the number users feel. Instead: Profile or trace first, fix the top finding, and re-measure against the same baseline.
Mistake: Comparing benchmarks run on different machines or loads.
Why it matters: Noise from hardware and contention looks like regressions or wins.
Instead: Run baseline and current on the same environment, with enough iterations, and gate CI with --fail-on-regression only on stable runners.
Mistake: Treating averages as the user experience. Why it matters: A good mean hides a slow tail, and the tail is what times out. Instead: Track p95 and p99 per endpoint, and look at variance as well as the median.
| File | Purpose |
|---|---|
scripts/benchmark_reporter.py, scripts/bottleneck_detector.py, scripts/resource_analyzer.py | Stdlib CLIs |
assets/sample_benchmarks.json | Two benchmarks: one regression (+50%), one improvement |
assets/sample_request_log.json | 30 requests with an N+1 pattern and a slow external call |
assets/sample_resources.json | 48 half-hourly snapshots with steadily rising memory |
This skill covers:
This skill does NOT cover:
engineering/observability-designerengineering/senior-devopsengineering/senior-securityengineering/senior-mobileassets/sample_benchmarks.json (opens in a new tab)assets/sample_request_log.json (opens in a new tab)assets/sample_resources.json (opens in a new tab)references/cpu-and-memory-profiling.md (opens in a new tab)references/database-and-bundle.md (opens in a new tab)references/load-testing-and-methodology.md (opens in a new tab)scripts/benchmark_reporter.py (opens in a new tab)scripts/bottleneck_detector.py (opens in a new tab)scripts/resource_analyzer.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub borghei/claude-skills --plugin engineering-advanced-skills100 skills in this plugin
/a11y-auditStatic WCAG scan of HTML files (alt text, headings, labels, ARIA, lang, landmarks) and colour contrast checks for colour pairs or CSS. Use when auditing templates for accessibility, checking contrast, or adding an a11y gate to CI.
/agent-designerDesigns multi-agent system architectures with orchestration patterns, tool schemas, and performance evaluation. Use when building AI agent systems, designing agent workflows, creating tool schemas, or evaluating agent performance.
/agent-harnessTest and evaluation harness for AI agents — scenario suites, deterministic replay, regression diffing, cost and latency budgets. Use when agent quality is vibe-checked, before shipping a prompt or model change, or when evals drift.
/agenthubRuns a multi-agent job as a dependency graph: validates the DAG, tracks each agent's state on a board, then ranks and merges their outputs. Use when spawning parallel agents, monitoring a run, or merging results.
/agentic-evaluation-frameworkBuilds LLM and agent evals: weighted rubrics, LLM-as-judge design, inter-rater agreement and pairwise ranking (Elo, Bradley-Terry) from scores you collect. Use when setting up a judge, scoring outputs, or comparing model or prompt variants.
/agent-protocolDesign AI agent communication protocols: MCP tool schemas, A2A, function calling, and inter- agent messaging. Use when building multi-agent systems, defining tool interfaces, or implementing agent-to-agent communication.
Other plugins' skills for the same job