performance-audit

Analyze code statically to detect performance bottlenecks and async anti-patterns.

47|10|Updated Feb 22, 2026
One-click install
npx skills add https://github.com/gonzalezpazmonica/pm-workspace --skill performance-audit-gonzalezpazmonica
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: performance-audit
Source: https://github.com/gonzalezpazmonica/pm-workspace/tree/main/.claude/skills/performance-audit
Command: npx skills add https://github.com/gonzalezpazmonica/pm-workspace --skill performance-audit-gonzalezpazmonica

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill identifies performance bottlenecks, async anti-patterns, and optimization opportunities within your codebase through static analysis, ensuring your applications run efficiently.

Core Features & Use Cases

  • Static Code Analysis: Detects complex functions, async issues, and potential performance hotspots without executing code.
  • Optimization Scoring: Provides a performance score and identifies areas needing improvement based on defined metrics.
  • Use Case: A developer suspects a critical API endpoint is slow under load. This Skill can analyze the endpoint's code to pinpoint the exact functions causing latency and suggest specific fixes.

Quick Start

Run a performance audit on the current project's codebase.

Frequently Asked Questions about performance-audit

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

FAQPage Schema
How do I detect async anti-patterns and performance bottlenecks in my codebase?

Static code analysis detects performance bottlenecks and async anti-patterns by evaluating cyclomatic complexity, nesting depth, and fan-out without executing code. It identifies specific functions causing latency and highlights sync-over-async issues or blocking calls in async contexts for targeted optimization.

What is the best way to find performance hotspots without running my application?

Static analysis identifies performance hotspots by measuring method length, cognitive complexity, and fan-out across various programming languages. This process pinpoints complex functions and optimization opportunities directly from the source code, ensuring applications run efficiently without requiring a live execution environment.

Can I use static analysis to score code performance and track optimization debt?

Yes, static analysis scores code performance and identifies areas needing improvement based on defined metrics. The scoring integrates with debt tracking and project auditing to quantify optimization opportunities, helping developers prioritize refactoring efforts for critical endpoints experiencing latency under load.

Does static performance analysis work across multiple programming languages?

Static performance analysis works across various programming languages by evaluating structural code metrics like cyclomatic complexity and nesting depth. It detects async anti-patterns and optimization opportunities regardless of the specific language syntax, providing a consistent performance score for diverse codebases.

Why does my async code run slowly under load, and how can static analysis help?

Async code runs slowly under load due to blocking calls in async contexts or sync-over-async anti-patterns. Static analysis pinpoints these exact functions causing latency by evaluating cognitive complexity and fan-out, suggesting specific fixes to resolve the performance bottlenecks.

What metrics are evaluated during a static code performance audit?

A static code performance audit evaluates cyclomatic complexity, cognitive complexity, method length, nesting depth, and fan-out. These metrics identify complex functions and performance hotspots, generating an optimization score and highlighting areas for improvement to ensure efficient application execution.