perf-profiling

perf-profiling is a skill for Claude Code from nguyenthienthanh/aura-frog. It costs 107 tokens per session (2,185 once invoked), scanned A, original, MIT.

A guide for measuring and improving application performance across the frontend, backend, and database.

In plain words
What is it for?
It covers profiling, realistic-load benchmarks, slow queries, code splitting, asynchronous work, and indexing.
Why use it?
It helps replace guesswork with measurements that show where slow responses, high resource use, or memory leaks come from.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Not installable on its own: it reads a path above its own folder, which only exists inside its repository. The line is Human-readable explanation: see [docs/architecture/HIERARCHICAL_PLANNING.md](../../../docs/architecture/HIERARCHICAL_PLANNING.md).

Part of the aura-frog plugin — 43 skills, 24 commands, 15 agents, 10 hooks, 6 MCP servers shipped together

Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add nguyenthienthanh/aura-frog
Claude Code
/plugin install aura-frog

Made for: Claude Code.

Or install aura-frog, the plugin that ships this one along with the rest of its 43 skills, 24 commands, 15 agents, 10 hooks, 6 MCP servers.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for perf-profiling

README.md
[![agentmods](https://agentmods.dev/badge/skills/nguyenthienthanh/aura-frog/perf-profiling.svg)](https://agentmods.dev/skills/nguyenthienthanh/aura-frog/perf-profiling)
Your own site
<a href="https://agentmods.dev/skills/nguyenthienthanh/aura-frog/perf-profiling"><img src="https://agentmods.dev/badge/skills/nguyenthienthanh/aura-frog/perf-profiling.svg" alt="Measured on agentmods" height="20"></a>
Per session 107 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,185 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00107 $0.02185
Opus 5 $0.00053 $0.01092
Sonnet 5 $0.00021 $0.00437
Haiku 4.5 $0.00011 $0.00218

Measured 2d ago against content hash 69ff465711d0, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

perf-profiling scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

aura-frog/skills/perf-profiling/SKILL.md · 222 lines

How it starts

The opening of the file, as written. The whole thing — 222 lines — stays where its author put it; the contents beside it link to each section on GitHub.

AI-consumed reference. Optimized for Claude to read during execution. Human-readable explanation: see docs/architecture/HIERARCHICAL_PLANNING.md or docs/getting-started/ depending on topic.

Performance Profiling

Rule 0: Don't optimize what you haven't measured. Almost all "obvious" optimizations are wrong.


The Protocol

Step 1 — Define "fast enough"

Performance is relative. Before optimizing:

  • Current metric (p50, p95, p99 latency / MB memory / % CPU)
  • Target metric (what's the SLO/SLA/user expectation?)
  • Gap — what needs to close

If no target → ask the user. Don't optimize without a goal — you'll polish forever.

Step 2 — Measure baseline

Use the appropriate profiler:

Language Profiler
Node.js node --prof, clinic.js, 0x
Browser JS Chrome DevTools Performance tab
Python cProfile, py-spy, memory_profiler
Go pprof (built-in)
Rust cargo flamegraph, perf
CLI hyperfine
HTTP wrk, k6, vegeta

Run the profiler under realistic load, not trivial input. Capture for 30–60s minimum — short captures miss long-tail events.

Step 3 — Analyze (flamegraph / top consumers)

Identify the top 3 functions by:

  • Self time (function's own CPU, excluding descendants)
  • Total time (self + descendants)
  • Call count (high-frequency cold functions add up)

Pareto check: Is there a clear 80/20?

  • Top function takes 50%+ of time → that's your target
  • Time spread evenly across 100 functions → hard to optimize; likely needs architectural change

Step 4 — Form optimization hypothesis

For the bottleneck:

  • What's it doing? (read the code)
  • Why is it slow? (algorithm, I/O, allocations, lock contention, cache miss)
  • What's a realistic improvement target?

Common bottleneck classes + fixes:

Bottleneck Fix
O(n²) on large n Change to O(n log n) or O(n)
Sync I/O in hot path Async, batch, or remove the I/O
Allocations in loop Pre-allocate, object pool, reuse
Redundant computation Memoize, cache result
Lock contention Lock-free structure, sharding, immutable data
Large object serialization Streaming, lazy fields, columnar format
Database N+1 Join, prefetch, dataloader pattern
Cold cache / page fault Warm up, prefetch, locality

Read the full file on GitHub · 222 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 222 lines · 107 tokens per session scan A 69ff465711d0

Subscribe to this mod's changes

perf-profiling is a skill published in the GitHub repository nguyenthienthanh/aura-frog (24 stars, last pushed yesterday), licensed MIT. It adds 107 tokens to every session and 2,185 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories

biome

Biome formatting and linting standards. Use when configuring Biome (biome.json) for fast formatting, linting, and sorting imports. NOT for Prettier or ESLint configuration. Do NOT trigger for generic formatting/linting tasks unless Biome is explicitly requested.

neverinfamous/memory-journal-mcp · 58 tokens

adversarial-performance

Multi-pass adversarial performance audit for entire repositories. Combines structured profiling (Agent A) with adversarial stress-testing critique (Agent B) through iterative passes. Optimize repo/backend performance, hot-paths, build size, and server throughput. Do NOT use for frontend page load metrics or Lighthouse…

neverinfamous/memory-journal-mcp · 86 tokens

autonomous-dev

Harness for autonomous software development. Use when fixing or remediating known issues (including security vulnerabilities). Enforces lifecycle through alignment gates (PROJECT.md), adversarial generator/evaluator agents, and autonomous orchestration of project issues. NOT for setting up standalone CI/CD pipelines.

neverinfamous/memory-journal-mcp · 58 tokens

debugger-coordinator

Use when debugging complex issues involving multiple modalities (frontend + backend, API + UI, terminal + browser). Coordinates Hermes Agent's built-in debugger, browser, terminal, and vision tools for systematic root-cause analysis.

Ow1onp/hermes-agent-skills · 48 tokens

gsd-debug

Systematic debugging with persistent state across context resets.

open-gsd/gsd-core · 13 tokens

gsd-ns-review

Route to the appropriate quality / review skill based on the user's intent. gsd-code-review-fix was absorbed by gsd-code-review --fix in #2790.

open-gsd/gsd-core · 16 tokens