New advertisers: 50% off your first month with code FIRSTMONTHSee slots
secondsky avatar

thesys-generative-ui

AI-powered generative UI skill that turns LLM responses into interactive React components with Thesys C1.

version
3.12.0
GitHub stars
250
View on GitHub

What it does

  • Adds a thesys-generative-ui skill that generates, modifies, and styles React components from natural language using the Thesys SDK
  • Provides <C1Chat> and <C1Component> integration, Zod-based tool calling, theming, thread management, and streaming UI
  • Includes 15+ templates for Vite + React, Next.js App Router, and Cloudflare Workers, plus OpenAI and Claude provider patterns
  • Designed for building AI chat interfaces, dashboards, and forms that render structured output instead of plain text

AI-powered generative UI with Thesys - create React components from natural language.

Add marketplace

/plugin marketplace add secondsky/claude-skills

Run it inside Claude Code once, then install the plugin below.

Install

/plugin install thesys-generative-ui@claude-skills

Run it inside Claude Code after adding the marketplace.

Files

Discovered from source

Thesys Generative UI

Last Updated: 2025-11-10

Quick Start

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

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

Readme

TheSys Generative UI Skill

Production-ready integration of TheSys C1 Generative UI API for React applications.

Convert LLM responses into streaming, interactive React components (forms, charts, tables) instead of plain text.


Auto-Trigger Keywords

This skill automatically activates when you mention any of these terms:

Core Technologies

  • generative ui
  • generative user interface
  • genui
  • thesys
  • thesys c1
  • c1 api
  • c1 generative ui
  • @thesysai/genui-sdk
  • @crayonai/react-ui
  • crayonai

Use Cases

  • streaming react components
  • ai chat interface
  • conversational ui
  • chat ui components
  • interactive ai responses
  • llm to ui
  • ai to components
  • ai generated ui
  • dynamic ui generation
  • real-time ui generation

Features

  • chat with charts
  • chat with forms
  • chat with tables
  • data visualization chat
  • ai forms
  • tool calling ui
  • interactive chat
  • streaming chat
  • ai copilot ui
  • ai assistant interface

Integration Patterns

  • react generative ui
  • nextjs generative ui
  • vite generative ui
  • cloudflare generative ui
  • openai ui components
  • claude ui components
  • anthropic ui generation

Problems This Solves

  • text to ui conversion
  • llm response visualization
  • ai response components
  • interactive llm output
  • structured ai responses
  • streaming ai ui

What This Skill Provides

🎯 Complete Framework Coverage

  • Vite + React - Your preferred stack with custom backends
  • Next.js App Router - Full-stack with API routes
  • Cloudflare Workers - Workers + Static Assets integration
  • Framework-agnostic - General patterns for any setup

πŸ€– AI Provider Integration

  • OpenAI - GPT-4, GPT-5 models
  • Anthropic Claude - Sonnet, Haiku models
  • Cloudflare Workers AI - Cost-optimized patterns
  • Universal patterns - Works with any OpenAI-compatible provider

πŸ› οΈ Features Covered

  • <C1Chat> - Pre-built chat component with state management
  • <C1Component> - Low-level custom integration
  • Tool calling - Zod schema integration for function calling
  • Theming - Custom themes, dark mode, CSS overrides
  • Thread management - Multi-conversation support
  • Streaming - Real-time UI generation
  • Thinking states - Progress indicators during processing
  • Sharing - Thread and message sharing capabilities

πŸ“š 15+ Working Templates

  • 5 Vite+React templates (basic chat, custom components, tool calling, theming)
  • 4 Next.js templates (pages, API routes, tool integration)
  • 3 Cloudflare Workers templates (Hono backend, frontend, config)
  • 3 Shared utilities (themes, schemas, streaming helpers)

πŸ› 12+ Errors Prevented

  • Empty agent responses
  • System prompt not followed
  • Version compatibility issues
  • Theme not applying
  • Streaming failures
  • Tool calling validation errors
  • Thread state loss
  • CSS conflicts
  • TypeScript errors
  • CORS failures
  • Rate limit crashes
  • Authentication token errors

Quick Installation

