Skills DirectorySkills Directory
SkillsLearnSecurityCategoriesDocsBlogPro
Sign InSubmit Skill
Skills Directory

Security-tested agent skills for Claude, coding agents, and AI workflows.

Directory

  • Browse Skills
  • All Skills A–Z
  • Claude Skills
  • Claude Code Skills
  • Agent Skills
  • Categories
  • Authors
  • Submit a Skill

Learn

  • Learn Hub
  • Install Claude Skills
  • Write SKILL.md
  • Skills vs MCP
  • Directories Compared

Security

  • Security
  • Methodology
  • Secure Claude Skills
  • Security Badges
  • Chrome Extension
  • Skill Manager

Company

  • About
  • Community
  • Blog
  • API Docs
  • Advertise

2026 Skills Directory. All rights reserved.

ProTermsPrivacyRefunds
Back to skills

Performance Pro

ASecurity

Systematic performance engineering: measure, profile, optimize hotspots, and set budgets. Use when diagnosing slowness or making systems faster.

2 stars
0 votes
0 copies
0 views
Added 9/29/2026
ai-agentsgoshellapifrontendperformance

Works with

cliapi

Security Analysis

A100/100

Scanned 9/29/2026

$npx -y skills add aicodedecode/awesome-muse-skills --skill performance-pro --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Performance Pro?

Add the live security badge to your README — it updates automatically with every re-scan.

