opentui
Fungsinya
Skill ini mencakup pembangunan antarmuka pengguna terminal dengan framework OpenTUI, dalam kode biasa atau dengan React atau Solid. Skill ini ditujukan untuk pengembang yang membuat aplikasi layar penuh yang berjalan di terminal.
Kapan dipakai
- โSaat seseorang ingin membangun aplikasi terminal dengan tata letak visual.
- โSaat antarmuka terminal membutuhkan penanganan keyboard, komponen, atau animasi.
- โSaat antarmuka terminal memiliki bug yang perlu ditelusuri.
Link skill
https://github.com/cline/cline/blob/main/.agents/skills/opentui/SKILL.mdSalin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.
Cara pakai
Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.
Pesan siap tempel
Untuk Claude Code, Codex, atau Cursor: jalankan di folder proyek, lalu skill langsung terpasang.
Unduh SKILL.md lalu taruh di folder skill agen Anda.
Contoh permintaan ke AI
โSaya ingin membangun dasbor terminal dengan kotak dan pintasan keyboard. Bagaimana cara memulai dengan OpenTUI?โ
5 skill baru setiap minggu. 1 menit baca.
Cara kerjanya
Agent membaca panduan framework yang sesuai dan mengikuti aturan pengaturan, komponen, dan tata letaknya. Agent juga memeriksa jebakan umum, seperti keluar dari aplikasi dengan aman.
Konten teknis (SKILL.md asli)
Teks asli dari pembuat, dalam bahasa Inggris, langsung dari 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
โโ
Pertanyaan umum
Framework apa saja yang dicakup?
Skill mencakup API imperatif inti, reconciler React, dan reconciler Solid.
Bagaimana cara memulai proyek baru?
Skill merekomendasikan alat create-tui, dengan opsinya diletakkan sebelum nama proyek.
Bisakah saya keluar dari aplikasi dengan process.exit?
Skill menyatakan jangan memanggil process.exit secara langsung, dan gunakan renderer.destroy sebagai gantinya.
Detail
Deskripsi asli dari pembuat
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
Popularitas
- Bintang GitHub
- 71k
- Peringkat
- #3107
- Lisensi
- Apache-2.0
- Diperbarui
- 2/11/2026
Komentar
- โฆ
Skill lain dari repositori ini
cline-sdk
71kMengajari agent Anda membangun agent AI dengan Cline SDK, mencakup alat, sesi, event, penyedia model, dan tim multi-agent.
create-pull-request
71kMembantu agent Anda membuat pull request GitHub dengan judul dan deskripsi yang jelas, mengikuti templat proyek, dan memeriksa cabangnya terlebih dahulu.
tuistory
71kMengajari agent Anda menjalankan dan menguji aplikasi terminal dalam sesi latar belakang, mengetik perintah dan membaca layar, bahkan tanpa tampilan.
Skill serupa
angular-developer
280kMembantu agent Anda membuat kode Angular dan memberi saran struktur proyek. Berguna saat memulai proyek baru, membuat komponen, atau meningkatkan performa.
frontend-a11y
280kMembantu agent Anda membuat antarmuka web dapat diakses semua orang. Memastikan website dan aplikasi berfungsi baik dengan screen reader dan navigasi keyboard.
frontend-patterns
280kMembuat agent Anda menerapkan pola modern dalam frontend. Mengoptimalkan performa, mengelola state, dan mengikuti praktik terbaik React dan Next.js.