sjsf-sveltekit
Skill by x0k
Guides integration of svelte-jsonschema-form with SvelteKit using the @sjsf/sveltekit3 package. Covers server form actions with createAction, the SvelteKitForm component and progressive enhancement. For SvelteKit developers building JSON Schema forms.
Install sjsf-sveltekit
Built from the published package, never by AI.
git clone --depth 1 https://github.com/x0k/svelte-jsonschema-form /tmp/svelte-jsonschema-form && mkdir -p ~/.claude/skills && cp -r /tmp/svelte-jsonschema-form/skills/sjsf-sveltekit ~/.claude/skills/sjsf-sveltekitRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/x0k/svelte-jsonschema-form /tmp/svelte-jsonschema-form && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/svelte-jsonschema-form/skills/sjsf-sveltekit ~/.gemini/antigravity-cli/skills/sjsf-sveltekitAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill guides developers through integrating svelte-jsonschema-form with SvelteKit using the @sjsf/sveltekit3 package. It shows how to install the package, define a load function and a form action with createAction in +page.server.ts, and connect client state to server metadata with createMeta and the SvelteKitForm component. It also covers the onSuccess, onFailure and onSubmitError callbacks.
The skill explains progressive enhancement, which submits a standard POST when JavaScript is disabled, and how to return custom server validation errors in a path and message format. It also points to reference files for form actions and remote functions. It is aimed at developers building SvelteKit forms from JSON Schema.
Written from the project's SKILL.md and checked against it.
What it can do
- Server action setupShows how to define a load function and a form action with createAction in +page.server.ts.
- Client form setupShows how to connect client state to server metadata with createMeta and SvelteKitForm.
- Form result callbacksExplains onSuccess, onFailure and onSubmitError handling for form results.
- Progressive enhancementExplains how forms behave as a standard POST with JavaScript disabled.
- Server validation errorsShows how to return custom field errors from the action handler.
- Remote functionsPoints to a reference for using remote functions without form actions.
What you need
- Node.js with pnpm
- A SvelteKit project
- svelte-jsonschema-form with @sjsf/sveltekit3
- A configured src/lib/sjsf/defaults.ts with a validator, theme and merger
Try asking
- Set up a SvelteKit form action with createAction for my JSON Schema form
- Wire SvelteKitForm to my page metadata using createMeta
- Return server validation errors from my SvelteKit form action
Good to know
- With JavaScript disabled, oneOf, anyOf, dependencies, additionalProperties and additionalItems do not expand or switch.
- Widgets that need JavaScript, such as multiselect, do not work without it.
- Use the ID builder from @sjsf/sveltekit3, not @sjsf/form/id-builders/modern.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: skills/sjsf-sveltekit/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to sjsf-sveltekit
All alternatives →Diagnoses slow React components and suggests targeted performance fixes. Built for developers who want to reduce re-renders or list lag in React UIs.
Diagnoses slow React components and suggests targeted performance fixes. Built for React developers who need to reduce re-renders, list lag, or expensive render work.
Designs masterclass-style lectures as slide courses with dense pages, long teacher narration and rare quizzes. Built for subjects where understanding matters more than hands-on practice.
Designs hands-on workshop courses in which the learner practises through exercise and quiz pages instead of watching. It suits workshops, bootcamp sessions and skills the learner should leave able to use.
Analyzes competition and develops market positioning strategies using Porter's Five Forces, Blue Ocean Strategy, and positioning maps. Useful for founders and teams evaluating competitors or preparing a startup or investor pitch.
Designs courses whose content depends on current or external facts. It researches the topic first, records each claim with its source, and builds the outline and pages from fetched material. Built for educators teaching time-sensitive subjects.
Compare with react-component-performance, react-component-performance or lecture-style
sjsf-sveltekit: common questions
Do I need separate schemas for client and server?
No. The source says that, unlike Superforms, the same JSON Schema Draft-07 validates both in the browser and on the SvelteKit server.
Do forms work without JavaScript?
Forms submit a standard POST with JavaScript disabled. Some features, such as oneOf, anyOf and multiselect widgets, do not work in that mode.
What name must match when setting up a form?
The identifier must match the name option, the load return key and the createMeta selector. It does not need to match the actions key.
How do I install sjsf-sveltekit?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is sjsf-sveltekit free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is sjsf-sveltekit safe to use?
It scores 72 of 100. Grades: maintenance A, licence A, quality B. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to sjsf-sveltekit?
Similar skills: react-component-performance, react-component-performance, lecture-style, workshop-style.
