用于审查或改进前端无障碍、语义结构、键盘支持、焦点管理、ARIA 标签、屏幕阅读器行为、WCAG 2.2 问题、触控无障碍或辅助技术回归;中文触发词包括 无障碍、accessibility、a11y、WCAG、屏幕阅读器。
中文简介正在准备中。当前显示原文说明。
Use when creating, configuring, reviewing, or debugging Vite-based frontend projects, vite.config.ts, env variables, dev server proxy, HMR, plugin ordering, library mode, dependency pre-bundling, bundle splitting, or Vite build performance. Use framework-specific skills for React/Vue component architecture; Chinese triggers include Vite configuration, vite.config, Vite build, Vite performance.
中文简介正在准备中。当前显示原文说明。
实测评分 未实测
查看安装方法安装前可以查看交给 AI 代理的指令内容。
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.
还没有评价。欢迎分享你的使用感受。
无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。
还没有评论。来写第一条吧。
用于审查或改进前端无障碍、语义结构、键盘支持、焦点管理、ARIA 标签、屏幕阅读器行为、WCAG 2.2 问题、触控无障碍或辅助技术回归;中文触发词包括 无障碍、accessibility、a11y、WCAG、屏幕阅读器。
中文简介正在准备中。当前显示原文说明。
Use 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.
中文简介正在准备中。当前显示原文说明。
Use 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.
中文简介正在准备中。当前显示原文说明。
用于从参考系统中吸收想法、能力、工作流、架构、质量体系、生态扩展或工程实践,并通过原创的项目内重设计转化为当前项目能力,而不是复制原实现。
中文简介正在准备中。当前显示原文说明。
用于设计、实现或审查前后端 API 集成、类型化 API client、REST/tRPC/OpenAPI 客户端选型、认证刷新、API 错误映射、上传流程、SSE/WebSocket/轮询选择、CORS 相关前端行为或跨边界 loading/error 状态。不要用于纯后端服务架构或仅 TanStack Query 缓存策略;中文触发词包括 API 集成、前后端联调、typed API client、接口错误处理、SSE、WebSocket。
中文简介正在准备中。当前显示原文说明。
Use 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.
中文简介正在准备中。当前显示原文说明。