Token导航 LogoToken导航

Agent Skill · 研究检索

tui-design(设计)

用于辅助界面设计、视觉规范、排版、配色、布局和交互体验优化。它适合让 Agent 根据产品场景整理页面结构、生成 UI 方案、检查视觉一致性或改进组件层级。使用时需要结合现有品牌、设计系统和用户任务,不应只堆装饰元素;涉及真实页面改动时,应通过截图或浏览器预览检查文本溢出、对齐和响应式表现。

tui-design 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为操作浏览器;许可证信息还不明确,第三方扫描已通过,按安装量在研究检索类的 73,675 个 Skill 里排第 8,265。

总安装 16,773周安装 672GitHub Stars 6下载 5,430核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:tui-design(设计)
来源仓库:https://github.com/hyperb1iss/hyperskills
仓库路径:skills/tui-design
安装命令:
npx skills add https://github.com/hyperb1iss/hyperskills --skill tui-design
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/hyperb1iss/hyperskills --skill tui-design

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

用于辅助界面设计、视觉规范、排版、配色、布局和交互体验优化。适合让 Agent 整理页面结构、生成 UI 方案或改进组件层级。需结合现有品牌、设计系统和用户任务使用,避免堆砌装饰元素。涉及真实页面改动时应通过截图或浏览器预览检查文本溢出和对齐。

tui-design 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

来源仓库内路径:skills/tui-design

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/hyperb1iss/hyperskills --skill tui-design;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要操作浏览器,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

tui-design 怎么安装?

在终端执行 npx skills add https://github.com/hyperb1iss/hyperskills --skill tui-design。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

tui-design 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

tui-design 需要什么权限?

权限级别是操作浏览器。该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

tui-design 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

tui-design 用的人多吗?

公开数据是累计安装 16,773 次,近一周安装 672 次,下载 5,430 次,GitHub 6 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

tui-design 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 第三方扫描已通过,常见的高风险行为没有命中。

先想清楚的地方

  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。

不太适合

  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
tui-design

设计 · 本页

16,7736操作浏览器未明确通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

TUI Design System

Universal design patterns for building exceptional terminal user interfaces. Framework-agnostic — works with Ratatui, Ink, Textual, Bubbletea, or any TUI toolkit.

Core philosophy: TUIs earn their power through spatial consistency, keyboard fluency, and information density that respects human attention. Design for the expert's speed without abandoning the beginner's discoverability.

TUI Design Process

digraph tui_design {
    rankdir=TB;
    "What are you building?" [shape=diamond];
    "Select layout paradigm" [shape=box];
    "Design interaction model" [shape=box];
    "Define visual system" [shape=box];
    "Validate against anti-patterns" [shape=box];
    "Ship it" [shape=doublecircle];

    "What are you building?" -> "Select layout paradigm";
    "Select layout paradigm" -> "Design interaction model";
    "Design interaction model" -> "Define visual system";
    "Define visual system" -> "Validate against anti-patterns";
    "Validate against anti-patterns" -> "Ship it";
}

1. Layout Paradigm Selector

Choose your primary layout based on what you're building:

App TypeParadigmExamples
File managerMiller Columnsyazi, ranger
Git / DevOps toolPersistent Multi-Panellazygit, lazydocker
System monitorWidget Dashboardbtop, bottom, oxker
Data browser / K8sDrill-Down Stackk9s, diskonaut
SQL / HTTP clientIDE Three-Panelharlequin, posting
Shell augmentationOverlay / Popupatuin, fzf
Log / event viewerHeader + Scrollable Listhtop, tig

Persistent Multi-Panel

All panels visible simultaneously. Focus shifts between them. Users build spatial memory — "branches are always top-left."

┌─ Status ──┬─────────── Detail ──────────┐
├─ Files ───┤                              │
│ > file.rs │  diff content here...        │
│   main.rs │                              │
├─ Branches ┤                              │
│ * main    │                              │
│   feat/x  │                              │
├─ Commits ─┤                              │
│ abc1234   │                              │
└───────────┴──────────────────────────────┘
  [q]uit [c]ommit [p]ush [?]help

