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/full-stack-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
tools
Automates browser interactions via CLI using agent-browser by Vercel Labs. Covers navigation, clicking, form filling, snapshots, refs-based selectors, agent mode with JSON output, session management, and CDP integration. Use when the user needs to automate web browsing, scrape pages, fill forms, or integrate browser automation into AI agent workflows.
testing
Creates museum-quality visual art as .png or .pdf by first generating a design philosophy manifesto, then expressing it on canvas with precise composition, color palettes, and typography. Use when the user asks to create a poster, art piece, visual design, or static creative piece. Outputs original designs using design-forward principles.
development
Applies Anthropic brand colors (dark #141413, orange #d97757, blue #6a9bcc, green #788c5d), Poppins headings, and Lora body text to artifacts such as presentations, documents, or visuals. Use when the user needs Anthropic brand styling, brand color application, corporate typography, or visual formatting following Anthropic design standards.
development
Creates gallery-quality algorithmic art using p5.js with seeded randomness, interactive parameter controls, and seed navigation, outputting a single self-contained HTML artifact with Anthropic branding. Use when the user requests generative art, algorithmic art, flow fields, particle systems, or code-based visual art using p5.js.