svelte-core-bestpractices
Skill by kampsy
Gives an AI assistant best-practice guidance for writing fast, robust and modern Svelte components and modules. Intended for Svelte projects, covering reactivity, events, styling and library integration.
Install svelte-core-bestpractices
Built from the published package, never by AI.
git clone --depth 1 https://github.com/kampsy/ui /tmp/ui && mkdir -p ~/.claude/skills && cp -r /tmp/ui/.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/kampsy/ui /tmp/ui && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/ui/.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
svelte-core-bestpractices is an agent skill that gives an AI assistant guidance on writing fast, robust and modern Svelte code. The skill is meant to be loaded in a Svelte project when the assistant is asked to write, edit or analyze a Svelte component or module. It is published by kampsy and is defined in a SKILL.md file.
The guidance covers reactivity with $state, $derived, $effect and $props, along with event handling, snippets, keyed each blocks, styling, context and async Svelte. It also lists legacy Svelte features and the modern replacements to use instead, such as runes mode in place of implicit reactivity. The source is written for developers and AI assistants working on Svelte code.
Written from the project's SKILL.md and checked against it.
What it can do
- Reactivity guidanceExplains when to use $state, $derived, $effect and $props, and when to avoid them.
- Event handlingCovers element event attributes and attaching listeners to window or document.
- SnippetsDescribes defining reusable markup with snippet and render tags.
- Keyed each blocksRecommends keyed each blocks for better update performance.
- StylingCovers passing values into CSS and styling child components with custom properties or :global.
- ContextRecommends context over shared modules for scoping state, using createContext.
- Async SvelteDescribes await expressions and hydratable promises in newer Svelte versions.
- Legacy replacementsLists older Svelte features and the modern alternatives to use in new code.
What you need
- A Svelte project
- Svelte 5.36 or higher for await expressions and hydratable
Try asking
- Review this Svelte component and suggest reactivity fixes using $derived
- Refactor this Svelte component to use snippets instead of slots
- Convert this Svelte component to runes mode and modern event handlers
Good to know
- Async features require the experimental.async option in svelte.config.js
- Await expressions and hydratable are not yet considered fully stable
- Guidance only, it does not run code or tools
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
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
When should I use $derived instead of $effect in Svelte?
The source says to compute values from state with $derived rather than $effect, because effects should mostly be avoided and state should not be updated inside them.
Should I use keys in Svelte each blocks?
Yes, the source prefers keyed each blocks because they let Svelte insert or remove items without updating existing items. The key must uniquely identify each object and must not be the index.
Does this skill work with older Svelte versions?
The source says to always use runes mode for new code. Its async features need Svelte 5.36 or higher and the experimental.async option.
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 69 of 100. Grades: maintenance B, 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.
