performance-engineer

404kidwiz/claude-supercode-skills · updated Apr 8, 2026

MDX-style export adds YAML metadata + attribution linking explainx.ai and this canonical listing URL.

$npx skills add https://github.com/404kidwiz/claude-supercode-skills --skill performance-engineer
0 commentsdiscussion
summary

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.

skill.md

Performance Engineer

Purpose

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.

When to Use

  • Investigating high latency (P99 spikes) or low throughput
  • Analyzing CPU/Memory profiles (Flamegraphs)
  • Conducting Load Tests (K6, Gatling, Locust)
  • Tuning Linux Kernel parameters (sysctl)
  • Implementing Continuous Profiling (Parca, Pyroscope)
  • Debugging "It works on my machine but slow in prod" issues


2. Decision Framework

Profiling Strategy

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)

Load Testing Tools

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).

Optimization Hierarchy

  1. Algorithm: O(n^2) → O(n log n). Biggest wins.
  2. Architecture: Caching, Async processing.
  3. Code/Language: Memory allocation, loop unrolling.
  4. System/Kernel: TCP stack tuning, CPU affinity.

Red Flags → Escalate to database-optimizer:

  • "Slow performance" turns out to be a single SQL query missing an index
  • Database locks/deadlocks causing application stalls
  • Disk I/O saturation on the DB server


3. Core Workflows

Workflow 1: CPU Profiling with Flamegraphs

Goal: Identify which function is consuming 80% CPU.

Steps:

  1. Capture Profile (Linux perf)

    # Record stack traces at 99Hz for 30 seconds
    perf record -F 99 -a -g -- sleep 30
    
  2. Generate Flamegraph

    perf script > out.perf
    ./stackcollapse-perf.pl out.perf > out.folded
    ./flamegraph.pl out.folded > profile.svg
    
  3. Analysis

    • Open profile.svg in browser.
    • Look for wide towers (functions taking time).
    • Example: json_parse is 40% width → Optimize JSON handling.


Workflow 3: Interaction to Next Paint (INP)

Goal: Improve Frontend responsiveness (Core Web Vital).

Steps:

  1. Measure

    • Use Chrome DevTools Performance tab.
    • Look for "Long Tasks" (Red blocks > 50ms).
  2. Identify

    • Is it hydration? Event handlers?
    • Example: A click handler forcing a synchronous layout recalculation.
  3. Optimize

    • Yield to Main Thread: await new Promise(r => setTimeout(r, 0)) or scheduler.postTask().
    • Web Workers: Move heavy logic off-thread.


Workflow 5: Interaction to Next Paint (INP) Optimization

Goal: Fix "Laggy Click" (INP > 200ms) on a React button.

Steps:

  1. Identify Interaction

    • Use React DevTools Profiler (Interaction Tracing).
    • Find the click handler duration.
  2. 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);
    }
    
  3. Verify

    • Use Web Vitals extension. Check if INP drops below 200ms.


5. Anti-Patterns & Gotchas

❌ Anti-Pattern 1: Premature Optimization

What it looks like:

  • Replacing a readable map() with a complex for loop because "it's faster" without measuring.

Why it fails:

  • Wasted dev time.
  • Code becomes unreadable.
  • Usually negligible impact compared to I/O.

Correct approach:

  • Measure First: Only optimize hot paths identified by a profiler.

❌ Anti-Pattern 2: Testing "localhost" vs Production

What it looks like:

  • "It handles 10k req/s on my MacBook."

Why it fails:

  • Network latency (0ms on localhost).
  • Database dataset size (tiny on local).
  • Cloud limits (CPU credits, I/O bursts).

Correct approach:

  • Test in a Staging Environment that mirrors Prod capacity (or a scaled-down ratio).

❌ Anti-Pattern 3: Ignoring Tail Latency (Averages)

What it looks like:

  • "Average latency is 200ms, we are fine."

Why it fails:

  • P99 could be 10 seconds. 1% of users are suffering.
  • In microservices, tail latencies multiply.

Correct approach:

  • Always measure P50, P95, and P99. Optimize for P99.


Examples

Example 1: CPU Performance Optimization Using Flamegraphs

Scenario: Production API experiencing 80% CPU utilization causing latency spikes.

Investigation Approach:

  1. Profile Collection: Used perf to capture CPU stack traces
  2. Flamegraph Generation: Created visualization of CPU usage
  3. Analysis: Identified hot functions consuming most CPU
  4. Optimization: Targeted the top 3 functions

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:

  • CPU utilization: 80% → 35%
  • P99 latency: 1.2s → 150ms
  • Throughput: 500 RPS → 2,000 RPS

Example 2: Distributed Tracing for Microservices Latency

Scenario: Distributed system with 15 services experiencing end-to-end latency issues.

