Agent Skills › zai-org/ZCode › opentui

opentui

GitHub

提供OpenTUI终端UI开发指南,涵盖核心API、音频、键位映射、React/Solid绑定、组件、布局及插件等功能的参考文档与快速路由。

apps/zcode-cli/.agents/skills/opentui/SKILL.md zai-org/ZCode

Trigger Scenarios

构建终端用户界面 查询OpenTUI API文档 配置React或Solid绑定 实现键盘输入处理

Install

npx skills add zai-org/ZCode --skill opentui -g -y
More Options

Non-standard path

npx skills add https://github.com/zai-org/ZCode/tree/main/apps/zcode-cli/.agents/skills/opentui -g -y

Use without installing

npx skills use zai-org/ZCode@opentui

指定 Agent (Claude Code)

npx skills add zai-org/ZCode --skill opentui -a claude-code -g -y

安装 repo 全部 skill

npx skills add zai-org/ZCode --all -g -y

预览 repo 内 skill

npx skills add zai-org/ZCode --list

SKILL.md

Frontmatter
{
    "name": "opentui",
    "description": "Build terminal UIs with OpenTUI. Covers the core API, native audio, keymaps, React and Solid bindings, components, layout, keyboard input, plugins, and testing."
}

OpenTUI Skill

Canonical reference docs are authored once in sibling docs/**/*.mdx files.

Inside the OpenTUI repo, this skill root lives at packages/web/src/content/, so the same files are also visible at packages/web/src/content/docs/**/*.mdx.

Path invariant

  • /docs/<slug> maps to docs/<slug>.mdx relative to this skill root
  • in the repo, that same slug maps to packages/web/src/content/docs/<slug>.mdx

Reading order by area

  • Getting started: /docs/getting-started
  • Core: /docs/core-concepts/renderer
  • Audio: /docs/core-concepts/audio
  • Keymap: /docs/keymap/overview
  • React: /docs/bindings/react
  • Solid: /docs/bindings/solid
  • Components: /docs/components/text, /docs/components/input
  • Layout: /docs/core-concepts/layout
  • Keyboard: /docs/core-concepts/keyboard
  • Plugins: /docs/plugins/slots
  • Reference: /docs/reference/env-vars

Quick routing by intent

Intent(s) Start here
getting-started, installation, quickstart, intro docs/getting-started.mdx
core, renderer, terminal, scrollback, lifecycle docs/core-concepts/renderer.mdx
audio, native-audio, sound, playback, pcm, fft docs/core-concepts/audio.mdx
keymap, keybindings, shortcuts, commands, leader docs/keymap/overview.mdx
layout, flexbox, yoga, positioning docs/core-concepts/layout.mdx
keyboard, input, keybindings, paste, focus docs/core-concepts/keyboard.mdx
react, jsx, hooks, animation, testing docs/bindings/react.mdx
solid, signals, jsx, hooks, animation, testing docs/bindings/solid.mdx
plugins, plugin, slots, registry, extensions docs/plugins/slots.mdx
text, styling, content, selection docs/components/text.mdx
input, form, editing, focus docs/components/input.mdx
env, environment, configuration, flags docs/reference/env-vars.mdx

For concrete component requests, jump straight to docs/components/<name>.mdx after the relevant entry page. For plugin implementation details, narrow from docs/plugins/slots.mdx into docs/plugins/core.mdx, docs/plugins/react.mdx, or docs/plugins/solid.mdx.

Current skill entry pages

  • docs/getting-started.mdx
  • docs/core-concepts/renderer.mdx
  • docs/core-concepts/audio.mdx
  • docs/keymap/overview.mdx
  • docs/core-concepts/layout.mdx
  • docs/core-concepts/keyboard.mdx
  • docs/bindings/react.mdx
  • docs/bindings/solid.mdx
  • docs/plugins/slots.mdx
  • docs/components/text.mdx
  • docs/components/input.mdx
  • docs/reference/env-vars.mdx

Working rules

  • Prefer the current entry pages first, then read narrower docs in the same section.
  • Read the sibling docs/**/*.mdx files directly instead of copying prose into this file.
  • Use stable /docs/... URLs when cross-referencing docs.

Version History

  • aac4755 Current 2026-10-18 16:07

Same Skill Collection

.agents/skills/agent-browser/SKILL.md
.agents/skills/ai-elements/SKILL.md
.agents/skills/architecture-governance/SKILL.md
.agents/skills/dep-refs/SKILL.md
.agents/skills/dogfood/SKILL.md
.agents/skills/e2e-case-lifecycle/SKILL.md
.agents/skills/feature-boundary-planner/SKILL.md
.agents/skills/react-best-practices/SKILL.md
.agents/skills/zcode-large-task-fixture/SKILL.md
apps/zcode-cli/.agents/skills/vercel-react-best-practices/SKILL.md
.agents/skills/electron/SKILL.md
apps/zcode-cli/.agents/skills/vercel-react-view-transitions/SKILL.md

Metadata

Files
0
Version
aac4755
Hash
03208418
Indexed
2026-10-18 16:07

ホーム - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-10-20 02:27
浙ICP备14020137号-1