evanfang0054/cc-system-creator-scripts/opentui
Claude Code and agent skill by evanfang0054/cc-system-creator-scripts
- community
Checking that the SKILL.md file is still in the repository.
Comprehensive OpenTUI skill for building terminal user interfaces. Covers the core imperative API, React reconciler, and Solid reconciler. Use for any TUI development task including components, layout, keyboard handling, animations, and testing.
Install
npx vskill@latest install evanfang0054/cc-system-creator-scripts/opentuiSKILL.md
OpenTUI 平台技能
使用 OpenTUI 构建终端用户界面的综合技能。使用下面的决策树找到合适的框架和组件,然后加载详细的参考文档。
关键规则
在所有 OpenTUI 代码中遵循这些规则:
- 使用 `create-tui` 创建新项目。 参见框架
REFERENCE.md快速入门。 - `create-tui` 选项必须在参数之前。
bunx create-tui -t react my-app有效,bunx create-tui my-app -t react无效。 - 永远不要直接调用 `process.exit()`。 使用
renderer.destroy()(参见core/gotchas.md)。 - 文本样式在 React/Solid 中需要嵌套标签。 使用修饰符元素,而不是 props(参见
components/text-display.md)。
如何使用此技能
参考文件结构
框架参考文档遵循 5 文件模式。跨领域概念是单文件指南。
./references/<framework>/ 中的每个框架包含:
| 文件 | 用途 | 何时阅读 | |
|---|---|---|---|
REFERENCE.md | 概述、何时使用、快速入门 | 始终首先阅读 | |
api.md | 运行时 API、组件、钩子 | 编写代码时 | |
configuration.md | 设置、tsconfig、打包 | 配置项目时 | |
patterns.md | 常见模式、最佳实践 | 实现指导 | |
gotchas.md | 陷阱、限制、调试 | 故障排除时 |
./references/<concept>/ 中的跨领域概念以 REFERENCE.md 为入口点。
阅读顺序
- 从所选框架的
REFERENCE.md开始 - 然后阅读与任务相关的其他文件:
- 构建组件 ->
api.md+components/<category>.md - 设置项目 ->
configuration.md - 布局/定位 ->
layout/REFERENCE.md - 故障排除 ->
gotchas.md+testing/REFERENCE.md
示例路径
运行时说明
OpenTUI 在 Bun 上运行,并使用 Zig 进行原生构建。阅读 ./references/core/gotchas.md 了解运行时要求和构建指南。
快速决策树
"我应该使用哪个框架?"
"我需要显示内容"
"我需要用户输入"
"我需要布局/定位"
"我需要动画"
"我需要处理输入"
"我需要测试我的 TUI"
"我需要调试/故障排除"
故障排除索引
- 终端清理、崩溃 ->
core/gotchas.md - 文本样式未应用 ->
components/text-display.md - 输入焦点/快捷键 ->
keyboard/REFERENCE.md - 布局错位 ->
layout/REFERENCE.md - 不稳定的快照 ->
testing/REFERENCE.md
有关组件命名差异和文本修饰符,请参见 components/REFERENCE.md。
产品索引
框架
| 框架 | 入口文件 | 描述 | |
|---|---|---|---|
| Core | ./references/core/REFERENCE.md | 命令式 API、所有原语 | |
| React | ./references/react/REFERENCE.md | 声明式 TUI 的 React reconciler | |
| Solid | ./references/solid/REFERENCE.md | 声明式 TUI 的 SolidJS reconciler |
跨领域概念
| 概念 | 入口文件 | 描述 | |
|---|---|---|---|
| 布局 | ./references/layout/REFERENCE.md | Yoga/Flexbox 布局系统 | |
| 组件 | ./references/components/REFERENCE.md | 按类别分类的组件参考 | |
| 键盘 | ./references/keyboard/REFERENCE.md | 键盘输入处理 | |
| 动画 | ./references/animation/REFERENCE.md | 基于时间轴的动画 | |
| 测试 | ./references/testing/REFERENCE.md | 测试渲染器和快照 |
组件类别
| 类别 | 入口文件 | 组件 | |
|---|---|---|---|
| 文本与显示 | ./references/components/text-display.md | text、ascii-font、styled text | |
| 容器 | ./references/components/containers.md | box、scrollbox、borders | |
| 输入 | ./references/components/inputs.md | input、textarea、select、tab-select | |
| 代码与差异 | ./references/components/code-diff.md | code、line-number、diff |
资源
仓库: https://github.com/anomalyco/opentui 核心文档: https://github.com/anomalyco/opentui/tree/main/packages/core/docs 示例: https://github.com/anomalyco/opentui/tree/main/packages/core/src/examples 精选列表: https://github.com/msmps/awesome-opentui
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/opentui/SKILL.md
Popularity
- Repository stars
- 1
- 7-day trend score
- 3
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 23 Mar 2026, 8 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/evanfang0054/cc-system-creator-scripts/opentui)