Svelte code writer

From spences10/skills · View interactive version

Svelte code writer is an AI agent skill from the GitHub repository spences10/skills. Svelte code writing and validation workflow. Use when creating, editing, reviewing, or debugging .svelte, .svelte.ts, or .svelte.js files.

How to use this skill

Skill file

<!-- Inspired by the official Svelte AI svelte-code-writer skill: https://svelte.dev/docs/ai/skills -->

Svelte Code Writer

Use this workflow when creating, editing, reviewing, or debugging Svelte files.

Workflow

  1. Load svelte-core-bestpractices for baseline Svelte 5 rules.
  2. Load deeper local skills as needed: svelte-runes, svelte-template-directives, svelte-styling, sveltekit-data-flow, or sveltekit-structure.
  3. Check relevant official docs when syntax or behavior is uncertain.
  4. 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

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.