opentui
cline/cline
Комплексный набор навыков OpenTUI для создания пользовательских интерфейсов терминала. Охватывает основной императивный API, реконцилиатор React и реконцилиатор Solid. Используется для решения любых задач разработки TUI, включая компоненты, верстку, обработку клавиатурных вводов, анимацию и тестирование.
...Расширить все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 требуются вложенные теги. Используйте элементы-модификаторы, а не пропсы (см.
components/text-display.md).
Как использовать этот навык
Структура справочных файлов
Справочные материалы по фреймворкам следуют шаблону из 5 файлов. Общие концепции представлены в виде руководств, занимающих один файл.
Каждый фреймворк в ./references/ содержит:
Межотраслевые концепции в ./references/ имеют REFERENCE.md в качестве отправной точки.
Порядок чтения
- Начните с
REFERENCE.mdс выбранной вами структуры - Затем ознакомьтесь с дополнительными файлами, имеющими отношение к вашей задаче:
- Создание компонентов ->
api.md+components/.md - Настройка проекта ->
configuration.md - Макет/расположение ->
layout/REFERENCE.md - Обработка клавиатуры/ввода ->
keyboard/REFERENCE.md - Анимации ->
animation/REFERENCE.md - Устранение неполадок ->
gotchas.md+testing/REFERENCE.md
- Создание компонентов ->
Примеры путей
./references/react/REFERENCE.md # Start here for React
./references/react/api.md # React components and hooks
./references/solid/configuration.md # Solid project setup
./references/components/inputs.md # Input, Textarea, Select docs
./references/core/gotchas.md # Core debugging tips
Примечания по выполнению
OpenTUI Работает на Bun и использует Zig для нативных сборок. Ознакомьтесь ./references/core/gotchas.md требования к среде выполнения и рекомендации по сборке.
Схемы быстрого принятия решений
«Какой фреймворк мне использовать?»
Which framework?
├─ I want full control, maximum performance, no framework overhead
│ └─ core/ (imperative API)
├─ I know React, want familiar component patterns
│ └─ react/ (React reconciler)
├─ I want fine-grained reactivity, optimal re-renders
│ └─ solid/ (Solid reconciler)
└─ I'm building a library/framework on top of OpenTUI
└─ core/ (imperative API)
«Мне нужно отобразить контент»
Display content?
├─ Plain or styled text -> components/text-display.md
├─ Container with borders/background -> components/containers.md
├─ Scrollable content area -> components/containers.md (scrollbox)
├─ ASCII art banner/title -> components/text-display.md (ascii-font)
├─ Data table with borders/wrapping -> components/code-diff.md (TextTable)
├─ Code with syntax highlighting -> components/code-diff.md
├─ Diff viewer (unified/split) -> components/code-diff.md
├─ Line numbers with diagnostics -> components/code-diff.md
└─ Markdown content (streaming) -> components/code-diff.md (markdown)
«Мне нужен ввод данных пользователем»
User input?
├─ Single-line text field -> components/inputs.md (input)
├─ Multi-line text editor -> components/inputs.md (textarea)
├─ Select from a list (vertical) -> components/inputs.md (select)
├─ Tab-based selection (horizontal) -> components/inputs.md (tab-select)
└─ Custom keyboard shortcuts -> keyboard/REFERENCE.md
«Мне нужна верстка/позиционирование»
Layout?
├─ Flexbox-style layouts (row, column, wrap) -> layout/REFERENCE.md
├─ Absolute positioning -> layout/patterns.md
├─ Responsive to terminal size -> layout/patterns.md
├─ Centering content -> layout/patterns.md
└─ Complex nested layouts -> layout/patterns.md
«Мне нужны анимации»
Animations?
├─ Timeline-based animations -> animation/REFERENCE.md
├─ Easing functions -> animation/REFERENCE.md
├─ Property transitions -> animation/REFERENCE.md
└─ Looping animations -> animation/REFERENCE.md
«Мне нужно обрабатывать ввод данных»
Input handling?
├─ Keyboard events (keypress, release) -> keyboard/REFERENCE.md
├─ Focus management -> keyboard/REFERENCE.md
├─ Paste events -> keyboard/REFERENCE.md
├─ Mouse events -> components/containers.md
├─ Text selection & copy-on-select -> keyboard/REFERENCE.md (selection)
└─ Clipboard (OSC 52) -> keyboard/REFERENCE.md (clipboard)
«Мне нужно протестировать мой TUI»
Testing?
├─ Snapshot testing -> testing/REFERENCE.md
├─ Interaction testing -> testing/REFERENCE.md
├─ Test renderer setup -> testing/REFERENCE.md
└─ Debugging tests -> testing/REFERENCE.md
«Мне нужно отлаживать/устранять неполадки»
Troubleshooting?
├─ Runtime errors, crashes -> /gotchas.md
├─ Layout issues -> layout/REFERENCE.md + layout/patterns.md
├─ Input/focus issues -> keyboard/REFERENCE.md
└─ Repro + regression tests -> testing/REFERENCE.md
Указатель по устранению неполадок
- Очистка терминала, сбои ->
core/gotchas.md - Не применяется стиль текста ->
components/text-display.md - Фокус ввода/горячие клавиши ->
keyboard/REFERENCE.md - Сбой выравнивания макета ->
layout/REFERENCE.md - Нестабильные снимки экрана ->
testing/REFERENCE.md
Различия в именовании компонентов и модификаторы текста см. components/REFERENCE.md.
Указатель продуктов
Фреймворки
Общие концепции
Категории компонентов
Ресурсы
Репозиторий : 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 Список «Awesome »: https://github.com/msmps/awesome- opentui
Ещё из этого репозитория
Используйте при подготовке, маркировке и публикации выпуска настольного приложения Cline Code (apps/examples/desktop-app). Руководства по составлению журнала изменений, повышению версии в файлах package.json и tauri.conf.json, созданию тегов desktop-vX.Y.Z, а также по рабочему процессу GitHub «desktop-publish», который обеспечивает сборку, подпись, нотариальное заверение и обновление канала автоматического обновления.publish-desktopcline/cline2026-07-2165.Подготовка, проверка и публикация автономных релизов @cline/ui для npm. Используется при повышении версии пакета UI, публикации версии «latest» или «next» через файл ui-publish.yml, проверке готовности релиза UI или выполнении однократной инициализации доверенной публикации в npm.1kpublish-uicline/cline2026-07-1865.1kpublish-clicline/cline2026-06-0465Используйте при подготовке, маркировке и публикации выпуска apps/cli в npm. Содержит руководство по составлению журнала изменений, повышению версии apps/cli/package.json, созданию тегов cli-vX.Y.Z, локальной публикации в npm и рабочему процессу publish-cli на GitHub..Всеобъемлющий набор навыков по Cline SDK для создания ИИ-агентов. Охватывает среду выполнения агентов, сессии ClineCore, пользовательские инструменты, плагины, события, поставщиков LLM, планирование, мультиагентные команды и развертывание в производственной среде. Используйте для любых задач, связанных с @cline/sdk или его подпакетами.1kcline-sdkcline/cline2026-05-1465.1kcreate-pull-requestcline/cline2026-02-2465Создание пулл-реквеста на GitHub в соответствии с конвенциями проекта. Используется, когда пользователь просит создать пулл-реквест, отправить изменения на рецензию или открыть пулл-реквест. Охватывает анализ коммитов, управление ветвями, использование шаблонов пулл-реквестов и создание пулл-реквестов с помощью инструмента gh CLI..1kOpenTUI Platform Skill
Consolidated skill for building terminal user interfaces with OpenTUI. Use decision trees below to find the right framework and components, then load detailed references.
Critical Rules
Follow these rules in all OpenTUI code:
- Use
create-tuifor new projects. See frameworkREFERENCE.mdquick starts. create-tuioptions must come before arguments.bunx create-tui -t react my-appworks,bunx create-tui my-app -t reactdoes NOT.- Never call
process.exit()directly. Userenderer.destroy()(seecore/gotchas.md). - Text styling requires nested tags in React/Solid. Use modifier elements, not props (see
components/text-display.md).
How to Use This Skill
Reference File Structure
Framework references follow a 5-file pattern. Cross-cutting concepts are single-file guides.
Each framework in ./references/<framework>/ contains:
Cross-cutting concepts in ./references/<concept>/ have REFERENCE.md as the entry point.
Reading Order
- Start with
REFERENCE.mdfor your chosen framework - Then read additional files relevant to your task:
- Building components ->
api.md+components/<category>.md - Setting up project ->
configuration.md - Layout/positioning ->
layout/REFERENCE.md - Keyboard/input handling ->
keyboard/REFERENCE.md - Animations ->
animation/REFERENCE.md - Troubleshooting ->
gotchas.md+testing/REFERENCE.md
- Building components ->
Example Paths
./references/react/REFERENCE.md # Start here for React
./references/react/api.md # React components and hooks
./references/solid/configuration.md # Solid project setup
./references/components/inputs.md # Input, Textarea, Select docs
./references/core/gotchas.md # Core debugging tips
Runtime Notes
OpenTUI runs on Bun and uses Zig for native builds. Read ./references/core/gotchas.md for runtime requirements and build guidance.
Quick Decision Trees
"Which framework should I use?"
Which framework?
├─ I want full control, maximum performance, no framework overhead
│ └─ core/ (imperative API)
├─ I know React, want familiar component patterns
│ └─ react/ (React reconciler)
├─ I want fine-grained reactivity, optimal re-renders
│ └─ solid/ (Solid reconciler)
└─ I'm building a library/framework on top of OpenTUI
└─ core/ (imperative API)
"I need to display content"
Display content?
├─ Plain or styled text -> components/text-display.md
├─ Container with borders/background -> components/containers.md
├─ Scrollable content area -> components/containers.md (scrollbox)
├─ ASCII art banner/title -> components/text-display.md (ascii-font)
├─ Data table with borders/wrapping -> components/code-diff.md (TextTable)
├─ Code with syntax highlighting -> components/code-diff.md
├─ Diff viewer (unified/split) -> components/code-diff.md
├─ Line numbers with diagnostics -> components/code-diff.md
└─ Markdown content (streaming) -> components/code-diff.md (markdown)
"I need user input"
User input?
├─ Single-line text field -> components/inputs.md (input)
├─ Multi-line text editor -> components/inputs.md (textarea)
├─ Select from a list (vertical) -> components/inputs.md (select)
├─ Tab-based selection (horizontal) -> components/inputs.md (tab-select)
└─ Custom keyboard shortcuts -> keyboard/REFERENCE.md
"I need layout/positioning"
Layout?
├─ Flexbox-style layouts (row, column, wrap) -> layout/REFERENCE.md
├─ Absolute positioning -> layout/patterns.md
├─ Responsive to terminal size -> layout/patterns.md
├─ Centering content -> layout/patterns.md
└─ Complex nested layouts -> layout/patterns.md
"I need animations"
Animations?
├─ Timeline-based animations -> animation/REFERENCE.md
├─ Easing functions -> animation/REFERENCE.md
├─ Property transitions -> animation/REFERENCE.md
└─ Looping animations -> animation/REFERENCE.md
"I need to handle input"
Input handling?
├─ Keyboard events (keypress, release) -> keyboard/REFERENCE.md
├─ Focus management -> keyboard/REFERENCE.md
├─ Paste events -> keyboard/REFERENCE.md
├─ Mouse events -> components/containers.md
├─ Text selection & copy-on-select -> keyboard/REFERENCE.md (selection)
└─ Clipboard (OSC 52) -> keyboard/REFERENCE.md (clipboard)
"I need to test my TUI"
Testing?
├─ Snapshot testing -> testing/REFERENCE.md
├─ Interaction testing -> testing/REFERENCE.md
├─ Test renderer setup -> testing/REFERENCE.md
└─ Debugging tests -> testing/REFERENCE.md
"I need to debug/troubleshoot"
Troubleshooting?
├─ Runtime errors, crashes -> <framework>/gotchas.md
├─ Layout issues -> layout/REFERENCE.md + layout/patterns.md
├─ Input/focus issues -> keyboard/REFERENCE.md
└─ Repro + regression tests -> testing/REFERENCE.md
Troubleshooting Index
- Terminal cleanup, crashes ->
core/gotchas.md - Text styling not applying ->
components/text-display.md - Input focus/shortcuts ->
keyboard/REFERENCE.md - Layout misalignment ->
layout/REFERENCE.md - Flaky snapshots ->
testing/REFERENCE.md
For component naming differences and text modifiers, see components/REFERENCE.md.
Product Index
Frameworks
Cross-Cutting Concepts
Component Categories
Resources
Repository: https://github.com/anomalyco/opentui Core Docs: https://github.com/anomalyco/opentui/tree/main/packages/core/docs Examples: https://github.com/anomalyco/opentui/tree/main/packages/core/src/examples Awesome List: https://github.com/msmps/awesome-opentui
More from this repository
publish-desktopcline/clineUse when preparing, tagging, and publishing a Cline Code desktop app (apps/examples/desktop-app) release. Guides changelog drafting, version bumps in package.json + tauri.conf.json, desktop-vX.Y.Z tags, and the desktop-publish GitHub workflow that builds, signs, notarizes, and updates the auto-update feed.
2026-07-2165.1kpublish-uicline/clinePrepare, validate, and publish standalone @cline/ui npm releases. Use when bumping the UI package version, publishing latest or next through ui-publish.yml, checking UI release readiness, or completing the one-time npm trusted-publishing bootstrap.
2026-07-1865.1kpublish-clicline/clineUse when preparing, tagging, and publishing an apps/cli npm release. Guides changelog drafting, apps/cli/package.json version bumps, cli-vX.Y.Z tags, local npm publishing, and the publish-cli GitHub workflow.
2026-06-0465.1kcline-sdkcline/clineComprehensive Cline SDK skill for building AI agents. Covers the Agent runtime, ClineCore sessions, custom tools, plugins, events, LLM providers, scheduling, multi-agent teams, and production deployment. Use for any task involving @cline/sdk or its sub-packages.
2026-05-1465.1kcreate-pull-requestcline/clineCreate a GitHub pull request following project conventions. Use when the user asks to create a PR, submit changes for review, or open a pull request. Handles commit analysis, branch management, PR template usage, and PR creation using the gh CLI tool.
2026-02-2465.1kВсе файлы
26 файловУстановить opentui
Скачайте файлы навыков и распакуйте их в каталог .claude/skills/.
Скачать ZIPКлонируйте репозиторий и скопируйте файлы навыка в свой проект.
git clone https://github.com/cline/cline/tree/main/.agents/skills/opentui # Copy the skill folder to .claude/skills/ or .codex/skills/
Копировать





Дом
