svelte-core-bestpractices
Skill by oekazuma
Gives an AI assistant guidance on writing fast, robust, modern Svelte code. Intended for work in Svelte projects, covering reactivity, events, styling, context and legacy replacements.
Install svelte-core-bestpractices
Built from the published package, never by AI.
git clone --depth 1 https://github.com/oekazuma/svelte-meta-tags /tmp/svelte-meta-tags && mkdir -p ~/.claude/skills && cp -r /tmp/svelte-meta-tags/.agents/skills/svelte-core-bestpractices ~/.claude/skills/svelte-core-bestpracticesRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
Step-by-step: install svelte-core-bestpractices in Claude Code
git clone --depth 1 https://github.com/oekazuma/svelte-meta-tags /tmp/svelte-meta-tags && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/svelte-meta-tags/.agents/skills/svelte-core-bestpractices ~/.gemini/antigravity-cli/skills/svelte-core-bestpracticesAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install svelte-core-bestpractices in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
The svelte-core-bestpractices skill gives an AI assistant guidance on writing fast, robust, and modern Svelte code. It is meant to be loaded when working in a Svelte project and asked to write, edit, or analyze a Svelte component or module. The guidance covers reactivity, event handling, styling, and integration with libraries, among other topics.
The file is written as a set of rules for the assistant to follow. It favors runes mode, $derived over $effect, keyed each blocks, CSS custom properties for styling child components, and context over shared modules. It also lists legacy Svelte features with modern replacements, such as snippets instead of slots and onclick instead of on:click.
Written from the project's SKILL.md and checked against it.
What it can do
- Reactivity rulesExplains when to use $state, $derived, $effect, $props and $inspect.trace.
- Event handlingCovers on-prefixed event attributes and listeners on svelte:window and svelte:document.
- Snippets and each blocksDescribes reusable markup with snippets and keyed each blocks for performance.
- StylingRecommends CSS custom properties and :global for styling child components.
- ContextAdvises createContext over shared modules for scoped, type-safe state.
- Async SvelteCovers await expressions and hydratable for Svelte 5.36 or higher.
- Legacy replacementsLists modern equivalents for slots, export let, stores and use:action.
What you need
- A Svelte project
- Svelte 5.36 or higher for await expressions
- experimental.async enabled in svelte.config.js for async features
Try asking
- Review this Svelte component and suggest reactivity fixes using $derived.
- Refactor this Svelte 4 component to runes mode with $props and $state.
- Replace the slots in this Svelte component with snippets and @render.
Good to know
- Async features are not yet considered fully stable.
- Await expressions require the experimental.async option.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: .agents/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/$inspect.md2 KB -
references/@attach.md5 KB -
references/@render.md764 B -
references/await-expressions.md6 KB
Show all 10 files
-
references/bind.md518 B -
references/each.md1 KB -
references/hydratable.md4 KB -
references/snippet.md6 KB -
references/svelte-reactivity.md2 KB
Alternatives to svelte-core-bestpractices
All alternatives →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.
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.
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.
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.
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.
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.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
svelte-core-bestpractices: common questions
Does this skill require a specific Svelte version?
The async features, await expressions and hydratable, require Svelte 5.36 or higher. They also need the experimental.async option in svelte.config.js.
Should I use $effect to sync state?
The source says effects should mostly be avoided. It suggests attachments for external libraries, event handlers for user interaction, and $inspect for debugging.
Does it cover server-side rendering?
It advises using context instead of shared modules so state does not leak between users during server-side rendering. It also notes that effects do not run on the server.
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 83 of 100. Grades: maintenance A, licence A, quality A. 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.
