Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

svelte-core-bestpractices

Skill by sveltejs

Guides an AI assistant to write, edit and analyze Svelte components and modules with modern, fast and robust patterns. Aimed at developers working in Svelte projects.

  • Score 89
  • 350 stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install svelte-core-bestpractices

Built from the published package, never by AI.

git clone --depth 1 https://github.com/sveltejs/ai-tools /tmp/ai-tools && mkdir -p ~/.claude/skills && cp -r /tmp/ai-tools/tools/skills/svelte-core-bestpractices ~/.claude/skills/svelte-core-bestpractices

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install svelte-core-bestpractices in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

svelte-core-bestpractices is a skill that gives an AI assistant guidance for writing fast, robust and modern Svelte code. It covers runes such as $state, $derived, $effect and $props, along with event handling, snippets, each blocks, styling, context and integration with libraries. The source says it should be loaded whenever the assistant is in a Svelte project and asked to write, edit or analyze a Svelte component or module.

The guidance is organized by topic. It explains when to use $state.raw for large data that is only reassigned, why $derived is preferred over $effect for computed values, and why keyed each blocks help performance. It also lists legacy features to avoid, such as export let, on:click and slots, with their runes-mode replacements. For Svelte 5.36 or higher, it describes await expressions and hydratable. The source is aimed at developers building Svelte applications.

Written from the project's SKILL.md and checked against it.

What it can do

  • Reactivity with runesExplains when to use $state, $state.raw and $inspect.trace for reactive variables and debugging.
  • Derived stateAdvises computing values with $derived or $derived.by instead of $effect.
  • Effects guidanceRecommends avoiding effects and suggests event handlers, function bindings, {@attach} or createSubscriber instead.
  • PropsShows how to keep values that depend on props reactive using $derived.
  • Event handlingCovers on-attributes, <svelte:window> and <svelte:document> listeners.
  • SnippetsDescribes defining reusable markup with snippets and rendering them with {@render}.
  • Each blocksRecommends keyed each blocks and warns against using the index as a key.
  • Styling child componentsExplains passing CSS custom properties to children and using :global when needed.
  • ContextRecommends context over shared state modules and createContext for type safety.
  • Legacy feature migrationLists legacy Svelte features to avoid and their modern replacements.

What you need

  • A Svelte project
  • Svelte 5.36 or higher for await expressions and hydratable
  • The experimental.async option enabled in vite.config.js or svelte.config.js for async features

Try asking

  • Refactor this Svelte component to use $derived instead of $effect.
  • Review this Svelte module and suggest $state.raw where data is only reassigned.
  • Convert this component's export let props and on:click handlers to runes mode.

Good to know

  • Async features such as await expressions require the experimental.async option.
  • The source says the async features are not yet considered fully stable.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: tools/skills/svelte-core-bestpractices/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • SKILL.md7 KB
  • references/attach.md5 KB
  • references/await-expressions.md6 KB
  • references/bind.md522 B
  • references/each.md1 KB
Show all 10 files
  • references/hydratable.md4 KB
  • references/inspect.md2 KB
  • references/render.md841 B
  • references/snippet.md8 KB
  • references/svelte-reactivity.md2 KB

Alternatives to svelte-core-bestpractices

All alternatives →
openclaw-github-repo-commandersickn33
94

Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.

AAA Skill 50k
gradiogradio-app
94

Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.

AAA Skill 44k
hig-components-menussickn33
94

Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.

AAA Skill 50k
fastapi-templateswshobson
94

Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.

AAA Skill 43k
appfunctionsandroid
94

Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.

AAA Skill 11k
agent-qa-authoringsickn33
94

Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.

AAA Skill 50k

Compare with openclaw-github-repo-commander, gradio or hig-components-menus

svelte-core-bestpractices: common questions

When should I use $state.raw instead of $state?

The source says to use $state.raw for large objects that are only ever reassigned rather than mutated, such as API responses. It avoids the proxy overhead of deeply reactive state.

Why should I avoid $effect for computed values?

The source says to compute values from state with $derived rather than $effect. Effects are described as an escape hatch that should mostly be avoided.

Does this skill work with Svelte 4?

The source focuses on runes mode and recommends it for new code. It says to avoid legacy features, and it notes that some async features need Svelte 5.36 or higher.

How do I install svelte-core-bestpractices?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is svelte-core-bestpractices free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is svelte-core-bestpractices safe to use?

It scores 89 of 100. Grades: maintenance A, licence A, quality B. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to svelte-core-bestpractices?

Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.

svelte-core-bestpractices Install

Add to stack

Loading.