Skip to main content
skill CX Codex

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.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add spences10/svelte-skills-kit --skill svelte-runes -a claude-code
Open on GitHub

What 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 $state and $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 $state and $derived runes.
  • Make the value prop two-way using $bindable and switch on:click to onclick.

How to install svelte-runes

1Skills CLI (Vercel)

npx skills add spences10/svelte-skills-kit --skill svelte-runes -a claude-code

2Manually: put the files in place

~/.claude/skills/svelte-runes/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/svelte-runes/

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.

Similar skills

Everything for Frontend and UI →

From the same set4

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor