/svelte-skills:svelte-runesfrom svelte-skills
Provides guidance on Svelte runes ($state, $derived, $effect, $props, $bindable) for reactive state, computed values, side effects, and Svelte 4→5 migration. Prevents common reactivity mistakes.
Ships in svelte-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Which rune? Props: $props() | Bindable: $bindable() |
Computed: $derived() | Side effect: $effect() | State: $state()
Key rules: Runes are top-level only. $derived can be overridden
(use const for read-only). Don't mix Svelte 4/5 syntax.
Objects/arrays are deeply reactive by default.
<script>
let count = $state(0); // Mutable state
const doubled = $derived(count * 2); // Computed (const = read-only)
$effect(() => {
console.log(`Count is ${count}`); // Side effect
});
</script>
<button onclick={() => count++}>
{count} (doubled: {doubled})
</button>
For
@attachand other template directives, see the svelte-template-directives skill.
onclick not on:click, {@render children()} in layouts$derived can be reassigned (5.25+) - use const for read-onlycreateContext over setContext/getContext for type safety$inspect.trace to debug reactivity issuesREADME.md (opens in a new tab)examples/bindable-props.svelte (opens in a new tab)examples/effect-vs-derived.svelte (opens in a new tab)references/common-mistakes.md (opens in a new tab)references/component-api.md (opens in a new tab)references/migration-gotchas.md (opens in a new tab)references/reactivity-patterns.md (opens in a new tab)references/snippets-vs-slots.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
10 skills in this plugin
/ecosystem-guideGuide to spences10's Claude Code ecosystem tools. Use when user asks which tool to use, how tools relate, or needs help choosing between MCP servers, skills, or CLIs./svelte-componentsSvelte component patterns. Use for web components, component libraries (Bits UI, Ark UI, Melt UI), form patterns, or third-party integration./svelte-deploymentSvelte deployment guidance. Use for adapters, Vite config, pnpm setup, library authoring, PWA, or production builds.npx claudepluginhub spences10/svelte-skills-kit --plugin svelte-skillsOther plugins' skills for the same job