Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
spences10 avatar

Svelte Runes

  • 528 installs
  • 92 repo stars
  • Updated April 29, 2026
  • spences10/svelte-skills-kit

svelte-runes is an agent skill that authors and migrates Svelte 5 runes ($state, $derived, $effect) for developers replacing legacy stores with modern reactive UI logic.

About

svelte-runes is a frontend agent skill in spences10/svelte-skills-kit focused on Svelte 5 runes-based reactivity for new components and migrations away from legacy store patterns. It helps agents apply $state for mutable component state, $derived for computed values, and $effect for side effects without the subtle pitfalls of pre-runes stores and manual subscriptions. Developers reach for svelte-runes when upgrading SvelteKit apps, building component libraries on Svelte 5, or when agents generate reactive UI logic that must compile against runes semantics. The skill fits feature work where derived data, local UI state, and effect cleanup must stay idiomatic after a Svelte 4 store refactor. Use it during component authoring, runes migration pull requests, and library APIs that expose reactive props consistently. Agents should prefer runes-native patterns over writable stores unless interoperability requires legacy APIs. The skill aligns with Svelte 5 compiler expectations so agents do not reintroduce `$:` labels or store boilerplate that fight the new reactivity model during incremental upgrades.

  • $state $derived $effect
  • Store migration paths
  • Fine-grained reactivity
  • Effect cleanup rules
  • Component API clarity

Svelte Runes by the numbers

  • 528 all-time installs (skills.sh)
  • +15 installs in the week ending Aug 5, 2026 (Skillselion tracking)
  • Ranked #612 of 2,245 Frontend Development skills by installs in the Skillselion catalog
  • Data as of Aug 5, 2026 (Skillselion catalog sync)
npx skills add https://github.com/spences10/svelte-skills-kit --skill svelte-runes

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs528
repo stars92
Last updatedApril 29, 2026
Repositoryspences10/svelte-skills-kit

How do you migrate Svelte stores to runes?

Migrate or author Svelte 5 runes—$state, $derived, $effect—for reactive UI logic without legacy store pitfalls in new features and component libraries.

Who is it for?

Frontend developers on Svelte 5 or SvelteKit who need agents to write runes-native reactivity instead of legacy store boilerplate.

Skip if: Teams still standardized on Svelte 4-only stores with no Svelte 5 upgrade planned should skip svelte-runes.

When should I use this skill?

User edits Svelte 5 components, mentions $state/$derived/$effect, or asks to migrate stores to runes.

What you get

Svelte 5 runes-based components, derived reactive values, and effect-safe side-effect blocks.

  • Runes-native Svelte components
  • Store-to-runes migration patches
  • Derived and effect-safe reactive logic

By the numbers

  • Centers on 3 core Svelte 5 runes: $state, $derived, and $effect

Files

SKILL.mdMarkdownGitHub ↗

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 @attach and other template directives, see the
svelte-template-directives skill.

Notes

  • Use onclick not on:click, {@render children()} in layouts
  • $derived can be reassigned (5.25+) - use const for read-only
  • Use createContext over setContext/getContext for type safety
  • Use $inspect.trace to debug reactivity issues
  • Last verified: 2026-03-12

<!-- PROGRESSIVE DISCLOSURE GUIDELINES:

  • Keep this file ~50 lines total (max ~150 lines)
  • Use 1-2 code blocks only (recommend 1)
  • Keep description <200 chars for Level 1 efficiency
  • Move detailed docs to references/ for Level 3 loading
  • This is Level 2 - quick reference ONLY, not a manual

LLM WORKFLOW (when editing this file): 1. Write/edit SKILL.md 2. Format (if formatter available) 3. Run: npx skills add . --list 4. If the skill is not discovered, check SKILL.md frontmatter formatting 5. Validate again to confirm -->

Related skills

How it compares

Pick svelte-runes over generic Svelte skills when the codebase is on Svelte 5 runes and store migration is the primary task.

FAQ

Which runes does svelte-runes cover?

svelte-runes covers Svelte 5 $state for mutable state, $derived for computed values, and $effect for side effects when authoring or migrating components in spences10/svelte-skills-kit projects.

When should agents use svelte-runes?

Agents should use svelte-runes when building new Svelte 5 features, migrating legacy stores, or fixing reactive UI logic in SvelteKit apps that target runes semantics.

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.