By ofershap
Audit SvelteKit codebases for Svelte 5 best practices violations, including runes ($state, $derived, $effect), $props(), $bindable(), load functions, form actions, and SSR patterns. Get reports with file/line locations, explanations, severity ratings (critical/warning/info), and correct patterns to modernize outdated Svelte 4 code.
npx claudepluginhub ofershap/sveltekit-best-practicesSvelteKit and Svelte 5 done right. Runes ($state, $derived, $effect), $props(),
$bindable(), load functions, form actions, +page.server.ts, +layout.server.ts,
hooks.server.ts, snippets, and SSR patterns.
AI coding assistants generate Svelte 4 code -
writable()stores,export letprops,$:reactive declarations,onMountdata fetching. Svelte 5 replaced all of these with runes. This plugin stops your agent from writing dead syntax.
npx skills add ofershap/sveltekit-best-practices
Or copy skills/ into your .cursor/skills/ or .claude/skills/ directory.
| Type | Name | Description |
|---|---|---|
| Skill | sveltekit-best-practices | 14 rules for Svelte 5 runes, load functions, form actions, SSR, and more |
| Rule | best-practices | Always-on behavioral rule that enforces Svelte 5 / SvelteKit patterns |
| Command | /audit | Scan your codebase for Svelte 4 anti-patterns |
| What the agent writes (Svelte 4) | What Svelte 5 uses |
|---|---|
writable(), readable() stores | $state(), $derived() runes |
export let name for props | let { name } = $props() |
$: doubled = count * 2 | let doubled = $derived(count * 2) |
$: { sideEffect() } | $effect(() => { sideEffect() }) |
Data fetching in onMount | load() in +page.server.ts |
| API routes for form mutations | Form actions in +page.server.ts |
<slot /> for children | Snippets with {@render children()} |
$app/stores for page data | $app/state (Svelte 5) |
If this helped your workflow, a star helps others find it.
MIT
Svelte 5 runes, SvelteKit data flow, routing, and structure patterns
Share bugs, ideas, or general feedback.
Svelte changes since training cutoff (latest: 5.0.0) — runes ($state, $derived, $effect, $props), snippets replacing slots, callback props replacing events, mount/hydrate API. Load before working with Svelte.
Specialized commands for Svelte and SvelteKit development
Svelte language server for Claude Code with go-to-definition, hover docs, references, and diagnostics on .svelte files.
Reusable UI component patterns for implementing common features across different frameworks and tech stacks
React and Next.js performance optimization guidelines from Vercel Engineering. Use when writing/reviewing/refactoring React code for optimal performance. Covers async patterns, bundle optimization, server/client components, re-render optimization.