Skip to main content
skill CX Codex

thesys-generative-ui — Claude Code skill: generate React UI

A skill that teaches your agent to build React components from plain-language prompts with the Thesys SDK. Handy when you want a UI sketched out from a description.

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

What thesys-generative-ui does

The skill covers the Thesys SDK workflow: you write a prompt like a profile card with avatar, name and email, and get a React component back. Generation follows a schema, so props stay typed instead of being guessed.

Inside are references on tool calling with Zod schemas, theme setup, and AI provider configuration for OpenAI, Anthropic and Cloudflare Workers AI. A separate guide walks through deployment on Vite, Next.js and Cloudflare Workers. Templates ship too: basic-chat.tsx, custom-component.tsx, tool-calling.tsx, theme-dark-mode.tsx, Next.js routes and a worker backend.

You need an API key for whichever provider you pick — without it generateUI calls fail. The skill installs into Claude, Codex, Cursor, GitHub Copilot, Gemini CLI and OpenCode; there is no Claude.ai install.

What it helps with

  • turn a text description into a React component
  • wire tool calling into generation with Zod schemas
  • set up theming and dark mode for generated UI
  • deploy a chat interface to Vite, Next.js or Cloudflare Workers
  • connect OpenAI, Anthropic or Cloudflare Workers AI as the provider

Example prompts for the agent

  • generate a user profile card with avatar, name and email using Thesys
  • add tool calling to this component and describe the schema with Zod
  • set up a dark theme for the generated interface

How to install thesys-generative-ui

1Skills CLI (Vercel)

npx skills add secondsky/claude-skills --skill thesys-generative-ui -a claude-code

2Manually: put the files in place

~/.claude/skills/thesys-generative-ui/SKILL.md

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

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

Questions about thesys-generative-ui

How do I install thesys-generative-ui in Claude?

Run npx skills add secondsky/claude-skills --skill thesys-generative-ui -a claude-code. The skill lands in ~/.claude/skills/thesys-generative-ui/SKILL.md.

What does thesys-generative-ui do?

It helps the agent generate, modify and style React components from natural language through the Thesys SDK. References cover tool calling, themes and deployment.

What do I need before using it?

An API key for your AI provider — the references cover Anthropic, Anthropic and Cloudflare Workers AI. Without one, generateUI calls will not run.

Source text

SKILL.md · MIT
---
name: thesys-generative-ui
description: >-
  >
    Generate, modify, and style React components from natural language using the
    Thesys SDK. Guides schema-driven UI generation, theme customisation, tool
    calling integration, and deployment to Vite, Next.js, or Cloudflare Workers.
    Use when the user says "generate UI", "create a component", "build an
    interface", "Thesys", "generative UI", or asks to turn a description into a
    React component.
license: MIT
---

# Thesys Generative UI

**Last Updated**: 2025-11-10

## Quick Start

```typescript
import { generateUI } from 'thesys';

const ui = await generateUI({
  prompt: 'Create a user profile card with avatar, name, and email',
  schema: {
    type: 'component',
    props: ['name', 'email', 'avatar']
  }
});

export default function Profile() {
  return <div>{ui}</div>;
}
```

## Core Features

- **Natural Language**: Describe UI in plain English
- **Schema-Driven**: Type-safe component generation
- **React Components**: Generate production-ready components
- **AI-Powered**: Uses LLMs for intelligent design

## Example

```typescript
const form = await generateUI({
  prompt: 'Create a contact form with name, email, and message fields',
  theme: 'modern'
});
```

## Resources

### Core Documentation
- `references/what-is-thesys.md` - What is TheSys C1, success metrics, getting started
- `references/use-cases-examples.md` - When to use, 12 errors prevented, all templates catalog
- `references/tool-calling.md` - Complete tool calling guide with Zod schemas
- `references/integration-guide.md` - Complete setup for Vite, Next.js, Cloudflare Workers

### Additional References
- `references/component-api.md` - Complete component prop reference
- `references/ai-provider-setup.md` - OpenAI, Anthropic, Cloudflare Workers AI setup
- `references/tool-calling-guide.md` - Tool calling patterns
- `references/theme-customization.md` - Theme system deep dive
- `references/common-errors.md` - Expanded error catalog

### Templates (15+ files)
- **Vite + React**: `basic-chat.tsx`, `custom-component.tsx`, `tool-calling.tsx`, `theme-dark-mode.tsx`
- **Next.js**: `app/page.tsx`, `app/api/chat/route.ts`, `tool-calling-route.ts`
- **Cloudflare Workers**: `worker-backend.ts`, `frontend-setup.tsx`
- **Utilities**: `theme-config.ts`, `tool-schemas.ts`, `streaming-utils.ts`

**Official Docs**: https://docs.thesys.dev | **Playground**: https://console.thesys.dev/playground

© secondsky · MIT · secondsky/claude-skills

Similar skills

Everything for Frontend and UI →

From the same set94

graphql-implementation A skill for building GraphQL APIs: schema, resolvers, error codes and N+1 protection. Useful when moving off REST or adding real-time subscriptions. CX Codex +1 380installs model-deployment A skill for getting a trained model into production: FastAPI server, Docker, Kubernetes, monitoring and drift detection. Useful once the model works and serving does not. CX Codex +1 379installs cloudflare-agents A skill for building AI agents on Cloudflare Workers with tools, MCP and LLM providers. Useful when the agent runs inside a worker. CX Codex +1 378installs cloudflare-mcp-server A skill for building MCP servers on Cloudflare Workers: tools, resources, prompts and transport choices. Useful when you write your own server for an AI agent. CX Codex +1 375installs maz-ui This skill teaches your agent Maz-UI v4: 50+ components, composables and directives for Vue 3 and Nuxt 3. Handy when you build forms, dialogs or data tables. CX Codex +1 369installs woocommerce-dev-cycle A skill that walks you through the WooCommerce dev cycle: run tests, fix code style, sort out linting errors. CX Codex +1 361installs woocommerce-copy-guidelines A skill that sets the rules for user-facing text in WooCommerce: button labels, field names, messages and docs. Useful when more than one person writes the storefront strings. CX Codex +1 363installs cloudflare-workers-testing A skill for writing Cloudflare Workers tests with Vitest and real D1, KV, R2 and Durable Objects bindings. Useful when tests break on mocks or can't see the environment. CX Codex +1 325installs

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor