Svelte Code Checks
Follow svelte-core-bestpractices for Svelte patterns. Use svelte-docs for documentation.
Run the autofixer when reviewing or debugging Svelte code, and before returning
changes to a .svelte, .svelte.ts, or .svelte.js file:
mise x -- npx @sveltejs/mcp svelte-autofixer ./path/to/Component.svelte
Use --svelte-version 4 only for Svelte 4 code. Use --async when checking
async Svelte mode. Fix the cause of reported warnings.
Prefer a file path to inline source. If inline source contains $ runes, use
shell single quotes. Do not add backslashes to runes inside single quotes.