Svelte
Avoid common Svelte mistakes — reactivity triggers, store subscriptions, and SvelteKit SSR gotchas.
Why use this skill?
Master Svelte and SvelteKit development with the OpenClaw Svelte skill. Get expert help with reactivity, state management, and SSR.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/ivangdavila/svelteWhat This Skill Does
The Svelte skill acts as your expert assistant for building robust, reactive applications with Svelte and SvelteKit. It encapsulates deep knowledge of the Svelte lifecycle, reactivity model, store management, and SSR patterns, helping you debug issues that commonly arise from Svelte's compilation-based reactivity system. Whether you are migrating to Svelte 5 Runes or troubleshooting component lifecycle hooks, this skill provides the context needed to write idiomatic and performant code. It covers everything from simple prop handling and event forwarding to complex server-side data fetching patterns and memory management with store subscriptions.
Installation
To integrate this skill into your OpenClaw agent, execute the following command in your terminal:
clawhub install openclaw/skills/skills/ivangdavila/svelte
Use Cases
- Debugging reactivity issues in complex arrays or deeply nested objects that aren't triggering updates.
- Implementing lifecycle-safe browser API calls by correctly wrapping code in
onMountor checking thebrowserenvironment. - Refactoring older Svelte 4 component logic into the cleaner, more efficient Svelte 5 Rune-based syntax.
- Optimizing state management by choosing the right store type or leveraging
$derivedto prevent unnecessary re-computations. - Resolving SvelteKit SSR hydration errors and properly managing data loading through
+page.server.ts.
Example Prompts
- "I'm trying to update a nested property in an object, but my Svelte component isn't re-rendering. How do I fix the reactivity without using a full assignment?"
- "Can you help me refactor this store-based subscription into Svelte 5 Runes for better performance?"
- "I'm getting a 'window is not defined' error in my SvelteKit app. How do I properly access browser APIs only after the component mounts?"
Tips & Limitations
When using this skill, always specify if you are working with Svelte 4 or Svelte 5, as the reactivity paradigms differ significantly. Remember that while this skill excels at identifying patterns, it is a static analysis tool; it cannot execute your code or inspect your runtime state. When dealing with complex state, prioritize immutability where possible to avoid the common pitfalls of direct mutation in Svelte's reassignment-based reactivity system.
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-ivangdavila-svelte": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Related Skills
Animations
Create performant web animations with proper accessibility and timing.
Arduino
Develop Arduino projects avoiding common wiring, power, and code pitfalls.
Bulgarian
Write Bulgarian that sounds human. Not formal, not robotic, not AI-generated.
Arabic
Write Arabic that sounds human. Not formal, not robotic, not AI-generated.
Assistant
Manage tasks, communications, and scheduling with proactive and organized support.