Svelte Runes

Svelte runes guidance. Use for reactive state, props, effects, attachments, or migration. Covers $state, $derived, $effect, @attach. Prevents reactivity mistakes.

217 stars 20 forksFrontend & Design

Install

skills CLI (Claude Code, Cursor, Codex and more)
npx skills add spences10/svelte-claude-skills --skill svelte-runes
Manual install
git clone --depth 1 https://github.com/spences10/svelte-claude-skills.git /tmp/svelte-claude-skills
mkdir -p ~/.claude/skills
cp -r /tmp/svelte-claude-skills/.claude/skills/svelte-runes ~/.claude/skills/svelte-runes

Personal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.

From the SKILL.md

# 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

```svelte
<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](references/reactivity-patterns.md) - When
  to use each rune
- [migration-gotchas.md](references/migration-gotchas.md) - Svelte 4→5
  translation
- [component-api.md](references/component-api.md) - $props, $bindable
  patterns
- [snippets-vs-slots.md](references/snippets-vs-slots.md) - New
  snippet syntax
- [common-mistakes.md](references/common-mistakes.md) - Anti-patterns
  with fixes
- [attachments.md](references/attachments.md) - @attach replaces use:
  actions

## Notes

- Use `onclick` not `on:click`, `{@render children()}` in layouts
- `$derived` can be reassigned (5.25+) - use `const` for read-only
- **Last verified:** 2025-01-11
Read the full skill on GitHub

Details

Skill name
svelte-runes
Path
.claude/skills/svelte-runes/SKILL.md
Repo updated
18 November 2026

FAQ

What does the Svelte Runes skill do?

Svelte runes guidance. Use for reactive state, props, effects, attachments, or migration. Covers $state, $derived, $effect, @attach. Prevents reactivity mistakes.

How do I install the Svelte Runes skill?

skills CLI (Claude Code, Cursor, Codex and more): npx skills add spences10/svelte-claude-skills --skill svelte-runes. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.

Is Svelte Runes popular?

It lives in spences10/svelte-claude-skills, which has 217 GitHub stars and 20 forks.

Related skills

Research

217

spences10/svelte-claude-skills

Research topics by verifying actual source content. Use when asked to research or study links and documentation.

Research & Science20

Svelte Components

217

spences10/svelte-claude-skills

Svelte component patterns. Use for web components, component libraries (Bits UI, Ark UI, Melt UI), form patterns, or third-party integration.

Frontend & Design20

Svelte Deployment

217

spences10/svelte-claude-skills

Svelte deployment guidance. Use for adapters, Vite config, pnpm setup, library authoring, PWA, or production builds.

DevOps & Cloud20

Sveltekit Data Flow

217

spences10/svelte-claude-skills

SvelteKit data flow guidance. Use for load functions, form actions, and server/client data. Covers +page.server.ts vs +page.ts, serialization, fail(), redirect(), error().

Frontend & Design20

Sveltekit Remote Functions

217

spences10/svelte-claude-skills

SvelteKit remote functions guidance. Use for command(), query(), form() patterns in .remote.ts files.

Frontend & Design20

Prototype to Figma

142

alima-max/prototype-to-figma-skill

Converts a working Claude Code prototype into a structured Figma design file — exploding each interaction flow into separate frames, using the target file's design system components, and annotating interaction details natively in Figma. Use this skill whenever the user asks to turn a prototype into Figma frames, generate design specs from a prototype, create a Figma handoff from code, explode a prototype into states, or make a prototype reviewable by cross-functional partners. Also trigger when the user mentions "prototype to Figma", "design review from prototype", "async feedback on prototype

Frontend & Design14

Browse the most popular Claude skills, all frontend & design skills, or write your own with the skills generator.