Langsung ke konten
Skillpedia
Website & UI (frontend)71k ยท #3107

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.md

Salin 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

Gunakan skill ini untuk membantu saya: https://github.com/cline/cline/blob/main/.agents/skills/opentui/SKILL.md Baca file SKILL.md di link tersebut dan ikuti instruksinya untuk tugas saya.
Mau AI Anda menemukan skill seperti ini sendiri?Pasang MCP Skillpedia gratis: cukup satu baris, dan AI mencari di antara 15.000+ skill sebelum tiap tugas.Pasang dalam 1 menit โ†’

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:

  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:

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

  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
โ”œโ”€ 
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

Apakah skill ini berguna?

0

Masuk untuk memberi suara.

Komentar

  • โ€ฆ

Skill lain dari repositori ini

Skill serupa