json-render-generative-ui — Claude Code skill: how to install
Guides AI agents in creating generative UI via json-render, converting structured JSON specs into safe components across React, Vue, or PDF.
npx skills add reason-machines/trending-skills --skill json-render-generative-ui -a claude-codeWhat json-render-generative-ui does
The skill equips coding assistants with guidelines for implementing Generative UI via the json-render framework. Instead of writing raw JSX or template strings, the model returns a flat JSON spec containing element types, properties, and relationships.
Three concepts govern the process: catalogs, registries, and renderers. You define accepted UI elements with Zod validation in a catalog. The registry then binds each schema key to an implementation. Supported platforms include React, Vue, Svelte, Solid, React Native, Remotion video, and react-pdf.
Rendering fails if an element type is omitted from the registry. You must install @json-render/core and the platform adapter package in your project beforehand.
What it helps with
- restrict generated layouts to an approved component catalog
- render AI-produced JSON trees in React or Svelte
- output generative component structures into PDF or video
- handle user events via configured catalog actions
Example prompts for the agent
- Create a json-render component catalog with cards and action buttons
- Configure a React renderer to display items from a JSON spec
- Set up a PDF generation pipeline using json-render and react-pdf
How to install json-render-generative-ui
1Skills CLI (Vercel)
npx skills add reason-machines/trending-skills --skill json-render-generative-ui -a claude-code2Manually: put the files in place
~/.claude/skills/json-render-generative-ui/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/json-render-generative-ui/
1Skills CLI (Vercel)
npx skills add reason-machines/trending-skills --skill json-render-generative-ui -a codex2Manually: put the files in place
.agents/skills/json-render-generative-ui/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add reason-machines/trending-skills --skill json-render-generative-ui -a cursor2Manually: put the files in place
.cursor/skills/json-render-generative-ui/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install reason-machines/trending-skills json-render-generative-ui2Manually: put the files in place
.github/skills/json-render-generative-ui/SKILL.md1Skills CLI (Vercel)
npx skills add reason-machines/trending-skills --skill json-render-generative-ui -a gemini-cli2Platform CLI
gemini skills install https://github.com/reason-machines/trending-skills --path skills/json-render-generative-uiManually: put the files in place
.devin/skills/json-render-generative-ui/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add reason-machines/trending-skills --skill json-render-generative-ui -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about json-render-generative-ui
How to install json-render-generative-ui in Claude Code?
Install the skill using npx skills add reason-machines/trending-skills --skill json-render-generative-ui -a claude-code.
What is json-render-generative-ui?
It instructs AI models to emit structured JSON specifications instead of raw markup, ensuring predictable rendering into frontend components.
Which UI targets are compatible with json-render?
It supports React, Vue, Svelte, Solid, React Native, email rendering, Remotion video, and PDF documents.