Investigation Approach:

  1. Trace Collection: Deployed OpenTelemetry collectors
  2. Latency Analysis: Identified service with highest latency contribution
  3. Dependency Analysis: Mapped service dependencies and data flows
  4. Root Cause: Database connection pool exhaustion

Trace Analysis:

Service A (50ms) → Service B (200ms) → Service C (500ms) → Database (1s)
                               Connection pool exhaustion

Resolution:

  • Increased connection pool size
  • Implemented query optimization
  • Added read replicas for heavy queries

Results:

  • End-to-end P99: 2.5s → 300ms
  • Database CPU: 95% → 60%
  • Error rate: 5% → 0.1%

Example 3: Load Testing for Capacity Planning

Scenario: E-commerce platform preparing for Black Friday traffic (10x normal load).

Load Testing Approach:

  1. Test Design: Created realistic user journey scenarios
  2. Test Execution: Gradual ramp-up to target load
  3. Bottleneck Identification: Found breaking points
  4. Capacity Planning: Determined required resources

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:

  • Scale to 12,000 concurrent users
  • Add 3 more application servers
  • Increase database read replicas to 5
  • Implement rate limiting at 10,000 RPS

Best Practices

Profiling and Analysis

  • Measure First: Always profile before optimizing
  • Comprehensive Coverage: Analyze CPU, memory, I/O, and network
  • Production Safe: Use low-overhead profiling in production
  • Regular Baselines: Establish performance baselines for comparison

Load Testing

  • Realistic Scenarios: Model actual user behavior and workflows
  • Progressive Ramp-up: Start low, increase gradually
  • Bottleneck Identification: Find limiting factors systematically
  • Repeatability: Maintain consistent test environments

Performance Optimization

  • Algorithm First: Optimize algorithms before micro-optimizations
  • Caching Strategy: Implement appropriate caching layers
  • Database Optimization: Indexes, queries, connection pooling
  • Resource Management: Efficient allocation and pooling

Monitoring and Observability

  • Comprehensive Metrics: CPU, memory, disk, network, application
  • Distributed Tracing: End-to-end visibility in microservices
  • Alerting: Proactive identification of performance degradation
  • Dashboarding: Real-time visibility into system health

Quality Checklist

Profiling:

  • Symbols: Debug symbols available for accurate stack traces.
  • Overhead: Profiler overhead verified (< 1-2% for production).
  • Scope: Both CPU and Wall-clock time analyzed.
  • Context: Profile includes full request lifecycle.

Load Testing:

  • Scenarios: Realistic user behavior (not just hitting one endpoint).
  • Warmup: System warmed up before measurement (JIT/Caches).
  • Bottleneck: Identified the limiting factor (CPU, DB, Bandwidth).
  • Repeatable: Tests can be run consistently.

Optimization:

  • Validation: Benchmark run after fix to confirm improvement.
  • Regression: Ensured optimization didn't break functionality.
  • Documentation: Documented why the optimization was done.
  • Monitoring: Added metrics to track optimization impact.
how to use performance-engineer

How to use performance-engineer on Cursor

AI-first code editor with Composer

1

Prerequisites

Before installing skills in Cursor, ensure your development environment meets these requirements:

  • Cursor installed and configured on your development machine
  • Node.js version 16.0+ with npm package manager (verify with node --version)
  • Active project directory or workspace where you want to add performance-engineer
2

Execute installation command

Execute the skills CLI command in your project's root directory to begin installation:

$npx skills add https://github.com/404kidwiz/claude-supercode-skills --skill performance-engineer

The skills CLI fetches performance-engineer from GitHub repository 404kidwiz/claude-supercode-skills and configures it for Cursor.

3

Select Cursor when prompted

The CLI will show a list of available agents. Use arrow keys to navigate and space to select Cursor:

◆ Which agents do you want to install to?
│ ── Universal (.agents/skills) ── always included ────
│ • Amp
│ • Antigravity
│ • Cline
│ • Codex
│ ●Cursor(selected)
│ • Cursor
│ • Windsurf
4

Verify installation

Confirm successful installation by checking the skill directory location:

.cursor/skills/performance-engineer

Reload or restart Cursor to activate performance-engineer. Access the skill through slash commands (e.g., /performance-engineer) or your agent's skill management interface.

Security & Verification Notice

We perform automated surface-level scans (Gen AI Scanner, Socket, Snyk) during installation. These checks detect common vulnerabilities but do not guarantee complete security. Always review skill source code and verify the publisher's reputation before production use.

Skills execute code in your development environment. Always verify the publisher's identity, review recent commits, and test in isolated environments before production deployment.

List & Monetize Your Skill

Submit your Claude Code skill and start earning

GET_STARTED →

Use Cases

User Story & Requirements Generation

Create detailed user stories, acceptance criteria, and feature specs

Example

Generate user stories for 'password reset feature' with acceptance criteria, edge cases, and test scenarios

Reduce spec writing time by 50%, ensure comprehensive coverage

Competitive Analysis

