thesys-generative-ui
Integrate TheSys C1 Generative UI API to stream interactive React components (forms, charts, tables) from LLM responses. Supports Vite+React, Next.js, and…

Установить thesys-generative-ui в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
TheSys Generative UI Integration
Complete skill for building AI-powered interfaces with TheSys C1 Generative UI API. Convert LLM responses into streaming, interactive React components.
What is TheSys C1?
TheSys C1 is a Generative UI API that transforms Large Language Model (LLM) responses into live, interactive React components instead of plain text. Rather than displaying walls of text, your AI applications can stream forms, charts, tables, search results, and custom UI elements in real-time.
Key Innovation
Traditional LLM applications return text that developers must manually convert into UI:
LLM → Text Response → Developer Parses → Manual UI Code → Display
TheSys C1 eliminates this manual step:
LLM → C1 API → Interactive React Components → Display
Real-World Impact
- 83% more engaging - Users prefer interactive components over text walls
- 10x faster development - No manual text-to-UI conversion
- 80% cheaper - Reduced development time and maintenance
- Production-ready - Used by teams building AI-native products
When to Use This Skill
Use this skill when building:
Chat Interfaces with Rich UI
- Conversational interfaces that need more than text
- Customer support chatbots with forms and actions
- AI assistants that show data visualizations
Data Visualization Applications
- Analytics dashboards with AI-generated charts
- Business intelligence tools with dynamic tables
- Search interfaces with structured results
Dynamic Form Generation
- E-commerce product configurators
- Multi-step workflows driven by AI
- Data collection with intelligent forms
AI Copilots and Assistants
- Developer tools with code snippets and docs
- Educational platforms with interactive lessons
- Research tools with citations and references
Search and Discovery
- Semantic search with structured results
- Document analysis with highlighted findings
- Knowledge bases with interactive answers
This Skill Prevents These Errors
- ❌ Empty agent responses from incorrect streaming setup
- ❌ Models ignoring system prompts due to message array issues
- ❌ Version compatibility errors between SDK and API
- ❌ Themes not applying without ThemeProvider
- ❌ Streaming failures from improper response transformation
- ❌ Tool calling bugs from invalid Zod schemas
- ❌ Thread state loss from missing persistence
- ❌ CSS conflicts from import order issues
- ❌ TypeScript errors from outdated type definitions
- ❌ CORS failures from missing headers
- ❌ Rate limit crashes without retry logic
- ❌ Authentication token errors from environment issues
Quick Start by Framework
Vite + React Setup
Most flexible setup for custom backends (your preferred stack).
1. Install Dependencies
npm install @thesysai/genui-sdk @crayonai/react-ui @crayonai/react-core @crayonai/stream
npm install openai zod
2. Create Chat Component
File: src/App.tsx
import "@crayonai/react-ui/styles/index.css";
import { ThemeProvider, C1Component } from "@thesysai/genui-sdk";
import { useState } from "react";
export default function App() {
const [isLoading, setIsLoading] = useState(false);
const [c1Response, setC1Response] = useState("");
const [question, setQuestion] = useState("");
const makeApiCall = async (query: string) => {
setIsLoading(true);
setC1Response("");
try {
const response = await fetch("/api/chat", {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({ prompt: query }),
});
const data = await response.json();
setC1Response(data.response);
} catch (error) {
console.error("Error:", error);
} finally {
setIsLoading(false);
}
};
return (
<div className="container">
<h1>AI Assistant</h1>
<form onSubmit={(e) => {
e.preventDefault();
makeApiCall(question);
}}>
<input
type="text"
value={question}
onChange={(e) => setQuestion(e.target.value)}
placeholder="Ask me anything..."
/>
<button type="submit" disabled={isLoading}>
{isLoading ? "Processing..." : "Send"}
</button>
</form>
{c1Response && (
<ThemeProvider>
<C1Component
c1Response={c1Response}
isStreaming={isLoading}
updateMessage={(message) => setC1Response(message)}
onAction={({ llmFriendlyMessage }) => {
if (!isLoading) {
makeApiCall(llmFriendlyMessage);
}
}}
/>
</ThemeProvider>
)}
</div>
);
}
3. Configure Backend API (Express Example)
import express from "express";
import OpenAI from "openai";
import { transformStream } from "@crayonai/stream";
const app = express();
app.u
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- .claude-plugin/plugin.json
- CHANGELOG.md
- README.md
- references/ai-provider-setup.md
- references/common-errors.md
- references/component-api.md
- scripts/check-versions.sh
- scripts/install-dependencies.sh
- templates/cloudflare-workers/frontend-setup.tsx
- templates/cloudflare-workers/worker-backend.ts
- templates/cloudflare-workers/wrangler.jsonc
- templates/nextjs/api-chat-route.ts
- templates/nextjs/app-page.tsx
- templates/nextjs/package.json
- templates/nextjs/tool-calling-route.ts
- templates/python-backend/README.md
- templates/python-backend/fastapi-chat.py
- templates/python-backend/flask-chat.py
- templates/python-backend/requirements.txt
- templates/shared/streaming-utils.ts
- templates/shared/theme-config.ts
- templates/shared/tool-schemas.ts
- templates/vite-react/basic-chat.tsx
- templates/vite-react/custom-component.tsx
- templates/vite-react/package.json
- templates/vite-react/theme-dark-mode.tsx
- templates/vite-react/tool-calling.tsx
FAQ
Что делает скилл thesys-generative-ui?
Integrate TheSys C1 Generative UI API to stream interactive React components (forms, charts, tables) from LLM responses. Supports Vite+React, Next.js, and Cloudflare Workers with OpenAI, Anthropic Claude, and Workers AI. Use when building conversational UIs, AI assistants with rich interactions, or troubleshooting empty responses, theme application failures, streaming issues, or tool calling errors.
Как установить скилл thesys-generative-ui?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл thesys-generative-ui запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
mcp-builder
AnthropicGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
claude-api
AnthropicReference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
algorithmic-art
AnthropicCreating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
mcp-integration
AnthropicThis skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