When to use: Multi-faceted tools where users need simultaneous context (git clients, container managers, monitoring). Key rule: Panels maintain fixed positions across sessions. Never rearrange without user action.

Miller Columns

Three-pane past/present/future navigation. Parent directory (left), current (center), preview (right).

┌── Parent ──┬── Current ──┬── Preview ────────┐
│   ..       │ > config/   │ port: 8080        │
│   src/     │   lib/      │ host: localhost    │
│ > config/  │   main.rs   │ log_level: debug   │
│   tests/   │   mod.rs    │ db_url: postgres://│
└────────────┴─────────────┴───────────────────┘

When to use: Hierarchical data navigation (file systems, tree structures, nested configs). Key rule: Preview pane content adapts to selection type — code gets highlighting, images render, directories show contents.

Drill-Down Stack

Enter descends, Esc ascends. Browser-like navigation through hierarchical data.

When to use: Deep hierarchies where showing all levels simultaneously is impractical (Kubernetes resources, database schemas). Key rule: Always show the current navigation path as a breadcrumb. Provide :resource command-mode for direct jumps.

Widget Dashboard

Self-contained widget panels with independent data. All information visible at once, no navigation required.

┌─── CPU ──────────────┬─── Memory ──────────┐
│ ▁▂▃▅▇█▇▅▃▂▁▂▃▅▇     │ ████████░░ 78%      │
│ core0: 45% core1: 67%│ 12.4G / 16.0G       │
├─── Network ──────────┼─── Disk ────────────┤
│ ▲ 1.2 MB/s  ▼ 340KB/s│ /: 67%  /home: 45%  │
├─── Processes ────────┴─────────────────────┤
│ PID   USER  CPU%  MEM%  CMD                 │
│ 1234  root  23.4  4.5   postgres             │
└─────────────────────────────────────────────┘

When to use: Monitoring, real-time status, system dashboards. Key rule: Each widget is self-contained with its own title. Use braille/block characters for high-density data.

IDE Three-Panel

Sidebar (left), editor/main (center), detail/output (bottom). Tab bar along top.

When to use: Editing-focused tools (SQL clients, HTTP tools, config editors). Key rule: Sidebar toggles with a single key. Center panel supports tabs. Bottom panel can expand to full height.

Overlay / Popup

TUI appears on demand over the shell, disappears after use.

When to use: Shell augmentations (history search, file picker, command palette). Key rule: Configurable height. Return selection to the caller. Never disrupt scrollback.

Header + Scrollable List

Fixed header with meters/stats, scrollable data below, function bar at bottom.

When to use: Single-list tools with metadata (process viewers, log viewers, sorted listings). Key rule: The header creates a natural "overview then detail" reading flow. Sort by the most actionable dimension by default.


2. Responsive Terminal Design

Terminals resize. Your TUI must handle it gracefully.

StrategyWhen
Proportional splitPanels maintain percentage ratios on resize
Priority collapseLess important panels hide first below minimum width
StackingPanels collapse to title-only bars, active one expands (zellij pattern)
Breakpoint modesSwitch layout entirely below a threshold (e.g., multi-panel → single panel)
Minimum size gateDisplay "terminal too small" if below usable minimum

Rules:

  • Define a minimum terminal size (typically 80x24). Below that, show a resize message.
  • Never crash on resize. Handle SIGWINCH gracefully.
  • Use constraint-based layouts (percentages, min/max, ratios) — not absolute positions.
  • Test at 80x24, 120x40, and 200x60 to verify scaling.

3. Interaction Model

Navigation Style Selector

App ComplexityRecommended Model
Single-purpose, <20 actionsDirect keybinding (every key = action)
Multi-view, complexVim-style modes + contextual footer
IDE-like, many featuresCommand palette + tabs + vim motions
Data browserDrill-down + fuzzy search + : command mode

Keyboard Design Layers

Design keybindings in four progressive layers:

