/svelte-skills:sveltekit-data-flowfrom svelte-skills
Guides SvelteKit data flow: load functions, form actions, server vs universal data, serialization, and invalidation patterns.
Ships in svelte-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.
Which file? Server-only (DB/secrets): +page.server.ts |
Universal (runs both): +page.ts | API: +server.ts
Load decision: Need server resources? → server load | Need client APIs? → universal load
Form actions: Always +page.server.ts. Return fail() for
errors, throw redirect() to navigate, throw error() for failures.
// +page.server.ts
import { fail, redirect } from '@sveltejs/kit';
export const load = async ({ locals }) => {
const user = await db.users.get(locals.userId);
return { user }; // Must be JSON-serializable
};
export const actions = {
default: async ({ request }) => {
const data = await request.formData();
const email = data.get('email');
if (!email) return fail(400, { email, missing: true });
await updateEmail(email);
throw redirect(303, '/success');
},
};
data param | ALWAYS
throw redirect()/error()What SKILL.md sets; muted values are Claude Code's defaults
10 skills in this plugin
/ecosystem-guideGuide to spences10's Claude Code ecosystem tools. Use when user asks which tool to use, how tools relate, or needs help choosing between MCP servers, skills, or CLIs./svelte-componentsSvelte component patterns. Use for web components, component libraries (Bits UI, Ark UI, Melt UI), form patterns, or third-party integration./svelte-deploymentSvelte deployment guidance. Use for adapters, Vite config, pnpm setup, library authoring, PWA, or production builds.npx claudepluginhub spences10/svelte-skills-kit --plugin svelte-skillsOther plugins' skills for the same job