opentui
建構 OpenTUI 終端機介面
終端機介面工作通常需要涵蓋元件、版面配置、輸入、動畫與測試等方面的框架特定 OpenTUI 細節。此技能為 Claude、Codex 和 Claude Code 提供結構化參考,用於建構及疑難排解 OpenTUI 應用程式。
安裝前請停止並請求確認。
請審查安裝計畫,並在變更檔案前取得使用者明確同意。
使用我的智慧代理安裝
將此請求複製給你的智慧代理,其中包含權威 Skill 頁面和清單。
Review the Skillstore skill "opentui" from https://skillstore.io/skills/msmps-opentui.md and its manifest at https://skillstore.io/api/skills/msmps-opentui/manifest. Verify the artifact. Stop and obtain explicit user consent before installing or changing files.你的智慧代理仍應顯示其計畫,並依安全政策請求必要確認。
Agent 可讀資源
當 AI Agent、爬蟲或腳本需要乾淨脈絡、而不是讀取完整頁面時,請使用這些連結。
測試它
正在使用「opentui」。 我需要一個帶有表單和鍵盤快捷鍵的 React 終端機應用程式。
預期結果:
- 建議使用 React reconciler,以取得熟悉的元件模式。
- 使用輸入元件並搭配明確的焦點管理。
- 加入鍵盤 hooks 以處理 Escape 和 Control 快捷鍵。
- 使用 OpenTUI test renderer 和 snapshots 進行測試。
正在使用「opentui」。 我的 OpenTUI logs 在應用程式執行時沒有出現。
預期結果:
- OpenTUI 會在渲染期間擷取 console output。
- 使用 console overlay、鍵盤切換,或暫時的 debug file。
- 建立可重現的測試,而不是猜測渲染錯誤。
正在使用「opentui」。 我需要在終端機介面中加入 diff 檢視器。
預期結果:
- 使用 code 和 diff 元件參考。
- 根據可用的終端機寬度選擇統一或分割顯示。
- 在設定樣式前先規劃捲動和行號行為。
安全審計
高風險All 328 static findings are false positives caused by documentation links, code formatting, framework terminology, and benign examples. Semantic review found plaintext password logging and permissive SSH authentication examples. Both should be corrected before publication.
已確認的安全問題 (2)
風險因素
📁 檔案系統存取 (50)
⚙️ 外部命令 (50)
🌐 網路存取 (19)
🔑 環境變數 (13)
分享與引用此報告
分享版本化評估報告、中性徽章、嵌入卡片與引用。Skillstore 只報告證據,不判斷該 Skill 是否安全。
複製報告連結
https://skillstore.io/skills/msmps-opentui/audits/7?utm_source=security_passport&utm_medium=share&utm_campaign=versioned_reportMarkdown 徽章
[](https://skillstore.io/skills/msmps-opentui?utm_source=security_passport_badge)HTML 徽章
<a href="https://skillstore.io/skills/msmps-opentui?utm_source=security_passport_badge"><img src="https://skillstore.io/badges/skills/msmps-opentui/security.svg" alt="Skillstore security assessment" loading="lazy"></a>嵌入卡片
<iframe src="https://skillstore.io/embed/skills/msmps-opentui.html" title="Skillstore Security Assessment" sandbox="allow-popups allow-popups-to-escape-sandbox" loading="lazy" referrerpolicy="no-referrer" width="420" height="180"></iframe>學術引用 (APA · BibTeX · CFF)
APA 引用
msmps. (2026). opentui security audit report (audit version 7) [Author version unspecified]. Skillstore. https://skillstore.io/skills/msmps-opentui/audits/7BibTeX 引用
@techreport{msmps-msmps-opentui-2026,
author = {msmps},
title = {opentui security audit report (audit version 7)},
institution = {Skillstore},
year = {2026},
number = {7},
url = {https://skillstore.io/skills/msmps-opentui/audits/7},
note = {Author version unspecified}
}CITATION.cff
cff-version: 1.2.0
message: "If you use this Skill, cite its author and this versioned security audit report."
title: "opentui security audit report (audit version 7)"
version: "unspecified"
type: report
authors:
- name: "msmps"
date-released: "2026-08-09"
url: "https://skillstore.io/skills/msmps-opentui/audits/7"
identifiers:
- type: other
value: "skillstore:msmps-opentui:audit:7"
description: "Skillstore immutable audit report identifier"
Skillstore 評分
評分依據 證據置信度: 中你可以打造什麼
開始新的 TUI 應用程式
選擇正確的 OpenTUI 框架路徑,並使用元件與版面配置建立第一個介面。
加入互動式終端機控制項
實作輸入、焦點處理、鍵盤快捷鍵、貼上行為,以及 Escape 或 Control 鍵流程。
除錯與測試終端機渲染
使用 snapshots、測試渲染器、主控台覆疊層和聚焦的重現案例來修正 OpenTUI 問題。
試試這些提示
Use the opentui skill to help me choose between core, React, and Solid for a terminal app that needs [requirements]. Explain the tradeoffs and recommend one path.
Use the opentui skill to design an OpenTUI screen with [components]. Include layout, focus behavior, and the relevant reference files to consult.
Use the opentui skill to debug why [input or shortcut] is not working in my OpenTUI app. Check focus, key names, and framework-specific hook usage.
Use the opentui skill to create a test plan for this OpenTUI feature: [feature]. Include snapshot tests, interaction tests, and debugging steps for failures.
最佳實務
- 從框架 REFERENCE 檔案開始,然後只閱讀相關的 API、configuration、pattern 或 gotcha 檔案。
- 建構互動式應用程式時,使用 renderer cleanup 模式,而不是直接終止 process。
- 在變更多個 UI 層之前,先為版面配置、輸入和渲染問題撰寫可重現的測試。
避免
- 不要在未檢查元件參考的情況下混用 React 和 Solid 的元件命名規則。
- 不要假設鍵盤輸入一定可用,直到目標輸入或委派的子項目取得焦點為止。
- 當 OpenTUI 應用程式正在擷取終端機渲染時,不要依賴可見的 console output。