opentui
What it does
This skill covers building terminal user interfaces with the OpenTUI framework, in plain code or with React or Solid. It is for developers making full-screen apps that run in a terminal.
When to use it
- βWhen someone wants to build a terminal app with a visual layout.
- βWhen a terminal interface needs keyboard handling, components or animations.
- βWhen a terminal interface has a bug that needs troubleshooting.
Skill link
https://github.com/cline/cline/blob/main/.agents/skills/opentui/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agentβs skills folder.
Example of what to ask your AI
βI want to build a terminal dashboard with boxes and keyboard shortcuts. How do I start with OpenTUI?β
5 new skills a week. 1 minute to read.
How it works
The agent reads the right framework guide and follows its setup, component and layout rules. It also checks common pitfalls, such as exiting the app safely.
Technical content (original SKILL.md)
Original text by the author, straight from 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:
- 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:
| File | Purpose | When to Read |
|---|---|---|
REFERENCE.md |
Overview, when to use, quick start | Always read first |
api.md |
Runtime API, components, hooks | Writing code |
configuration.md |
Setup, tsconfig, bundling | Configuring a project |
patterns.md |
Common patterns, best practices | Implementation guidance |
gotchas.md |
Pitfalls, limitations, debugging | Troubleshooting |
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
ββ
FAQ
Which frameworks does it cover?
The skill covers the core imperative API, the React reconciler and the Solid reconciler.
How do I start a new project?
The skill recommends the create-tui tool, with its options placed before the project name.
Can I exit the app with process.exit?
The skill says not to call process.exit directly, and to use renderer.destroy instead.
Details
Original description by the author
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.
repo: cline/cline
Popularity
- GitHub stars
- 71k
- Ranking position
- #3107
- License
- Apache-2.0
- Updated
- 11/2/2026
Comments
- β¦
More skills from this repository
cline-sdk
71kTeaches your agent to build AI agents with the Cline SDK, covering tools, sessions, events, model providers and multi-agent teams.
create-pull-request
71kHelps your agent create a GitHub pull request with a clear title and description, following the project's template and checking the branch first.
tuistory
71kTeaches your agent to drive and test terminal apps in a background session, typing commands and reading the screen, even without a display.
Similar skills
angular-developer
280kHelps your agent create Angular code and give project structure advice. Useful for starting new projects, creating code parts, or improving performance and accessibility.
frontend-a11y
280kHelps your agent make web interfaces accessible to everyone. It ensures websites and apps work well with screen readers and keyboard navigation.
frontend-patterns
280kHas your agent apply modern patterns in frontend development. It optimizes performance, manages state, and follows best practices in React and Next.js.