Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

thesys-generative-ui

БесплатноБез исполняемых скриптовНе проверен

TheSys C1 Generative UI API (@thesysai/genui-sdk with @crayonai/react-ui) for React apps that stream interactive components such as forms, charts, and tables…

jackspaceот jackspace★ 16 звёзд на GitHub11 установок в других каталогах

Об этом скилле

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:

  1. 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
  2. Data Visualization Applications

    • Analytics dashboards with AI-generated charts
    • Business intelligence tools with dynamic tables
    • Search interfaces with structured results
  3. Dynamic Form Generation

    • E-commerce product configurators
    • Multi-step workflows driven by AI
    • Data collection with intelligent forms
  4. AI Copilots and Assistants

    • Developer tools with code snippets and docs
    • Educational platforms with interactive lessons
    • Research tools with citations and references
  5. 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
Полный SKILL.md на GitHub

Установить thesys-generative-ui в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

CHANGELOG.mdREADME.mdSKILL.json

FAQ

Что делает скилл thesys-generative-ui?

TheSys C1 Generative UI API (@thesysai/genui-sdk with @crayonai/react-ui) for React apps that stream interactive components such as forms, charts, and tables instead of plain text LLM output. Covers integration for Vite + React, Next.js, and Cloudflare Workers with OpenAI, Anthropic Claude, or Workers AI backends, plus C1Component and ThemeProvider, tool calling with Zod schemas, theming, thread management and persistence, and production deployment. Use when building conversational UIs, AI assistants and copilots, AI-generated dashboards, or dynamic forms, or when debugging empty agent responses, streaming and response transformation failures, ignored system prompts, themes not applying, SDK/API version mismatches, CORS failures, or rate limit crashes.

Как установить скилл thesys-generative-ui?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл thesys-generative-ui запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить thesys-generative-ui с