Security grade badge for Performance Pro
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/aicodedecode-performance-pro/badge)](https://www.skillsdirectory.com/skills/aicodedecode-performance-pro)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
Files
SKILL.md
---
name: performance-pro
description: Systematic performance engineering: measure, profile, optimize hotspots, and set budgets. Use when diagnosing slowness or making systems faster.
category: development
---

# Performance Pro

## Overview

Performance work is **measurement-driven**: profile first, optimize the hotspot, verify the gain —
never optimize from intuition. Most "slow code" is actually slow *architecture* (N+1 queries,
chatty APIs, missing indexes, serial execution of parallelizable work), and most micro-optimizations
are noise. This skill covers the systematic approach: defining targets, finding real bottlenecks,
fixing them at the right level, and preventing regression.

The through-line: measure → find the bottleneck → fix at the highest-leverage level → lock it in.

## When to use

- Diagnosing slow endpoints, pages, or batch jobs.
- Setting performance targets and budgets.
- Reviewing code for performance risks.
- Capacity planning or cost optimization.
- Preventing performance regressions in CI.

## Core concepts

- **Define the target first.** "Fast" is not a requirement — "p99 < 300ms at 1000 rps" is. Get
  the SLO/SLA in numbers before touching code; otherwise you can't know when you're done (or if
  the work was worth it).
- **Profile, don't guess.** CPU profilers (flame graphs), memory profilers, query analyzers
  (EXPLAIN), network waterfalls — the bottleneck is *never* where intuition says. Rule of thumb:
  the top frame of the flame graph is where the time goes; everything else is commentary.
- **Levels of optimization (highest leverage first).**
  1. *Algorithmic* — O(n²) → O(n log n); the 100x wins live here.
  2. *Architectural* — kill N+1s, batch APIs, add caching, parallelize independent work.
  3. *Data access* — indexes, query shapes, denormalization for read hotspots.
  4. *Resource* — connection pools, memory allocation, payload sizes.
  5. *Micro* — loop tweaks, branch prediction — only with profiler evidence, last.
- **Latency vs throughput.** Different goals, different fixes. Latency: reduce work per request,
  parallelize, cache. Throughput: batching, connection reuse, async pipelines, horizontal scale.
  Know which you're optimizing — they often trade off.
- **Caching as architecture.** What to cache (expensive, slowly-changing, frequently-read),
  where (CDN, app, DB query cache), invalidation strategy (TTL, event-driven, versioned keys),
  and the thundering-herd plan (stale-while-revalidate, request coalescing). Cache invalidation
  remains one of the two hard problems — design it, don't improvise it.
- **Budgets prevent regression.** Performance budgets (bundle size, p99 latency, query count per
  request) enforced in CI. Without budgets, every feature ships a little slower and nobody notices
  until users do.

## Practical workflow

1. **Quantify.** Reproduce the slowness with a benchmark; record baseline numbers (p50/p99, not
   averages — averages hide tails). Define the target.
2. **Profile the real workload.** Production-like data volume and concurrency — toy benchmarks
   lie. Flame graphs for CPU, EXPLAIN ANALYZE for queries, waterfall for frontend.
3. **Find the bottleneck.** The single biggest time consumer. Fix *it*, not the five small things
   around it. Amdahl's law: optimizing 5% of runtime 10x gains 4.5% — find the 80%.
4. **Fix at the highest level.** Algorithmic/architectural first: can this be O(n)? batched?
   cached? parallel? Only then descend to micro-optimization.
5. **Verify with numbers.** Same benchmark, before/after, statistical significance (run multiple
   times — noise is real). Document the gain in the commit.
6. **Lock it in.** Add the benchmark to CI with a budget; alert on regression. Performance without
   a ratchet decays.

Common fixes by symptom:

```text
Slow endpoint, DB-heavy flame graph → EXPLAIN the queries; N+1? missing index?
  → eager load / add index / denormalize read model
High tail latency (p99 >> p50)      → GC pauses? retry storms? downstream timeouts?
  → tune GC, add timeouts, cache the slow dependency
Slow page load                      → waterfall: what blocks first paint?
  → defer non-critical JS, preload critical assets, SSR the shell
Batch job too slow                  → profile: usually I/O-bound or single-threaded
  → parallelize chunks, batch DB writes, stream instead of load-all
Memory climbing                     → heap profile: what's retained?
  → fix caches without bounds/TTL, close resources, stream large payloads
```

## Common pitfalls

- **Optimizing without profiling.** "This loop looks slow" — meanwhile 95% of time is a missing
  DB index. Intuition about bottlenecks is reliably wrong; the profiler is reliably right.
- **Averages hiding tails.** "Average 100ms" with p99 at 5s — users feel the tail. Always look
  at percentiles.
- **Premature optimization.** Caching, pooling, and sharding before there's a measured problem —
  complexity without benefit. Make it work, make it right, *then* make it fast (with data).
- **Micro-optimizing the 5%.** Shaving cycles off a function that's 2% of runtime while ignoring
  the N+1 query that's 70%. Amdahl's law is undefeated.
- **Caching without invalidation design.** "Just cache it" → stale data bugs, thundering herds
  on expiry, unbounded memory. Cache deliberately or don't cache.
- **Benchmarking toys.** Optimizing against 10 rows when production has 10 million — different
  algorithms win at different scales. Benchmark at production shape.
- **No regression guard.** The optimization lands, then six months of features erode it. Budgets
  in CI or the win was temporary.

Attribution

aicodedecodeaicodedecode
View sourceSee grades on GitHubMore from aicodedecode →
SSkills DirectorySkills Directory

Ship a skill? Prove it's safe.

Free 120-pattern security scan, letter grade, and an embeddable README badge.

Submit a skill

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments (0)

No comments yet. Be the first to comment!

SSkills DirectorySkills Directory

Ship a skill? Prove it's safe.

Free 120-pattern security scan, letter grade, and an embeddable README badge.

Submit a skill

Related Skills

Caveman

Terse caveman voice: answer first, fluff gone, every technical fact kept. Use for /caveman, "caveman mode", "talk like caveman", "be brief", "less tokens". Stays on until "stop caveman" or "normal mode".

1100021 votes

Hyperplan

Adversarial multi-agent planning skill. Self-orchestrates 5 hostile category members (unspecified-low, unspecified-high, deep, ultrabrain, artistry) via team-mode for ruthless cross-critique debate, distills only the defensible insights, then MANDATORILY hands the distilled insight bundle to the `plan` agent for executable plan formalization. Use when planning needs maximum rigor and surfacing of weak assumptions, blind spots, and over-engineering. Triggers: 'hyperplan', 'hpp', '/hyperplan', ...

698621 votes

Writing Skills

Create and manage Claude Code skills in HASH repository following Anthropic best practices. Use when creating new skills, modifying skill-rules.json, understanding trigger patterns, working with hooks, debugging skill activation, or implementing progressive disclosure. Covers skill structure, YAML frontmatter, trigger types (keywords, intent patterns), UserPromptSubmit hook, and the 500-line rule. Includes validation and debugging with SKILL_DEBUG. Examples include rust-error-stack, cargo-dep...

3931 votes

Mcp Code Execution

Routes multi-tool workflows through MCP servers for large datasets and pipelines. Use when Bash tool overhead is limiting throughput on data-heavy tasks.

3421 votes

catchup

Recovers the conversation and failed tool calls of a previous Codex, Amp, Claude Code, Antigravity, Cline, Copilot CLI, Cursor, DeepSeek Harness, Grok Build, Kimi, OpenCode, Pi Agent, or ZCode session. Use when the user says "catch up", "what did the last session do", "get me up to speed", "I switched agents", asks to recover/summarize a previous session before continuing, or asks to diagnose or report a catchup failure. Do NOT use for the current conversation, git history, or any non-agent log.

741 votes
View all in ai-agents →