perf-audit
Installation
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:
Vite:
npx vite-bundle-visualizerwebpack/Next.js:
npx webpack-bundle-analyzer <stats-file>