# json-render-generative-ui

Guides AI agents in creating generative UI via json-render, converting structured JSON specs into safe components across React, Vue, or PDF.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode · 1300 installs · ★ 88
- Author: reason-machines
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/reason-machines/trending-skills/tree/HEAD/skills/json-render-generative-ui/SKILL.md
- Updated: 2026-10-09
- HTML: https://affpapa.org/en/nevibecode/skills/json-render-generative-ui

## What it 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.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add reason-machines/trending-skills --skill json-render-generative-ui -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/json-render-generative-ui/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/json-render-generative-ui/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add reason-machines/trending-skills --skill json-render-generative-ui -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/json-render-generative-ui/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add reason-machines/trending-skills --skill json-render-generative-ui -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/json-render-generative-ui/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install reason-machines/trending-skills json-render-generative-ui
```

2. **Manually: put the files in place**
- File: `.github/skills/json-render-generative-ui/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add reason-machines/trending-skills --skill json-render-generative-ui -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/reason-machines/trending-skills --path skills/json-render-generative-ui
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/json-render-generative-ui/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add reason-machines/trending-skills --skill json-render-generative-ui -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/reason-machines/trending-skills/tree/HEAD/skills/json-render-generative-ui/SKILL.md

## When to use it
- 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
- 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

## Similar
- [frontend-design](https://affpapa.org/en/nevibecode/skills/frontend-design.md) — skill · 1025790 installs
- [design-taste-frontend](https://affpapa.org/en/nevibecode/skills/design-taste-frontend.md) — skill · 678700 installs
- [prototype](https://affpapa.org/en/nevibecode/skills/prototype.md) — skill · 986201 installs
- [hyperframes](https://affpapa.org/en/nevibecode/skills/heygen-com-hyperframes.md) — skill · 1200000 installs
- [hyperframes-cli](https://affpapa.org/en/nevibecode/skills/heygen-com-hyperframes-cli.md) — skill · 1300000 installs
- [webapp-testing](https://affpapa.org/en/nevibecode/skills/webapp-testing.md) — skill · 186758 installs

From the same set: [reason-machines/trending-skills](https://affpapa.org/en/nevibecode/by/reason-machines/trending-skills.md) — 139 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
