svelte-knowledge-patch
Installation
SKILL.md
Svelte Knowledge Patch
Use this patch when writing, reviewing, upgrading, or troubleshooting Svelte and SvelteKit applications. Start with the migration notes, then read every topic reference relevant to the code being changed.
Reference index
| Reference | Topics |
|---|---|
| SvelteKit routing and runtime | Error boundaries, paths, typed route parameters, navigation, prerendering, environment guards, CSP, service workers, rerouting, and instrumentation |
| Remote forms | Deep-partial values, schemas, preflight, submission and reset state, validation issues, redirect targets, and streamed uploads |
| Remote queries and commands | Optional inputs, URL context, explicit awaiting, refreshes, invalidation, cache policy, transport errors, and live reconnects |
| Runes and components | Dependency tracking, state and props, stable IDs, attachments, snippets, template declarations, contexts, and asynchronous rendering |
| Svelte 5 migration | Staged dependency and syntax migration |
| Tooling, build, and deployment | Clientless and inline builds, precompression, generated typings, Vite, CLI scaffolding, configuration, TypeScript, CSP hydration, Cloudflare, and Deno |