vite · uni-helper — Claude Code skill: config, plugins, builds
A Vite 6.x skill that walks your agent through config files, plugin setup, the dev server and production builds.
npx skills add uni-helper/skills --skill vite -a claude-codeWhat vite does
The skill is split into reference files, and the agent pulls the one that matches your question. Core covers defineConfig, conditional and async configs, CLI commands, TypeScript, JSX, CSS and HTML handling, plus adding and ordering plugins.
Feature references go into CSS modules and pre-processors, static assets, import.meta.glob, .env files and modes, the HMR client API, web workers and dependency pre-bundling. Build and advanced sections handle production builds, library mode, SSR, the JavaScript API, the Plugin API, performance and backend integration.
It is generated against Vite 6.x. If your project sits on an older major, some guidance will not match what you see in the terminal — check the version in package.json before you follow it. Everything installs through npx skills add.
What it helps with
- write a Vite config with per-mode branches
- add a plugin and get the ordering right
- set up CSS modules and pre-processors
- wire up env variables and build modes
- build a library with proper package exports
Example prompts for the agent
- Set up vite.config.ts for dev and production modes
- Add this plugin to Vite and explain why it must run before the others
- Build the project as a library with ESM and CJS exports
How to install vite
1Skills CLI (Vercel)
npx skills add uni-helper/skills --skill vite -a claude-code2Manually: put the files in place
~/.claude/skills/vite/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/vite/
1Skills CLI (Vercel)
npx skills add uni-helper/skills --skill vite -a codex2Manually: put the files in place
.agents/skills/vite/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add uni-helper/skills --skill vite -a cursor2Manually: put the files in place
.cursor/skills/vite/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install uni-helper/skills vite2Manually: put the files in place
.github/skills/vite/SKILL.md1Skills CLI (Vercel)
npx skills add uni-helper/skills --skill vite -a gemini-cli2Platform CLI
gemini skills install https://github.com/uni-helper/skills --path skills/viteManually: put the files in place
.devin/skills/vite/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add uni-helper/skills --skill vite -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about vite
How do I install the vite skill in Claude?
Run npx skills add uni-helper/skills --skill vite -a claude-code. The skill lands at ~/.claude/skills/vite/SKILL.md.
What does the vite skill do?
It gives the agent reference docs on Vite config, CLI, plugins, CSS, assets, HMR, production builds, SSR and the Plugin API, so answers come from the docs rather than from memory.
Which Vite version is the skill based on?
Vite 6.x. On older majors some of the advice will not match how your project behaves.
Source text
SKILL.md · MIT
--- name: vite description: Vite next-generation frontend build tool with fast HMR and optimized builds. Use when configuring Vite, adding plugins, working with dev server, or building for production. metadata: author: Anthony Fu version: "2026.1.28" source: Generated from https://github.com/vitejs/vite, scripts located at https://github.com/antfu/skills --- Vite is a modern build tool for frontend development featuring instant server start with native ES modules, lightning-fast HMR, and optimized production builds using Rolldown/Rollup. It supports TypeScript, JSX, CSS pre-processors out of the box and has a rich plugin ecosystem. > The skill is based on Vite 6.x, generated at 2026-01-28. ## Core | Topic | Description | Reference | |-------|-------------|-----------| | Configuration | Config file setup, defineConfig, conditional and async configs | [core-config](references/core-config.md) | | CLI Commands | Dev server, build, preview commands and options | [core-cli](references/core-cli.md) | | Core Features | TypeScript, JSX, CSS, HTML processing, JSON handling | [core-features](references/core-features.md) | | Using Plugins | Adding, configuring, and ordering plugins | [core-plugins](references/core-plugins.md) | ## Features | Topic | Description | Reference | |-------|-------------|-----------| | CSS Handling | CSS modules, pre-processors, PostCSS, Lightning CSS | [features-css](references/features-css.md) | | Static Assets | Asset imports, public directory, URL handling | [features-assets](references/features-assets.md) | | Glob Import | import.meta.glob, dynamic imports, batch loading | [features-glob-import](references/features-glob-import.md) | | Environment Variables | .env files, modes, import.meta.env constants | [features-env](references/features-env.md) | | HMR API | Hot Module Replacement client API | [features-hmr](references/features-hmr.md) | | Web Workers | Worker imports and configuration | [features-workers](references/features-workers.md) | | Dependency Pre-Bundling | optimizeDeps, caching, monorepo setup | [features-dep-bundling](references/features-dep-bundling.md) | ## Build | Topic | Description | Reference | |-------|-------------|-----------| | Production Build | Build options, browser targets, multi-page apps | [build-production](references/build-production.md) | | Library Mode | Building libraries with proper package exports | [build-library](references/build-library.md) | | SSR | Server-side rendering setup and configuration | [build-ssr](references/build-ssr.md) | ## Advanced | Topic | Description | Reference | |-------|-------------|-----------| | JavaScript API | createServer, build, preview programmatic APIs | [advanced-api](references/advanced-api.md) | | Plugin API | Creating Vite plugins, hooks, virtual modules | [advanced-plugin-api](references/advanced-plugin-api.md) | | Performance | Optimization tips for dev server and builds | [advanced-performance](references/advanced-performance.md) | | Backend Integration | Integrating Vite with traditional backends | [advanced-backend](references/advanced-backend.md) |
© Anthony Fu · MIT · uni-helper/skills
Similar skills
Everything for Frontend and UI →vite by other authors comes first.