[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6AG1808BSQHKCYVY5YBGXYG":3,"skill-same:01M6AG1808BSQHKCYVY5YBGXYG":88},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":8,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":18,"categories":19,"keywords":30,"publishedAt":51,"linkOnly":52,"markdownContent":53,"markdownBody":54,"frontMatter":55,"refName":64,"commitSha":65,"skillDirectory":66,"forksCount":67,"repositoryHtmlUrl":68,"repositoryHomepageUrl":69,"ownerHtmlUrl":70,"ownerBlogUrl":71,"ownerDescription":72,"updatedAt":73,"install":74,"resources":87},"01M6AG1808BSQHKCYVY5YBGXYG","sveltekit","SvelteKit 全栈应用开发","Build full-stack web applications with SvelteKit — file-based routing, SSR, SSG, API routes, and form actions in one framework.","使用 SvelteKit 构建全栈 Web 应用——在单一框架中提供基于文件的路由、SSR（服务端渲染）、SSG（静态站点生成）、API 路由和表单操作。","davila7\u002Fclaude-code-templates","davila7","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F6216945?v=4","01M6ADEWWFPS191NFM0Y1EX1JH","Daniel Avila","01M6ADJHGM78PHQRD3XZTFDVKK",33602,"MIT",null,"https:\u002F\u002Fgithub.com\u002Fdavila7\u002Fclaude-code-templates\u002Fblob\u002Fmain\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fweb-development\u002Fsveltekit\u002FSKILL.md",[20,25],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQ6TQZN6R52WBJ9H8NRMQM","软件开发工程师","PROFESSION","适用职业",{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BRASNPVNJVQQJ4KZX8XM5D","前端开发与界面实现","SCENARIO","使用场景",[5,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50],"applications","2026","with","form","fullstack","svelte","full","community","stack","api","frontend","actions","file","framework","routing","ssr","web","gemini","typescript","safe","2026-11-10 10:12:30",false,"---\nname: sveltekit\ndescription: \"Build full-stack web applications with SvelteKit — file-based routing, SSR, SSG, API routes, and form actions in one framework.\"\nmetadata:\n  category: frontend\n  risk: safe\n  source: community\n  date_added: \"2026-03-18\"\n  author: suhaibjanjua\n  tags: [svelte, sveltekit, fullstack, ssr, ssg, typescript]\n  tools: [claude, cursor, gemini]\n---\n\n# SvelteKit Full-Stack Development\n\n## Overview\n\nSvelteKit is the official full-stack framework built on top of Svelte. It provides file-based routing, server-side rendering (SSR), static site generation (SSG), API routes, and progressive form actions — all with Svelte's compile-time reactivity model that ships zero runtime overhead to the browser. Use this skill when building fast, modern web apps where both DX and performance matter.\n\n## When to Use This Skill\n\n- Use when building a new full-stack web application with Svelte\n- Use when you need SSR or SSG with fine-grained control per route\n- Use when migrating a SPA to a framework with server capabilities\n- Use when working on a project that needs file-based routing and collocated API endpoints\n- Use when the user asks about `+page.svelte`, `+layout.svelte`, `load` functions, or form actions\n\n## How It Works\n\n### Step 1: Project Setup\n\n```bash\nnpm create svelte@latest my-app\ncd my-app\nnpm install\nnpm run dev\n```\n\nChoose **Skeleton project** + **TypeScript** + **ESLint\u002FPrettier** when prompted.\n\nDirectory structure after scaffolding:\n\n```\nsrc\u002F\n  routes\u002F\n    +page.svelte        ← Root page component\n    +layout.svelte      ← Root layout (wraps all pages)\n    +error.svelte       ← Error boundary\n  lib\u002F\n    server\u002F             ← Server-only code (never bundled to client)\n    components\u002F         ← Shared components\n  app.html              ← HTML shell\nstatic\u002F                 ← Static assets\n```\n\n### Step 2: File-Based Routing\n\nEvery `+page.svelte` file in `src\u002Froutes\u002F` maps directly to a URL:\n\n```\nsrc\u002Froutes\u002F+page.svelte          → \u002F\nsrc\u002Froutes\u002Fabout\u002F+page.svelte    → \u002Fabout\nsrc\u002Froutes\u002Fblog\u002F[slug]\u002F+page.svelte  → \u002Fblog\u002F:slug\nsrc\u002Froutes\u002Fshop\u002F[...path]\u002F+page.svelte → \u002Fshop\u002F* (catch-all)\n```\n\n**Route groups** (no URL segment): wrap in `(group)\u002F` folder.\n**Private routes** (not accessible as URLs): prefix with `_` or `(group)`.\n\n### Step 3: Loading Data with `load` Functions\n\nUse a `+page.ts` (universal) or `+page.server.ts` (server-only) file alongside the page:\n\n```typescript\n\u002F\u002F src\u002Froutes\u002Fblog\u002F[slug]\u002F+page.server.ts\nimport { error } from '@sveltejs\u002Fkit';\nimport type { PageServerLoad } from '.\u002F$types';\n\nexport const load: PageServerLoad = async ({ params, fetch }) => {\n  const post = await fetch(`\u002Fapi\u002Fposts\u002F${params.slug}`).then(r => r.json());\n\n  if (!post) {\n    error(404, 'Post not found');\n  }\n\n  return { post };\n};\n```\n\n```svelte\n\u003C!-- src\u002Froutes\u002Fblog\u002F[slug]\u002F+page.svelte -->\n\u003Cscript lang=\"ts\">\n  import type { PageData } from '.\u002F$types';\n  export let data: PageData;\n\u003C\u002Fscript>\n\n\u003Ch1>{data.post.title}\u003C\u002Fh1>\n\u003Carticle>{@html data.post.content}\u003C\u002Farticle>\n```\n\n### Step 4: API Routes (Server Endpoints)\n\nCreate `+server.ts` files for REST-style endpoints:\n\n```typescript\n\u002F\u002F src\u002Froutes\u002Fapi\u002Fposts\u002F+server.ts\nimport { json } from '@sveltejs\u002Fkit';\nimport type { RequestHandler } from '.\u002F$types';\n\nexport const GET: RequestHandler = async ({ url }) => {\n  const limit = Number(url.searchParams.get('limit') ?? 10);\n  const posts = await db.post.findMany({ take: limit });\n  return json(posts);\n};\n\nexport const POST: RequestHandler = async ({ request }) => {\n  const body = await request.json();\n  const post = await db.post.create({ data: body });\n  return json(post, { status: 201 });\n};\n```\n\n### Step 5: Form Actions\n\nForm actions are the SvelteKit-native way to handle mutations — no client-side fetch required:\n\n```typescript\n\u002F\u002F src\u002Froutes\u002Fcontact\u002F+page.server.ts\nimport { fail, redirect } from '@sveltejs\u002Fkit';\nimport type { Actions } from '.\u002F$types';\n\nexport const actions: Actions = {\n  default: async ({ request }) => {\n    const data = await request.formData();\n    const email = data.get('email');\n\n    if (!email) {\n      return fail(400, { email, missing: true });\n    }\n\n    await sendEmail(String(email));\n    redirect(303, '\u002Fthank-you');\n  }\n};\n```\n\n```svelte\n\u003C!-- src\u002Froutes\u002Fcontact\u002F+page.svelte -->\n\u003Cscript lang=\"ts\">\n  import { enhance } from '$app\u002Fforms';\n  import type { ActionData } from '.\u002F$types';\n  export let form: ActionData;\n\u003C\u002Fscript>\n\n\u003Cform method=\"POST\" use:enhance>\n  \u003Cinput name=\"email\" type=\"email\" \u002F>\n  {#if form?.missing}\u003Cp class=\"error\">Email is required\u003C\u002Fp>{\u002Fif}\n  \u003Cbutton type=\"submit\">Subscribe\u003C\u002Fbutton>\n\u003C\u002Fform>\n```\n\n### Step 6: Layouts and Nested Routes\n\n```svelte\n\u003C!-- src\u002Froutes\u002F+layout.svelte -->\n\u003Cscript lang=\"ts\">\n  import type { LayoutData } from '.\u002F$types';\n  export let data: LayoutData;\n\u003C\u002Fscript>\n\n\u003Cnav>\n  \u003Ca href=\"\u002F\">Home\u003C\u002Fa>\n  \u003Ca href=\"\u002Fblog\">Blog\u003C\u002Fa>\n  {#if data.user}\n    \u003Ca href=\"\u002Fdashboard\">Dashboard\u003C\u002Fa>\n  {\u002Fif}\n\u003C\u002Fnav>\n\n\u003Cslot \u002F>  \u003C!-- child page renders here -->\n```\n\n```typescript\n\u002F\u002F src\u002Froutes\u002F+layout.server.ts\nimport type { LayoutServerLoad } from '.\u002F$types';\n\nexport const load: LayoutServerLoad = async ({ locals }) => {\n  return { user: locals.user ?? null };\n};\n```\n\n### Step 7: Rendering Modes\n\nControl per-route rendering with page options:\n\n```typescript\n\u002F\u002F src\u002Froutes\u002Fdocs\u002F+page.ts\nexport const prerender = true;   \u002F\u002F Static — generated at build time\nexport const ssr = true;         \u002F\u002F Default — rendered on server per request\nexport const csr = false;        \u002F\u002F Disable client-side hydration entirely\n```\n\n## Examples\n\n### Example 1: Protected Dashboard Route\n\n```typescript\n\u002F\u002F src\u002Froutes\u002Fdashboard\u002F+layout.server.ts\nimport { redirect } from '@sveltejs\u002Fkit';\nimport type { LayoutServerLoad } from '.\u002F$types';\n\nexport const load: LayoutServerLoad = async ({ locals }) => {\n  if (!locals.user) {\n    redirect(303, '\u002Flogin');\n  }\n  return { user: locals.user };\n};\n```\n\n### Example 2: Hooks — Session Middleware\n\n```typescript\n\u002F\u002F src\u002Fhooks.server.ts\nimport type { Handle } from '@sveltejs\u002Fkit';\nimport { verifyToken } from '$lib\u002Fserver\u002Fauth';\n\nexport const handle: Handle = async ({ event, resolve }) => {\n  const token = event.cookies.get('session');\n  if (token) {\n    event.locals.user = await verifyToken(token);\n  }\n  return resolve(event);\n};\n```\n\n### Example 3: Preloading and Invalidation\n\n```svelte\n\u003Cscript lang=\"ts\">\n  import { invalidateAll } from '$app\u002Fnavigation';\n\n  async function refresh() {\n    await invalidateAll(); \u002F\u002F re-runs all load functions on the page\n  }\n\u003C\u002Fscript>\n\n\u003Cbutton on:click={refresh}>Refresh\u003C\u002Fbutton>\n```\n\n## Best Practices\n\n- ✅ Use `+page.server.ts` for database\u002Fauth logic — it never ships to the client\n- ✅ Use `$lib\u002Fserver\u002F` for shared server-only modules (DB client, auth helpers)\n- ✅ Use form actions for mutations instead of client-side `fetch` — works without JS\n- ✅ Type all `load` return values with generated `$types` (`PageData`, `LayoutData`)\n- ✅ Use `event.locals` in hooks to pass server-side context to load functions\n- ❌ Don't import server-only code in `+page.svelte` or `+layout.svelte` directly\n- ❌ Don't store sensitive state in stores — use `locals` on the server\n- ❌ Don't skip `use:enhance` on forms — without it, forms lose progressive enhancement\n\n## Security & Safety Notes\n\n- All code in `+page.server.ts`, `+server.ts`, and `$lib\u002Fserver\u002F` runs exclusively on the server — safe for DB queries, secrets, and session validation.\n- Always validate and sanitize form data before database writes.\n- Use `error(403)` or `redirect(303)` from `@sveltejs\u002Fkit` rather than returning raw error objects.\n- Set `httpOnly: true` and `secure: true` on all auth cookies.\n- CSRF protection is built-in for form actions — do not disable `checkOrigin` in production.\n\n## Common Pitfalls\n\n- **Problem:** `Cannot use import statement in a module` in `+page.server.ts`\n  **Solution:** The file must be `.ts` or `.js`, not `.svelte`. Server files and Svelte components are separate.\n\n- **Problem:** Store value is `undefined` on first SSR render\n  **Solution:** Populate the store from the `load` function return value (`data` prop), not from client-side `onMount`.\n\n- **Problem:** Form action does not redirect after submit\n  **Solution:** Use `redirect(303, '\u002Fpath')` from `@sveltejs\u002Fkit`, not a plain `return`. 303 is required for POST redirects.\n\n- **Problem:** `locals.user` is undefined inside a `+page.server.ts` load function\n  **Solution:** Set `event.locals.user` in `src\u002Fhooks.server.ts` before the `resolve()` call.\n\n## Related Skills\n\n- `@nextjs-app-router-patterns` — When you prefer React over Svelte for SSR\u002FSSG\n- `@trpc-fullstack` — Add end-to-end type safety to SvelteKit API routes\n- `@auth-implementation-patterns` — Authentication patterns usable with SvelteKit hooks\n- `@tailwind-patterns` — Styling SvelteKit apps with Tailwind CSS\n","# SvelteKit Full-Stack Development\n\n## Overview\n\nSvelteKit is the official full-stack framework built on top of Svelte. It provides file-based routing, server-side rendering (SSR), static site generation (SSG), API routes, and progressive form actions — all with Svelte's compile-time reactivity model that ships zero runtime overhead to the browser. Use this skill when building fast, modern web apps where both DX and performance matter.\n\n## When to Use This Skill\n\n- Use when building a new full-stack web application with Svelte\n- Use when you need SSR or SSG with fine-grained control per route\n- Use when migrating a SPA to a framework with server capabilities\n- Use when working on a project that needs file-based routing and collocated API endpoints\n- Use when the user asks about `+page.svelte`, `+layout.svelte`, `load` functions, or form actions\n\n## How It Works\n\n### Step 1: Project Setup\n\n```bash\nnpm create svelte@latest my-app\ncd my-app\nnpm install\nnpm run dev\n```\n\nChoose **Skeleton project** + **TypeScript** + **ESLint\u002FPrettier** when prompted.\n\nDirectory structure after scaffolding:\n\n```\nsrc\u002F\n  routes\u002F\n    +page.svelte        ← Root page component\n    +layout.svelte      ← Root layout (wraps all pages)\n    +error.svelte       ← Error boundary\n  lib\u002F\n    server\u002F             ← Server-only code (never bundled to client)\n    components\u002F         ← Shared components\n  app.html              ← HTML shell\nstatic\u002F                 ← Static assets\n```\n\n### Step 2: File-Based Routing\n\nEvery `+page.svelte` file in `src\u002Froutes\u002F` maps directly to a URL:\n\n```\nsrc\u002Froutes\u002F+page.svelte          → \u002F\nsrc\u002Froutes\u002Fabout\u002F+page.svelte    → \u002Fabout\nsrc\u002Froutes\u002Fblog\u002F[slug]\u002F+page.svelte  → \u002Fblog\u002F:slug\nsrc\u002Froutes\u002Fshop\u002F[...path]\u002F+page.svelte → \u002Fshop\u002F* (catch-all)\n```\n\n**Route groups** (no URL segment): wrap in `(group)\u002F` folder.\n**Private routes** (not accessible as URLs): prefix with `_` or `(group)`.\n\n### Step 3: Loading Data with `load` Functions\n\nUse a `+page.ts` (universal) or `+page.server.ts` (server-only) file alongside the page:\n\n```typescript\n\u002F\u002F src\u002Froutes\u002Fblog\u002F[slug]\u002F+page.server.ts\nimport { error } from '@sveltejs\u002Fkit';\nimport type { PageServerLoad } from '.\u002F$types';\n\nexport const load: PageServerLoad = async ({ params, fetch }) => {\n  const post = await fetch(`\u002Fapi\u002Fposts\u002F${params.slug}`).then(r => r.json());\n\n  if (!post) {\n    error(404, 'Post not found');\n  }\n\n  return { post };\n};\n```\n\n```svelte\n\u003C!-- src\u002Froutes\u002Fblog\u002F[slug]\u002F+page.svelte -->\n\u003Cscript lang=\"ts\">\n  import type { PageData } from '.\u002F$types';\n  export let data: PageData;\n\u003C\u002Fscript>\n\n\u003Ch1>{data.post.title}\u003C\u002Fh1>\n\u003Carticle>{@html data.post.content}\u003C\u002Farticle>\n```\n\n### Step 4: API Routes (Server Endpoints)\n\nCreate `+server.ts` files for REST-style endpoints:\n\n```typescript\n\u002F\u002F src\u002Froutes\u002Fapi\u002Fposts\u002F+server.ts\nimport { json } from '@sveltejs\u002Fkit';\nimport type { RequestHandler } from '.\u002F$types';\n\nexport const GET: RequestHandler = async ({ url }) => {\n  const limit = Number(url.searchParams.get('limit') ?? 10);\n  const posts = await db.post.findMany({ take: limit });\n  return json(posts);\n};\n\nexport const POST: RequestHandler = async ({ request }) => {\n  const body = await request.json();\n  const post = await db.post.create({ data: body });\n  return json(post, { status: 201 });\n};\n```\n\n### Step 5: Form Actions\n\nForm actions are the SvelteKit-native way to handle mutations — no client-side fetch required:\n\n```typescript\n\u002F\u002F src\u002Froutes\u002Fcontact\u002F+page.server.ts\nimport { fail, redirect } from '@sveltejs\u002Fkit';\nimport type { Actions } from '.\u002F$types';\n\nexport const actions: Actions = {\n  default: async ({ request }) => {\n    const data = await request.formData();\n    const email = data.get('email');\n\n    if (!email) {\n      return fail(400, { email, missing: true });\n    }\n\n    await sendEmail(String(email));\n    redirect(303, '\u002Fthank-you');\n  }\n};\n```\n\n```svelte\n\u003C!-- src\u002Froutes\u002Fcontact\u002F+page.svelte -->\n\u003Cscript lang=\"ts\">\n  import { enhance } from '$app\u002Fforms';\n  import type { ActionData } from '.\u002F$types';\n  export let form: ActionData;\n\u003C\u002Fscript>\n\n\u003Cform method=\"POST\" use:enhance>\n  \u003Cinput name=\"email\" type=\"email\" \u002F>\n  {#if form?.missing}\u003Cp class=\"error\">Email is required\u003C\u002Fp>{\u002Fif}\n  \u003Cbutton type=\"submit\">Subscribe\u003C\u002Fbutton>\n\u003C\u002Fform>\n```\n\n### Step 6: Layouts and Nested Routes\n\n```svelte\n\u003C!-- src\u002Froutes\u002F+layout.svelte -->\n\u003Cscript lang=\"ts\">\n  import type { LayoutData } from '.\u002F$types';\n  export let data: LayoutData;\n\u003C\u002Fscript>\n\n\u003Cnav>\n  \u003Ca href=\"\u002F\">Home\u003C\u002Fa>\n  \u003Ca href=\"\u002Fblog\">Blog\u003C\u002Fa>\n  {#if data.user}\n    \u003Ca href=\"\u002Fdashboard\">Dashboard\u003C\u002Fa>\n  {\u002Fif}\n\u003C\u002Fnav>\n\n\u003Cslot \u002F>  \u003C!-- child page renders here -->\n```\n\n```typescript\n\u002F\u002F src\u002Froutes\u002F+layout.server.ts\nimport type { LayoutServerLoad } from '.\u002F$types';\n\nexport const load: LayoutServerLoad = async ({ locals }) => {\n  return { user: locals.user ?? null };\n};\n```\n\n### Step 7: Rendering Modes\n\nControl per-route rendering with page options:\n\n```typescript\n\u002F\u002F src\u002Froutes\u002Fdocs\u002F+page.ts\nexport const prerender = true;   \u002F\u002F Static — generated at build time\nexport const ssr = true;         \u002F\u002F Default — rendered on server per request\nexport const csr = false;        \u002F\u002F Disable client-side hydration entirely\n```\n\n## Examples\n\n### Example 1: Protected Dashboard Route\n\n```typescript\n\u002F\u002F src\u002Froutes\u002Fdashboard\u002F+layout.server.ts\nimport { redirect } from '@sveltejs\u002Fkit';\nimport type { LayoutServerLoad } from '.\u002F$types';\n\nexport const load: LayoutServerLoad = async ({ locals }) => {\n  if (!locals.user) {\n    redirect(303, '\u002Flogin');\n  }\n  return { user: locals.user };\n};\n```\n\n### Example 2: Hooks — Session Middleware\n\n```typescript\n\u002F\u002F src\u002Fhooks.server.ts\nimport type { Handle } from '@sveltejs\u002Fkit';\nimport { verifyToken } from '$lib\u002Fserver\u002Fauth';\n\nexport const handle: Handle = async ({ event, resolve }) => {\n  const token = event.cookies.get('session');\n  if (token) {\n    event.locals.user = await verifyToken(token);\n  }\n  return resolve(event);\n};\n```\n\n### Example 3: Preloading and Invalidation\n\n```svelte\n\u003Cscript lang=\"ts\">\n  import { invalidateAll } from '$app\u002Fnavigation';\n\n  async function refresh() {\n    await invalidateAll(); \u002F\u002F re-runs all load functions on the page\n  }\n\u003C\u002Fscript>\n\n\u003Cbutton on:click={refresh}>Refresh\u003C\u002Fbutton>\n```\n\n## Best Practices\n\n- ✅ Use `+page.server.ts` for database\u002Fauth logic — it never ships to the client\n- ✅ Use `$lib\u002Fserver\u002F` for shared server-only modules (DB client, auth helpers)\n- ✅ Use form actions for mutations instead of client-side `fetch` — works without JS\n- ✅ Type all `load` return values with generated `$types` (`PageData`, `LayoutData`)\n- ✅ Use `event.locals` in hooks to pass server-side context to load functions\n- ❌ Don't import server-only code in `+page.svelte` or `+layout.svelte` directly\n- ❌ Don't store sensitive state in stores — use `locals` on the server\n- ❌ Don't skip `use:enhance` on forms — without it, forms lose progressive enhancement\n\n## Security & Safety Notes\n\n- All code in `+page.server.ts`, `+server.ts`, and `$lib\u002Fserver\u002F` runs exclusively on the server — safe for DB queries, secrets, and session validation.\n- Always validate and sanitize form data before database writes.\n- Use `error(403)` or `redirect(303)` from `@sveltejs\u002Fkit` rather than returning raw error objects.\n- Set `httpOnly: true` and `secure: true` on all auth cookies.\n- CSRF protection is built-in for form actions — do not disable `checkOrigin` in production.\n\n## Common Pitfalls\n\n- **Problem:** `Cannot use import statement in a module` in `+page.server.ts`\n  **Solution:** The file must be `.ts` or `.js`, not `.svelte`. Server files and Svelte components are separate.\n\n- **Problem:** Store value is `undefined` on first SSR render\n  **Solution:** Populate the store from the `load` function return value (`data` prop), not from client-side `onMount`.\n\n- **Problem:** Form action does not redirect after submit\n  **Solution:** Use `redirect(303, '\u002Fpath')` from `@sveltejs\u002Fkit`, not a plain `return`. 303 is required for POST redirects.\n\n- **Problem:** `locals.user` is undefined inside a `+page.server.ts` load function\n  **Solution:** Set `event.locals.user` in `src\u002Fhooks.server.ts` before the `resolve()` call.\n\n## Related Skills\n\n- `@nextjs-app-router-patterns` — When you prefer React over Svelte for SSR\u002FSSG\n- `@trpc-fullstack` — Add end-to-end type safety to SvelteKit API routes\n- `@auth-implementation-patterns` — Authentication patterns usable with SvelteKit hooks\n- `@tailwind-patterns` — Styling SvelteKit apps with Tailwind CSS\n",{"name":5,"metadata":56,"description":7},{"risk":50,"tags":57,"tools":59,"author":62,"source":38,"category":41,"date_added":63},[36,5,35,46,58,49],"ssg",[60,61,48],"claude","cursor","suhaibjanjua","2026-03-18","main","2b749c82b5d11fac39d9a6e021ce3f5b8a541bd1","cli-tool\u002Fcomponents\u002Fskills\u002Fweb-development\u002Fsveltekit",3963,"https:\u002F\u002Fgithub.com\u002Fdavila7\u002Fclaude-code-templates","https:\u002F\u002Faitmpl.com","https:\u002F\u002Fgithub.com\u002Fdavila7","https:\u002F\u002Fdanielavila.me","Building AI dev tools with LLMs","2026-11-15 01:32:48",{"source":9,"skillName":5,"commands":75,"prompt":85,"zipAvailable":86},[76,79,82],{"tool":77,"command":78},"npx","npx skills add davila7\u002Fclaude-code-templates --skill sveltekit",{"tool":80,"command":81},"bunx","bunx skills add davila7\u002Fclaude-code-templates --skill sveltekit",{"tool":83,"command":84},"pnpm","pnpm dlx skills add davila7\u002Fclaude-code-templates --skill sveltekit","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fdavila7\u002Fclaude-code-templates\u002Fblob\u002Fmain\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fweb-development\u002Fsveltekit\u002FSKILL.md",true,[],[89,115,141,165,197,224],{"skillNo":90,"name":91,"nameZh":17,"description":92,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":93,"categories":94,"keywords":95,"publishedAt":51},"01M70NHBTQ8BV0A2SCAZXEPHCX","wealthville-pool-scoring","Score DeFi liquidity pools before providing liquidity. Returns a 0-100 pool score and an Enter\u002FHold\u002FExit\u002FReduce\u002FAvoid verdict with calibrated confidence for ~68,800 Solana pools and 575 EVM pools, plus a public miss-inclusive track record. Use when asked whether a pool is worth LPing into, which pools look best right now, or how accurate the scores have actually been.","https:\u002F\u002Fgithub.com\u002Fdavila7\u002Fclaude-code-templates\u002Fblob\u002Fmain\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fweb-data\u002Fwealthville-pool-scoring\u002FSKILL.md",[],[96,97,98,99,100,101,102,103,104,105,106,33,107,108,109,110,111,112,113,114],"scoring","pool","wealthville pool scoring","liquidity","which","for","exit","now","use","when","reduce","record","track","verdict","evm","solana","how","public","look",{"skillNo":116,"name":117,"nameZh":17,"description":118,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":119,"categories":120,"keywords":121,"publishedAt":51},"01M70MB6VR8ERJ4EM8D5KHBMEV","technical-debt-auditor","Scans a codebase and produces a quantified technical debt report with a prioritized remediation plan. Analyzes dead code, TODO\u002FFIXME\u002FHACK markers, dependency staleness, complexity hotspots, code duplication signals, test coverage gaps, unused exports, and outdated patterns. Use this skill when the user asks to audit their codebase for tech debt, wants a health check of their code quality, says things like \"where should I focus refactoring\", \"find code smells\", \"audit my codebase\", \"what technical debt do we have\", \"prioritize cleanup work\", or asks about code quality metrics. Also trigger when the user mentions \"code rot\", \"legacy cleanup\", \"refactoring priorities\", or wants to understand the overall health of a project before a major effort. Trigger even if the user doesn't say \"technical debt\" explicitly — any request to systematically assess code quality and identify improvement priorities belongs here.","https:\u002F\u002Fgithub.com\u002Fdavila7\u002Fclaude-code-templates\u002Fblob\u002Fmain\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fdevelopment\u002Ftechnical-debt-auditor\u002FSKILL.md",[],[122,123,124,125,126,127,128,129,130,131,132,105,133,134,135,136,137,138,139,140],"technical debt","debt","technical","technical debt auditor","auditor","coverage","complexity","markers","project","cleanup","unused","code","todo","work","plan","focus","signals","audit","dependency",{"skillNo":142,"name":143,"nameZh":17,"description":144,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":145,"categories":146,"keywords":147,"publishedAt":51},"01M70KPYH9QNHCNME5GJQGE22K","readonly-sql-guard","Make an agent's database access provably read-only. Use when an agent runs caller-supplied SQL against a production\u002FERP\u002Fanalytics database (a \"query\" MCP tool, text-to-SQL, an admin console), or when reviewing DB-access code for write\u002FDDL\u002Fside-effect\u002Ftransaction-escape risks. Checks what a statement CALLS, not just its shape.","https:\u002F\u002Fgithub.com\u002Fdavila7\u002Fclaude-code-templates\u002Fblob\u002Fmain\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fdatabase\u002Freadonly-sql-guard\u002FSKILL.md",[],[148,149,150,151,152,153,154,101,155,156,157,158,159,160,161,104,162,163,105,164],"readonly","guard","sql guard","sql","readonly sql guard","erp","effect","read-only","db","just","tool","calls","only","MCP","access","database","query",{"skillNo":166,"name":167,"nameZh":168,"description":169,"descriptionZh":170,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":171,"licenseFileUrl":172,"sourceHtmlUrl":173,"categories":174,"keywords":177,"publishedAt":51},"01M6AFY6F7CC2BBZP1QD6VTNVC","web-artifacts-builder","Claude 网页 Artifact 构建","Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn\u002Fui). Use for complex artifacts requiring state management, routing, or shadcn\u002Fui components - not for simple single-file HTML\u002FJSX artifacts.","用于创建精细的、多组件的 claude.ai HTML artifact 的工具套件，采用现代前端 Web 技术（React、Tailwind CSS、shadcn\u002Fui）。适用于需要状态管理、路由或 shadcn\u002Fui 组件的复杂 artifact —— 不适用于简单的单文件 HTML\u002FJSX artifact。","Apache-2.0","https:\u002F\u002Fgithub.com\u002Fdavila7\u002Fclaude-code-templates\u002Fblob\u002Fmain\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Futilities\u002Fweb-artifacts-builder\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fdavila7\u002Fclaude-code-templates\u002Fblob\u002Fmain\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Futilities\u002Fweb-artifacts-builder\u002FSKILL.md",[175,176],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},[178,47,179,180,181,182,45,183,184,185,41,186,187,43,188,189,190,191,192,193,194,195,101,196],"artifacts builder","web artifacts builder","artifacts","builder","state","state management","component","css","ui","Tools","components","shadcn","react","Tailwind","suite","jsx","html","single-file","ui components",{"skillNo":198,"name":199,"nameZh":200,"description":201,"descriptionZh":202,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":171,"licenseFileUrl":203,"sourceHtmlUrl":204,"categories":205,"keywords":212,"publishedAt":51},"01M6AFWF33SFV9Z3SF4PEEE4BF","webapp-testing","Playwright Web 应用测试","Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.","使用 Playwright 与本地 Web 应用进行交互和测试的工具包。支持验证前端功能、调试 UI 行为、捕获浏览器截图以及查看浏览器日志。","https:\u002F\u002Fgithub.com\u002Fdavila7\u002Fclaude-code-templates\u002Fblob\u002Fmain\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fsecurity\u002Fwebapp-testing\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fdavila7\u002Fclaude-code-templates\u002Fblob\u002Fmain\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fsecurity\u002Fwebapp-testing\u002FSKILL.md",[206,209],{"categoryNo":207,"categoryName":208,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQGD5WG86P4AQ5GPSSKBFR","测试工程师",{"categoryNo":210,"categoryName":211,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BQJH394GT47X57A9Q8G7HX","测试与质量保障",[213,214,215,216,217,47,31,41,186,218,219,220,221,101,222,33,223],"webapp testing","testing","webapp","browser","playwright","debugging","toolkit","logs","screenshots","local","behavior",{"skillNo":225,"name":226,"nameZh":227,"description":228,"descriptionZh":229,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":171,"licenseFileUrl":230,"sourceHtmlUrl":231,"categories":232,"keywords":239,"publishedAt":51},"01M6AF67Q67JJJ5V51JR2P52KA","discernment-nudge","回复事实核查追问","After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals, or emails, estimates or projections, analysis or interpretation of data, factual claims they may rely on, or a multi-step argument — invoke this skill BEFORE finalizing your reply and then, if it applies, append 2-3 short follow-up questions, each tied to something specific in what you just produced, that help the user check key facts, probe the reasoning or assumptions, and notice missing context. Do this at most once per conversation. Skip it when the user asked a trivial how-to or simple lookup, wants a purely educational explanation, asked you only to format, convert, or assemble a file from content they provided, is writing code they will run, is doing creative writing or casual chat, or already asked you to double-check, cite, or review — the skill file explains these boundaries and the exact output format.","在你给出用户可能据以行动的实质性答案或草稿之后——建议或推荐、起草的工件（如目标、计划、推介、提案或电子邮件）、估计或预测、数据分析或解读、他们可能依赖的事实声明，或多步骤论证——在最终确定回复之前调用本技能，然后，如适用，附加 2-3 个简短的后续问题，每个问题都与你刚刚产出的具体内容相关，帮助用户核查关键事实、探究推理或假设，并注意到缺失的上下文。每次对话最多执行一次。当用户询问琐碎的操作方法或简单查找、想要纯教育性解释、仅要求根据提供的内容格式化\u002F转换\u002F组装文件、正在编写将要运行的代码、正在进行创意写作或休闲聊天，或已经要求你复核、引用或审查时跳过——技能文件解释了这些边界和确切的输出格式。","https:\u002F\u002Fgithub.com\u002Fdavila7\u002Fclaude-code-templates\u002Fblob\u002Fmain\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fproductivity\u002Fdiscernment-nudge\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fdavila7\u002Fclaude-code-templates\u002Fblob\u002Fmain\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fproductivity\u002Fdiscernment-nudge\u002FSKILL.md",[233,236],{"categoryNo":234,"categoryName":235,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BQ6TMSBZZX4V1THHNVC815","回答复核",{"categoryNo":237,"categoryName":238,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BS5011KJDVSRXG1DC4P666","普通用户",[240,241,242,243,244,245,246,247,180,248,43,133,249,250,251,252,253,160,254,105,255,256,257,258,259,112,260],"discernment nudge","nudge","interpretation","help","run","reasoning","data","writing","lookup","content","review","conversation","short","up","invoke","you","analysis","claims","argument","assemble","recommendations"]