vite
Skill1 starsChanged 3 months agoMITView on GitHub
Build, review, debug, configure, migrate, teach, or plan Vite frontend tooling with current docs and a full usage guide. Use for vite, create-vite, vite.config, defineConfig, loadEnv, import.meta.env, HMR, optimizeDeps, build.rolldownOptions, oxc, Lightning CSS, plugins (@vitejs/plugin-react, plugin-vue, plugin-legacy), SSR middlewareMode, ssrLoadModule, library mode, backend integration, multi-page apps, Environment API, and Vite 7 to Vite 8 / Rolldown migration.
- Reads credentials
40 other projects use a version of this.
Adopted by
Most recently taken up by
- oberemokis/skillstheir own version, first seen Nov 29, 2026
- marcioaltoe/skillstheir own version, first seen Nov 29, 2026
- fedeya/wisp-aitheir own version, first seen Nov 29, 2026
- onmax/nuxt-skillstheir own version, first seen Nov 26, 2026
- dvaJi/argostheir own version, first seen Nov 23, 2026
- thanhdat2508/agent-skillstheir own version, first seen Nov 22, 2026
Used with
Projects with it also use nitro, nodejs-backend-patterns and 5 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
SentrySkillnitro
Build and deploy universal JavaScript servers with Nitro v3. Use when working with nitro.config.ts, defineNitroConfig, defineHandler, defineConfig, server.ts entry, filesystem routing, route rules, useStorage, defineCachedHandler, useDatabase, definePlugin, runtime hooks, Vercel/Cloudflare deployment, or migrating from Nitro v2/nitropack.
Also in 4 projects that use this
xfstudioSkillnodejs-backend-patterns
Build production-ready Node.js backend services with Express/Fastify, implementing middleware patterns, error handling, authentication, database integration, and API design best practices. Use when creating Node.js servers, REST APIs, GraphQL backends, or microservices architectures.
Also in 5 projects that use this
xenitV1Skillnodejs-best-practices
Node.js development principles and decision-making. Framework selection, async patterns, security, and architecture. Teaches thinking, not copying.
Also in 4 projects that use this
midudevSkilltailwind-css-patterns
Provides comprehensive Tailwind CSS utility-first styling patterns including responsive design, layout utilities, flexbox, grid, spacing, typography, colors, and modern CSS best practices. Use when styling React/Vue/Svelte components, building responsive layouts, implementing design systems, or optimizing CSS workflow.
Also in 3 projects that use this
xfstudioSkilltypescript-advanced-types
Master TypeScript's advanced type system including generics, conditional types, mapped types, template literals, and utility types for building type-safe applications. Use when implementing complex type logic, creating reusable type utilities, or ensuring compile-time type safety in TypeScript projects.
Also in 5 projects that use this
MicrosoftSkillaccessibility
Consolidated accessibility skill entrypoint for WCAG 2.2, ARIA Authoring Practices, cognitive accessibility, Section 508, EN 301 549, design intent verification, and the Accessibility Planner workflow.
Also in 4 projects that use this
Other versions40 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 40
- debpalash/OmniVoice-Studio★ 120ksame name
- debpalash/VoiceStudio★ 120ksame name
- antfu/skills★ 6.1ksame name
- onmax/nuxt-skills★ 731same name
- oyjt/uniapp-vue3-template★ 628same name
- victorgarciaesgi/regle★ 517same name
- JetBrains/skills★ 386same name
- Mindrally/skills★ 275same name
- magnus919/agent-skills★ 197same name
- ptonlix/OneSelf★ 129same name
30 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository81 other files it gives its agents.
- AGENTS.mdAGENTS.md
- agents-mdSkill
- base-uiSkill
- better-authSkill
- brainstormSkill
- bullmqSkill
- bunSkill
- clickhouseSkill
- clone-to-tempSkill
- compound-uiSkill
- copywritingSkill
- create-durable-planSkill
- d3Skill
- date-fnsSkill
- decimal-jsSkill
- deduplicateSkill
- design-engineerSkill
- designSkill
- drizzle-ormSkill
- effectSkill
- elysia-architectureSkill
- elysiaSkill
- evlogSkill
- feedsmithSkill
- grokSkill
- handoffSkill
- heyapiSkill
- impitSkill
- intlayerSkill
- jsdocSkill
- kafkaSkill
- kill-legacySkill
- legend-stateSkill
- loopSkill
- mantine-hooksSkill
- mobbinSkill
- motionSkill
- oxfmtSkill
- oxlintSkill
- permixSkill
- plain-languageSkill
- playwrightSkill
- react-boundariesSkill
- react-emailSkill
- reactSkill
- reorganizeSkill
- researchSkill
- schema-dtsSkill
- sentrySkill
- seoSkill
- setup-competitors-mdSkill
- setup-copywriting-mdSkill
- setup-icp-mdSkill
- setup-project-mdSkill
- simplify-layoutSkill
- storybookSkill
- subagentsSkill
- tailwindSkill
- tailwind-variantsSkill
- takumiSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
7 rules. 0 are common, 1 is distinctive, and 6 are very specific to this project.
0
Common
Most of the 34 edited versions we read keep these.
1
Distinctive
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 8
Use this skill when work touches Vite: scaffolding, vite.config, plugins, env/modes, dep optimization, production builds, SSR/backend …
- Very specific: line 24
Prefer Vite 8 APIs (build.rolldownOptions, oxc, optimizeDeps.rolldownOptions).
- Very specific: line 25
Verify with bunx vite build (or project scripts), vite preview, and separate tsc --noEmit when types matter.
- Very specific: line 30
Prefer bunx vite / bun create vite in command examples.
- Very specific: line 35
Prefer build.rolldownOptions over deprecated build.rollupOptions.
- Distinctive: line 44
Prefer repository-owned commands.
- Very specific: line 50
After config migration: confirm no remaining manualChunks object form.
“Common” is measured: kept by at least 6 in 10 of the 34 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Vite
Use this skill when work touches Vite: scaffolding, vite.config, plugins, env/modes, dep optimization, production builds, SSR/backend integration, library mode, or upgrading to Vite 8 (Rolldown/Oxc).
Workflow
- Inspect the local Vite surface:
- Package version (
vite@8.xpreferred; snapshot 8.2.0). Node:^20.19.0 || >=22.12.0. - Config:
vite.config.ts/.js,defineConfig, plugins,appType. - Defaults in use: Rolldown build + Oxc transform/minify + Lightning CSS minify (Vite 8) vs older esbuild/Rollup (Vite 7-).
- Scripts:
vite/vite build/vite preview; framework plugins (@vitejs/plugin-*).
- Package version (
- For day-to-day how-to, follow usage-guide.md first.
- Refresh docs when versions drift or the task is migration/SSR/Environment API. Start from source-map.md.
- Route deeper detail:
- Config, CLI, env, assets, CSS, HMR: config-cli-env.md.
- Plugins, build, lib mode, MPA, performance: plugins-build.md.
- SSR, backend integration, proxy, middleware: ssr-backend.md.
- Vite 7→8 / Rolldown: migration-v8.md.
- Prefer Vite 8 APIs (
build.rolldownOptions,oxc,optimizeDeps.rolldownOptions). Treat Environment API as RC, Full Bundle Mode / Lightning CSS as full transformer as experimental. - Verify with
bunx vite build(or project scripts),vite preview, and separatetsc --noEmitwhen types matter.
Core Judgment
- Vite = dev server (native ESM + HMR) + production bundler. Vite 8 bundler/optimizer defaults are Rolldown; JS transform/minify Oxc; CSS minify Lightning CSS.
- Prefer
bunx vite/bun create vitein command examples; keep narrative npm registry references when describing packages. index.htmlis the app entry (not underpublic/).public/is copy-as-is static files.- Vite does not typecheck — run
tsc --noEmit(or project typecheck) separately. - Client env: only
envPrefix(defaultVITE_) reachesimport.meta.env. Never put secrets inVITE_*. - Config files do not auto-load
.env— useloadEnvinsidedefineConfig. - Prefer
build.rolldownOptionsover deprecatedbuild.rollupOptions; preferoxcover deprecatedesbuildconfig. - Chunk splitting: object
manualChunksremoved; function form deprecated → Rolldownoutput.codeSplitting. vite previewis not a production server — use it only to smokedist.- Dep cache:
node_modules/.vite; force withvite --force(do not rely on deprecatedvite optimize). - Official plugins live under
@vitejs/*. PWA (vite-plugin-pwa) is community. - SSR/backend: enforce real security/auth on the host server; Vite middleware is a tooling layer.
Verification
Prefer repository-owned commands. For meaningful Vite work, cover the relevant subset:
bunx vite --version(or projectvite) and confirm major (7 vs 8).- Dev smoke:
bun run dev/ HMR for the changed module. bun run buildthenbun run preview(or equivalent).- Typecheck separately when TS/paths/
import typematter. - After config migration: confirm no remaining
manualChunksobject form; Rolldown options resolve viaconfigResolvedif debugging. - SSR: client + server builds; middleware mode smoke;
import.meta.env.SSRbranches. - Backend integration: manifest entries render correct CSS/JS URLs.
Report which checks ran, which did not, and any Vite version assumptions that remain.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

