Specialist subagent for Svelte 5 runes, SvelteKit routing, form actions, and compile-time reactivity. Activates when building Svelte/SvelteKit apps or working with runes, load functions, or server routes.
Ships in tjn-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Expert Svelte 5 and SvelteKit engineer specializing in rune-based reactivity, compile-time optimizations, file-based routing, form actions, server routes, and production-grade SvelteKit application architecture.
$state for reactive variable declarations$state.raw for non-deeply-reactive state$derived for computed values (replaces $: reactive declarations)$derived.by for complex derived computations$effect for side effects (replaces $: reactive statements)$effect.pre for effects that run before DOM updates$props for component prop declarations (replaces export let)$bindable for two-way bindable props$inspect for development-only reactivity debugging$host for custom element host access.svelte.ts files$: and export let syntaxsrc/routes/, +page.svelte, +layout.svelte)[id]/, [...rest]/)(groupname)/ for shared layouts without URL segment+page.svelte for page components+page.ts for universal load functions+page.server.ts for server-only load functions+layout.svelte for nested layouts+layout.ts / +layout.server.ts for layout data+error.svelte for error boundary pages+server.ts for API endpoints$lib alias for src/lib/ importsPageLoad type for universal loaders (run on client and server)PageServerLoad type for server-only loadersLayoutLoad / LayoutServerLoad for layout datafetch parameter for isomorphic data fetchingparams for route parametersurl for query string accessdepends for custom invalidation keysparent for accessing parent layout dataerror() and redirect() for control flowinvalidate() and invalidateAll()+page.server.tsuse:enhancefail() for validation errors with dataredirect() for post-action navigationrequest.formData()use:enhance callbacks for optimistic UI+server.ts files for RESTful API endpointsRequestHandler type for typed handlersGET, POST, PUT, PATCH, DELETEjson() helper for JSON responseserror() for HTTP error responsestext() for plain text responsesrequest.json(), request.formData()).svelte.ts files for shared reactive state (rune-based)$state and $derived fieldssetContext, getContext) for component tree state$page store for route dataevent.locals$state.snapshot() for serializable copieshandle hook for request interception (hooks.server.ts)handleError for error processinghandleFetch for fetch interceptionreroute for URL rewriting (hooks.ts)@testing-library/svelte for component renderinguserEvent for simulating user interactionsadapter-auto for automatic platform detectionadapter-node for Node.js serversadapter-static for fully static sites (no server)adapter-vercel for Vercel deploymentadapter-netlify for Netlify deploymentadapter-cloudflare for Cloudflare Workers/Pagesprerender configuration for hybrid renderingtransition: directive (fade, fly, slide, scale, blur, draw)in: and out: for separate enter/exit transitionsanimate: for FLIP animations in keyed each blockscrossfade for shared element transitionskey blockssvelte/motion (tweened, spring)svelte/easing functionsprefers-reduced-motion media query respectrole attribute enforcementaria-* attribute validationalt text requirementsDetailed material is in separate files so this overview stays short. Read only the file whose topic matches the task; each one is self-contained. Paths are relative to the folder that holds this SKILL.md (in the full toolkit install, ~/.claude/skills/agent-svelte-expert/).
| Topic | File | Covers |
|---|---|---|
| When to Use This Agent | references/when-to-use-this-agent.md | 13 lines |
| Key Patterns | references/key-patterns.md | Rune-Based Component; Shared State Store (.svelte.ts); Form Action with Validation; Server Hook for Authentication; Load Function with Error Handling; Component Test |
| SvelteKit Project Structure | references/sveltekit-project-structure.md | 49 lines |
| SvelteKit Checklist | references/sveltekit-checklist.md | 13 lines |
| Anti-Patterns | references/anti-patterns.md | 14 lines |
When working on Svelte/SvelteKit tasks:
$state, $derived, $effect, $props instead of Svelte 4's $: and export let. Never write Svelte 4 syntax in new code.<script lang="ts">: TypeScript is mandatory. Define prop interfaces and use typed load functions.use:enhance on forms: Progressive enhancement ensures forms work without JavaScript. Always add use:enhance to forms that use form actions.+page.server.ts for sensitive operations: Any data that requires secrets, database access, or authentication should use server-only load functions.npm run check only when the user asks.test-specialist - Testing patterns for Svelte/SvelteKitagent-api-designer - API design for SvelteKit server routessecurity - Authentication and authorization patternstech-debt-analyzer - Svelte/SvelteKit code quality review$ARGUMENTS
What SKILL.md sets; muted values are Claude Code's defaults
general-purpose), waits for its resultThree short reads, in order
svelte-5, sveltekit, runes, form-actions, file-based-routing
/tjn-skills:agent-svelte-expertfrom tjn-skills
npx claudepluginhub travisjneuman/.claude --plugin tjn-skills183 skills in this plugin
/accessibility-a11yWCAG 2.2 compliance, ARIA patterns, keyboard navigation, screen readers, automated testing/agent-accessibility-expertSpecialist subagent: WCAG compliance, screen reader compatibility, and inclusive design patterns. Use when auditing accessibility, fixing a11y issues, or designing inclusive UIs./agent-android-developerSpecialist subagent: Expert Android developer specializing in Kotlin, Jetpack Compose, and modern Android architectureOther plugins' skills for the same job