performance-auditlisted
Install: claude install-skill SoluDevTech/ai-driven
# Performance Audit Skill
Perform systematic, production-grade performance audits on Python and React code.
Always be direct: name the exact line/pattern, explain the cost, and provide a fixed version.
---
## Step 1 — Detect the domain(s)
Scan the provided code or file list:
- **Python indicators**: `.py` files, `import`, `def`, `class`, ORM imports (`django`, `sqlalchemy`, `tortoise`, `peewee`), `async def`, `FastAPI`, `Flask`, `Celery`
- **React indicators**: `.jsx`, `.tsx`, `.js` with JSX, `useState`, `useEffect`, `React`, `Next.js`, `Vite`
- **Both**: monorepo or full-stack projects — run both audits
→ Load **only** the relevant reference file(s) before proceeding:
- Python: read `references/python-patterns.md`
- React: read `references/react-patterns.md`
---
## Step 2 — Structured audit pass
For each domain detected, systematically scan for every pattern listed in the reference file.
Do **not** skip patterns just because they seem unlikely — check the code explicitly.
Use this internal checklist approach:
1. Read the full code once for context
2. Second pass: match each pattern category from the reference file
3. Tag every finding with a severity level (see below)
---
## Step 3 — Caching strategy analysis (always run, for every domain detected)
This is a mandatory second pass focused exclusively on caching opportunities and invalidation.
Run it independently from the performance pattern scan — do not merge findings.
Load the `## Caching Strategies` section f