AgentStack
SKILL verified CC0-1.0 Self-run

Audit Perf

skill-jhostalek-dotclaude-audit-perf · by JHostalek

Use when auditing and fixing performance hot paths in a scope — N+1 queries, overfetching, wasted recomputation, blocking hot paths, unbounded growth. Triggers on "audit performance", "fix slow paths", "check for N+1", "performance review".

No reviews yet
0 installs
16 views
0.0% view→install

Install

$ agentstack add skill-jhostalek-dotclaude-audit-perf

✓ scanned · ✓ verified — works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

Are you the author of Audit Perf? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

!cat ~/.claude/skills/audit-workflow.md

Run as the perf dimension. Goal: surface work the runtime does more than once when once suffices, or at O(N) cost when O(1) is available — then fix or gate it.

Find code doing unnecessary work. Patterns that pay:

  • N+1 — one call per item where one batched call suffices
  • Overfetching — full objects loaded when IDs or counts suffice; unbounded queries w/o pagination
  • Wasted recomputation — derived data recalculated every call; in React, re-renders from unstable refs or missing memoization where deps are stable
  • Blocking hot paths — synchronous I/O inside request handlers or render paths
  • Unbounded growth — in-memory collections w/o a cap

Fix concrete patterns visible in the code, not "might be slow under load." Apply UI lenses only when UI exists; weigh cache layers only when one would land on a hot path.

Auto-fix behavior-preserving moves: batch the loop, add memo w/ stable deps, paginate the query, move blocking I/O off hot path, cap unbounded collection. State per-fix impact concretely — "O(N) queries → O(1)", "re-renders on every keystroke → memoized." Architectural changes (cache tier, index, transport swap, schema denormalization) → sign-off: name the hot path, sketch the change, surface it.

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet — be the first.

Versions

  • v0.1.0 Imported from the upstream source.