# Install main packages
npm install @thesysai/genui-sdk @crayonai/react-ui @crayonai/react-core

# For API integration
npm install openai

# For tool calling
npm install zod zod-to-json-schema

Quick Start Example

import { C1Chat } from "@thesysai/genui-sdk";
import "@crayonai/react-ui/styles/index.css";

export default function App() {
  return <C1Chat apiUrl="/api/chat" />;
}

That's it! See SKILL.md for complete integration guides.


When to Use This Skill

βœ… Use this skill when:

  • Building AI chat interfaces with rich, interactive components
  • Creating data visualization dashboards powered by AI
  • Implementing dynamic form generation from LLM responses
  • Developing AI copilots or assistants with structured output
  • Building search interfaces with formatted results
  • Converting plain text LLM responses into interactive UI

❌ Don't use this skill for:

  • Plain text chat (just use standard LLM SDKs)
  • Static UI generation (use regular React components)
  • Non-interactive AI responses

Package Information

  • Main Package: @thesysai/genui-sdk@^0.9.0
  • UI Components: @crayonai/react-ui@^0.9.16
  • Core Library: @crayonai/react-core@^0.7.6
  • Streaming Utils: @crayonai/stream@latest
  • Python SDK: thesys-genui-sdk (for Python backends)
  • Last Verified: 2025-10-26
  • Production Tested: βœ… Yes

Skill Contents

thesys-generative-ui/
β”œβ”€β”€ SKILL.md (6500+ words comprehensive guide)
β”œβ”€β”€ README.md (this file)
β”œβ”€β”€ scripts/
β”‚   β”œβ”€β”€ install-dependencies.sh
β”‚   └── check-versions.sh
β”œβ”€β”€ templates/
β”‚   β”œβ”€β”€ vite-react/ (5 templates)
β”‚   β”œβ”€β”€ nextjs/ (4 templates)
β”‚   β”œβ”€β”€ cloudflare-workers/ (3 templates)
β”‚   └── shared/ (3 utilities)
β”œβ”€β”€ references/
β”‚   β”œβ”€β”€ component-api.md
β”‚   β”œβ”€β”€ ai-provider-setup.md
β”‚   β”œβ”€β”€ tool-calling-guide.md
β”‚   β”œβ”€β”€ theme-customization.md
β”‚   └── common-errors.md
└── assets/
    └── architecture-diagram.md

Success Metrics

  • Token savings: ~65-70% vs manual implementation
  • Errors prevented: 12+ documented issues
  • Development speed: 10x faster (per TheSys claims)
  • User engagement: 83% more engaging than plain text

Resources

Official Documentation

Getting an API Key

  1. Visit https://console.thesys.dev
  2. Sign up for an account
  3. Create a new API key
  4. Set as THESYS_API_KEY environment variable

Context7 Library

Use Context7 MCP for up-to-date documentation:

/websites/thesys_dev

Common Questions

Q: Is TheSys free? A: TheSys offers a free tier. Check their pricing page for details.

Q: Does it work with Claude/OpenAI/Workers AI? A: Yes! TheSys C1 API is OpenAI-compatible and works with all major providers.

Q: Can I use my own React components? A: Yes! You can bring your own components and integrate them with C1.

Q: Is streaming supported? A: Yes! Streaming is core to TheSys - UI updates in real-time as the LLM generates.

Q: What about thread/conversation management? A: Fully supported with useThreadManager and useThreadListManager hooks.


Support

  • See references/common-errors.md for troubleshooting
  • Check SKILL.md for comprehensive integration guides
  • Review templates for working examples
  • Official docs: https://docs.thesys.dev

Skill Version: 1.0.0 Last Updated: 2025-10-26 Maintainer: Claude Skills Maintainers | maintainers@example.com License: MIT

Details

Marketplace
secondsky/claude-skills
Source
plugins/thesys-generative-ui
Category
Ai
Keywords
thesys-generative-ui, thesys, generative, machine-learning, llm, artificial-intelligence
Listed since
Apr 7, 2026

More from secondsky/claude-skills

All 122

Similar to thesys-generative-ui

More AI Agents & LLM Apps