svelte
Skill15 starsChanged 44 days agoMITView on GitHub
Expert Svelte assistance covering Svelte 5 Runes, reactive declarations, stores, animations, and transitions. Use when building fast, reactive web UIs with minimal boilerplate.
9 other projects use a version of this.
Adopted by
Most recently taken up by
- vercel-labs/json-rendertheir own version, first seen Oct 29, 2026
- Mindrally/skillstheir own version, first seen Oct 8, 2026
- epicenter-md/epicentertheir own version, first seen Oct 8, 2026
- EpicenterHQ/epicentertheir own version, first seen Oct 8, 2026
- conjure-3301/skillstheir own version, first seen Aug 17, 2026
- hawk-digital-environments/ai-skillstheir own version, first seen Aug 13, 2026
Other versions9 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 9
- vercel-labs/json-render★ 19ksame name
- epicenter-md/epicenter★ 4.8ksame name
- EpicenterHQ/epicenter★ 4.8ksame name
- Mindrally/skills★ 275same name
- dylantarre/design-system-skills★ 50same name
- ffsshhttiikk/opencode-agents-skills★ 2same name
- hawk-digital-environments/ai-skills★ 1same name
- conjure-3301/skills★ 0same name
- mae616/ai-tech-knowledge★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository350 other files it gives its agents.
- airflowSkill
- catboostSkill
- claudeSkill
- comfyuiSkill
- cursor-aiSkill
- dalleSkill
- daskSkill
- dbtSkill
- deepseekSkill
- fastaiSkill
- geminiSkill
- github-copilotSkill
- huggingfaceSkill
- jaxSkill
- jupyterSkill
- kerasSkill
- langchainSkill
- lightgbmSkill
- llamaindexSkill
- llamaSkill
- matplotlibSkill
- midjourneySkill
- mistralSkill
- mlflowSkill
- nltkSkill
- numpySkill
- ollamaSkill
- openai-gptSkill
- opencvSkill
- pandasSkill
- perplexitySkill
- plotlySkill
- polarsSkill
- pytorchSkill
- raySkill
- scikit-learnSkill
- seabornSkill
- spacySkill
- sparkSkill
- stable-diffusionSkill
- tensorflowSkill
- vaexSkill
- weights-biasesSkill
- whisperSkill
- xgboostSkill
- api-gatewaySkill
- clean-architectureSkill
- cqrsSkill
- domain-driven-designSkill
- event-drivenSkill
- event-sourcingSkill
- graphqlSkill
- grpcSkill
- hexagonalSkill
- microservicesSkill
- modular-monolithSkill
- monolithSkill
- rest-apiSkill
- sagaSkill
- serverlessSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
4 rules. 0 are common, 0 are distinctive, and 4 are very specific to this project.
0
Common
Most of the 8 edited versions we read keep these.
0
Distinctive
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 66
Use modern Svelte 5 Runes ($state, $derived, $effect):
- Very specific: line 87
Use Runes: Migrate from legacy let syntax to $state and $derived for explicit reactivity.
- Very specific: line 88
Use onclick: Svelte 5 prefers native attributes (onclick) over on:click directives.
- Very specific: line 89
Use Snippets: Replace slots with Snippets for better type safety and flexibility.
“Common” is measured: kept by at least 6 in 10 of the 8 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Svelte
Svelte compiles declarative components into minimal vanilla JavaScript, utilizing explicit Runes for fine-grained reactivity without Virtual DOM overhead.
When to Use
- High Performance defaults: Svelte apps are tiny and fast by default.
- Embedded Apps: Great for widgets/embeds because of small bundle size.
- Simplicity: HTML, CSS, and JS in one file, with very little boilerplate.
Quick Start
<script>
let count = $state(0);
let double = $derived(count * 2);
function increment() {
count += 1;
}
</script>
<button onclick={increment}>
Count: {count} / Double: {double}
</button>Core Concepts
Runes
Svelte 5 reactivity markers.
$state: Declares reactive state.$derived: Declares a value that updates when dependencies change.$effect: Runs code when dependencies change (side effects).$props: Declares component props.
Snippets
Reusable chunks of markup within a component.
{#snippet figure(src, caption)}
<figure>
<img {src} alt={caption} />
<figcaption>{caption}</figcaption>
</figure>
{/snippet}
{@render figure(imageSrc, "A nice image")}Common Patterns
Svelte 5 Runes for Fine-Grained Reactive State
Problem: Legacy Svelte 3/4 let bindings and $: labels lack universal TypeScript ergonomics across .svelte.ts modules.
Solution:
Use modern Svelte 5 Runes ($state, $derived, $effect):
<script lang="ts">
let count = $state(0);
let double = $derived(count * 2);
$effect(() => {
console.log(`Count changed to: ${count}`);
});
</script>
<button on:click={() => count++}>
Count: {count} (Double: {double})
</button>Best Practices
Do:
- Use Runes: Migrate from legacy
letsyntax to$stateand$derivedfor explicit reactivity. - Use
onclick: Svelte 5 prefers native attributes (onclick) overon:clickdirectives. - Use Snippets: Replace
slotswith Snippets for better type safety and flexibility.
Don't:
- Rely on auto-reactivity (Legacy): In Svelte 5 settings, opting into Runes disables the "magic" assignment tracking of Svelte 3/4.
- Mutate state directly across component boundaries without explicit callbacks or binding props.
Troubleshooting
| Error | Cause | Solution |
Array/Object mutation not triggering update in Svelte 3/4 | Mutating array in-place without reassignment (arr.push(x)). | Reassign array: arr = [...arr, x] or upgrade to Svelte 5 $state(). |
Cannot bind to undefined property | Missing export let propName in child component definition. | Declare export let propName; (Svelte 3/4) or let { propName } = $props() (Svelte 5). |
Component is not defined in script | Typo in import or relative path missing .svelte file extension. | Include explicit .svelte extension on component imports. |
References
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

