performance-engineer-skill/SKILL.md
Expert in system optimization, profiling, and scalability. Specializes in eBPF, Flamegraphs, and kernel-level tuning.
npx skillsauth add 404kidwiz/claude-supercode-skills performance-engineerInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Provides system optimization and profiling expertise specializing in deep-dive performance analysis, load testing, and kernel-level tuning using eBPF and Flamegraphs. Identifies and resolves performance bottlenecks in applications and infrastructure.
What is the bottleneck?
│
├─ **CPU High?**
│ ├─ User Space? → **Language Profiler** (pprof, async-profiler)
│ └─ Kernel Space? → **perf / eBPF** (System calls, Context switches)
│
├─ **Memory High?**
│ ├─ Leak? → **Heap Dump Analysis** (Eclipse MAT, heaptrack)
│ └─ Fragmentation? → **Allocator tuning** (jemalloc, tcmalloc)
│
├─ **I/O Wait?**
│ ├─ Disk? → **iostat / biotop**
│ └─ Network? → **tcpdump / Wireshark**
│
└─ **Latency (Wait Time)?**
└─ Distributed? → **Tracing** (OpenTelemetry, Jaeger)
| Tool | Language | Best For | |------|----------|----------| | K6 | JS | Developer-friendly, CI/CD integration. | | Gatling | Scala/Java | High concurrency, complex scenarios. | | Locust | Python | Rapid prototyping, code-based tests. | | Wrk2 | C | Raw HTTP throughput benchmarking (simple). |
Red Flags → Escalate to database-optimizer:
Goal: Identify which function is consuming 80% CPU.
Steps:
Capture Profile (Linux perf)
# Record stack traces at 99Hz for 30 seconds
perf record -F 99 -a -g -- sleep 30
Generate Flamegraph
perf script > out.perf
./stackcollapse-perf.pl out.perf > out.folded
./flamegraph.pl out.folded > profile.svg
Analysis
profile.svg in browser.json_parse is 40% width → Optimize JSON handling.Goal: Improve Frontend responsiveness (Core Web Vital).
Steps:
Measure
Identify
Optimize
await new Promise(r => setTimeout(r, 0)) or scheduler.postTask().Goal: Fix "Laggy Click" (INP > 200ms) on a React button.
Steps:
Identify Interaction
click handler duration.Break Up Long Tasks
async function handleClick() {
// 1. UI Update (Immediate)
setLoading(true);
// 2. Yield to main thread to let browser paint
await new Promise(r => setTimeout(r, 0));
// 3. Heavy Logic
await heavyCalculation();
setLoading(false);
}
Verify
Web Vitals extension. Check if INP drops below 200ms.What it looks like:
map() with a complex for loop because "it's faster" without measuring.Why it fails:
Correct approach:
What it looks like:
Why it fails:
Correct approach:
What it looks like:
Why it fails:
Correct approach:
Scenario: Production API experiencing 80% CPU utilization causing latency spikes.
Investigation Approach:
Key Findings: | Function | CPU % | Optimization Action | |----------|-------|-------------------| | json_serialize | 35% | Switch to binary format | | crypto_hash | 25% | Batch hashing operations | | regex_match | 20% | Pre-compile patterns |
Results:
Scenario: Distributed system with 15 services experiencing end-to-end latency issues.
Investigation Approach:
Trace Analysis:
Service A (50ms) → Service B (200ms) → Service C (500ms) → Database (1s)
↑
Connection pool exhaustion
Resolution:
Results:
Scenario: E-commerce platform preparing for Black Friday traffic (10x normal load).
Load Testing Approach:
Load Test Results: | Virtual Users | RPS | P95 Latency | Error Rate | |---------------|-----|--------------|------------| | 1,000 | 500 | 150ms | 0.1% | | 5,000 | 2,400 | 280ms | 0.3% | | 10,000 | 4,800 | 550ms | 1.2% | | 15,000 | 6,200 | 1.2s | 5.8% |
Capacity Recommendations:
Profiling:
Load Testing:
Optimization:
development
Expert in automating Excel workflows using Node.js (ExcelJS, SheetJS) and Python (pandas, openpyxl).
content-media
Expert in designing durable, scalable workflow systems using Temporal, Camunda, and Event-Driven Architectures.
tools
Use when user needs WordPress development, theme or plugin creation, site optimization, security hardening, multisite management, or scaling WordPress from small sites to enterprise platforms.
tools
Expert in Windows Server, Active Directory (AD DS), Hybrid Identity (Entra ID), and PowerShell automation.