msmps/opentui-skill/opentui
Claude Code and agent skill by msmps/opentui-skill
- community
Checking that the SKILL.md file is still in the repository.
OpenTUI skill for building terminal user interfaces with the Core, React, or Solid APIs. Use for any TUI task including components, layout, keyboard and keymap handling, animations, and testing.
Install
npx vskill@latest install msmps/opentui-skill/opentuiSKILL.md
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-tui` for new projects. See framework
REFERENCE.mdquick starts. - `create-tui` options must come before arguments.
bunx create-tui -t react my-appworks,bunx create-tui my-app -t reactdoes NOT. - Never call `process.exit()` directly. Use
renderer.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 - Layered keybindings/commands ->
keymap/REFERENCE.md - Animations ->
animation/REFERENCE.md - Troubleshooting ->
gotchas.md+testing/REFERENCE.md
Example Paths
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?"
"I need to display content"
"I need user input"
"I need layout/positioning"
"I need animations"
"I need to handle input"
"I need to test my TUI"
"I need platform capabilities (audio, images, clipboard, notifications, SSH)"
"I need to debug/troubleshoot"
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
| Framework | Entry File | Description | |
|---|---|---|---|
| Core | ./references/core/REFERENCE.md | Imperative API, all primitives | |
| React | ./references/react/REFERENCE.md | React reconciler for declarative TUI | |
| Solid | ./references/solid/REFERENCE.md | SolidJS reconciler for declarative TUI |
Cross-Cutting Concepts
| Concept | Entry File | Description | |
|---|---|---|---|
| Layout | ./references/layout/REFERENCE.md | Yoga/Flexbox layout system | |
| Components | ./references/components/REFERENCE.md | Component reference by category | |
| Keyboard | ./references/keyboard/REFERENCE.md | Low-level keyboard input handling | |
| Keymap | ./references/keymap/REFERENCE.md | Declarative layered keybindings (@opentui/keymap) | |
| Animation | ./references/animation/REFERENCE.md | Timeline-based animations | |
| Testing | ./references/testing/REFERENCE.md | Test renderer and snapshots |
Component Categories
| Category | Entry File | Components | |
|---|---|---|---|
| Text & Display | ./references/components/text-display.md | text, ascii-font, image, time-to-first-draw, styled text, qr-code | |
| Containers | ./references/components/containers.md | box, scrollbox, scrollbar, embedded-terminal, borders | |
| Inputs | ./references/components/inputs.md | input, textarea, select, tab-select, slider | |
| Code & Diff | ./references/components/code-diff.md | code, line-number, diff, markdown, text-table |
Additional Packages
| Package | Description | Docs | |
|---|---|---|---|
@opentui/keymap | Layered keybinding/command engine (Bun or Node, no FFI) | ./references/keymap/REFERENCE.md | |
@opentui/qrcode | QR code component | ./references/components/text-display.md | |
@opentui/ssh | Serve a TUI over SSH | ./references/core/REFERENCE.md | |
@opentui/three | Three.js WebGPU renderer (formerly core/src/3d) | upstream packages/three | |
@opentui/examples | Runnable examples (formerly core/src/examples) | upstream packages/examples |
Core also ships loaded/streaming/captured Audio, native images, host and terminal clipboard services, and OSC desktop notifications.
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/examples/src Awesome List: https://github.com/msmps/awesome-opentui
Security
- Security scanPassed, 100 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 repositoryCheckingskill/opentui/SKILL.md
Popularity
- Repository stars
- 225
- Repository forks
- 9
- 7-day trend score
- 27
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 18 Mar 2026, 7 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/msmps/opentui-skill/opentui)