svelte
Skill by vercel-labs
Svelte teaches an AI assistant to use @json-render/svelte, a Svelte 5 renderer that turns JSON specs into Svelte component trees. It is for developers building Svelte UIs from JSON or rendering AI-generated specs.
Install svelte
Built from the published package, never by AI.
git clone --depth 1 https://github.com/vercel-labs/json-render /tmp/json-render && mkdir -p ~/.claude/skills && cp -r /tmp/json-render/skills/svelte ~/.claude/skills/svelteRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/vercel-labs/json-render /tmp/json-render && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/json-render/skills/svelte ~/.gemini/antigravity-cli/skills/svelteAntigravity 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 covers @json-render/svelte, a Svelte 5 renderer for json-render. It turns JSON specs into Svelte component trees. The skill explains how to wire up the Renderer and JsonUIProvider, define a component catalog with defineCatalog and zod schemas, and write components that accept BaseComponentProps. It also covers defineRegistry, the element tree spec format, visibility conditions, and two-way state binding.
The skill also describes the event system, where components call emit and elements map events to actions, along with built-in actions such as setState. For AI-generated UIs, it describes createUIStream for streaming specs and createChatUI for chat responses that include UI. It is aimed at developers building Svelte interfaces from JSON or rendering specs produced by AI models.
Written from the project's SKILL.md and checked against it.
What it can do
- Spec renderingRenders a json-render spec with Renderer inside JsonUIProvider, using a component registry.
- Catalog creationDefines a component catalog with defineCatalog, using a Svelte schema and zod prop definitions.
- Component authoringShows how components accept BaseComponentProps with props, children, emit, bindings and loading.
- Registry definitionUses defineRegistry to combine components with action handlers.
- Element tree specsDescribes specs with a root id and an elements map holding type, props and children.
- Visibility conditionsShows or hides elements based on state using $state, $and and $or conditions.
- Event systemLets components emit named events that the on field maps to actions.
- Built-in actionsCovers the setState, pushState, removeState, push and pop actions.
- Two-way bindingExplains $bindState and $bindItem bindings and the getBoundProp helper.
- Streaming UIUses createUIStream for spec streaming and createChatUI for chat with UI responses.
What you need
- Svelte 5
- @json-render/svelte package
- zod for catalog prop schemas
Try asking
- Build a Svelte component catalog with Card and Button for json-render.
- Render this JSON spec as a Svelte component tree using Renderer.
- Add two-way state binding to my Svelte form input in a json-render spec.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: skills/svelte/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md7 KB
Alternatives to svelte
All alternatives →Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.
Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.
Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.
Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.
Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.
Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
svelte: common questions
What Svelte version does this skill target?
The skill is written for Svelte 5 and uses Svelte 5 runes such as $props in its examples.
How does the skill handle streaming AI-generated UIs?
It describes createUIStream, which sends a prompt to an API and exposes the spec and streaming state. It also describes createChatUI for chat responses that include UI.
How are components connected to actions?
Components call emit with an event name, and the element's on field maps that event to an action such as submit.
How do I install svelte?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is svelte free?
The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.
Is svelte safe to use?
It scores 90 of 100. Grades: maintenance A, licence A, quality A. 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 svelte?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
