Performance Profiler

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.

✨ What it does

  • CPU profiling with flamegraphs for Node.js, Python, and Go
  • Memory profiling with heap snapshots and leak detection
  • Bundle analysis using webpack-bundle-analyzer and Next.js bundle analyzer
  • Database optimization with EXPLAIN ANALYZE and N+1 detection
  • Load testing with k6 and Artillery scripts
  • Before/after measurement to verify improvements

🎯 When to use it

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

🚀 How to use

Trigger by running the provided script or asking for performance profiling. The skill expects a path to a project directory. Optionally use --json for CI integration or --large-file-threshold-kb to customize. Example prompts:

python3 scripts/performance_profiler.py /path/to/project
python3 scripts/performance_profiler.py /path/to/project --json

📄 Output: A performance analysis report with risk indicators and profiling data.

📦 Add this skill to Claude Code

# 1. Get the skills repo
git clone --depth 1 https://github.com/alirezarezvani/claude-skills /tmp/claude-skills

# 2. Copy this skill into your project (or ~/.claude/skills for all projects)
mkdir -p .claude/skills
cp -r /tmp/claude-skills/engineering/skills/performance-profiler .claude/skills/performance-profiler

Skill source: engineering/skills/performance-profiler/SKILL.md

⚠️ Good to know

Requires the project to be in Node.js, Python, or Go; profiling commands may need additional tools installed.

❓ FAQ

What is the golden rule of performance profiling?

Measure first: establish a baseline before any optimization, then profile, fix, and measure again to verify improvement.

Can I integrate this skill into CI?

Yes, use the --json flag to get JSON output for CI integration.

What languages are supported?

Node.js, Python, and Go are supported.

🤖 Overview, features, install steps and FAQ were generated from the project's SKILL.md on Sep 4, 2026. Always check the original source before running commands.