Communitygithub.com

yosoyjavieruiz/shelra

此技能提供 OpenTUI 框架的完整文件導航,協助開發者快速找到 Terminal UI 應用程式開發所需的元件、核心概念及整合說明。

shelra 是什麼?

OpenTUI 技能是為開發者設計的 Terminal UI 框架完整參考指南,支援 React 與 Solid 等框架。它透過結構化的路徑規則與意圖路由表,讓 AI 代理能快速定位到對應的文件頁面,例如:從入門指南、核心概念(渲染器、佈局、鍵盤)、元件使用(文字、輸入框、影像、嵌入式終端),到進階功能(音訊串流、動畫、測試、外掛系統、SSH 整合、QR 碼編碼、獨立執行檔建置)等。此技能涵蓋 OpenTUI 倉庫中 `packages/web/src/content/docs/` 下的所有 `.mdx` 文件,並明確列出所有可用的入口頁面路徑。其路由規則根據開發者的查詢意圖(如「react」、「testing」、「deploy」)自動對應至最相關的文件,確保即使是複雜的請求(如元件或外掛細節)也能透過先閱讀概觀頁面,再深入特定文件的方式正確回答。

相容平台~Claude Code~Codex CLI~Cursor
npx skills add yosoyjavieruiz/shelra

在你喜歡的 AI 中提問

開啟一個已預先載入此 Agent Skill 的新對話。

說明文件

OpenTUI 技能

規範參考文件位於同層的 docs/**/*.mdx 檔案中。

在 OpenTUI 儲存庫中,此技能的根目錄為 packages/web/src/content/。相同的檔案也可在儲存庫根目錄的 packages/web/src/content/docs/**/*.mdx 找到。

路徑不可變規則

  • /docs 對應到 docs/getting-started.mdx。
  • /docs/components 對應到 docs/components/overview.mdx。
  • 其他所有 /docs/<slug> URL 對應到相對於此技能根目錄的 docs/<slug>.mdx。
  • 從儲存庫根目錄開始,請在每個來源路徑前加上 packages/web/src/content/。

按領域的閱讀順序

  • 開始:/docs,/docs/getting-started/quickstart,/docs/getting-started/runtime-support
  • 框架:/docs/bindings/react,/docs/bindings/solid
  • 核心:/docs/core-concepts/renderer,/docs/core-concepts/layout,/docs/core-concepts/keyboard
  • 元件:/docs/components,/docs/components/text,/docs/components/input,/docs/components/image,/docs/components/embedded-terminal
  • 應用程式 API:/docs/core-concepts/clipboard,/docs/core-concepts/audio,/docs/application-apis/audio-streaming,/docs/application-apis/audio-capture,/docs/application-apis/animation
  • 測試與除錯:/docs/core-concepts/testing,/docs/test-and-debug/troubleshooting
  • 擴充:/docs/plugins/slots,/docs/extend/runtime-plugins
  • 按鍵映射:/docs/keymap/overview
  • 整合:/docs/reference/ssh,/docs/reference/three,/docs/reference/qr-encoder
  • 發布:/docs/ship/deploy,/docs/reference/standalone-executables
  • 參考:/docs/reference/api-index,/docs/reference/package-entrypoints,/docs/reference/env-vars,/docs/reference/native-image

依意圖快速路由

