performance-audit-standard

Identifies code performance bottlenecks and applies Big O, caching, and I/O optimization patterns.

Updated Jan 1, 2026
One-click install
npx skills add https://github.com/sarkarshivaditya-lab/WellMate --skill performance-audit-standard-sarkarshivaditya-lab
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: performance-audit-standard
Source: https://github.com/sarkarshivaditya-lab/WellMate/tree/main/.engineering-skills/0xMassi-claude-skills/performance-audit-standard
Command: npx skills add https://github.com/sarkarshivaditya-lab/WellMate --skill performance-audit-standard-sarkarshivaditya-lab

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Slow code paths, quadratic algorithms, and blocking I/O degrade application performance, but finding and fixing them systematically is hard. This Skill provides a repeatable audit methodology to locate hot paths, analyze complexity, and apply proven optimization patterns. ## Core Features & Use Cases - Hot Path Identification: Locate code that runs frequently (request handlers, event processors, loops, timers) and determine its actual Big O complexity. - Anti-Pattern Fixes: Apply 12 documented fixes including Set-based membership tests, Map indexes, single-pass selection, async file I/O, singleton HTTP clients, N+1 query elimination, and database indexing. - Priority Quick-Wins Matrix: Report findings sorted by impact-to-effort ratio with estimated speedups, so teams fix the highest-value issues first. - Use Case: A Node.js API is slow under load. Run the audit to find an O(n*m) membership check in the request handler, replace it with a Set lookup, and document a 1000x improvement in the quick-wins report. ## Quick Start Audit this codebase for performance bottlenecks and report the top fixes in a priority quick-wins matrix.

Frequently Asked Questions about performance-audit-standard

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I find performance bottlenecks in my code?▼

Identify hot paths first: request handlers, event processors, loop bodies, and timers that run frequently. Then determine the actual Big O complexity of each path and use profilers like node --prof, cargo flamegraph, or pprof to confirm before optimizing.

How to fix slow array lookups in JavaScript?▼

Replace O(n) array.includes() or array.find() calls with Set.has() or Map.get() for O(1) lookups. Build the Set or Map once outside the loop, turning O(n*m) operations into O(n+m), which can yield 1000x speedups on large collections.

What causes N+1 database queries and how to fix them?▼

N+1 queries happen when code fetches a list then queries details per item in a loop. Fix by using your ORM's include, with, or Preload feature to fetch related data in one or two queries instead of N+1 round trips.

When should I not optimize code performance?▼

Skip optimization when code runs under 100 times per second with small inputs, when the gain is under 2x but adds significant complexity, or when the bottleneck is I/O bound rather than CPU. Always profile first to confirm the code is actually hot.

What are good Core Web Vitals targets for frontend performance?▼

Target LCP under 2.5 seconds, INP under 200 milliseconds, CLS under 0.1, and initial gzipped JS bundle under 170KB. Common wins include route code-splitting, lazy-loading below-fold images, and tree-shaking icon libraries.