Performance Profiler skill for Claude

Use for a slow endpoint, memory leak, CPU spike, large bundle or performance budget in Node.js, Python or Go, before optimizing. Measures before and after with performance_profiler.py, flamegraphs and k6 load tests.

Performance Profiler SKILL.md

The full skill file from alirezarezvani/claude-skills (MIT).

Performance Profiler

Tier: POWERFUL
Category: Engineering
Domain: Performance Engineering


Overview

Systematic performance profiling for Node.js, Python, and Go applications. Identifies CPU, memory, and I/O bottlenecks; generates flamegraphs; analyzes bundle sizes; optimizes database queries; detects memory leaks; and runs load tests with k6 and Artillery. Always measures before and after.

Core Capabilities

  • CPU profiling — flamegraphs for Node.js, py-spy for Python, pprof for Go
  • Memory profiling — heap snapshots, leak detection, GC pressure
  • Bundle analysis — webpack-bundle-analyzer, Next.js bundle analyzer
  • Database optimization — EXPLAIN ANALYZE, slow query log, N+1 detection
  • Load testing — k6 scripts, Artillery scenarios, ramp-up patterns
  • Before/after measurement — establish baseline, profile, optimize, verify

When to Use

  • App is slow and you don't know where the bottleneck is
  • P99 latency exceeds SLA before a release
  • Memory usage grows over time (suspected leak)
  • Bundle size increased after adding dependencies
  • Preparing for a traffic spike (load test before launch)
  • Database queries taking >100ms

Quick Start

# Analyze a project for performance risk indicators
python3 scripts/performance_profiler.py /path/to/project

# JSON output for CI integration
python3 scripts/performance_profiler.py /path/to/project --json

# Custom large-file threshold
python3 scripts/performance_profiler.py /path/to/project --large-file-threshold-kb 256

Golden Rule: Measure First

# Establish baseline BEFORE any optimization
# Record: P50, P95, P99 latency | RPS | error rate | memory usage

# Wrong: "I think the N+1 query is slow, let me fix it"
# Right: Profile → confirm bottleneck → fix → measure again → verify improvement

Node.js Profiling

→ See references/profiling-recipes.md for details

References

How to install Performance Profiler

Claude Code

Copy the skill into your personal skills folder (or into .claude/skills/ inside a project):

npx degit alirezarezvani/claude-skills/engineering/skills/performance-profiler#main ~/.claude/skills/performance-profiler

Codex

npx degit alirezarezvani/claude-skills/engineering/skills/performance-profiler#main ~/.codex/skills/performance-profiler

Claude.ai and Claude Desktop

Download the skill folder from GitHub, zip it, and upload it under Settings → Capabilities → Skills.

Frequently asked questions

+What does the Performance Profiler skill do?

Use for a slow endpoint, memory leak, CPU spike, large bundle or performance budget in Node.js, Python or Go, before optimizing. Measures before and after with performance_profiler.py, flamegraphs and k6 load tests.

+How do I install Performance Profiler in Claude Code?

Copy the skill folder into ~/.claude/skills/performance-profiler, for example with "npx degit alirezarezvani/claude-skills/engineering/skills/performance-profiler#main ~/.claude/skills/performance-profiler". Claude Code loads it automatically and uses it when a task matches.

+Does Performance Profiler work with ChatGPT or Codex?

Yes. Performance Profiler uses the open SKILL.md format. In Codex, put the folder in ~/.codex/skills/performance-profiler. In Claude.ai, zip the folder and upload it under Settings → Capabilities → Skills.

+Is Performance Profiler free?

Performance Profiler is published on GitHub by alirezarezvani under the MIT license, which allows free use.

Related software development skills

  1. Code Review

    Review the changes since a fixed point (commit, branch, tag, or merge-base) along two axes: Standards (does the code follow this repo's…

    mattpocock/skills★ 327k
  2. Using Agent Skills

    Discovers and invokes agent skills. Use when starting a session, or when you need to decide which skill or workflow applies to the piece of…

    addyosmani/agent-skills★ 119k
  3. Build

    Fully automate a coding task with make-plan, do, and babysit.

    thedotmack/claude-mem★ 118k
  4. Quality Documentation Manager

    Use for QMS document control: numbering, versioning, change control or 21 CFR Part 11 e-signatures.

    alirezarezvani/claude-skills★ 30k
  5. Referral Program

    Use when designing or fixing a referral, affiliate or ambassador program, before setting rewards.

    alirezarezvani/claude-skills★ 30k
  6. Report

    Summarize Playwright results. Use whenever the user asks how tests went, for a test report or status.

    alirezarezvani/claude-skills★ 30k
  7. Senior Backend

    Build and fix backend services: REST or GraphQL APIs, auth, microservices, PostgreSQL queries, migrations and load tests.

    alirezarezvani/claude-skills★ 30k
  8. Senior Fullstack

    Start a fullstack project or audit a codebase: pick a stack (Next.js, FastAPI, MERN, Django), scaffold it and score code quality.

    alirezarezvani/claude-skills★ 30k
  9. Senior Pm

    Project and portfolio management for multi-workstream programs: plans, status reports, risk registers, capacity, executive reporting.

    alirezarezvani/claude-skills★ 30k

See all software development skills →

More skills from alirezarezvani

  1. Popup Cro

    Use when creating or fixing a popup, modal, exit-intent, slide-in or banner meant to convert.

    alirezarezvani/claude-skills★ 30k
  2. Post Mortem

    Use for /c-level-agents:post-mortem, or when a decision hits its 90-day review or kill criteria.

    alirezarezvani/claude-skills★ 30k
  3. Postmortem

    Use after a failed launch, missed quarter or bad hire. Runs a blameless 5-Whys with a change register.

    alirezarezvani/claude-skills★ 30k

All skills by alirezarezvani →

Give your whole team an AI agent with skills

Cody runs managed AI agents your team can message in Slack, Teams, WhatsApp and the web, with 50+ business integrations, scheduled tasks and memory. No terminal required.