About svelte-code-writer
A workflow skill for creating, editing, reviewing, and debugging Svelte files. It combines Svelte best-practice references with documentation checks and file validation.
Key features
- 01Load baseline Svelte 5 guidance
- 02Select focused local skills
- 03Look up official documentation
- 04Validate changed Svelte files
- 05Use Svelte CLI analysis helpers
Use cases
- 01Creating or editing Svelte components
- 02Checking uncertain Svelte syntax
- 03Reviewing or debugging Svelte files
- 04Validating changed Svelte source
MCP support
The workflow documents Svelte CLI helpers from `@sveltejs/mcp` for listing documentation sections, fetching documentation, and analyzing Svelte files.
Install
Copy the command and run it in a terminal.
$
npx skills add https:/ / github.com/ spences10/ skills --skill svelte-code-writerAfter installing, type/svelte-code-writerin Claude Code to confirm it loaded.
Details
From the project READMESvelte Code Writer
Use this workflow when creating, editing, reviewing, or debugging Svelte files.
Workflow
- Load
svelte-core-bestpracticesfor baseline Svelte 5 rules. - Load deeper local skills as needed:
svelte-runes,svelte-template-directives,svelte-styling,sveltekit-data-flow, orsveltekit-structure. - Check relevant official docs when syntax or behavior is uncertain.
- Validate changed Svelte files before finalizing.
Official Svelte CLI Helpers
List documentation sections:
npx @sveltejs/mcp list-sections
Fetch relevant documentation sections:
npx @sveltejs/mcp get-documentation "$state,$derived,$effect"
Analyze a Svelte file:
npx @sveltejs/mcp svelte-autofixer ./src/lib/Component.svelte
If a project uses async Svelte features, include --async:
npx @sveltejs/mcp svelte-autofixer ./src/lib/Component.svelte --async
Notes
- Prefer checking docs for exact syntax over guessing.
- Escape
$when passing inline rune code through a shell. - Run validation on every changed
.svelte,.svelte.ts, and.svelte.jsfile when practical. - Last verified: 2026-05-14
Comments
Markdown supported