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.

217 stars 20 forksFrontend & Design

Install

skills CLI (Claude Code, Cursor, Codex and more)
npx skills add spences10/svelte-claude-skills --skill sveltekit-structure
Manual install
git clone --depth 1 https://github.com/spences10/svelte-claude-skills.git /tmp/svelte-claude-skills
mkdir -p ~/.claude/skills
cp -r /tmp/svelte-claude-skills/.claude/skills/sveltekit-structure ~/.claude/skills/sveltekit-structure

Personal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.

From the SKILL.md

# SvelteKit Structure

## Quick Start

**File types:** `+page.svelte` (page) | `+layout.svelte` (wrapper) |
`+error.svelte` (error boundary) | `+server.ts` (API endpoint)

**Routes:** `src/routes/about/+page.svelte` → `/about` |
`src/routes/posts/[id]/+page.svelte` → `/posts/123`

**Layouts:** Apply to all child routes. `+layout.svelte` at any level
wraps descendants.

## Example

```
src/routes/
├── +layout.svelte              # Root layout (all pages)
├── +page.svelte                # Homepage /
├── about/+page.svelte          # /about
└── dashboard/
    ├── +layout.svelte          # Dashboard layout (dashboard pages only)
    ├── +page.svelte            # /dashboard
    └── settings/+page.svelte   # /dashboard/settings
```

```svelte

<script>
	let { children } = $props();
</script>

<nav></nav>
<main>{@render children()}</main>
<footer></footer>
```

## Reference Files

- [file-naming.md](references/file-naming.md) - File naming
  conventions
- [layout-patterns.md](references/layout-patterns.md) - Nested layouts
- [error-handling.md](references/error-handling.md) - +error.svelte
  placement
- [svelte-boundary.md](references/svelte-boundary.md) -
  Component-level error/pending
- [ssr-hydration.md](references/ssr-hydration.md) - SSR and
  browser-only code

## Notes

- Layouts: `{@render children()}` | Errors: +error.svelte _above_
  failing route
- Groups: `(name)` folders don't affect URL | Client-only: check
  `browser`
- **Last verified:** 2025-01-11
Read the full skill on GitHub

Details

Skill name
sveltekit-structure
Path
.claude/skills/sveltekit-structure/SKILL.md
Repo updated
18 November 2026

FAQ

What does the Sveltekit Structure skill do?

SvelteKit structure guidance. Use for routing, layouts, error handling, SSR, or svelte:boundary. Covers file naming, nested layouts, error boundaries, pending UI, and hydration.

How do I install the Sveltekit Structure skill?

skills CLI (Claude Code, Cursor, Codex and more): npx skills add spences10/svelte-claude-skills --skill sveltekit-structure. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.

Is Sveltekit Structure popular?

It lives in spences10/svelte-claude-skills, which has 217 GitHub stars and 20 forks.

Related skills

Research

217

spences10/svelte-claude-skills

Research topics by verifying actual source content. Use when asked to research or study links and documentation.

Research & Science20

Svelte Components

217

spences10/svelte-claude-skills

Svelte component patterns. Use for web components, component libraries (Bits UI, Ark UI, Melt UI), form patterns, or third-party integration.

Frontend & Design20

Svelte Deployment

217

spences10/svelte-claude-skills

Svelte deployment guidance. Use for adapters, Vite config, pnpm setup, library authoring, PWA, or production builds.

DevOps & Cloud20

AI Animation Skill

341

mingchen666/Reviva

将科普内容文本转换为可视化PPT风格网页的完整工作流。当用户输入科普内容并希望生成演示页面时触发。支持两种模式:(1) 默认模式:将科普内容生成为仿PPT轮播的单页HTML动画网页;(2) 流程图模式:使用Animation模板将已生成的AI_Animation.html按平面UI样式重构。模板已内置于Skill中。触发词包括"生成PPT"、"生成演示网页"、"生成流程图"等。

Frontend & Design39

Sveltekit Remote Functions

217

spences10/svelte-claude-skills

SvelteKit remote functions guidance. Use for command(), query(), form() patterns in .remote.ts files.

Frontend & Design20

Edu Analytic Geometry

341

mingchen666/Reviva

把一道解析几何题解成一个自包含的交互教学网页:左栏题面 + 动态控制台(一个 可变参数滑块驱动实时重算的几何量 + 理论范围/定值指示),中栏 KaTeX 分步解析,右栏 2D Canvas 动态几何画板(椭圆/双曲线/抛物线/圆 + 动直线/动点 + 向量 + 标注 + 画笔涂鸦)。 支持三入口——给定文字题、随机出题、上传题目图片识别后解题。覆盖求标准方程、弦长、向量 数量积范围/定值、三角形面积最值、定点、定值(斜率之积)、轨迹、离心率等题型,统一"设含参 直线 x=my+c + 联立 + 韦达 + 换元/常数分离",并由 sympy 精确计算驱动(答案、坐标、步骤 数值、交互引擎的理论范围同源一致)。其它 agent 也可调用本技能生成此类网页。形态与 edu-solid-geometry 平行,但用 Canvas-2D + KaTeX(非 Three.js)。 触发词:解析几何, 圆锥曲线, 椭圆, 双曲线, 抛物线, 直线与圆锥曲线, 焦点弦, 弦长, 数量积取值范围, 向量数量积, 定点问题, 定值问题, 斜率之积, 三角形面积最值, 轨迹方程, 离心率, 解这道解析几何题, 随机出一道圆锥曲线题, 这张图里的解析几何题; analytic geometry, conic sections, ellipse, hyperbola, parabola, chord le

Frontend & Design39

Browse the most popular Claude skills, all frontend & design skills, or write your own with the skills generator.