x0k/svelte-jsonschema-form/sjsf-sveltekit
Claude Code and agent skill by x0k/svelte-jsonschema-form
- community
Checking that the SKILL.md file is still in the repository.
Integrate svelte-jsonschema-form with SvelteKit using @sjsf/sveltekit3. Use when building SvelteKit form actions with createAction, using SvelteKitForm with createMeta, configuring progressive enhancement, handling server validation errors, streaming JSON chunks, or using remote functions.
Install
npx vskill@latest install x0k/svelte-jsonschema-form/sjsf-sveltekitSKILL.md
SJSF SvelteKit Integration
This skill guides integrating svelte-jsonschema-form with SvelteKit using @sjsf/sveltekit3.
Step 1: Install @sjsf/sveltekit3
Ensure your src/lib/sjsf/defaults.ts is configured with a validator, theme, and merger. Use the ID builder from the integration package (@sjsf/sveltekit3), not @sjsf/form/id-builders/modern.
Step 2: Server Action Setup (+page.server.ts)
In +page.server.ts, define your load function and action using createAction:
Step 3: Client Form Setup (+page.svelte)
In +page.svelte, connect client state to server metadata using createMeta and <SvelteKitForm>:
See Form Actions API Reference for full options and Superforms comparison.
Step 4: Progressive Enhancement
<SvelteKitForm> submits a standard POST with JavaScript disabled. Limits in that mode:
- Create the action with
sendData: trueto persist form data between page updates. oneOf/anyOf/dependencies/additionalProperties/additionalItemsdo not expand or switch.- Widgets needing JavaScript (e.g. multiselect) do not work.
For remote functions without form actions, see Remote Functions Reference.
Gotchas & Rules
- Name Matching Rule: The identifier must match the
nameoption (not theactionskey) across 3 locations:
loadreturn object key:return { postForm: ... }createActionoption:name: "postForm"createMetaselector:createMeta<...>().postForm
- Server-Side Errors Return Format: Custom errors returned from
createActionhandler must follow the format[{ path: ["fieldName"], message: "Error text" }]. - No Duplicate Schemas: Unlike Superforms, you do not need separate client and server schemas. The same JSON Schema Draft-07 validates both in the browser and in SvelteKit server endpoints.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/sjsf-sveltekit/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/x0k/svelte-jsonschema-form/sjsf-sveltekit)