/frontend-craft:fec-vite-project-standardfrom frontend-craft
Standardizes Vite project configuration, build optimization, and security boundaries for frontend apps and component libraries.
Ships in frontend-craft. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Design and review of Vite applications, component libraries, development servers, and build configurations.
Standardize Vite configurations, security boundaries, and build performance to avoid common pitfalls of development environments and production builds.
Identify the project type
root, base, server.proxy, envPrefix, build and framework plugins first.build.lib, type products, peer dependencies external and export entries first.server.fs.allow, path aliases and package dependency boundaries.Select plugin
@vitejs/plugin-react-swc by default; use @vitejs/plugin-react only when the Babel plug-in is required.@vitejs/plugin-vue, and path aliases are given priority to vite-tsconfig-paths.tsc --noEmit, CI or vite-plugin-checker.Manage environment variables
VITE_.loadEnv uses an explicit prefix array and does not use an empty string to load all variables.Optimize development experience
vite --profile to locate plug-in, parsing or pre-built bottlenecks before slow start.optimizeDeps.include for CJS/UMD dependencies to handle interop issues.server.warmup.clientFiles to warm up the core entrance.Optimize production builds
vite build before release and use vite preview to do local build smoke testing.import { defineConfig, loadEnv } from "vite";
import react from "@vitejs/plugin-react-swc";
import tsconfigPaths from "vite-tsconfig-paths";
export default defineConfig(({ mode }) => {
const env = loadEnv(mode, process.cwd(), ["VITE_"]);
return {
plugins: [react(), tsconfigPaths()],
define: {
__PUBLIC_API_URL__: JSON.stringify(env.VITE_API_URL),
},
server: {
proxy: {
"/api": {
target: "http://localhost:8080",
changeOrigin: true,
},
},
},
};
});
vite build only translates and packages, not type checking; CI must run typecheck separately.VITE_ is not a security boundary; any VITE_ variable goes into the client package.envPrefix: "", do not use loadEnv(mode, root, "") and then define at will.vite preview as a production server..d.ts separately.define, import.meta.env or empty prefix loadEnv.The output should include project type judgment, key configuration changes, environment variable security instructions, and build/development performance verification methods. When completed, the Vite configuration should be type-checked, buildable, secret-secure, and explain the differences between dev and build.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Vite, React, Vue, TypeScript
Generated from the plugin's indexed repository (bovinphang/frontend-craft) — no native marketplace selected
npx claudepluginhub p/bovinphang-frontend-craft53 skills in this plugin
/fec-accessibility-checkUse when reviewing or improving frontend accessibility, semantic structure, keyboard support, focus management, ARIA labels, screen reader behavior, WCAG 2.2 issues, touch accessibility, or assistive-technology regressions; Chinese triggers include accessibility, accessibility, a11y, WCAG, screen reader./fec-alchemyUse when absorbing ideas, capabilities, workflows, architecture, quality systems, ecosystem extensions, or engineering practices from any reference system into the current project through original, project-native redesign rather than copying./fec-api-integrationUse when designing, implementing, or reviewing frontend-to-backend API integration, typed API clients, REST/tRPC/OpenAPI client choices, auth refresh, API error mapping, upload flows, SSE/WebSocket/polling choices, CORS-facing frontend behavior, or cross-boundary loading/error states. Do not use for backend-only service architecture or TanStack Query cache policy alone; Chinese triggers include API integration, front-end and back-end joint debugging, typed API client, Interface error handling, SSE, WebSocket./fec-backend-requirements-handoffUse when frontend work needs to communicate data, action, state, permission, validation, or business-rule needs to backend teams without dictating endpoint design, field names, database shape, or implementation details; Chinese triggers include front-end and back-end requirements handover, back-end requirements, API requirements clarification, data requirements description./fec-browser-storageUse when choosing, implementing, or reviewing browser storage such as localStorage, sessionStorage, IndexedDB, cookies, client persistence, offline data, secure storage, or cleanup strategy; Chinese triggers include browser storage, client persistence./fec-canvas-threejsUse when building or reviewing Canvas 2D, Three.js/WebGL, React Three Fiber, GLSL shaders, ShaderToy-to-WebGL adaptation, 2D/3D visualization, game rendering, animation loops, GPU resource cleanup, or rendering performance. Do not use for standard DOM UI, charts already covered by a chart library, or non-graphical performance work; Chinese triggers include Canvas, Three.js, WebGL, GLSL, Shader, 3D, data visualization, games.Other plugins' skills for the same job