Skip to main content
skill CX Codex

widgets-ui — Claude Code skill for JSON-driven React/Next.js widgets

widgets-ui — a skill for Claude Code, Cursor, Codex and other agents: builds React/Next.js components from JSON descriptions. The agent outputs a widget structure; the renderer assembles forms, cards and layouts in the project.

no license 239 installs ★ 31 updated 2026-08-31

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add 101-skills/superpowers --skill widgets-ui -a claude-code
Open on GitHub

What widgets-ui does

The skill connects the widget library from ui.inference.sh via the shadcn registry — npx shadcn@latest add https://ui.inference.sh/r/widgets.json drops a WidgetRenderer component into the project.

Widgets are plain JSON objects. Layout nodes cover row, col and box with named gradients like gradient-ocean and gradient-sunset. Typography includes title, text, caption and label. Interactive elements are button, input, textarea, select and checkbox. Display nodes add badge, icon, image and divider. WidgetRenderer takes a widget tree and an onAction callback that receives the event type and form data — either submit or click.

The component targets the React/Next.js ecosystem, so projects outside it cannot use it.

What it helps with

  • generate a contact form from a structured agent response
  • render a flight card with icons and a gradient background
  • compose a dynamic two-column layout from model output
  • add a select or checkbox to an agent UI without writing markup by hand
  • handle form submission through the onAction callback

Example prompts for the agent

  • Generate a registration form widget with name, email fields and a Submit button using WidgetRenderer
  • Build a product card with a badge, image and Buy button as a JSON widget for widgets-ui
  • Create a two-column layout with a heading using declarative widgets-ui JSON nodes

How to install widgets-ui

1Skills CLI (Vercel)

npx skills add 101-skills/superpowers --skill widgets-ui -a claude-code

2Manually: put the files in place

~/.claude/skills/widgets-ui/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/widgets-ui/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about widgets-ui

How do I install widgets-ui in Claude Code?

Run npx skills add 101-skills/superpowers --skill widgets-ui -a claude-code. The skill will be available at ~/.claude/skills/widgets-ui/SKILL.md.

What does the widgets-ui skill do?

It teaches the agent to produce React/Next.js UIs from JSON — forms, cards, buttons and layouts — rendered by the WidgetRenderer component from ui.inference.sh.

Does the component also need to be installed in the project?

Yes. The skill adds instructions to the agent, but the component itself requires npx shadcn@latest add https://ui.inference.sh/r/widgets.json in each project.

Similar skills

All skills for Frontend and UI →

From the same set81

The whole set →
nano-banana-2 Generates images with Google Gemini 3.1 Flash Image Preview (Nano Banana 2) through the belt CLI. Runs on text prompts, edits existing images, and accepts up to 14 input files. CX Codex +1 240installs qwen-image-2 qwen-image-2 is a Claude Code skill for creating and editing images with Alibaba Qwen-Image-2.0. It responds to Qwen Image and image-generation requests. CX Codex +1 240installs qwen-image-2-pro qwen-image-2-pro — a skill for Claude Code and Cursor that generates images via Alibaba Qwen-Image-2.0-Pro. Renders multi-line text in posters and banners. CX Codex +1 239installs linkedin-content linkedin-content — a skill for drafting LinkedIn posts: hook formulas, formatting rules, post types, character limits and the signals the feed rewards. CX Codex +1 239installs javascript-sdk javascript-sdk teaches the agent to wire the inference.sh JavaScript/TypeScript client into your app: running AI apps, streaming progress and building agents in code. CX Codex +1 239installs llm-models llm-models queries over a hundred LLMs through OpenRouter using the belt command-line tool directly from your agent. Selects cost-effective models automatically. CX Codex +1 238installs press-release-writing press-release-writing is a Claude Code skill that writes AP-style press releases with an inverted pyramid, triggered by product launches, funding rounds, partnerships, and company news. CX Codex +1 238installs customer-persona customer-persona turns market search into a buyer persona: demographics, psychographics, goals, quantified pain points and a generated portrait. For strategy decks and product decisions. CX Codex +1 238installs

Project sponsors

Companies that keep this analytics open