skills/build-skills/vite/SKILL.md
Guidance for Vite using the official Guide, Config Reference, and Plugins pages. Use when the user needs Vite setup, configuration, or plugin selection details.
npx skillsauth add teachingai/agent-skills viteInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Use this skill whenever the user wants to:
examples/guide/.examples/config/.examples/plugins.md.npm run build to verify config changes compile; npm run preview to test production output.Introduction
examples/guide/getting-started.md → https://cn.vitejs.dev/guide/examples/guide/philosophy.md → https://cn.vitejs.dev/guide/philosophy.htmlexamples/guide/why-vite.md → https://cn.vitejs.dev/guide/why.htmlGuide
examples/guide/features.md → https://cn.vitejs.dev/guide/features.htmlexamples/guide/cli.md → https://cn.vitejs.dev/guide/cli.htmlexamples/guide/using-plugins.md → https://cn.vitejs.dev/guide/using-plugins.htmlexamples/guide/dep-pre-bundling.md → https://cn.vitejs.dev/guide/dep-pre-bundling.htmlexamples/guide/assets.md → https://cn.vitejs.dev/guide/assets.htmlexamples/guide/build.md → https://cn.vitejs.dev/guide/build.htmlexamples/guide/static-deploy.md → https://cn.vitejs.dev/guide/static-deploy.htmlexamples/guide/env-and-mode.md → https://cn.vitejs.dev/guide/env-and-mode.htmlexamples/guide/ssr.md → https://cn.vitejs.dev/guide/ssr.htmlexamples/guide/backend-integration.md → https://cn.vitejs.dev/guide/backend-integration.htmlexamples/guide/troubleshooting.md → https://cn.vitejs.dev/guide/troubleshooting.htmlexamples/guide/performance.md → https://cn.vitejs.dev/guide/performance.htmlexamples/guide/migration.md → https://cn.vitejs.dev/guide/migration.htmlAPIs
examples/guide/api-plugin.md → https://cn.vitejs.dev/guide/api-plugin.htmlexamples/guide/api-hmr.md → https://cn.vitejs.dev/guide/api-hmr.htmlexamples/guide/api-javascript.md → https://cn.vitejs.dev/guide/api-javascript.htmlEnvironment API
examples/guide/api-environment.md → https://cn.vitejs.dev/guide/api-environment.htmlexamples/guide/api-environment-instances.md → https://cn.vitejs.dev/guide/api-environment-instances.htmlexamples/guide/api-environment-plugins.md → https://cn.vitejs.dev/guide/api-environment-plugins.htmlexamples/guide/api-environment-frameworks.md → https://cn.vitejs.dev/guide/api-environment-frameworks.htmlexamples/guide/api-environment-runtimes.md → https://cn.vitejs.dev/guide/api-environment-runtimes.htmlexamples/config/configuring-vite.md → https://cn.vitejs.dev/config/examples/config/shared-options.md → https://cn.vitejs.dev/config/shared-options.htmlexamples/config/server-options.md → https://cn.vitejs.dev/config/server-options.htmlexamples/config/build-options.md → https://cn.vitejs.dev/config/build-options.htmlexamples/config/preview-options.md → https://cn.vitejs.dev/config/preview-options.htmlexamples/config/dep-optimization-options.md → https://cn.vitejs.dev/config/dep-optimization-options.htmlexamples/config/ssr-options.md → https://cn.vitejs.dev/config/ssr-options.htmlexamples/config/worker-options.md → https://cn.vitejs.dev/config/worker-options.htmlexamples/plugins.md → https://cn.vitejs.dev/plugins/# Create a new Vite project
npm create vite@latest my-app -- --template react-ts
# Install and run
cd my-app && npm install
npm run dev # Dev server with HMR
npm run build # Production build
npm run preview # Preview production build
// vite.config.ts
import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react';
export default defineConfig({
plugins: [react()],
server: {
port: 3000,
proxy: {
'/api': 'http://localhost:8080',
},
},
build: {
sourcemap: true,
rollupOptions: {
output: {
manualChunks: { vendor: ['react', 'react-dom'] },
},
},
},
});
defineConfig for TypeScript type hints and autocompleteserver.proxy for API calls during developmentbuild.rollupOptions.output.manualChunks for vendor splittingimport.meta.env for environment variables (prefix with VITE_)Vite, build tool, dev server, HMR, config, plugins, SSR, CLI, dependency pre-bundling, assets
development
Guidance for Next.js using the official docs at nextjs.org/docs. Use when the user needs Next.js concepts, configuration, routing, data fetching, or API reference details.
tools
Provides comprehensive guidance for Flask framework including routing, templates, forms, database integration, extensions, and deployment. Use when the user asks about Flask, needs to create web applications, implement routes, or build Python web services.
development
Provides comprehensive guidance for FastAPI framework including routing, request validation, dependency injection, async operations, OpenAPI documentation, and database integration. Use when the user asks about FastAPI, needs to create REST APIs, or build high-performance Python web services.
development
Provides comprehensive guidance for Django framework including models, views, templates, forms, admin, REST framework, and deployment. Use when the user asks about Django, needs to create web applications, implement models and views, or build Django REST APIs.