GreenSock's official skill for using GSAP in Vue, Nuxt, Svelte and SvelteKit: create tweens after mount, scope selectors to the component and revert everything on unmount.
Svelte Core Best Practices Skill
The Svelte team's own guidance on writing modern Svelte 5 — when to reach for each rune, why effects are an escape hatch, and the reactivity traps models fall into.
Install
Other ways to install
About
- When to use $state versus $state.raw, and the proxying cost of deep reactivity
- Compute with $derived instead of assigning inside an $effect
- Effects as an escape hatch, with named alternatives for each common case
- Props treated as changing values, so derived data does not go stale
- $inspect.trace for finding which dependency triggered an update
Svelte 5's runes are recent enough that language models routinely produce code that looks right and behaves wrong. This official skill, maintained by the Svelte core team, encodes the team's own guidance so an agent applies current idioms instead of Svelte 4 muscle memory.
The advice is specific rather than motivational. Use $state only for variables that something actually reacts to, and prefer $state.raw for large objects that are reassigned rather than mutated, because deep reactivity means proxying every object and that costs. Compute with $derived, not with an $effect that assigns to a variable. Treat effects as an escape hatch and avoid updating state inside them at all — with concrete alternatives named for each case: attachments for syncing to an external library like D3, event handlers or function bindings for responding to user interaction, $inspect for debugging, createSubscriber for observing something outside Svelte.
It also covers the mistakes that are hard to spot in review. Props should be treated as though they will change, so anything derived from a prop needs $derived or it silently goes stale. Effects never run on the server, so wrapping their contents in if (browser) is always redundant. And $inspect.trace is offered as the tool for working out which dependency actually triggered a re-run when something updates more often than it should.
Beyond reactivity the skill covers event handling (any on-prefixed attribute is a listener, including through spreads), styling, and integrating third-party libraries. It pairs naturally with the Svelte Code Writer skill, which validates the result. MIT licensed.
SKILL.md
The instructions your agent loads, as published by Svelte.
Related Skills
See all Svelte Core Best Practices alternativesSkill: Svelte Code Writer
by Svelte
The official Svelte team skill that wires an agent to the @sveltejs/mcp CLI for Svelte 5 docs lookup and an autofixer that validates components before you ship them.
Addy Osmani's skill for designing stable APIs and module boundaries: contract first, consistent errors, validation at the edge, additive change, idempotency keys, REST and TypeScript patterns.
Addy Osmani's measure-first performance workflow for coding agents: Core Web Vitals targets, bottleneck diagnosis across frontend and backend, keep-or-revert verification and regression guards.
