thesys-generative-ui について
自然言語の説明から Thesys で React UI コンポーネントを作成するスキルです。スキーマに基づく型安全な生成に加え、連携、テーマ、ツール呼び出しの資料を含みます。
主な機能
- 01自然言語による UI の説明
- 02スキーマ駆動のコンポーネント生成
- 03型安全な React コンポーネント
- 04テーマカスタマイズのガイド
- 05ツール呼び出しのパターン
- 06連携テンプレートと資料
活用シーン
- 01説明からプロフィールカードを生成
- 02問い合わせフォームの作成
- 03テンプレートでチャット UI を構築
- 04UI フロー向けツール呼び出しの設定
インストール
コマンドをコピーしてターミナルで実行します。
$
npx skills add https:/ / github.com/ secondsky/ claude-skills --skill thesys-generative-uiインストール後、Claude Code で/thesys-generative-uiを入力して読み込まれたか確認します。
同梱ファイル
SKILL.md と一緒にインストールされる参考資料やスクリプト。
references/ai-provider-setup.mdcommon-errors.mdcomponent-api.mderror-catalog.mdintegration-guide.mdtool-calling.mduse-cases-examples.mdwhat-is-thesys.mdscripts/check-versions.shinstall-dependencies.shtemplates/basic-usage.tsxtemplates/cloudflare-workers/frontend-setup.tsxworker-backend.tswrangler.jsonctemplates/nextjs/api-chat-route.tsapp-page.tsxpackage.jsontool-calling-route.tstemplates/python-backend/fastapi-chat.pyflask-chat.pyREADME.mdrequirements.txttemplates/shared/streaming-utils.tstheme-config.tstool-schemas.tstemplates/vite-react/basic-chat.tsxcustom-component.tsxpackage.jsontheme-dark-mode.tsxtool-calling.tsx詳細
Thesys Generative UI
最終更新日:2025-11-10
クイックスタート
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>;
}
主な機能
- 自然言語:平易な英語で UI を記述します
- スキーマ駆動:型安全なコンポーネントを生成します
- React コンポーネント:本番環境ですぐに使えるコンポーネントを生成します
- AI 搭載:LLM を使用して、インテリジェントなデザインを実現します
使用例
const form = await generateUI({
prompt: 'Create a contact form with name, email, and message fields',
theme: 'modern'
});
リソース
コアドキュメント
references/what-is-thesys.md- TheSys C1 とは何か、成功指標、利用開始方法references/use-cases-examples.md- 使用するタイミング、防止される12のエラー、すべてのテンプレートカタログreferences/tool-calling.md- Zod スキーマを使ったツール呼び出しの完全ガイドreferences/integration-guide.md- Vite、Next.js、Cloudflare Workers の完全なセットアップ
その他のリファレンス
references/component-api.md- コンポーネントのプロパティに関する完全なリファレンスreferences/ai-provider-setup.md- OpenAI、Anthropic、Cloudflare Workers AI のセットアップreferences/tool-calling-guide.md- ツール呼び出しのパターンreferences/theme-customization.md- テーマシステムの詳細references/common-errors.md- 拡張版エラーカタログ
テンプレート(15以上のファイル)
- 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 - ユーティリティ:
theme-config.ts、tool-schemas.ts、streaming-utils.ts
公式ドキュメント:https://docs.thesys.dev | プレイグラウンド:https://console.thesys.dev/playground
コメント
Markdown 対応