Svelte Code Writer

Use the Svelte CLI to check any Svelte component or module that you create, edit, or analyze.

chattocorp Updated 3k repo stars
It's Chatto!

File contents

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.

chattocorp/chatto commit 760cff539b

Frequently asked questions

npx get-skill add chattocorp/svelte-code-writer