tui-development
БесплатноБез исполняемых скриптовНе проверенGuide for developing the OpenShell TUI — a ratatui-based terminal UI for the OpenShell platform. Covers architecture, navigation, data fetching, theming, UX…
от ai-openshell★ 22 101 звезда на GitHubОб этом скилле
OpenShell TUI Development Guide
Comprehensive reference for any agent working on the OpenShell TUI.
1. Overview
The OpenShell TUI is a ratatui-based terminal UI for the OpenShell platform. It provides a keyboard-driven interface for managing gateways, sandboxes, and logs — the same operations available via the openshell CLI, but with a live, interactive dashboard.
- Launched via:
openshell termormise run term - Crate:
crates/openshell-tui/ - Key dependencies:
ratatui(workspace version) — usesframe.area()for the drawable terminal areacrossterm(workspace version) — terminal backend and event pollingtonicwith TLS — gRPC client for the OpenShell gatewaytokio— async runtime for event loop, spawned tasks, and mpsc channelsopenshell-core— proto-generated types (OpenShellClient, request/response structs)openshell-bootstrap— gateway discovery (list_gateways())
- Theme: Adaptive dark/light via
Themestruct — NVIDIA-branded green accents. Controlled by--themeflag,OPENSHELL_THEMEenv var, or auto-detection.
2. Domain Object Hierarchy
The data model follows a strict hierarchy: Gateway > Workspace > Sandboxes/Providers/Settings > Logs.
Gateway (discovered via openshell_bootstrap::list_gateways())
├── Global Settings (fetched via GetGatewayConfig)
├── Global Policy indicator (fetched via ListSandboxPolicies global=true)
├── Workspaces (fetched via ListWorkspaces)
├── Provider Profiles (fetched via ListProviderProfiles, workspace-scoped)
├── Providers (fetched via ListProviders, workspace-scoped)
│ └── cached ProviderProfile (matched by type + workspace)
└── Sandboxes (fetched via ListSandboxes, workspace-scoped)
├── Policy (fetched via GetSandboxConfig)
├── Settings (effective settings with scope, from GetSandboxConfig)
├── Draft recommendations (fetched via GetDraftPolicy)
└── Logs (fetched via GetSandboxLogs + streamed via WatchSandbox)
- Gateways are discovered from on-disk config via
openshell_bootstrap::list_gateways(). Each gateway has a name, endpoint, local/remote flag, and source label. - Workspaces are fetched via
ListWorkspaces. The user cycles through workspaces with[w], or views all workspaces at once. The current workspace scopes provider and sandbox lists. - Provider Profiles are fetched per-workspace via
ListProviderProfiles. Profiles are cached in aProviderProfileCachekeyed by(workspace, profile_id)and matched to providers by type. They provide category, credential metadata, endpoint/binary counts, and inference capability. - Providers are fetched via
ListProvidersscoped to the current workspace. EachProviderListEntrypairs a provider with its optional cached profile. The TUI supports profile-backed create, update, and delete operations. - Global Settings are fetched via
GetGatewayConfigand displayed in a tabbed pane alongside providers on the dashboard. Each setting is a registered key with a typed value (bool/int/string). Platform-admin access is required;PermissionDenieddisables the pane. - Sandboxes belong to the active gateway and workspace. Fetched via
ListSandboxeswith a periodic tick refresh. - Sandbox Settings are effective settings returned by
GetSandboxConfig, each with a scope (sandbox, global, or unset). Globally-managed settings are blocked from sandbox-level edits. - Logs belong to a single sandbox. Initial batch fetched via
GetSandboxLogs(500 lines), then live-tailed viaWatchSandboxwithfollow_logs: true.
The title bar always reflects this hierarchy, reading left-to-right from general to specific:
OpenShell v<version> │ Current Gateway: <name> [source] (<status>) │ Workspace: <name|all> │ <screen/context>
3. Navigation & Screen Architecture
Screens (Screen enum)
Top-level layouts that own the full content area. Each has its own nav bar hints.
| Screen | Description | Module |
|---|---|---|
Splash |
Boot screen shown on startup, auto-dismissed after 3 seconds | ui/splash.rs |
Dashboard |
Gateway list (top) + providers/settings (middle) + sandbox table (bottom) | ui/dashboard.rs |
Sandbox |
Single-sandbox view — metadata (top) + policy/settings/logs/drafts (bottom) | ui/sandbox_detail.rs, ui/sandbox_policy.rs, ui/sandbox_settings.rs, ui/sandbox_logs.rs, ui/sandbox_draft.rs |
Focus (Focus enum)
Tracks which panel currently receives keyboard input.
| Focus | Screen | Description |
|---|---|---|
Gateways |
Dashboard | Gateway list panel has input focus |
Providers |
Dashboard | Provider list or global settings pane (depends on MiddlePaneTab) |
Sandboxes |
Dashboard | Sandbox table panel has input focus |
SandboxPolicy |
Sandbox | Policy viewer or settings table (depends on SandboxPolicyTab) |
SandboxLogs |
Sandbox | Log viewer with structured rendering |
| ` |
Установить tui-development в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл tui-development?
Guide for developing the OpenShell TUI — a ratatui-based terminal UI for the OpenShell platform. Covers architecture, navigation, data fetching, theming, UX conventions, and development workflow. Trigger keywords - term, TUI, terminal UI, ratatui, openshell-tui, tui development, tui feature, tui bug.
Как установить скилл tui-development?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл tui-development запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic