svelte

Guide Svelte and SvelteKit development with runes and framework conventions.

19|Updated Jan 30, 2026
One-click install
npx skills add https://github.com/xobotyi/cc-foundry --skill svelte-xobotyi
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: svelte
Source: https://github.com/xobotyi/cc-foundry/tree/main/plugins/frontend/skills/svelte
Command: npx skills add https://github.com/xobotyi/cc-foundry --skill svelte-xobotyi

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides expert guidance and enforces best practices for developing with Svelte and SvelteKit, ensuring efficient, maintainable, and high-quality code.

Core Features & Use Cases

  • Runes-First Reactivity: Enforces the use of Svelte runes ($state, $derived, $effect, etc.) for explicit and compiler-driven reactivity.
  • SvelteKit Conventions: Guides development according to SvelteKit's routing, load functions, form actions, and state management patterns.
  • Use Case: When writing a new SvelteKit application, use this Skill to ensure all components utilize runes correctly and that routing and data loading follow SvelteKit's idiomatic patterns, leading to a robust and scalable application.

Quick Start

Use the svelte skill to write a new Svelte component that displays a list of items passed as a prop.

Frequently Asked Questions about svelte

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I use Svelte runes for state management in my components?

Svelte runes provide explicit, compiler-driven reactivity for state management using symbols like `$state`, `$derived`, and `$effect` to declare reactive variables, computed values, and side effects directly within your components.

How do I structure routing and data loading in a SvelteKit application?

SvelteKit structures routing and data loading through file-based routing conventions, utilizing load functions to fetch data for specific routes and form actions to handle mutations and process user submissions on the server side.

What is the best way to write a Svelte component that accepts props?

The best way to write a Svelte component accepting props is by utilizing runes-first reactivity, ensuring explicit state declarations and compiler-driven data flow management for robust, maintainable component architecture.

When should I use $derived versus $effect in Svelte?

Use `$derived` in Svelte to compute reactive values based on other state, and use `$effect` to synchronize side effects or perform actions when those reactive dependencies change, ensuring explicit reactivity.

Does SvelteKit enforce specific conventions for form handling and mutations?

Yes, SvelteKit enforces conventions for form handling by utilizing form actions within your routing files to process mutations, manage server-side data updates, and handle progressive enhancement automatically.

Why does my Svelte component reactivity fail when updating nested object properties?

Svelte component reactivity may fail with nested properties if not using runes; migrating to explicit runes like `$state` ensures deep reactivity and compiler-driven updates across complex object structures.