Smithery Logo
MCPsSkillsDocsPricing
Login
Smithery Logo

Accelerating the Agent Economy

Resources

DocumentationPrivacy PolicySystem Status

Company

PricingAboutBlog

Connect

© 2026 Smithery. All rights reserved.

    dawiddutoit

    sveltekit-remote-functions

    dawiddutoit/sveltekit-remote-functions
    Coding
    1 installs

    About

    SKILL.md

    Install

    Install via Skills CLI

    or add to your agent
    • Claude Code
      Claude Code
    • Codex
      Codex
    • OpenClaw
      OpenClaw
    • Cursor
      Cursor
    • Amp
      Amp
    • GitHub Copilot
      GitHub Copilot
    • Gemini CLI
      Gemini CLI
    • Kilo Code
      Kilo Code
    • Junie
      Junie
    • Replit
      Replit
    • Windsurf
      Windsurf
    • Cline
      Cline
    • Continue
      Continue
    • OpenCode
      OpenCode
    • OpenHands
      OpenHands
    • Roo Code
      Roo Code
    • Augment
      Augment
    • Goose
      Goose
    • Trae
      Trae
    • Zencoder
      Zencoder
    • Antigravity
      Antigravity
    ├─
    ├─
    └─

    About

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

    SKILL.md

    IMPORTANT: Keep description on ONE line for Claude Code compatibility

    prettier-ignore

    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

    // 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 - 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
    Recommended Servers
    Svelte
    Svelte
    Vercel Grep
    Vercel Grep
    Repository
    dawiddutoit/custom-claude
    Files