Skip to main content
Back to registry

svelte-core-bestpractices

sveltejs/ai-tools

Only use the $state rune for variables that should be reactive — in other words, variables that cause an $effect , $derived or template expression to update. Everything else can be a normal variable.

Installs172
Install command
npx skills add https://github.com/sveltejs/ai-tools --skill svelte-core-bestpractices
Security audits
Gen Agent Trust HubPASS
SocketFAIL
SnykPASS
About this skill
Only use the $state rune for variables that should be reactive — in other words, variables that cause an $effect , $derived or template expression to update. Everything else can be a normal variable. Objects and arrays ( $state({...}) or $state([...]) ) are made deeply reactive, meaning mutation will trigger updates. This has a trade-off: in exchange for fine-grained reactivity, the objects must be proxied, which has performance overhead. In cases where you're dealing with large objects that are only ever reassigned (rather than mutated), use $state.raw instead. This is often the case with API responses, for example. To compute something from state, use $derived rather than $effect : [!NOTE] $derived is given an expression, not a function. If you need to use a function (because the expression is complex, for example) use $derived.by .

Source description provided by the upstream skill listing. Community reviews and install context appear in the sections below.

Community Reviews

Latest reviews

Sign in to review

No community reviews yet. Be the first to review.

Browse this skill in context
FAQ
What does svelte-core-bestpractices do?

Only use the $state rune for variables that should be reactive — in other words, variables that cause an $effect , $derived or template expression to update. Everything else can be a normal variable.

Is svelte-core-bestpractices good?

svelte-core-bestpractices does not have approved reviews yet, so SkillJury cannot publish a community verdict.

What agent does svelte-core-bestpractices work with?

svelte-core-bestpractices currently lists compatibility with codex, gemini-cli, opencode, kimi-cli, amp, github-copilot.

What are alternatives to svelte-core-bestpractices?

Skills in the same category include telegram-bot-builder, flutter-app-size, sharp-edges, iterative-retrieval.

How do I install svelte-core-bestpractices?

npx skills add https://github.com/sveltejs/ai-tools --skill svelte-core-bestpractices

Related skills

More from sveltejs/ai-tools

Related skills

Alternatives in Software Engineering