Sveltekit Remote Functions

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

217 stars 20 forksFrontend & Design

Install

skills CLI (Claude Code, Cursor, Codex and more)
npx skills add spences10/svelte-claude-skills --skill sveltekit-remote-functions
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-remote-functions ~/.claude/skills/sveltekit-remote-functions

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 Remote Functions

## Quick Start

**File naming:** `*.remote.ts` for remote function files

**Which function?** One-time action → `command()` | Repeated reads →
`query()` | Forms → `form()`

## Example

```typescript
// actions.remote.ts
import { command } from '$app/server';
import * as v from 'valibot';

export const delete_user = command(
	v.object({ id: v.string() }),
	async ({ id }) => {
		await db.users.delete(id);
		return { success: true };
	},
);

// Call from client: await delete_user({ id: '123' });
```

## Reference Files

- [references/remote-functions.md](references/remote-functions.md) -
  Complete guide with all patterns

## Notes

- Remote functions execute on server when called from browser
- Args/returns must be JSON-serializable
- Schema validation via StandardSchemaV1 (Valibot/Zod)
- `getRequestEvent()` available for cookies/headers access
- **Queries are cached** - use `.refresh()` to get fresh data
- **No .remote files in `src/lib/server/`** - they won't work there
- **Last verified:** 2025-12-19
Read the full skill on GitHub

Details

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

FAQ

What does the Sveltekit Remote Functions skill do?

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

How do I install the Sveltekit Remote Functions skill?

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

Is Sveltekit Remote Functions 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

Sveltekit Structure

217

spences10/svelte-claude-skills

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

Frontend & Design20

Sveltekit Data Flow

217

spences10/svelte-claude-skills

SvelteKit data flow guidance. Use for load functions, form actions, and server/client data. Covers +page.server.ts vs +page.ts, serialization, fail(), redirect(), error().

Frontend & Design20

AI Animation Skill

341

mingchen666/Reviva

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

Frontend & Design39

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