thesys-generative-ui
> 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
- 最近更新
- 2026-09-24
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- thesys-generative-ui
- license
- MIT
- 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.
02 资源文件 28
- 参考文档references/ai-provider-setup.md5.3 KB
- 参考文档references/common-errors.md11.4 KB
- 参考文档references/component-api.md1.5 KB
- 参考文档references/error-catalog.md269 B
- 参考文档references/integration-guide.md39.5 KB
- 参考文档references/tool-calling.md5.5 KB
- 参考文档references/use-cases-examples.md3.6 KB
- 参考文档references/what-is-thesys.md1.8 KB
- 脚本scripts/check-versions.sh2.1 KB
- 脚本scripts/install-dependencies.sh1.8 KB
- 其他templates/basic-usage.tsx255 B
- 其他templates/cloudflare-workers/frontend-setup.tsx4.8 KB
- 脚本templates/cloudflare-workers/worker-backend.ts6.3 KB
- 其他templates/cloudflare-workers/wrangler.jsonc2.4 KB
- 脚本templates/nextjs/api-chat-route.ts4.5 KB
- 其他templates/nextjs/app-page.tsx3.3 KB
- 脚本templates/nextjs/tool-calling-route.ts8.9 KB
- 脚本templates/python-backend/fastapi-chat.py3.0 KB
- 脚本templates/python-backend/flask-chat.py2.8 KB
- 参考文档templates/python-backend/README.md5.2 KB
- 参考文档templates/python-backend/requirements.txt379 B
- 脚本templates/shared/streaming-utils.ts9.6 KB
- 脚本templates/shared/theme-config.ts7.3 KB
- 脚本templates/shared/tool-schemas.ts10.1 KB
- 其他templates/vite-react/basic-chat.tsx3.3 KB
- 其他templates/vite-react/custom-component.tsx6.0 KB
- 其他templates/vite-react/theme-dark-mode.tsx5.4 KB
- 其他templates/vite-react/tool-calling.tsx7.3 KB
03 SKILL.md 正文
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 startedreferences/use-cases-examples.md- When to use, 12 errors prevented, all templates catalogreferences/tool-calling.md- Complete tool calling guide with Zod schemasreferences/integration-guide.md- Complete setup for Vite, Next.js, Cloudflare Workers
Additional References
references/component-api.md- Complete component prop referencereferences/ai-provider-setup.md- OpenAI, Anthropic, Cloudflare Workers AI setupreferences/tool-calling-guide.md- Tool calling patternsreferences/theme-customization.md- Theme system deep divereferences/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
04 同仓库更多 Skills
{TODO=lowercase-hyphen-case-name}
[TODO: Write comprehensive description in third-person. Start with "This skill provides..." or "This skill should be used when..."] [TODO: Add "Use when" scenarios - specific situations where Claude should use this skill] [TODO: Add keywords - technologies, use cases, error messages that should trigger this skill]
zustand-state-management
Zustand state management for React with TypeScript. Use for global state, Redux/Context API migration, localStorage persistence, slices pattern, devtools, Next.js SSR, or encountering hydration errors, TypeScript inference issues, persist middleware problems, infinite render loops.
zod
TypeScript-first schema validation and type inference. Use for validating API requests/responses, form data, env vars, configs, defining type-safe schemas with runtime validation, transforming data, generating JSON Schema for OpenAPI/AI, or encountering missing validation errors, type inference issues, validation error handling problems. Zero dependencies (2kb gzipped).
xss-prevention
XSS attack prevention with input sanitization, output encoding, Content Security Policy. Use for user-generated content, rich text editors, web application security, or encountering stored XSS, reflected XSS, DOM manipulation, script injection errors.
wordpress-plugin-core
WordPress plugin development with hooks, security, REST API, custom post types. Use for plugin creation, $wpdb queries, Settings API, or encountering SQL injection, XSS, CSRF, nonce errors.
woocommerce-dev-cycle
Run tests, linting, and quality checks for WooCommerce development. Use when running tests, fixing code style, or following the development workflow in WooCommerce projects.