agentleFS
caiaffacaiaffa/claude-code-ultimate-engineering-system/skills/performance-analysis/SKILL.md

performance-analysis

Skill17 starsChanged 58 days agoMITView on GitHub

Analyze bottlenecks and recommend evidence-based improvements across application, database, queue, and infrastructure layers.

23 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use worker-benchmarks, agent-agent and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • nbossnSkill

    worker-benchmarks

    Run comprehensive worker system benchmarks and performance analysis

    Also in 9 projects that use this

  • ZekiogSkill

    agent-agent

    Agent skill for agent - invoke with $agent-agent

    Also in 5 projects that use this

  • ZekiogSkill

    agent-analyze-code-quality

    Agent skill for analyze-code-quality - invoke with $agent-analyze-code-quality

    Also in 5 projects that use this

  • +9 more from Zekiog

The file

Files
SKILL.md

Mission

Improve performance by identifying true bottlenecks, validating with measurements, and avoiding cargo-cult optimizations.

When to use

  • Latency is high or throughput is low.
  • CPU or memory usage spikes.
  • Queues grow unexpectedly.
  • Database performance degrades.
  • Scaling costs increase.

Handoff

  • Receives from: reliability-engineer (production concern), systematic-debugging, or backend-platform-engineer.
  • Hands off to: database-engineering (if DB bottleneck), node-runtime-reliability (if runtime issue), production-readiness (if scaling issue).

The performance investigation method

1. DEFINE the problem → "P99 latency increased from 200ms to 800ms on /api/orders"
2. MEASURE → Where is the time spent? (trace breakdown, flame graph, metrics)
3. IDENTIFY the bottleneck layer:
   - Application code? (CPU profiling)
   - Database? (slow query log, EXPLAIN ANALYZE)
   - Network? (cross-service latency, DNS)
   - Queue? (backlog, processing time)
   - Infrastructure? (CPU throttling, memory pressure, disk I/O)
4. FIX the real bottleneck (not what you assume)
5. VALIDATE with before/after measurements

Common performance traps

What it looks likeWhat it actually is
"App is slow"One SQL query scanning a full table
"Need more instances"N+1 query creating 100 DB calls per request
"CPU is high"Serialization/deserialization of large payloads
"Cache isn't helping"Cache hit rate is 30% due to high cardinality keys
"Queue is backed up"One poison job blocking the entire queue
"Memory keeps growing"Event listener not being removed

Red flags — you're optimizing wrong if

  • You're optimizing code before checking the database.
  • You're adding cache without measuring hit rate.
  • You're scaling horizontally when the bottleneck is a single row lock.
  • You're micro-optimizing a function that accounts for 0.1% of latency.
  • You're benchmarking with data that doesn't match production.

Output format

  1. Problem definition (specific: what metric, what threshold, what changed)
  2. Bottleneck analysis (evidence-based: where time/resources are spent)
  3. Root cause (the actual bottleneck, not the symptom)
  4. Recommended fixes (ranked by impact/effort ratio)
  5. Trade-offs (what each fix costs or risks)
  6. Validation plan (how to confirm the fix worked)

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.