open-intelligent-ui
БесплатноЗапускает вложенные скриптыНе проверенBuild, customize, and benchmark ChatGPT-style Generative UI applications with thesysdev/open-intelligent-ui and OpenUI Lang 1.0…
от akillness★ 63 звезды на GitHubОб этом скилле
Open Intelligent UI
When to use this skill
Use when operating, extending, or self-hosting thesysdev/open-intelligent-ui — an MIT-licensed Next.js 16 / React 19 Generative UI app where LLM responses stream as OpenUI Lang 1.0 programs rendered with @openuidev/intelligent-ui-library and app-specific extensions (SearchImage, Map/MapMarker, @CopyToClipboard).
Route-outs
- For standalone React 19 agent UI components installed via shadcn without OpenUI Lang streaming, use
affectui. - For Tailwind CSS 4 + Base UI frosted glass CSS theme tokens, use
solid-glass. - For general token governance or component API design systems, use
design-system. - For validating
SKILL.mdformat or catalog metadata, useskill-standardization.
Instructions
1. Run offline project preflight
Before starting the dev server, editing schemas, or configuring providers, inspect the checkout and Node runtime offline:
python3 "$SKILL_DIR/scripts/preflight.py" --workspace "/absolute/path/to/open-intelligent-ui" --json
The preflight script checks Node.js >= 24 availability, @openuidev/* dependencies in package.json, src/generated/ prompt/spec artifacts, and .env / .env.example variable names (boolean presence only, never reading or printing key values).
2. Choose one LLM provider path
Configure .env from .env.example for exactly one inference backend:
- OpenUI Cloud (Gateway, validates & corrects OpenUI Lang):
- Run
npm run generate:apiKey(writesTHESYS_API_KEYto.env) or setTHESYS_API_KEYmanually. - Optional:
THESYS_MODEL(defaultopenai/gpt-6.1-sol),THESYS_BASE_URL(https://api.thesys.dev/v1/embed),LLM_REASONING_EFFORT(lowdefault).
- Run
- Any OpenAI-compatible Chat Completions endpoint (e.g., OpenRouter):
- Set
LLM_BASE_URL,LLM_API_KEY, andLLM_MODEL. /api/chatbuilds the full OpenUI 1.0 system prompt locally (generateSystemPrompt) and streams completions without Gateway output correction.
- Set
- Local Ollama (no API key):
- Set
MODEL_PROVIDER=ollama,OLLAMA_MODEL(defaultqwen3.8:27b),OLLAMA_BASE_URL(http://localhost:11434/v1). - Critical: Ollama's default 4,096-token context silently truncates the ~8,000-token OpenUI system prompt. Start Ollama with
OLLAMA_CONTEXT_LENGTH=32768 ollama serveor setPARAMETER num_ctx 32768in aModelfile.
- Set
3. Extend components, functions, or prompt options safely
- Base library:
@openuidev/intelligent-ui-libraryprovides Layout (Col,Row,Box,Grid,Card,Carousel), Text/Data (Title,Text,Table,Chart,Markdown,Code,Math,Flashcard), Inputs (Slider,Select,DatePicker,Formbound to$variables), Drawing (Svg,HtmlView), and 59@functions(@Append,@Each,@Range,@Pow,@Allocate,@GroupBy,@MovingAvg, etc.). - App extensions (
src/lib/library.ts): Useslibrary.extend(...)to addSearchImage,Map/MapMarker, and@CopyToClipboard. - Mandatory regeneration: Whenever you modify a component schema,
@function, orsrc/lib/prompt-options.ts(including coach/chess variants insrc/lib/coach/andsrc/lib/chess/), regenerate specs and prompts and run checks:
npm run generate && npm run prompt
npm test && npm run typecheck
Do not rename existing component or @function signatures, reorder arguments, or remove allowed color tokens (ink, muted, faint, surface, info, success, warning, danger, purple, pink, chart1–chart6) without regenerating prompts and updating gallery/bench programs.
4. Inspect /gallery and run benchmarks
- Visit
/galleryduringnpm run devto verify all 16 working-tool examples, dashboards, and light/dark/mobile layouts with zero API keys required. - Run the offline fake benchmark or live model benchmark:
npm run bench -- --fake # validates hand-written answers with 1.0 parser
# With npm run dev running in another terminal (requires explicit key approval):
npm run bench -- --model <id> --base-url https://openrouter.ai/api/v1 --key-env OPENROUTER_API_KEY
Examples
Local Ollama setup with 32K context and gallery verification
# 1. Offline preflight
python3 "$SKILL_DIR/scripts/preflight.py" --workspace /path/to/open-intelligent-ui --json
# 2. Configure Ollama with 32K context window
cp .env.example .env
# Set MODEL_PROVIDER=ollama and OLLAMA_MODEL=qwen3.8:27b in .env
OLLAMA_CONTEXT_LENGTH=32768 ollama serve
# 3. Verify parser tests and build
npm install && npm test && npm run typecheck && npm run build
Best practices
- Enforce Node 24+ and 32K context for Ollama: Skipping the context override causes silent prompt truncation and broken OpenUI Lang output.
- Never break OpenUI Lang positional contracts: Models stream positional arguments (
Slider($price, 0, 100),Cardgap before padding); regeneratespec.jsonandsystem-prompt.txtim
Установить open-intelligent-ui в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
BashReadGrepGlobВложенные файлы
FAQ
Что делает скилл open-intelligent-ui?
Build, customize, and benchmark ChatGPT-style Generative UI applications with thesysdev/open-intelligent-ui and OpenUI Lang 1.0 (`@openuidev/intelligent-ui-library`). Use when streaming interactive UI (maps, photos, charts, flashcards, SVG/HTML views, stateful `$variable` working tools and `@functions`), configuring OpenUI Cloud (`THESYS_API_KEY`), OpenAI-compatible Chat Completions (`LLM_BASE_URL`), or local Ollama (`MODEL_PROVIDER=ollama` with 32K context), extending `src/lib/library.ts` via `library.extend`, regenerating system prompts (`npm run generate && npm run prompt`), or running `/gallery` and `scripts/bench/run.mjs`. Route single-file React agent cards to affectui, Tailwind v4 frosted glass CSS themes to solid-glass, and SKILL.md validation to skill-standardization.
Как установить скилл open-intelligent-ui?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл open-intelligent-ui запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
frontend-design
Guidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making…
от Anthropicwebapp-testing
Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing…
от Anthropicbrand-guidelines
Applies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand…
от Anthropicweb-artifacts-builder
Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn/ui). Use…
от Anthropic