Skip to content
Skillpedia
General coding29k Β· #9595

performance-profiler

What it does

This skill helps find performance problems in Node.js, Python and Go apps, such as slow pages, memory leaks and large bundles. It is for developers who want to fix speed issues based on measurements.

When to use it

  • βœ“When an endpoint or page is slow and you do not know the cause.
  • βœ“When memory use keeps growing over time in an app.
  • βœ“When your web app bundle got much bigger after adding packages.

Skill link

https://github.com/alirezarezvani/claude-skills/blob/main/engineering/skills/performance-profiler/SKILL.md

Copy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.

How to use

The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.

Ready-to-paste message

Use this skill to help me: https://github.com/alirezarezvani/claude-skills/blob/main/engineering/skills/performance-profiler/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
Want your AI to find skills like this on its own?Install the free Skillpedia MCP: one line, and it searches 15,000+ skills before each task.Install in 1 minute β†’

Example of what to ask your AI

β€œOur checkout endpoint is slow. Find the bottleneck and measure the change after we fix it.”

5 new skills a week. 1 minute to read.

How it works

It measures the app first, looks for common slow spots like heavy queries or CPU use, makes a change, and then measures again to confirm the improvement.

Technical content (original SKILL.md)

Original text by the author, straight from GitHub.

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

FAQ

Which languages does it support?

It supports Node.js, Python and Go applications.

Can it test how the app handles lots of users?

Yes, it can write and run load tests with k6 and Artillery.

Does it only guess at problems?

No, it measures before and after each change so you can see the real effect.

Details

Original description by the author

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.

repo: alirezarezvani/claude-skills

Popularity

GitHub stars
29k
Ranking position
#9595
License
MIT
Updated
11/2/2026

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills