vite
Generate and edit Vite applications while preserving the selected UI renderer, TypeScript setup, plugin chain, environment boundaries, static assets, and production build contract. Use for framework id vite when no meta-framework is selected.
- License 许可
- MIT
- 最近更新
- 2026-11-14
- Stars
- ★ 4
- Forks
- 0
01 前言 Front Matter
- name
- vite
- description
- Generate and edit Vite applications while preserving the selected UI renderer, TypeScript setup, plugin chain, environment boundaries, static assets, and production build contract. Use for framework id vite when no meta-framework is selected.
02 资源文件 1
- 参考文档agents/openai.yaml179 B
03 SKILL.md 正文
Vite
Treat Vite as the build/runtime target, not as a UI framework. Determine the renderer from the prompt, existing source, or declared dependencies.
Project contract
- Keep
index.htmlas the browser entry and application source undersrcunless the imported project establishes another structure. - Configure plugins in
vite.config.*and install the official plugin for the selected renderer. - Use
import.meta.envonly for values intended for the browser and honor the project's public environment prefix. - Put copied static assets in
public; import processed assets from source. - Keep aliases synchronized between Vite and TypeScript.
Editing rules
- Do not silently add React, Vue, Svelte, Solid, or another renderer when the request is ambiguous; return a typed question when that choice affects the project.
- Do not add meta-framework filesystem routes or server APIs to a plain Vite target.
- Add every imported package and preserve the existing plugin order.
Verification
Run the selected renderer's typecheck plus vite build. Use the manifest's preview command to verify base paths, asset URLs, and client-side routing fallbacks.
04 同仓库更多 Skills
request-design
Apply the request-scoped design system.
vue
Generate and edit typed Vue applications with Vite, Vue single-file components, Composition API, scoped styles, and optional Vue Router or Pinia integrations. Use for framework id vue when Nuxt server features are not required.
tanstack-start
Generate and edit TanStack Start React applications using TanStack Router file routes, loaders, validated search params, server functions, middleware, SSR, and runtime-neutral deployment output. Use for framework id tanstack-start.
sveltekit
Generate and edit SvelteKit applications using filesystem routes, layouts, load functions, form actions, server endpoints, adapters, and server-only module boundaries. Use for framework id sveltekit and full-stack Svelte projects.
svelte
Generate and edit client-side Svelte applications with typed single-file components, Vite, scoped styles, accessible events, and Svelte state conventions. Use for framework id svelte when a full SvelteKit server is not requested.
solidstart
Generate and edit SolidStart applications using filesystem routes, Solid reactivity, server functions, API routes, Vite configuration, and Nitro deployment. Use for framework id solidstart and full-stack Solid projects.