Svelte 5 patterns for runes, props, snippets, effects, attachments, and Svelte 4 migration. Load before any edit to a .svelte file or rune module, however small, and for Svelte questions.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Svelte Patterns?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/ku5ic-svelte-patterns)
---
name: svelte-patterns
description: Svelte 5 patterns for runes, props, snippets, effects, attachments, and Svelte 4 migration. Load before any edit to a .svelte file or rune module, however small, and for Svelte questions.
---
# Svelte patterns
Default assumption: Svelte 5.60, per the Svelte releases.
A row applies when the `svelte` version in the project's `package.json` and lockfile is at least its version. A component that uses a rune, or sets `runes: true`, is in runes mode, and legacy features stop working in it. TypeScript itself is typescript-patterns.
## Reference files
Loading this skill isn't enough. Before your next edit, read the file of every row that matches it. The rules live in those files, and this one only points at them.
| Before | Read |
| ----------------------------------------------------------------------------- | -------------------------------------------------------- |
| Writing Svelte code, raising the version, or moving a component from Svelte 4 | [reference/upgrades.md](reference/upgrades.md) |
| Writing, changing, or reviewing a Svelte component | [reference/anti-patterns.md](reference/anti-patterns.md) |
| Writing state, a derived value, an effect, props, a snippet, or an attachment | [reference/practices.md](reference/practices.md) |
| Configuring or running eslint-plugin-svelte, svelte-check, or Prettier | [reference/tooling.md](reference/tooling.md) |
| Writing or changing a `.svelte.js` or `.svelte.ts` module | [reference/rune-modules.md](reference/rune-modules.md) |