LayerKeysAudienceAlways show?
L0: UniversalArrow keys, Enter, Esc, qEveryoneYes (footer)
L1: Vim motionshjkl, /,?,:, gg, GIntermediateYes (footer)
L2: ActionsSingle mnemonics: d(elete), c(ommit), p(ush)Regular usersOn ? help
L3: PowerComposed commands, macros, custom bindingsPower usersDocs only

Keybinding conventions (lingua franca):

  • j/k — move down/up
  • h/l — move left/right (or collapse/expand)
  • / — search
  • ? — help overlay
  • : — command mode
  • q — quit (or Esc to go back one level)
  • Enter — select / confirm / drill in
  • Tab — switch focus between panels
  • Space — toggle selection
  • g/G — jump to top/bottom

Never bind: Ctrl+C (interrupt), Ctrl+Z (suspend), Ctrl+\ (quit signal). These belong to the terminal.

Focus Management

  • Only one widget receives keyboard input at a time
  • Tab cycles focus forward, Shift+Tab backward
  • Focus indicator: highlighted border, color change, or cursor presence
  • Unfocused panels: dimmed or thinner borders
  • Modal dialogs create focus traps — background receives no events
  • Nested focus: outer container routes events to focused child

Search & Filtering

The universal pattern: press /, type query, results filter live.

  • n/N — next/previous match
  • Esc — dismiss search
  • Fuzzy matching by default, ' prefix for exact match
  • Highlight matched characters in results
  • Preview pane updates for highlighted result

Help System — Three Tiers

TierTriggerContentAudience
Always visibleFooter bar3-5 essential shortcutsEveryone
On demand? keyFull keybinding overlay for current contextRegular users
Documentation--help, man pageComplete referencePower users

Footer format: [q]uit [/]search [?]help [Tab]focus [Enter]select

Context-sensitive footers update based on the active panel or mode. Show only what's actionable *right now*.

Dialogs & Confirmation

Action SeverityPattern
ReversibleJust do it, show brief confirmation in status bar
Moderate (delete file)Inline "Press y to confirm"
Severe (drop database)Modal dialog requiring resource name input
Irreversible batch--dry-run flag + explicit confirmation
  • Modal overlays: render popup on top of dimmed/blurred background
  • Toast notifications: auto-dismiss after 3-5 seconds, no interaction required
  • Status bar messages: vim-style one-liner feedback, auto-fade

4. Color Design System

Terminal Color Tiers

Design for graceful degradation across all three tiers:

