svelte-runes — Claude Code skill: what it does, how to install
Guides coding agents on Svelte 5 runes without mixing legacy syntax. It helps set up reactive state, derived values, effects, and component props.
npx skills add spences10/svelte-skills-kit --skill svelte-runes -a claude-codeWhat svelte-runes does
This skill equips your coding agent with core Svelte 5 reactivity conventions. It covers fundamental runes like $state for mutable state, $derived for computed data, $effect for side effects, plus $props and $bindable for component interfaces. Objects and arrays placed in state are deeply reactive right away.
Runes belong strictly at the top level. Mixing Svelte 4 and Svelte 5 patterns breaks reactivity, so the guidelines enforce modern template habits like onclick over on:click and snippet rendering via {@render children()}. Starting with Svelte 5.25, $derived can be reassigned. Declaring it with const keeps computed values strictly read-only.
For shared state, the skill favors type-safe createContext over traditional context functions. It also directs models to debug reactive chains with $inspect.trace. Template directives like @attach are separated into a different skill.
What it helps with
- migrate components from Svelte 4 syntax to Svelte 5 runes
- declare state and computed values using
$stateand$derived - configure two-way prop bindings with
$bindable - debug reactivity issues via
$inspect.trace
Example prompts for the agent
- Refactor this component from Svelte 4 reactivity to
$stateand$derivedrunes. - Make the
valueprop two-way using$bindableand switchon:clicktoonclick.
How to install svelte-runes
1Skills CLI (Vercel)
npx skills add spences10/svelte-skills-kit --skill svelte-runes -a claude-code2Manually: put the files in place
~/.claude/skills/svelte-runes/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/svelte-runes/
1Skills CLI (Vercel)
npx skills add spences10/svelte-skills-kit --skill svelte-runes -a codex2Manually: put the files in place
.agents/skills/svelte-runes/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add spences10/svelte-skills-kit --skill svelte-runes -a cursor2Manually: put the files in place
.cursor/skills/svelte-runes/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install spences10/svelte-skills-kit svelte-runes2Manually: put the files in place
.github/skills/svelte-runes/SKILL.md1Skills CLI (Vercel)
npx skills add spences10/svelte-skills-kit --skill svelte-runes -a gemini-cli2Platform CLI
gemini skills install https://github.com/spences10/svelte-skills-kit --path plugins/svelte-skills/skills/svelte-runesManually: put the files in place
.devin/skills/svelte-runes/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add spences10/svelte-skills-kit --skill svelte-runes -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about svelte-runes
How to install svelte-runes in Claude Code?
Run npx skills add spences10/svelte-skills-kit --skill svelte-runes -a claude-code. This installs the skill file directly into your environment.
What does svelte-runes do?
It guides the assistant on Svelte 5 reactivity, covering $state, $derived, $effect, and props while preventing errors from mixing older conventions.
Why declare $derived with const?
In Svelte 5.25 and newer, $derived values can be reassigned. Using const ensures the derived calculation stays read-only.