Skip to content
bobmatnyc avatar

Svelte5 Runes Static

Svelte 5 runes patterns for adapter-static prerendering that keep global state hydration-safe.

CCM score
51 of 100
skills.sh installs
390
GitHub stars
79
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers store-to-rune bridging, derived computations, and SSG/SSR guards for SvelteKit static builds
  • Includes anti-pattern examples for frozen module-scope runes, $ auto-subscription inside $derived, and getter-based store factories
  • Enforces writable/derived stores for global state and $state plus $effect subscriptions for component-local reactivity
  • Designed for SvelteKit projects using adapter-static that encounter hydration mismatches or stale reactive state

Install

$ npx -y skills add bobmatnyc/claude-mpm-skills --skill svelte5-runes-static -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Svelte 5 Runes with adapter-static (SvelteKit)

Overview

Build static-first SvelteKit applications with Svelte 5 runes without breaking hydration. Apply these patterns when using adapter-static (prerendering) and combining global stores with component-local runes.

Related Skills

  • svelte (Svelte 5 runes core patterns)
  • sveltekit (adapters, deployment, SSR/SSG patterns)
  • typescript-core (TypeScript patterns and validation)
  • vitest (unit testing patterns)

Core Expertise

Building static-first Svelte 5 applications using runes mode with proper state management patterns that survive prerendering and hydration.

Critical Compatibility Rules

❌ NEVER: Runes in Module Scope with adapter-static

Problem: Runes don't hydrate properly after static prerendering

// ❌ BROKEN - State becomes frozen after SSG
export function createStore() {
  let state = $state({ count: 0 });
  return {
    get count() { return state.count; },
    increment: () => { state.count++; }
  };
}

Details

Repository
github.com/bobmatnyc/claude-mpm-skills
Category
Frontend & UI Code
First seen
Jun 3, 2026

Questions

What does the svelte5-runes-static skill help with?

It covers Svelte 5 runes patterns for SvelteKit projects using adapter-static, including hydration-safe state, store bridges, and reactivity that survives prerendering. It warns against placing runes in module scope and shows a hybrid pattern with writable stores for global state and runes for component state.

How do I install the svelte5-runes-static skill?

Run npx -y skills add bobmatnyc/claude-mpm-skills --skill svelte5-runes-static -y in your project. Once installed, the agent can apply these patterns when you work with Svelte 5 runes and adapter-static prerendering.

Which category is svelte5-runes-static in, and what else is there?

It sits in the Frontend & UI Code category on Claude Marketplaces, alongside skills such as vercel-react-best-practices, web-design-guidelines and design-taste-frontend. Its focus is narrower than those, covering only Svelte 5 runes with SvelteKit static rendering.

More from bobmatnyc/claude-mpm-skills

All 154

Similar to Svelte5 Runes Static

More Frontend & UI Code