TierEscape SequenceColorsStrategy
16 ANSI\033[31m16 (relative)Foundation. Terminal theme controls appearance.
256 Color\033[38;5;{n}m256 (16 relative + 240 fixed)Extended palette. Fixed colors may clash with themes.
True Color\033[38;2;{r};{g};{b}m16.7M (absolute)Full control. Requires COLORTERM=truecolor.

Detection hierarchy:

  1. $COLORTERM = truecolor or 24bit → true color
  2. $TERM contains 256color → 256 colors
  3. $NO_COLOR is set → disable all color
  4. Default → 16 ANSI colors

Golden rule: Your TUI must be *usable* in 16-color mode. True color *enhances* — it never *creates* the hierarchy.

Semantic Color Slots

Define colors by function, not appearance. Map semantics to actual colors through your theme:

SlotPurposeTypical Dark Theme
fg.defaultBody textOff-white (#c0caf5)
fg.mutedSecondary text, metadataGray (#565f89)
fg.emphasisHeaders, focused itemsBright white (#e0e0e0)
bg.basePrimary backgroundNear-black (#1a1b26)
bg.surfacePanel/widget backgroundsSlightly lighter (#24283b)
bg.overlayPopup/dialog backgroundsLighter still (#414868)
bg.selectionSelected item highlightDistinct (#364a82)
accent.primaryInteractive elements, focusBrand color (#7aa2f7)
accent.secondarySupporting interactionsComplementary (#bb9af7)
status.errorErrors, deletionsRed (#f7768e)
status.warningWarnings, cautionYellow (#e0af68)
status.successSuccess, additionsGreen (#9ece6a)
status.infoInformationalCyan (#7dcfff)

Never hardcode hex values in widget code. Always reference semantic slots.

Visual Hierarchy Techniques

Color is one tool among several. Use them in combination:

TechniqueEffectUse For
Bold (SGR 1)Increases visual weightHeaders, labels, active items
Dim (SGR 2)Decreases visual weightMetadata, timestamps, secondary info
Italic (SGR 3)Semantic distinctionComments, types, annotations
Underline (SGR 4)Links, actionable itemsClickable elements, URLs
Reverse (SGR 7)Swaps fg/bgSelection highlight (always works!)
Strikethrough (SGR 9)NegationDeleted items, deprecated features

Hierarchy recipe: 80% of content in fg.default. Headers in bold + fg.emphasis. Metadata in dim + fg.muted. Status in their semantic colors. Accents for interactive elements only.

Background Layering

Create depth without borders by layering background lightness:

bg.base (darkest) → bg.surface → bg.overlay (lightest)

Each step ~5-8% lighter in dark themes. The eye perceives depth from the contrast gradient. This reduces the need for box-drawing borders while maintaining clear visual zones.

Theme Architecture

Follow the Base16 pattern: define 16 named color slots, map them semantically:

  • 8 monotones (base00-base07): background/foreground gradient
  • 8 accents (base08-base0F): syntax/semantic colors

Ship a dark theme by default. Detect light/dark terminal via OSC escape query or terminal-light crate. Provide at least one light variant. Respect NO_COLOR.

Accessibility Requirements

  • WCAG AA contrast: 4.5:1 ratio for body text, 3:1 for large text/UI elements
  • Never use color alone: Pair with symbols (checkmark, X, triangle), text labels, position, or typography
  • Color blindness safe pairs: blue+orange, blue+yellow, black+white. Avoid relying on red vs green.
  • Test: monochrome mode, color blindness simulator, 3+ terminal emulators, light and dark themes

5. Data Visualization

Character-Resolution Building Blocks

ElementCharactersResolutionUse For
Full blocks█▉▊▋▌▍▎▏8 steps/cellProgress bars, bar charts
Shade blocks░▒▓█4 densitiesHeatmaps, density plots
Braille⠁⠂⠃...⣿ (U+2800-U+28FF)2x4 dots/cellHigh-res line graphs, scatter plots
Sparkline▁▂▃▄▅▆▇█8 heightsInline mini-charts

Common Widgets

WidgetPatternTips
Progress bar[████████░░░░] 67%Show percentage + ETA. Color gradient green→yellow→red by urgency.
Sparkline▁▂▃▅▇█▇▅▃▂Perfect for inline time-series in headers/status bars.
GaugeCPU [██████████░░] 83%Label + bar + value. Color by threshold.
TableSortable columns, zebra stripesAlign numbers right, text left. Truncate with ….
Tree├──, └──, │ guidesIndent 2-4 chars per level. Expand/collapse with Enter.
DiffGreen + lines, red - linesWord-level highlighting within changed lines elevates quality.
LogColored level, timestamp, messageTRACE=dim, DEBUG=cyan, INFO=default, WARN=yellow, ERROR=red, FATAL=red+bold.

Spinner Selection

ContextSpinnerInterval
Default / modernBraille dots ⠋⠙⠹⠸⠼⠴⠦⠧⠇⠏80ms
MinimalLine `-\/`130ms
Heavy processingBlocks ▖▘▝▗100ms
Fun / brandedCustom frames70-100ms

Use spinners for indeterminate operations. Progress bars for determinate. Show spinners only after 200ms delay to avoid flash on fast operations.


6. Animation & Motion

Flicker-Free Rendering Stack

Three layers, all required for smooth TUI rendering:

  1. Double buffering — Render to off-screen buffer, diff against previous frame, emit only changed cells
  2. Synchronized output — Wrap frame in CSI? 2026 h... CSI? 2026 l for atomic terminal render
  3. Batched writes — Combine all escape sequences into a single write() syscall

When to Animate

SituationAnimationDuration
View transitionFade or slide100-200ms
Selection changeInstant highlight0ms (never animate)
Data loadingSpinner or skeletonUntil complete
Success feedbackBrief flash/checkmark1-2 seconds
Panel resizeImmediate reflow0ms
Chart data updateSmooth value transition200-500ms

Rule: Animations must never delay user input. If the user presses a key during a transition, cancel it and respond immediately.

Real-Time Updates

  • Cap refresh to 15-30 FPS for dashboards (saves CPU, prevents flicker)
  • Use differential updates — only redraw changed cells
  • Stream text (AI responses, logs) at a readable pace, not network burst speed
  • Background operations: show status in a status bar widget, never block the main loop

7. The Seven Design Principles

  1. Keyboard-first, mouse-optional — Every feature accessible via keyboard. Mouse enhances but never replaces. Shift+click must bypass mouse capture for text selection.
  2. Spatial consistency — Panels stay in fixed positions. Users build mental maps. Never rearrange without explicit user action. Tabs provide stable landmarks.
  3. Progressive disclosure — Show 5 essential shortcuts in the footer. Full help behind ?. Complete reference in docs. The floor is accessible, the ceiling is unlimited.
  4. Async everything — Never freeze the UI. File operations, network requests, scans all run in the background with progress indication. Cancel with Esc.
  5. Semantic color — Color encodes meaning, not decoration. If you removed all color, the interface should still be *usable* through layout, typography, and symbols.
  6. Contextual intelligence — Keybindings update per panel. Status bars reflect current state. Help shows what's actionable right now, not everything ever.
  7. Design in layers — Start monochrome (usable?). Add 16 ANSI colors (readable?). Layer true color (beautiful?). Each tier must stand independently.

Anti-Patterns

Validate your design against these ranked pitfalls (ordered by real-world complaint frequency):

#Anti-PatternFix
1Colors break on different terminalsUse 16 ANSI colors as foundation. Test 3+ emulators + light/dark themes.
2Flickering / full redrawsDouble buffer + synchronized output + batched writes. Overwrite, never clear.
3Undiscoverable keybindingsContext-sensitive footer + ? help overlay + Which-Key-style hints.
4Broken on Windows / WSLTest on Windows Terminal. Avoid advanced Unicode beyond box-drawing.
5Unicode rendering inconsistencyStick to box-drawing + block elements. Restrict emoji to Unicode 9.0.
6Terminal multiplexer incompatibilityTest inside tmux and zellij. Mouse capture must not break selection.
7No accessibility supportRespect NO_COLOR, provide monochrome mode, never color-only meaning.
8Blocking UI during operationsShow feedback within 100ms. Use async + spinners + progress bars.
9Modal confusionAlways show current mode in status bar. Cursor shape changes per mode.
10Over-decorated chromeBorders and colors serve content, not ego. The content IS the interface.

9. Compatibility Checklist

Before shipping, verify:

  • Works at 80x24 minimum terminal size
  • Handles terminal resize without crash
  • Looks correct on dark AND light terminal themes
  • Respects NO_COLOR environment variable
  • Works inside tmux / zellij / screen
  • Functions over SSH (no features require local-only protocols)
  • Mouse capture doesn't break text selection (Shift+click)
  • All features accessible via keyboard alone
  • No ANSI escape sequence leaks to piped/redirected output
  • Exits cleanly on Ctrl+C / SIGINT (restores terminal state)

For Unicode character reference tables and border style gallery, see visual-catalog.md. For real-world TUI app design analysis and inspiration, see app-patterns.md.

What This Skill is NOT

  • Not a framework-specific API reference.
  • Not an excuse to over-decorate terminal tools.
  • Not a replacement for testing in real terminal emulators.
  • Not only for Rust; the patterns apply across TUI frameworks.

平台分布

Codex

36.89%
按下载量换算2,003

Claude

28.58%
按下载量换算1,552

Cursor

18.34%
按下载量换算996

Gemini CLI

10.49%
按下载量换算570

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

操作浏览器

该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills