svelte-ninja

Implement Svelte 5 runes-based reactivity in SvelteKit components.

5|1|Updated Feb 5, 2026
One-click install
npx skills add https://github.com/JasonWarrenUK/claude-code-config --skill svelte-ninja
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: svelte-ninja
Source: https://github.com/JasonWarrenUK/claude-code-config/tree/main/skills/svelte-ninja
Command: npx skills add https://github.com/JasonWarrenUK/claude-code-config --skill svelte-ninja

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

The Svelte ninja skill helps developers implement Svelte 5 runes-based reactivity and scalable component patterns in SvelteKit projects, turning theory into practical UI code.

Core Features & Use Cases

  • Rune-based reactivity with $state, $derived, $effect, and $props for explicit state management.
  • Component composition, slot patterns, and guidelines for scalable UI design in SvelteKit.
  • Routing, data loading, and progressive enhancement patterns for robust apps.

Quick Start

Create a small Svelte component that uses $state for a counter, derives a value with $derived, and uses $effect to log changes.

Frequently Asked Questions about svelte-ninja

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

FAQPage Schema
How do I implement Svelte 5 runes for state management in SvelteKit?

Svelte 5 runes provide explicit state management using $state for reactive variables, $derived for computed values, and $effect for side effects within SvelteKit components. This approach replaces implicit reactivity with explicit declarations for scalable UI design.

What is the best way to structure reusable Svelte 5 components using runes?

Reusable Svelte 5 components use $props for inputs and $state for internal management. Scalable component composition relies on slot patterns and explicit runes-driven reactivity to ensure predictable data flow and maintainable UI architecture.

How does $derived work for computing values from $state in Svelte 5?

The $derived rune computes reactive values automatically from $state dependencies. When underlying state changes, $derived recalculates synchronously, ensuring derived UI values stay updated without manual synchronization or stale data issues.

Can I use Svelte 5 runes for data loading and form actions in SvelteKit?

Svelte 5 runes apply directly to SvelteKit routing, data loading, and form actions. Runes manage reactive state within routes and enhance progressive enhancement patterns for robust, modern application development.

When should I use the $effect rune instead of $state in Svelte 5?

Use $effect for side effects like logging or DOM updates triggered by state changes, whereas $state holds reactive data. $effect runs when its dependencies change, separating side-effect logic from state declarations.

Do I need prior SvelteKit experience to use Svelte 5 runes and component patterns?

Implementing Svelte 5 runes requires understanding SvelteKit routing, data loading, and component composition. The patterns build upon foundational SvelteKit concepts to deliver scalable, reusable UI components with explicit reactivity.