skills/perf-audit/SKILL.md
Find performance bottlenecks in the codebase. Analyzes hot code paths, database queries, memory allocation patterns, and algorithmic complexity. Use when the user asks about performance, says "why is this slow", "find bottlenecks", "optimize this", or "perf audit".
npx skillsauth add codewithbehnam/cc-docs perf-auditInstall 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.
git rev-parse --show-toplevel 2>/dev/null || pwdfind . -type f \( -name "*.py" -o -name "*.ts" -o -name "*.js" -o -name "*.go" -o -name "*.rb" -o -name "*.java" \) -not -path '*/node_modules/*' -not -path '*/.venv/*' | sed 's/.*\.//' | sort | uniq -c | sort -rn | head -8Perform a performance audit of the codebase (or the area specified in $ARGUMENTS). Investigate all of the following categories:
SELECT column lists (selecting all columns when only a few are needed)For each area, read the relevant source files to understand the actual code before reporting. Avoid reporting hypothetical issues - only report things confirmed by reading the code.
One paragraph: overall assessment of where the performance risks are concentrated.
For each issue:
path/to/file.py:42Improvements that are low-risk and can be made immediately, ranked by expected impact.
Improvements that require significant refactoring or design changes but have high potential impact.
If the bottleneck is unclear, suggest specific profiling commands or tools appropriate for the detected language/framework.
tools
macOS GUI automation CLI. Use steer to see the screen, click elements, type text, send hotkeys, scroll, drag, manage windows and apps, run OCR on Electron apps, and wait for UI conditions.
testing
Ship workflow: merge main, run tests, review diff, bump VERSION, update CHANGELOG, commit, push, create PR.
testing
Import cookies from your real browser (Comet, Chrome, Arc, Brave, Edge) into the headless browse session. Opens an interactive picker UI where you select which cookie domains to import. Use before QA testing authenticated pages.
development
Weekly engineering retrospective. Analyzes commit history, work patterns, and code quality metrics with persistent history and trend tracking. Team-aware: breaks down per-person contributions with praise and growth areas.