svelte
Skill by ericrisco
Guides an AI assistant through building, reviewing and fixing Svelte 5 (runes) and SvelteKit code. It is for developers working on components, load functions, form actions and rendering choices.
Install svelte
Built from the published package, never by AI.
git clone --depth 1 https://github.com/ericrisco/rsc-harness /tmp/rsc-harness && mkdir -p ~/.claude/skills && cp -r /tmp/rsc-harness/skills/svelte ~/.claude/skills/svelteRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/ericrisco/rsc-harness /tmp/rsc-harness && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/rsc-harness/skills/svelte ~/.gemini/antigravity-cli/skills/svelteAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
The svelte skill guides an AI assistant through writing, reviewing and fixing Svelte 5 (runes) and SvelteKit code. It covers rune primitives, rune modules versus stores, file routing, universal versus server load functions, and form actions with progressive enhancement. It also covers remote functions, SSR, CSR and prerender choices, adapters, migrating Svelte 4 reactive statements to runes, and hydration mismatches.
The skill first checks whether a project uses Svelte 4 or Svelte 5 so it does not mix the two reactivity models in one file. It gives a decision table for $state, $derived and $effect, and lists anti-patterns such as using $effect to compute values. Deploy-specific details such as env vars and bindings are passed to separate platform skills. It is aimed at developers working on Svelte 5 and SvelteKit apps. Next.js and React Server Components are out of scope and belong to a different skill.
Written from the project's SKILL.md and checked against it.
What it can do
- Rune selectionPicks $state, $derived, $effect, $props or $bindable based on what a value is.
- Svelte 4 to 5 migrationMoves legacy let, $: and export let code to runes in a single file.
- Shared state modulesWrites reactive shared state in .svelte.js or .svelte.ts modules.
- Load function designChooses between universal and server load functions and types PageData.
- Form actionsWrites server form actions in +page.server.ts that work without JavaScript and upgrade with use:enhance.
- Remote functionsExplains query, form, command and prerender remote functions in *.remote.ts files.
- Rendering choicesSets SSR, CSR and prerender flags per route and picks an adapter for the deploy target.
- Hydration debuggingHelps diagnose hydration mismatches in Svelte components.
What you need
- A SvelteKit project using Svelte 5 (runes)
- svelte.config.js to enable remote functions, if used
Try asking
- Migrate this Svelte 4 component with export let and $: to runes
- Move the database call in +page.ts into +page.server.ts
- Add a progressive form action with use:enhance to this login page
Good to know
- Remote functions are experimental and their API may change.
- Universal load functions cannot stream top-level promises the way server load functions can.
- Remote functions require two flags in svelte.config.js to work.
- Next.js and React Server Components are not covered and belong to another skill.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: skills/svelte/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to svelte
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: common questions
Does this skill work with Svelte 4 code?
It detects Svelte 4 and recommends migrating a file to runes before adding new rune code. It advises against mixing $: or export let with runes in the same file.
Where should database calls and secrets go in SvelteKit?
The skill says database calls and secrets belong in +page.server.ts, because code in +page.ts ships to the browser.
Is this skill for Next.js projects?
No. The source says Next.js and React Server Components are not covered and point to a separate nextjs skill.
How do I install svelte?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is svelte free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is svelte safe to use?
It scores 71 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?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
