perf-audit
SKILL.md
Performance Audit
Workflow
-
Detect build tool from
package.json(vite, webpack, next, rollup) -
Run production build if no recent build exists:
- Vite:
npm run build - Next.js:
npm run build(reads.next/analyze/ifANALYZE=true)
- Vite:
-
Analyze bundle output (see budget-thresholds.md):
Vite:
npx vite-bundle-visualizerwebpack/Next.js:
npx webpack-bundle-analyzer <stats-file> -
Check
package.jsondependencies for known heavy packages:moment→ suggestdate-fnsordayjslodash→ suggest tree-shakeable imports or native alternatives@mui/material(full import) → suggest named imports
-
Report findings with size impact
Output format
- Bundle summary: total size / gzipped size vs budget
- Large chunks: name + size + % of total
- Heavy deps: package + size + lighter alternative
- Quick wins: sorted by estimated savings
Rules
- Compare against budgets in budget-thresholds.md
- Report gzipped sizes (what the browser downloads)
- Never auto-change dependencies — report and suggest only
Error Handling
- If build fails → report the build error and stop; fix build issues before auditing
- If no build output found → run the production build first before analyzing
- If build tool is unrecognized → fall back to scanning
package.jsondependencies for heavy packages only
Weekly Installs
5
Repository
helderberto/skillsFirst Seen
10 days ago
Security Audits
Installed on
mcpjam5
claude-code5
replit5
junie5
windsurf5
zencoder5