.claude/skills/analyze-performance/SKILL.md
Identify performance bottlenecks through static analysis. Use when reviewing code for scalability, investigating slowness, or preparing for production.
npx skillsauth add akashmeshram/claude-disco analyze-performanceInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Identify bottlenecks using the performance-analyzer agent—no benchmarks required.
# N+1 Query
for item in items:
fetch_related(item.id) # Query per iteration
# Nested Loop O(n²)
for a in list_a:
for b in list_b:
compare(a, b)
# Blocking in Async
async def handler():
requests.get(url) # Blocks event loop
### Critical Hotspots
| Location | Pattern | Complexity | Impact | Fix |
### Load-Sensitive Paths
| Path | Scaling Factor | Breaking Point | Symptoms |
### Scale-Breaking Assumptions
| Assumption | Current Safety | Failure Scenario | Risk |
Use subagent_type: performance-analyzer
tools
Scaffold new projects with proper structure and boilerplate. Use for creating APIs, CLIs, web apps, or libraries from scratch.
tools
Initialize development configurations: CI/CD, linting, testing, Docker. Use for setting up project tooling.
testing
Generate comprehensive analysis report by running multiple agents. Use for full audits, onboarding docs, or architecture reviews.
development
Generate new features, components, services, and modules that follow existing codebase patterns.