意圖從這裡開始
getting-started,intro,examples,agent-skilldocs/getting-started.mdx
installation,quickstartdocs/getting-started/quickstart.mdx
runtime-support,bun,nodejs,native-artifacts,ffi,permissions,libc,runtime-assetsdocs/getting-started/runtime-support.mdx
react,jsx,hooks,keyboard,paste,focus,blur,selection,animation,testingdocs/bindings/react.mdx
solid,jsx,signals,hooks,keyboard,animation,testingdocs/bindings/solid.mdx
core,renderer,terminal,scrollback,lifecycledocs/core-concepts/renderer.mdx
layout,flexbox,yoga,positioningdocs/core-concepts/layout.mdx
keyboard,input,keybindings,paste,focusdocs/core-concepts/keyboard.mdx
components,component,component-support,support-matrix,react-components,solid-componentsdocs/components/overview.mdx
text,styling,content,selectiondocs/components/text.mdx
input,form,editing,focusdocs/components/input.mdx
image,image-renderable,image-display,kitty,sixeldocs/components/image.mdx
embedded-terminal,terminal-renderable,ghostty,vt,ptydocs/components/embedded-terminal.mdx
clipboard,copy,osc52,host-clipboarddocs/core-concepts/clipboard.mdx
audio,native-audio,sound,playback,mixer,devices,tapdocs/core-concepts/audio.mdx
audio-streaming,audio-stream,radio,mp3,flac,icy,backpressure,reconnectdocs/application-apis/audio-streaming.mdx
audio-capture,microphone,pcm,recording,wav,audio-recorderdocs/application-apis/audio-capture.mdx
animation,timeline,easing,use-timelinedocs/application-apis/animation.mdx
testing,test-renderer,snapshots,framesdocs/core-concepts/testing.mdx
troubleshooting,terminal-reset,ffi-errors,native-loading,runtime-plugins,protocols,test-timeoutsdocs/test-and-debug/troubleshooting.mdx
plugins,plugin,slots,registry,extensionsdocs/plugins/slots.mdx
runtime-plugins,dynamic-import,external-modules,bun-plugin,module-maps,plugin-loadingdocs/extend/runtime-plugins.mdx
keymap,keybindings,shortcuts,commands,leader,ex-commandsdocs/keymap/overview.mdx
ssh,remote-tui,ssh-server,authentication,middlewaredocs/reference/ssh.mdx
three,threejs,webgpu,3d,sprites,physicsdocs/reference/three.mdx
qr,qrcode,qr-encoder,svg-qr,gs1,eci,structured-appenddocs/reference/qr-encoder.mdx
deploy,bundle,bun-executable,nodejs-esm,node-sea,ssh-deploymentdocs/ship/deploy.mdx
standalone,executable,bun-compile,node-sea,node-assetsdocs/reference/standalone-executables.mdx
api,symbols,exports,public-api,api-index,lookupdocs/reference/api-index.mdx
package-exports,entrypoints,subpath-exports,importsdocs/reference/package-entrypoints.mdx
env,environment,configuration,flagsdocs/reference/env-vars.mdx
native-image,image-decode,png,jpeg,webp,gif,rgba,pixels,resizedocs/reference/native-image.mdx

對於元件請求,請先閱讀 docs/components/overview.mdx,然後開啟 docs/components/<name>.mdx。對於外掛插槽詳細資訊,請從 docs/plugins/slots.mdx 開始,然後開啟 Core、React 或 Solid 頁面。

目前的技能入口頁面

  • docs/getting-started.mdx
  • docs/getting-started/quickstart.mdx
  • docs/getting-started/runtime-support.mdx
  • docs/bindings/react.mdx
  • docs/bindings/solid.mdx
  • docs/core-concepts/renderer.mdx
  • docs/core-concepts/layout.mdx
  • docs/core-concepts/keyboard.mdx
  • docs/components/overview.mdx
  • docs/components/text.mdx
  • docs/components/input.mdx
  • docs/components/image.mdx
  • docs/components/embedded-terminal.mdx
  • docs/core-concepts/clipboard.mdx
  • docs/core-concepts/audio.mdx
  • docs/application-apis/audio-streaming.mdx
  • docs/application-apis/audio-capture.mdx
  • docs/application-apis/animation.mdx
  • docs/core-concepts/testing.mdx
  • docs/test-and-debug/troubleshooting.mdx
  • docs/plugins/slots.mdx
  • docs/extend/runtime-plugins.mdx
  • docs/keymap/overview.mdx
  • docs/reference/ssh.mdx
  • docs/reference/three.mdx
  • docs/reference/qr-encoder.mdx
  • docs/ship/deploy.mdx
  • docs/reference/standalone-executables.mdx
  • docs/reference/api-index.mdx
  • docs/reference/package-entrypoints.mdx
  • docs/reference/env-vars.mdx
  • docs/reference/native-image.mdx

工作規則

  • 先閱讀入口頁面,然後閱讀任務所需的較狹義的規範頁面。
  • 直接閱讀同層的 docs/**/*.mdx 檔案。請勿將其內容複製到這個檔案中。
  • 在交叉引用文件時,請使用規範的 /docs URL。

相關技能