---
name: "solid-start-server-functions"
description: "Build fullstack web applications with SolidStart, file-based routing, and RPC server functions."
metadata:
  author: "SolidJS"
  version: "1.0.0"
  runtime_compatibility:
    - "codex"
    - "claude-code"
    - "cursor"
    - "windsurf"
triggers:
  - "write solidstart server function"
  - "solidstart file routing"
  - "cache server function solidstart"
permissions:
  fs_read: true
  fs_write: "workspace"
  shell_exec: false
  net_access: false
---

# SolidStart Fullstack Framework & Server Functions

Configures SolidStart: file-based routing, server functions (server$ RPC), route loaders with cache(), form actions, server-side rendering (SSR), and deploying to Cloudflare Workers or Node.js.

## When to Invoke
Invoke this skill whenever you need to:
- write solidstart server function
- solidstart file routing
- cache server function solidstart

## Execution SOP & Rules
1. Define server RPC: const getUser = server$(async (id: string) => { return await db.find(id); }).
2. Use createAsync(() => getUser(params.id)) to bind server promises to reactive client signals.
3. Handle form mutations using createServerAction$ for automatic invalidation.
4. Configure nitro presets in app.config.ts for desired deployment target (node, cloudflare, vercel).

## Verification Checklist
- Run local linting, syntax validation, and type-checks before reporting completion.
- Ensure all created or modified files adhere to workspace boundaries and avoid uncommitted secrets.
- Verify tests or build commands exit cleanly with return code 0.