Research competitors, compare features, identify gaps

Example

Analyze 5 competitor products, create feature comparison matrix, suggest differentiation opportunities

Complete competitive research in 2 hours instead of 2 days

Roadmap Prioritization

Evaluate features using frameworks (RICE, ICE, Kano) and create prioritized backlogs

Example

Score 20 feature ideas using RICE framework, generate prioritized roadmap with rationale

Make data-driven prioritization decisions faster

Stakeholder Communication

Draft PRDs, status updates, and stakeholder presentations

Example

Create executive summary of Q3 roadmap, monthly progress report, feature launch announcement

Save 3-5 hours/week on communication overhead

Implementation Guide

Prerequisites

  • Claude Desktop or compatible AI client
  • Access to product documentation and roadmap tools (Jira, Notion, etc.)
  • Understanding of product management frameworks (RICE, Jobs-to-be-Done, etc.)
  • Stakeholder contact information and communication channels

Time Estimate

30-60 minutes to see productivity improvements

Installation Steps

  1. 1.Install product management skill
  2. 2.Start with user story generation for known feature
  3. 3.Progress to competitive analysis: research 2-3 competitors
  4. 4.Use for roadmap prioritization: apply RICE/ICE scoring
  5. 5.Draft stakeholder communications and refine based on feedback
  6. 6.Build template library for recurring PM tasks
  7. 7.Share effective prompts with product team

Common Pitfalls

  • Not validating competitive research—verify facts before sharing
  • Accepting user stories without involving engineering team
  • Over-relying on frameworks without qualitative judgment
  • Not customizing outputs to company culture and communication style
  • Skipping stakeholder validation of generated requirements

Best Practices

✓ Do

  • +Validate research and competitive analysis with real data
  • +Collaborate with engineering when generating technical requirements
  • +Customize frameworks and templates to your company context
  • +Use skill for first drafts, refine with stakeholder input
  • +Document successful prompt patterns for PM tasks
  • +Combine AI efficiency with human judgment and intuition

✗ Don't

  • Don't publish competitive analysis without fact-checking
  • Don't finalize user stories without engineering review
  • Don't make prioritization decisions solely on AI scoring
  • Don't skip customer validation of generated requirements
  • Don't ignore company-specific context and culture

💡 Pro Tips

  • Provide context: company goals, constraints, customer feedback
  • Ask for alternatives: 'Show 3 ways to prioritize this roadmap'
  • Request stakeholder-specific formatting: 'Executive summary vs. engineering spec'
  • Use skill for 70% generation + 30% customization to company needs

When to Use This

✓ Use When

Use for user story writing, competitive research, roadmap prioritization, stakeholder communication, and PRD drafting. Best for reducing repetitive documentation and research work.

✗ Avoid When

Avoid for strategic product vision (requires deep customer empathy), pricing decisions (needs market and financial expertise), or when face-to-face customer discovery is more valuable than speed.

Learning Path

  1. 1Basic: user stories, feature specs, status updates
  2. 2Intermediate: competitive analysis, prioritization frameworks, PRDs
  3. 3Advanced: product strategy, go-to-market planning, OKR setting
  4. 4Expert: product vision, market positioning, business model innovation

Discussion

Product Hunt–style comments (not star reviews)
  • No comments yet — start the thread.
general reviews

Ratings

4.640 reviews
  • Dhruvi Jain· Dec 28, 2024

    performance-engineer reduced setup friction for our internal harness; good balance of opinion and flexibility.

  • Charlotte White· Dec 16, 2024

    performance-engineer is among the better-maintained entries we tried; worth keeping pinned for repeat workflows.

  • Benjamin Zhang· Nov 27, 2024

    Solid pick for teams standardizing on skills: performance-engineer is focused, and the summary matches what you get after install.

  • Diya Haddad· Nov 23, 2024

    performance-engineer has been reliable in day-to-day use. Documentation quality is above average for community skills.

  • Oshnikdeep· Nov 19, 2024

    I recommend performance-engineer for anyone iterating fast on agent tooling; clear intent and a small, reviewable surface area.

  • Henry Haddad· Nov 7, 2024

    performance-engineer fits our agent workflows well — practical, well scoped, and easy to wire into existing repos.

  • Kofi Shah· Oct 26, 2024

    We added performance-engineer from the explainx registry; install was straightforward and the SKILL.md answered most questions upfront.

  • Maya Martinez· Oct 18, 2024

    performance-engineer has been reliable in day-to-day use. Documentation quality is above average for community skills.

  • Zaid Ghosh· Oct 14, 2024

    Solid pick for teams standardizing on skills: performance-engineer is focused, and the summary matches what you get after install.

  • Ganesh Mohane· Oct 10, 2024

    Useful defaults in performance-engineer — fewer surprises than typical one-off scripts, and it plays nicely with `npx skills` flows.

showing 1-10 of 40

1 / 4