vite
Installation
SKILL.md
Vite Operations
Use this skill for the Vite toolchain itself: project discovery, config and plugin behavior, environment loading, dev-server diagnostics, production builds, and asset/deployment boundaries. Keep application architecture and UI implementation with frontend-engineering, infrastructure and CI design with platform-engineering, browser tests with playwright, and accessibility implementation/review with web-accessibility.
Operating contract
- Discover before changing. Read
package.json, lockfile,vite.config.*,tsconfig*.json, scripts, framework plugin, and deployment assumptions. Identify the package manager from the lockfile; do not invent a command. - Check the actual toolchain. Run
scripts/vite-doctor --jsonfrom this skill or the project root to capture Node, package-manager, Vite package, config, and environment evidence. A Vite version in documentation is not proof of the installed version. - Keep configuration explicit. Review
root,base,resolve.alias, plugins,server.host/port,preview,build.outDir,build.rollupOptions, anddefine. Treatdefineandimport.meta.envas compile-time/public data; never place secrets inVITE_*variables or client bundles. - Build before claiming success. Use the project's existing script (normally
npm run build,pnpm build,yarn build, orbun run build) with a bounded timeout. Inspect output files and warnings, then exercise the built app at its deployed base path when possible. - Treat mutations as gated. Read-only discovery may proceed. Before installing packages, editing config, deleting output, starting a server, or changing deployment settings, confirm the target, scope, and rollback path. Prefer a new output directory or version-controlled change and never overwrite a user's uncommitted work.
- Keep evidence bounded. Summarize logs and errors; do not paste
.envcontents, tokens, full bundles, or generated dependency trees.