
Description
svelte-core-bestpractices is an agent skill from sveltejs/ai-tools, listed on skills.sh. It gives a coding agent guidance for writing fast, robust and modern Svelte code. The agent loads it in a Svelte project when it is asked to write, edit or analyze a component or page. The guidance centers on Svelte's reactivity runes. It says to use $state only for values that must trigger updates in effects, derived values or template expressions, and to keep everything else as a normal variable. It recommends $state.raw for large objects that are only reassigned, such as API responses, because deeply reactive objects are proxied and carry overhead. It also says to compute values with $derived instead of assigning them inside an $effect. The skill is free to install from the sveltejs/ai-tools repository on GitHub. A skill is a SKILL.md file of instructions that an AI agent loads only when a task calls for it, so the same practices apply each time without being repeated in the prompt.…
Highlights
- Use $state only for values that need reactivity
- Compute derived values with $derived, not $effect
- Use $state.raw for large objects that are reassigned
- Guidance for writing and reviewing Svelte components
Ratings & Reviews
No ratings yet
Be the first to rate svelte-core-bestpractices.
People also visit
svelte-core-bestpractices FAQ
What does this Svelte skill do?
It gives a coding agent Svelte best practices for writing, editing and reviewing components and pages, with a focus on reactivity with the $state and $derived runes.
How do I install it?
Run: npx skills add https://github.com/sveltejs/ai-tools --skill svelte-core-bestpractices
When does the agent use it?
When the project is a Svelte project and the task is to write, edit or analyze a Svelte component or page.
Why does it recommend $state.raw?
Deeply reactive objects are proxied, which costs performance. For large objects that are only ever reassigned, such as API responses, $state.raw avoids that overhead.
Is it free?
Yes. The skill is listed on skills.sh as free and is published on GitHub.
What do the security audits say?
Gen Agent Trust Hub: Pass. Socket: Pass. Snyk: Pass.
What are the best svelte-core-bestpractices alternatives?
Popular alternatives to svelte-core-bestpractices include svelte5-best-practices, svelte-code-writer and svelte. See all svelte-core-bestpractices alternatives

















