svelte
Installation
SKILL.md
Svelte Frontend Standards
For Svelte 5 (runes API: $state, $derived, $effect, $props) and SvelteKit for routing, SSR, and data loading. Extends the framework-agnostic rules in the core-standards skill with Svelte-specific APIs, conventions, and tooling. If a project is still on Svelte 4 (export let / $: reactive statements / stores-first), note that explicitly in the rules file, since prop and reactivity syntax differ from what's described here.
When to use this skill
- Setting up or reviewing contributor rules for a new or existing Svelte/SvelteKit project.
- Writing or reviewing
.sveltecomponents, deciding between local$stateand a shared store. - Writing or auditing
src/routes/pages, layouts, load functions, or error boundaries. - Investigating a SvelteKit app's PageSpeed Insights / Lighthouse score.
- Generating a
CLAUDE.md/.cursor/rules/AGENTS.mdfor a Svelte codebase.