If you're working with Svelte 5's new reactivity system, this skill gives you quick reference for all the runes: $state, $derived, $effect, $props, and $bindable. It includes a compact decision tree for choosing the right one, covers the top-level-only constraint, and points you to references on migration gotchas from Svelte 4. The real value is in preventing common mistakes like mixing old and new syntax or misunderstanding that $derived can be reassigned unless you use const. It also reminds you about the new onclick syntax and snippet-based layouts, which trip up a lot of people during migration.

skills.sh installs
1.1K
GitHub stars
95
last updated
Aug 21, 2026

Install

$ npx -y skills add spences10/svelte-skills-kit --skill svelte-runes --agent claude-code

Installs into .claude/skills of the current project.

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

For @attach and other template directives, see the svelte-template-directives skill.

Notes

Sponsors

Details

Repository
github.com/spences10/svelte-skills-kit
Category
Frontend Development
First seen
Jun 3, 2026

More from spences10/svelte-skills-kit

All 8
1patternsdev avatarreact-data-fetchingpatternsdev/skillsTeaches modern React data fetching patterns with TanStack Query, SWR, and Suspense. Use when implementing caching, deduplication, optimistic updates, or paralle1.1Kskills.sh installs
2astronomer avatarsetting-up-astro-projectastronomer/agentsInitialize and configure Astro/Airflow projects. Use when the user wants to create a new project, set up dependencies, configure connections/variables, or under1.1Kskills.sh installs
3mindrally avatarhtmlmindrally/skillsGuidelines for semantic HTML markup, document structure, forms, accessibility attributes, and modern HTML best practices1.1Kskills.sh installs
4waynesutton avatarconvex-component-authoringwaynesutton/convexskillsHow to create, structure, and publish self-contained Convex components with proper isolation, exports, and dependency management1.1Kskills.sh installs
5alchaincyf avatarhuashu-md-htmlalchaincyf/huashu-md-html花叔的「md/html/docx 多向流水线」skill,四个能力 + 两种模式:(1) 用Microsoft markitdown把任意文件(PDF/DOCX/PPTX/XLSX/HTML/图片/音频/YouTube/EPub/ZIP)转成干净的md;(2) 用Pandoc + 4套精挑模板把md加工成出色的html1Kskills.sh installs
6github avatarreact-audit-grep-patternsgithub/awesome-copilotProvides the complete, verified grep scan command library for auditing React codebases before a React 18.3.1 or React 19 upgrade. Use this skill whenever runnin884skills.sh installs