This skill provides comprehensive guidance for developers working with Svelte 5, focusing on the correct implementation of runes like $state, $derived, and $effect. It helps optimize application performance through techniques like keyed each blocks and $state.raw for large objects, while ensuring code maintainability by steering users away from legacy features like slots and on:click event listeners. It is an essential companion for both starting new Svelte projects and migrating legacy codebases to the modern, fine-grained reactivity system.
主な機能
01Modern event handling and attribute shorthand implementation
02Optimized state management using Svelte 5 runes ($state, $derived, $effect)
03Type-safe context management and modern asynchronous Svelte patterns
04Advanced styling techniques using CSS custom properties and scoped styles
05Performance-focused rendering with keyed each blocks and reusable snippets
06289 GitHub stars
ユースケース
01Auditing Svelte components for reactivity efficiency and performance bottlenecks
02Scaffolding new Svelte components with best-practice boilerplate for events and snippets
03Migrating legacy Svelte 4 projects to Svelte 5 runes and modern syntax