vite-audit
Installation
SKILL.md
Audit the Vite configuration for this React 19 + Express SPA project. Check for correctness, performance, and optimization opportunities.
Target: $ARGUMENTS (default: full audit)
Pre-flight
- Read
vite.config.ts,package.json,tsconfig.json, andindex.html. - Glob for
src/**/*.{ts,tsx}barrel files (index.tsthat re-export). - Check installed Vite version and plugin versions in
node_modules.
Audit Checklist
1. CORE CONFIG
- Uses
defineConfigwrapper (enables IDE autocomplete and type safety) - Config function receives
{ mode, command }for conditional logic -
loadEnvused correctly if accessing env vars in config (notprocess.envdirectly for.envfiles) - No hardcoded secrets in
define— only public/build-time values -
definevalues useJSON.stringify()for string replacements -
process.env.*replacements don't leak server secrets to client bundle