[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M79S5W324WD1G026FNQ67AD8":3,"skill-same:01M79S5W324WD1G026FNQ67AD8":73},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":27,"commitSha":28,"skillDirectory":29,"forksCount":14,"repositoryHtmlUrl":30,"repositoryHomepageUrl":6,"ownerHtmlUrl":31,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":32,"install":33,"resources":46},"01M79S5W324WD1G026FNQ67AD8","sveltekit-data-flow",null,"SvelteKit data flow guidance. Use when working with load functions, form actions, server\u002Fclient boundaries, serialization, or invalidation.","ro-56\u002Frepo-dashboard","ro-56","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F31988896?v=4","01M79S3TVE085R308S56XHHEZR","Rodrigo","01M79S3TW2BPEPVX31R3RCZJ96",0,"MIT","https:\u002F\u002Fgithub.com\u002Fro-56\u002Frepo-dashboard\u002Fblob\u002Fmain\u002Fsrc\u002F.claude\u002Fskills\u002Fsveltekit-data-flow\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: sveltekit-data-flow\n# IMPORTANT: Keep description on ONE line for agent compatibility\n# prettier-ignore\ndescription: \"SvelteKit data flow guidance. Use when working with load functions, form actions, server\u002Fclient boundaries, serialization, or invalidation.\"\nmetadata:\n  last_updated: \"2026-06-08\"\n  verified_against: \"Svelte 5\u002FKit docs and sveltejs\u002Fkit#15934\"\n---\n\n# SvelteKit Data Flow\n\n## Quick Start\n\n**Environment variables:** Prefer explicit env vars (`src\u002Fenv.ts` + `$app\u002Fenv\u002Fprivate|public`) when the experimental flag is enabled.\n\n**Which file?** Server-only (DB\u002Fsecrets): `+page.server.ts` |\nUniversal (runs both): `+page.ts` | API: `+server.ts`\n\n**Load decision:** Need server resources? → server load | Need client\nAPIs? → universal load\n\n**Form actions:** Always `+page.server.ts`. Return `fail()` for\nerrors, throw `redirect()` to navigate, throw `error()` for failures.\n\n## Example\n\n```typescript\n\u002F\u002F +page.server.ts\nimport { fail, redirect } from '@sveltejs\u002Fkit';\n\nexport const load = async ({ locals }) => {\n\tconst user = await db.users.get(locals.userId);\n\treturn { user }; \u002F\u002F Must be JSON-serializable\n};\n\nexport const actions = {\n\tdefault: async ({ request }) => {\n\t\tconst data = await request.formData();\n\t\tconst email = data.get('email');\n\n\t\tif (!email) return fail(400, { email, missing: true });\n\n\t\tawait updateEmail(email);\n\t\tthrow redirect(303, '\u002Fsuccess');\n\t},\n};\n```\n\n## Reference Files\n\n- [load-functions.md](references\u002Fload-functions.md) - Server vs\n  universal\n- [form-actions.md](references\u002Fform-actions.md) - Form handling\n  patterns\n- [serialization.md](references\u002Fserialization.md) - What can\u002Fcan't\n  serialize\n- [error-redirect-handling.md](references\u002Ferror-redirect-handling.md) -\n  fail\u002Fredirect\u002Ferror\n- [client-auth-invalidation.md](references\u002Fclient-auth-invalidation.md) -\n  invalidateAll() after client-side auth\n- [explicit-environment-variables.md](references\u002Fexplicit-environment-variables.md) -\n  typed, validated env vars\n\n## Notes\n\n- Server load → universal load via `data` param | ALWAYS\n  `throw redirect()\u002Ferror()`\n- No class instances\u002Ffunctions from server load (not serializable)\n- `$app\u002Fenv\u002Fprivate` is server-only; only mark genuinely safe values as public\n- **Last verified:** 2026-06-08\n\n\u003C!--\nPROGRESSIVE DISCLOSURE GUIDELINES:\n- Keep this file ~50 lines total (max ~150 lines)\n- Use 1-2 code blocks only (recommend 1)\n- Keep description \u003C200 chars for Level 1 efficiency\n- Move detailed docs to references\u002F for Level 3 loading\n- This is Level 2 - quick reference ONLY, not a manual\n\nLLM WORKFLOW (when editing this file):\n1. Write\u002Fedit SKILL.md\n2. Format (if formatter available)\n3. Run: npx skills add . --list\n4. If the skill is not discovered, check SKILL.md frontmatter formatting\n5. Validate again to confirm\n-->\n","# SvelteKit Data Flow\n\n## Quick Start\n\n**Environment variables:** Prefer explicit env vars (`src\u002Fenv.ts` + `$app\u002Fenv\u002Fprivate|public`) when the experimental flag is enabled.\n\n**Which file?** Server-only (DB\u002Fsecrets): `+page.server.ts` |\nUniversal (runs both): `+page.ts` | API: `+server.ts`\n\n**Load decision:** Need server resources? → server load | Need client\nAPIs? → universal load\n\n**Form actions:** Always `+page.server.ts`. Return `fail()` for\nerrors, throw `redirect()` to navigate, throw `error()` for failures.\n\n## Example\n\n```typescript\n\u002F\u002F +page.server.ts\nimport { fail, redirect } from '@sveltejs\u002Fkit';\n\nexport const load = async ({ locals }) => {\n\tconst user = await db.users.get(locals.userId);\n\treturn { user }; \u002F\u002F Must be JSON-serializable\n};\n\nexport const actions = {\n\tdefault: async ({ request }) => {\n\t\tconst data = await request.formData();\n\t\tconst email = data.get('email');\n\n\t\tif (!email) return fail(400, { email, missing: true });\n\n\t\tawait updateEmail(email);\n\t\tthrow redirect(303, '\u002Fsuccess');\n\t},\n};\n```\n\n## Reference Files\n\n- [load-functions.md](references\u002Fload-functions.md) - Server vs\n  universal\n- [form-actions.md](references\u002Fform-actions.md) - Form handling\n  patterns\n- [serialization.md](references\u002Fserialization.md) - What can\u002Fcan't\n  serialize\n- [error-redirect-handling.md](references\u002Ferror-redirect-handling.md) -\n  fail\u002Fredirect\u002Ferror\n- [client-auth-invalidation.md](references\u002Fclient-auth-invalidation.md) -\n  invalidateAll() after client-side auth\n- [explicit-environment-variables.md](references\u002Fexplicit-environment-variables.md) -\n  typed, validated env vars\n\n## Notes\n\n- Server load → universal load via `data` param | ALWAYS\n  `throw redirect()\u002Ferror()`\n- No class instances\u002Ffunctions from server load (not serializable)\n- `$app\u002Fenv\u002Fprivate` is server-only; only mark genuinely safe values as public\n- **Last verified:** 2026-06-08\n\n\u003C!--\nPROGRESSIVE DISCLOSURE GUIDELINES:\n- Keep this file ~50 lines total (max ~150 lines)\n- Use 1-2 code blocks only (recommend 1)\n- Keep description \u003C200 chars for Level 1 efficiency\n- Move detailed docs to references\u002F for Level 3 loading\n- This is Level 2 - quick reference ONLY, not a manual\n\nLLM WORKFLOW (when editing this file):\n1. Write\u002Fedit SKILL.md\n2. Format (if formatter available)\n3. Run: npx skills add . --list\n4. If the skill is not discovered, check SKILL.md frontmatter formatting\n5. Validate again to confirm\n-->\n",{"name":5,"metadata":24,"description":7},{"last_updated":25,"verified_against":26},"2026-06-08","Svelte 5\u002FKit docs and sveltejs\u002Fkit#15934","main","eefc243af407341b8f16e77cc9900c45fb6f0ee0","src\u002F.claude\u002Fskills\u002Fsveltekit-data-flow","https:\u002F\u002Fgithub.com\u002Fro-56\u002Frepo-dashboard","https:\u002F\u002Fgithub.com\u002Fro-56","2026-08-04 20:24:30",{"source":8,"skillName":5,"commands":34,"prompt":44,"zipAvailable":45},[35,38,41],{"tool":36,"command":37},"npx","npx skills add ro-56\u002Frepo-dashboard --skill sveltekit-data-flow",{"tool":39,"command":40},"bunx","bunx skills add ro-56\u002Frepo-dashboard --skill sveltekit-data-flow",{"tool":42,"command":43},"pnpm","pnpm dlx skills add ro-56\u002Frepo-dashboard --skill sveltekit-data-flow","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fro-56\u002Frepo-dashboard\u002Fblob\u002Fmain\u002Fsrc\u002F.claude\u002Fskills\u002Fsveltekit-data-flow\u002FSKILL.md",true,[47,53,57,61,65,69],{"path":48,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":51,"sourceHtmlUrl":52},"references\u002Fclient-auth-invalidation.md","REFERENCE","参考文档",3055,"https:\u002F\u002Fgithub.com\u002Fro-56\u002Frepo-dashboard\u002Fblob\u002Fmain\u002Fsrc\u002F.claude\u002Fskills\u002Fsveltekit-data-flow\u002Freferences\u002Fclient-auth-invalidation.md",{"path":54,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":55,"sourceHtmlUrl":56},"references\u002Ferror-redirect-handling.md",9625,"https:\u002F\u002Fgithub.com\u002Fro-56\u002Frepo-dashboard\u002Fblob\u002Fmain\u002Fsrc\u002F.claude\u002Fskills\u002Fsveltekit-data-flow\u002Freferences\u002Ferror-redirect-handling.md",{"path":58,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":59,"sourceHtmlUrl":60},"references\u002Fexplicit-environment-variables.md",1785,"https:\u002F\u002Fgithub.com\u002Fro-56\u002Frepo-dashboard\u002Fblob\u002Fmain\u002Fsrc\u002F.claude\u002Fskills\u002Fsveltekit-data-flow\u002Freferences\u002Fexplicit-environment-variables.md",{"path":62,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":63,"sourceHtmlUrl":64},"references\u002Fform-actions.md",5782,"https:\u002F\u002Fgithub.com\u002Fro-56\u002Frepo-dashboard\u002Fblob\u002Fmain\u002Fsrc\u002F.claude\u002Fskills\u002Fsveltekit-data-flow\u002Freferences\u002Fform-actions.md",{"path":66,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":67,"sourceHtmlUrl":68},"references\u002Fload-functions.md",6707,"https:\u002F\u002Fgithub.com\u002Fro-56\u002Frepo-dashboard\u002Fblob\u002Fmain\u002Fsrc\u002F.claude\u002Fskills\u002Fsveltekit-data-flow\u002Freferences\u002Fload-functions.md",{"path":70,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":71,"sourceHtmlUrl":72},"references\u002Fserialization.md",7601,"https:\u002F\u002Fgithub.com\u002Fro-56\u002Frepo-dashboard\u002Fblob\u002Fmain\u002Fsrc\u002F.claude\u002Fskills\u002Fsveltekit-data-flow\u002Freferences\u002Fserialization.md",[74,81,88,95,102,109],{"skillNo":75,"name":76,"nameZh":6,"description":77,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":78,"categories":79,"keywords":80,"publishedAt":19},"01M79S5ZXJP8335YHKWK5CDJ3G","sveltekit-structure","SvelteKit structure guidance. Use for routing, layouts, error handling, SSR, or svelte:boundary. Covers file naming, nested layouts, error boundaries, pending UI, and hydration.","https:\u002F\u002Fgithub.com\u002Fro-56\u002Frepo-dashboard\u002Fblob\u002Fmain\u002Fsrc\u002F.claude\u002Fskills\u002Fsveltekit-structure\u002FSKILL.md",[],[],{"skillNo":82,"name":83,"nameZh":6,"description":84,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":85,"categories":86,"keywords":87,"publishedAt":19},"01M79S5RE6GTCEH06PV4P1RB42","svelte-template-directives","Svelte template directive guidance. Use when working with snippets, attachments, dynamic HTML, declaration tags, debugging tags, or global DOM events.","https:\u002F\u002Fgithub.com\u002Fro-56\u002Frepo-dashboard\u002Fblob\u002Fmain\u002Fsrc\u002F.claude\u002Fskills\u002Fsvelte-template-directives\u002FSKILL.md",[],[],{"skillNo":89,"name":90,"nameZh":6,"description":91,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":92,"categories":93,"keywords":94,"publishedAt":19},"01M79S5MSBD8R46CFB0YEYSZ1P","svelte-styling","Svelte CSS styling patterns. Use for scoped styles, CSS custom properties, style: directive, :global, or styling child components.","https:\u002F\u002Fgithub.com\u002Fro-56\u002Frepo-dashboard\u002Fblob\u002Fmain\u002Fsrc\u002F.claude\u002Fskills\u002Fsvelte-styling\u002FSKILL.md",[],[],{"skillNo":96,"name":97,"nameZh":6,"description":98,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":99,"categories":100,"keywords":101,"publishedAt":19},"01M79S5H8XB5DA46FFM02PTBJD","svelte-runes","Implement Svelte 5 runes correctly. Use for reactive state, props, effects, $state.raw, $derived.by, $props, and $bindable.","https:\u002F\u002Fgithub.com\u002Fro-56\u002Frepo-dashboard\u002Fblob\u002Fmain\u002Fsrc\u002F.claude\u002Fskills\u002Fsvelte-runes\u002FSKILL.md",[],[],{"skillNo":103,"name":104,"nameZh":6,"description":105,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":106,"categories":107,"keywords":108,"publishedAt":19},"01M79S5DHAT20HYC8HAFRT09V8","svelte-layerchart","Build Svelte LayerChart components. Use for tooltip snippets, Chart context access, gradients, highlights, axes, and Svelte 5 snippet patterns.","https:\u002F\u002Fgithub.com\u002Fro-56\u002Frepo-dashboard\u002Fblob\u002Fmain\u002Fsrc\u002F.claude\u002Fskills\u002Fsvelte-layerchart\u002FSKILL.md",[],[],{"skillNo":110,"name":111,"nameZh":6,"description":112,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":113,"categories":114,"keywords":115,"publishedAt":19},"01M79S5B4YBEPYC42Z201M7JJ2","svelte-core-bestpractices","Svelte 5 core best practices. Use when creating, editing, or reviewing .svelte, .svelte.ts, or .svelte.js files. Routes to deeper Svelte skills.","https:\u002F\u002Fgithub.com\u002Fro-56\u002Frepo-dashboard\u002Fblob\u002Fmain\u002Fsrc\u002F.claude\u002Fskills\u002Fsvelte-core-bestpractices\u002FSKILL.md",[],[]]