Agent skill
vite
Use when setting up Vite projects - provides dev server, HMR, build configuration, library mode, and plugin authoring patterns
Install this agent skill to your Project
npx add-skill https://github.com/onmax/claude-config/tree/main/skills/vite
SKILL.md
Vite
Next-gen frontend build tool with native ESM dev server and Rolldown-powered builds.
When to Use
- Setting up frontend project build tooling
- Configuring dev server, HMR, proxies
- Building for production (SPA, MPA, library, SSR)
- Writing Vite plugins
- Integrating with backend frameworks
Quick Start
npm create vite@latest my-app
// vite.config.ts
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
export default defineConfig({
plugins: [vue()],
server: {
port: 3000,
},
})
vite # Dev server
vite build # Production build
vite preview # Preview build
Reference Files
| Task | File |
|---|---|
| Config file, options, CLI, plugins | config.md |
| ESM, CSS, assets, env vars, glob import | features.md |
| Dev server, HMR, workers, performance | dev.md |
| Production, library mode, SSR, chunking | build.md |
| JS API, plugin authoring, module graph | advanced.md |
Loading Files
Consider loading these reference files based on your task:
- references/config.md - if setting up vite.config.ts, configuring plugins, or using CLI
- references/features.md - if using ESM, CSS, assets, env vars, or glob imports
- references/dev.md - if configuring dev server, HMR, workers, or optimizing performance
- references/build.md - if building for production, library mode, SSR, or chunking
- references/advanced.md - if writing plugins, using JS API, or working with module graph
DO NOT load all files at once. Load only what's relevant to your current task.
Cross-Skill References
- Testing → Use
vitestskill (Vite-native testing) - Vue projects → Use
vueskill for component patterns - Library bundling → Use
tsdownskill for TypeScript libs
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
pnpm
Use when managing Node.js dependencies with pnpm - provides workspace setup, catalogs, CLI commands, overrides, and CI configuration
writer
Iterative writing loop. Gemini 3 Pro writes, Claude Agent SDK reviews autonomously. Use for blog posts, docs, technical content needing quality iteration.
nuxt-seo
Nuxt SEO meta-module with robots, sitemap, og-image, schema-org. Use when configuring SEO, generating sitemaps, creating OG images, or adding structured data.
ts-library
Use when authoring TypeScript libraries or npm packages - covers project setup, package.json exports, build tooling (tsdown/unbuild), API design patterns, type inference tricks, testing, and publishing to npm. Use when bundling, configuring dual CJS/ESM output, or setting up release workflows.
motion
Use when adding animations with Motion Vue (motion-v) - provides motion component API, gesture animations, scroll-linked effects, layout transitions, and composables for Vue 3/Nuxt
vue
Use when editing .vue files, creating Vue 3 components, writing composables, or testing Vue code - provides Composition API patterns, props/emits best practices, VueUse integration, and reactive destructuring guidance
Didn't find tool you were looking for?