Svelte Runes
Svelte 5 runes guidance that picks the right rune for state, props, effects, or Svelte 4 migration.
- CCM score
- 62 of 100
- skills.sh installs
- 1.1K
- GitHub stars
- 96
- last updated
- Aug 21, 2026
Own this skill? Claim it
What it does
- Covers reactive state with
$state, computed values with$derived, side effects with$effect, and component props with$propsand$bindable - Includes a quick-reference decision guide, a Svelte 4 to 5 example, and links to five reference files on patterns, migration gotchas, and common mistakes
- Enforces Svelte 5 syntax only, such as
onclickoveron:clickand{@render children()}in layouts, and warns against mixing versions - Designed for developers writing or migrating Svelte components who need reactivity rules without the full manual
Install
$ npx -y skills add spences10/svelte-skills-kit --skill svelte-runes -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
Svelte Runes
Quick Start
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.
Example
<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>
Reference Files
- reactivity-patterns.md - When to use each rune
- migration-gotchas.md - Svelte 4→5 translation
- component-api.md - $props, $bindable patterns
- snippets-vs-slots.md - New snippet syntax
- common-mistakes.md - Anti-patterns with fixes
For
@attachand other template directives, see the svelte-template-directives skill.
Notes
Details
- Repository
- github.com/spences10/svelte-skills-kit
- Category
- Frontend & UI Code
- First seen
- Jun 3, 2026
More from spences10/svelte-skills-kit
All 7Similar to Svelte Runes
More Frontend & UI CodesvelteSkillmindrally/skills812 installsExpert Svelte 5 and SvelteKit guidance covering runes, snippets, SSR, and migration from Svelte 4.
svelte-core-bestpracticesSkillsveltejs/ai-tools13.1K installsOpinionated Svelte 5 guidance that steers components toward runes, derived state, and modern event and snippet patterns.
svelte-developmentSkillmanutej/luxor-claude-marketplace438 installsSvelte 5 skill covering runes, components, stores, lifecycle, and transitions with compile-time reactivity.
svelte-skillsPluginspences10/svelte-skills-kit96 starsSvelte 5 runes, SvelteKit data flow, routing, and structure patterns
sveltekit-svelte5-tailwind-skillSkillclaude-skills/sveltekit-svelte5-tailwind-skill602 installsIntegration guide for building SvelteKit 2, Svelte 5, and Tailwind CSS v4 sites with a documentation search workflow.