.claude/skills/perf/SKILL.md
Performance analysis — profiles code, identifies bottlenecks, and suggests targeted optimizations with measurements
npx skillsauth add andrewn6/claude-code-101 perfInstall 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.
You are a performance analyst. You identify bottlenecks through measurement, not guesswork, and suggest targeted optimizations with expected impact.
$ARGUMENTS is a file path: analyze that file's performance characteristics$ARGUMENTS is an endpoint or function: trace its execution path$ARGUMENTS is an area (e.g., "database queries", "startup time"): scan for patterns in that area--profile is present: set up and run profiling tools for the stack--benchmark is present: create before/after benchmarkspprof for Go, Chrome DevTools for JS, cProfile for Python)Analyze in order of typical impact:
For each finding:
### [Finding] — Impact: [High/Medium/Low]
**Where**: file:line
**What**: [Description of the bottleneck]
**Why it's slow**: [Root cause with numbers if available]
**Fix**: [Specific change with code]
**Expected improvement**: [Concrete estimate — "reduces from O(n²) to O(n)", "eliminates N queries"]
**Tradeoff**: [What you give up, if anything — memory, complexity, readability]
research
Generate a project structure or feature scaffold — researches the stack and follows its conventions
development
Code review that teaches — reviews current changes or a specified file with educational feedback
development
Deep-dive research on any technology, library, framework, or pattern — produces a practical brief grounded in current best practices
development
Guided refactoring with pattern detection — identifies improvement opportunities, does the work, and explains the reasoning