Performance Profiler

Systematic performance profiling for Node.js, Python, and Go applications.

Development / Engineeringdevelopmentengineering
by AgentVoltv1.0.0Published 1y ago2 installs
Free to sign up · every skill included with AgentVolt Pro

Before & after

Same prompt, same agent — the only difference is the skill.

PromptMy Node.js API endpoint is slow, profile it and find bottlenecks
Beforegeneric AI agent
Node performance issues can come from a lot of places—CPU, memory, I/O, database queries, all of that. I'd recommend starting by checking your server logs for error patterns, then maybe using a profiler to see where time is actually being spent. You could also look at database query performance if you're doing data operations. But without seeing the actual code or metrics, it's hard to know where to start. Do you have access to any monitoring data?
Afterwith Performance Profiler
PERFORMANCE PROFILING REPORT

BASELINE METRICS
• Endpoint: GET /api/user/:id/analytics
• Current latency: 2,847ms (p95)
• Requests per second: 12
• Memory usage: 280 MB (heap)
• Error rate: 0.3%

PROFILING RESULTS

CPU FLAMEGRAPH ANALYSIS
Hotspots identified:
1. Database query executor: 42% of time
   → SELECT * query fetching 150k+ rows unnecessarily
   → Missing index on user_id + date columns
2. JSON serialization: 28% of time
   → Stringifying entire user object (1000+ fields)
3. Authentication middleware: 18% of time
   → Token verification running on every field resolver
4. Other overhead: 12%

MEMORY PROFILING
• Heap snapshots show 45 MB leaking per 1000 requests
• Root cause: Cached query results never cleared
• Event emitter listeners stacking (900+ listeners on single event)

DATABASE QUERY ANALYSIS
• Slow query: 2.1 seconds average (SELECT * from users)
• Query plan shows full table scan (no index used)
• Missing index on user_id would reduce to 8ms
• N+1 problem: 156 queries per request (should be 4)

BUNDLE SIZE & LOAD TIME
• Initial bundle: 2.8 MB (unoptimized)
• Tree-shaking opportunities: 420 KB unused code
• Parse time: 340ms on cold start

BEFORE & AFTER OPTIMIZATION
Before: 2,847ms p95 latency | 280 MB heap | 12 RPS

Optimization plan:
1. Add database index on user_id + date (reduces query to 8ms)
2. Implement query result caching (60-second TTL)
3. Lazy-load user fields (fetch only needed 20 fields)
4. Remove duplicate token verification middleware
5. Enable tree-shaking in bundle (remove 420 KB unused code)

Expected After: 240ms p95 latency | 120 MB heap | 95 RPS
Improvement: 91% latency reduction, 57% memory reduction

About this skill


name: performance-profiler description: Use when Systematic performance profiling for Node.js, Python, and Go applications.

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, runs load tests with k6 and Artillery. Always measures before and after. Use when investigating a slow endpoint, planning a performance budget, or hunting a memory leak in production.

What you get

  • Public GitHub repo (alirezarezvani/claude-skills)
  • the performance-profiler skill folder with SKILL.md. Part of a 337-skill / 30-agent / 70-command install.

Customize your output

  • Fork the repo and adapt the skill's instructions and references to your workflow.

Example output

Activates automatically when your request matches Performance Profiler; chains with the other skills, agents, and commands in the collection.

Best for

Creators, builders, and teams using Claude Code.

SKILL.md preview

SKILL.md
---
name: performance-profiler
description: Systematic performance profiling for Node.js, Python, and Go applications.
version: 1.0.0
category: Development / Engineering
author: AgentVolt
license: proprietary
tags:
  - development
  - engineering
---

# Performance Profiler

Profiles Node.js, Python, and Go apps systematically — CPU, memory, I/O — and always measures before and after, so a fix is proven rather than assumed.

## When to use

… (sign up to view the full skill)
Sign up to view, copy, and install the full skill

Featured in

More development skills

View all Development skills →