opentui
यह क्या करती है
यह स्किल OpenTUI फ़्रेमवर्क से टर्मिनल यूज़र इंटरफ़ेस बनाने को कवर करती है, सादे कोड में या React या Solid के साथ। यह उन डेवलपर्स के लिए है जो टर्मिनल में चलने वाले फ़ुलस्क्रीन ऐप बनाते हैं।
कब इस्तेमाल करें
- ✓जब कोई दृश्य लेआउट वाला टर्मिनल ऐप बनाना चाहे।
- ✓जब टर्मिनल इंटरफ़ेस को कीबोर्ड हैंडलिंग, कंपोनेंट या एनिमेशन चाहिए।
- ✓जब किसी टर्मिनल इंटरफ़ेस में बग हो जिसकी समस्या-निवारण की ज़रूरत हो।
Skill का लिंक
https://github.com/cline/cline/blob/main/.agents/skills/opentui/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“मैं बॉक्स और कीबोर्ड शॉर्टकट वाला टर्मिनल डैशबोर्ड बनाना चाहता हूँ। OpenTUI से कैसे शुरू करूँ?”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
एजेंट सही फ़्रेमवर्क गाइड पढ़ता है और उसके सेटअप, कंपोनेंट और लेआउट नियमों का पालन करता है। वह आम गलतियाँ भी जाँचता है, जैसे ऐप को सुरक्षित रूप से बंद करना।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे 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
├─
अक्सर पूछे जाने वाले सवाल
यह कौन-से फ़्रेमवर्क कवर करता है?
स्किल core imperative API, React reconciler और Solid reconciler को कवर करती है।
नया प्रोजेक्ट कैसे शुरू करूँ?
स्किल create-tui टूल की सिफ़ारिश करती है, जिसके विकल्प प्रोजेक्ट नाम से पहले रखे जाते हैं।
क्या मैं process.exit से ऐप बंद कर सकता हूँ?
स्किल कहती है कि process.exit को सीधे न बुलाएँ, और उसके बजाय renderer.destroy इस्तेमाल करें।
जानकारी
लेखक का मूल विवरण
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
लोकप्रियता
- GitHub स्टार
- 71k
- रैंकिंग में स्थान
- #3107
- लाइसेंस
- Apache-2.0
- अपडेट की गई
- 2/11/2026
कमेंट
- …
इस repository की और skills
cline-sdk
71kयह आपके एजेंट को Cline SDK से AI एजेंट बनाना सिखाती है, जिसमें टूल, सेशन, इवेंट, मॉडल प्रदाता और मल्टी-एजेंट टीमें शामिल हैं।
create-pull-request
71kयह आपके एजेंट को साफ़ शीर्षक और विवरण के साथ GitHub pull request बनाने में मदद करती है, प्रोजेक्ट के टेम्पलेट का पालन करते हुए और पहले ब्रांच जाँचते हुए।
tuistory
71kयह आपके एजेंट को बैकग्राउंड सेशन में टर्मिनल ऐप चलाना और टेस्ट करना सिखाती है, कमांड टाइप करते हुए और स्क्रीन पढ़ते हुए, डिस्प्ले के बिना भी।
मिलती-जुलती skills
angular-developer
280kआपके एजेंट को Angular code बनाने और प्रोजेक्ट स्ट्रक्चर पर सलाह देने में मदद करता है। नए प्रोजेक्ट शुरू करने, code के हिस्से बनाने, या performance और accessibility सुधारने में उपयोगी है।
frontend-a11y
280kआपके एजेंट को web interfaces को सबके लिए accessible बनाने में मदद करता है। यह सुनिश्चित करता है कि websites और apps screen readers और keyboard navigation के साथ अच्छे से काम करें।
frontend-patterns
280kआपके एजेंट को React और Next.js में frontend development के modern patterns लागू करने में मदद करता है। यह performance optimize करता है, state manage करता है और best practices फॉलो करवाता है।