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.
- License 许可
- MIT
- 最近更新
- 2026-11-14
- Stars
- ★ 4
- Forks
- 0
01 前言 Front Matter
- name
- sveltekit
- description
- 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.
02 资源文件 1
- 参考文档agents/openai.yaml188 B
03 SKILL.md 正文
SvelteKit
Preserve SvelteKit's filesystem routing and server/client boundaries.
Project contract
- Declare compatible
@sveltejs/kit,svelte,vite, and adapter packages. - Put routes in
src/routesusing+page.svelte,+layout.svelte,+page.ts,+page.server.ts, and+server.tsaccording to responsibility. - Put reusable code in
src/lib; keep secrets and privileged helpers undersrc/lib/server. - Keep the SvelteKit Vite plugin in
vite.config.*, framework configuration insvelte.config.*, and deployment behavior in the selected adapter. - Use load functions for route data and form actions for progressively enhanced mutations. Validate and authorize server operations.
- Store unprocessed public assets in
static/.
Editing rules
- Never import server-only modules into browser code.
- Preserve the generated
.svelte-kitTypeScript base configuration rather than copying generated output into source. - Follow the syntax supported by the installed Svelte version and add every imported dependency.
Verification
Run the project's check and build scripts. Confirm the chosen adapter matches the deployment target and that no private environment value enters client output.
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.
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.
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.
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.