Svelte 5 runes, snippets, and SvelteKit patterns for modern component development.
Works with
Covers all Svelte 5 runes ($state, $derived, $effect, $props, $bindable, $inspect) with reactive state and computed value patterns
Explains snippets syntax ({#snippet}, {@render}) as the replacement for slots and slot props
Includes event handling migration from on: directives to onclick handlers and callback props, plus SvelteKit load functions and form actions
Provides TypeScript typing for props,
AI-first code editor with Composer
Before installing skills in Cursor, ensure your development environment meets these requirements:
node --versionsvelte5-best-practicesExecute the skills CLI command in your project's root directory to begin installation:
Fetches svelte5-best-practices from ejirocodes/agent-skills and configures it for Cursor.
The CLI shows a list of agents. Use arrow keys and space to select Cursor:
Confirm successful installation by checking the skill directory location:
Restart Cursor to activate svelte5-best-practices. Access via /svelte5-best-practices in your agent's command palette.
We perform automated surface-level scans (Gen AI Scanner, Socket, Snyk) during installation. These checks detect common vulnerabilities but do not guarantee complete security. Always review skill source code and verify the publisher's reputation before production use.
Skills execute code in your environment. Always review source, verify the publisher, and test in isolation before production.
Submit your Claude Code skill and start earning
Automate repetitive workflows and reduce manual effort
Example
Generate reports, summarize documents, draft communications
Save 3-5 hours per week on routine tasks
Learn new skills, understand complex topics, get expert guidance
Example
Explain concepts, provide examples, suggest learning resources
Accelerate learning and skill development by 2x
Enhance output quality through reviews, suggestions, and refinements
Example
Review drafts, suggest improvements, catch errors
Improve work quality by 30-40% with less effort
24
total installs
24
this week
4
GitHub stars
0
upvotes
Run in your terminal
24
installs
24
this week
4
stars
| Topic | When to Use | Reference |
|---|---|---|
| Runes | $state, $derived, $effect, $props, $bindable, $inspect | runes.md |
| Snippets | Replacing slots, {#snippet}, {@render} | snippets.md |
| Events | onclick handlers, callback props, context API | events.md |
| TypeScript | Props typing, generic components | typescript.md |
| Migration | Svelte 4 to 5, stores to runes | migration.md |
| SvelteKit | Load functions, form actions, SSR, page typing | sveltekit.md |
| Performance | Universal reactivity, avoiding over-reactivity, streaming | performance.md |
<script>
let count = $state(0); // Reactive state
let doubled = $derived(count * 2); // Computed value
</script>
<script>
let { name, count = 0 } = $props();
let { value = $bindable() } = $props(); // Two-way binding
</script>
<script>
let { children, header } = $props();
</script>
{@render header?.()}
{@render children()}
<!-- Svelte 5: use onclick, not on:click -->
<button onclick={() => count++}>Click</button>
<script>
let { onclick } = $props();
</script>
<button onclick={() => onclick?.({ data })}>Click</button>
let without $state - Variables are not reactive without $state()$effect for derived values - Use $derived insteadon:click syntax - Use onclick in Svelte 5createEventDispatcher - Use callback props instead<slot> - Use snippets with {@render}$bindable() - Required for bind: to workPromise.all for parallel requestsPrerequisites
Time Estimate
15-45 minutes depending on use case complexity
Steps
Common Pitfalls
โ Do
โ Don't
๐ก Pro Tips
โ Use when
Use when skill capabilities match your task, clear ROI on time saved, and you can validate outputs. Best for repetitive tasks, learning, and quality improvement.
โ Avoid when
Avoid when task requires deep expertise you can't validate, involves sensitive decisions, or when learning process is more valuable than speed of completion.
asyrafhussin/agent-skills
jwynia/agent-skills
kadajett/agent-nestjs-skills
anthropics/claude-code
github/awesome-copilot
mblode/agent-skills
svelte5-best-practices is among the better-maintained entries we tried; worth keeping pinned for repeat workflows.
We added svelte5-best-practices from the explainx registry; install was straightforward and the SKILL.md answered most questions upfront.
svelte5-best-practices reduced setup friction for our internal harness; good balance of opinion and flexibility.
Keeps context tight: svelte5-best-practices is the kind of skill you can hand to a new teammate without a long onboarding doc.
svelte5-best-practices has been reliable in day-to-day use. Documentation quality is above average for community skills.
Solid pick for teams standardizing on skills: svelte5-best-practices is focused, and the summary matches what you get after install.
I recommend svelte5-best-practices for anyone iterating fast on agent tooling; clear intent and a small, reviewable surface area.
Solid pick for teams standardizing on skills: svelte5-best-practices is focused, and the summary matches what you get after install.
Useful defaults in svelte5-best-practices โ fewer surprises than typical one-off scripts, and it plays nicely with `npx skills` flows.
svelte5-best-practices has been reliable in day-to-day use. Documentation quality is above average for community skills.
showing 1-10 of 42