вариант

Комплексный набор навыков OpenTUI для создания пользовательских интерфейсов терминала. Охватывает основной императивный API, реконцилиатор React и реконцилиатор Solid. Используется для решения любых задач разработки TUI, включая компоненты, верстку, обработку клавиатурных вводов, анимацию и тестирование.

...Расширить все
53
Обновлено время 4 августа 2026 г.

OpenTUI Навыки работы с платформой

Комплексные навыки по созданию пользовательских интерфейсов терминалов с помощью OpenTUI. Воспользуйтесь приведенными ниже схемами принятия решений, чтобы выбрать подходящий фреймворк и компоненты, а затем ознакомьтесь с подробными справочными материалами.

Важные правила

Соблюдайте следующие правила во всем коде, написанном на OpenTUI:

  1. Используйте create-tui для новых проектов. См. руководства по быстрому запуску фреймворка REFERENCE.md «Быстрый старт».
  2. create-tui Параметры должны предшествовать аргументам. bunx create-tui -t react my-app работает, bunx create-tui my-app -t react не работает.
  3. Никогда не вызывайте process.exit() напрямую. Используйте renderer.destroy() (см. core/gotchas.md).
  4. Для форматирования текста в React/Solid требуются вложенные теги. Используйте элементы-модификаторы, а не пропсы (см. components/text-display.md).

Как использовать этот навык

Структура справочных файлов

Справочные материалы по фреймворкам следуют шаблону из 5 файлов. Общие концепции представлены в виде руководств, занимающих один файл.

Каждый фреймворк в ./references// содержит:

Межотраслевые концепции в ./references// имеют REFERENCE.md в качестве отправной точки.

Порядок чтения

  1. Начните с REFERENCE.md с выбранной вами структуры
  2. Затем ознакомьтесь с дополнительными файлами, имеющими отношение к вашей задаче:
    • Создание компонентов -> 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..1k
Посмотреть на GitHub

OpenTUI 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:

  1. Use create-tui for new projects. See framework REFERENCE.md quick starts.
  2. create-tui options must come before arguments. bunx create-tui -t react my-app works, bunx create-tui my-app -t react does NOT.
  3. Never call process.exit() directly. Use renderer.destroy() (see core/gotchas.md).
  4. 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

  1. Start with REFERENCE.md for your chosen framework
  2. 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

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 repositorysame repository

More from this repository

publish-desktopcline/cline

Use 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.1k
publish-uicline/cline

Prepare, 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.1k
publish-clicline/cline

Use 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.1k
cline-sdkcline/cline

Comprehensive 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.1k
create-pull-requestcline/cline

Create 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

Установить 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/

Копировать Копировать
Быстрая настройка: Скопируйте папку со скиллом в каталог .claude/skills/ — Claude автоматически обнаружит и начнет использовать этот скилл
Репозиторий cline/cline

Похожие навыки

multica-creating-agents
Обновлено время 12 августа 2026 г.
tilemaps
Обновлено время 4 августа 2026 г.
v4-new-features
Обновлено время 4 августа 2026 г.
pixijs-application
Обновлено время 4 августа 2026 г.
OR