Automated summary
This skill provides expertise in terminal user interface (TUI) development: interactive console applications, keyboard event handling, responsive layouts and cross-platform libraries.
Strengths
- Covers several ecosystems: Bubbletea/lipgloss/tview/tcell in Go, ratatui in Rust, Rich/Textual in Python, ink in Node.js
- Ships a complete Bubbletea skeleton with Init, Update and View that can be reused directly
- Includes concrete key-handling rules (quit, navigate, confirm) and terminal resize handling
- Gives explicit width breakpoints for adapting layouts to narrow terminals
Limitations
- Detailed code examples are almost entirely Go; other languages are only listed
- Does not address persistence, automated testing of TUI apps, or packaging and distribution
- Relies on an external references/full-reference.md file whose contents are not shown here
Use it when building or debugging an interactive terminal application with keyboard navigation and adaptive layout.
Skip it for web or desktop graphical interfaces, or for plain command-line scripts that need no rich interaction.
Security analysis
SafeThe skill contains only instructional content and illustrative code examples for terminal UI development. It does not declare or request tools, execute commands, access files, exfiltrate data, or instruct unsafe behavior.
No concerns found
How this analysis is madeExamples
Write a Go Bubbletea app that shows a list of services, lets me move with arrow keys or j/k, confirms with Enter, and quits with q or Ctrl+C.My tview dashboard looks broken in an 80-column terminal. Add a responsive layout that stacks panels vertically below 80 columns and goes side-by-side above 120.Add WindowSizeMsg handling and a help footer to my Bubbletea model so the view reflows correctly when the terminal is resized.name: tui description: Expert terminal user interface development including interactive console applications, cross-platform TUI libraries, and responsive terminal layouts
User Input
$ARGUMENTS
You MUST consider the user input before proceeding (if not empty).
Outline
You are a Terminal User Interface (TUI) expert specializing in interactive console applications, cross-platform terminal libraries, and responsive terminal layouts. Use this skill when the user needs help with:
- Creating interactive terminal applications
- Building command-line interfaces with rich UI
- Implementing terminal-based dashboards and tools
- Cross-platform TUI development
- Terminal event handling and input processing
- Layout management and responsive design in terminals
TUI Libraries
Go
- Bubbletea: Modern, idiomatic Go TUI framework (Elm architecture)
- lipgloss: Styling and colors
- tview: Rich interactive widgets and flexible layouts
- tcell: Low-level terminal manipulation
Other Languages
- ratatui (Rust): Modern TUI library with crossterm backend
- Rich / Textual (Python): Rich text formatting and modern TUI framework
- ink (Node.js): React for CLIs
Core TUI Pattern — Bubbletea (Go)
type model struct {
choices []string
cursor int
selected string
}
func (m model) Init() tea.Cmd { return nil }
func (m model) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
switch msg := msg.(type) {
case tea.KeyMsg:
switch msg.Type {
case tea.KeyCtrlC:
return m, tea.Quit
case tea.KeyUp:
if m.cursor > 0 { m.cursor-- }
case tea.KeyDown:
if m.cursor < len(m.choices)-1 { m.cursor++ }
case tea.KeyEnter:
m.selected = m.choices[m.cursor]
return m, tea.Quit
}
case tea.WindowSizeMsg:
m.width = msg.Width
m.height = msg.Height
}
return m, nil
}
func (m model) View() string {
s := "Choose an option:\n\n"
for i, choice := range m.choices {
cursor := " "
if m.cursor == i { cursor = ">" }
s += fmt.Sprintf("%s %s\n", cursor, choice)
}
return s + "\nPress q to quit.\n"
}
Input Handling
Key events to always handle:
tea.KeyCtrlC/q— quittea.KeyUp/tea.KeyCtrlP— navigate uptea.KeyDown/tea.KeyCtrlN— navigate downtea.KeyEnter— confirm selectiontea.WindowSizeMsg— terminal resize
Responsive Layout
// Adapt layout based on terminal width
func adaptLayout(width int) string {
if width < 80 {
return "vertical" // stacked layout
} else if width < 120 {
return "mixed" // partial side-by-side
}
return "horizontal" // full side-by-side
}
// Responsive grid
cols := max(1, termWidth/40) // min 40 chars per column
Best Practices
- Performance: Use differential updates; minimize full redraws
- Accessibility: Keyboard navigation for all interactions; clear visual indicators
- Cross-platform: Test on Windows/macOS/Linux; graceful fallbacks for limited terminals
- UX: Provide help text, progress indicators, undo/redo where appropriate
Complete Reference
For exhaustive patterns, examples, and advanced usage see:
From the file to a first result
The download contains exactly the content displayed on this page. This copy may differ from the latest version in the source repository.
View the source and supporting filesThis download contains SKILL.md only. Any scripts, references, templates and dependencies are not included. Get the required files from the source, preserving their directory structure, before continuing.
1. Download the file
Download SKILL.mdFrom the root of a test project, save the file as .skill-downloads/terminal-user-interface-expert-msr1u7gq/SKILL.md, or use the command below. This folder is for inspecting the skill before installation.
Command for macOS/Linux or WSL: requires a POSIX shell and curl. On Windows without WSL, use the download button and create the folder manually.
mkdir -p '.skill-downloads/terminal-user-interface-expert-msr1u7gq' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/terminal-user-interface-expert-msr1u7gq/download' --output '.skill-downloads/terminal-user-interface-expert-msr1u7gq/SKILL.md.part' && mv '.skill-downloads/terminal-user-interface-expert-msr1u7gq/SKILL.md.part' '.skill-downloads/terminal-user-interface-expert-msr1u7gq/SKILL.md'2. Check prerequisites
Read SKILL.md before using it. If it references scripts or external services, inspect them and prepare the required access in your test environment.
No recognized prerequisites section in this file. This does not mean it is self-contained: libraries, tools and access requirements may be mentioned elsewhere in the content or source repository.
The platforms on this page are catalog indications. The paths below follow tool documentation; they do not prove this skill has been run in those tools. No minimum tool version is confirmed for this listing.
3. Load the skill
After inspection, copy the complete folder into your project using one of the commands below, then open a new tool session. The command stops if a folder with the same name already exists: compare the files before replacing it.
Claude Code
test -f '.skill-downloads/terminal-user-interface-expert-msr1u7gq/SKILL.md' && test -s '.skill-downloads/terminal-user-interface-expert-msr1u7gq/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/tui' && cp -R '.skill-downloads/terminal-user-interface-expert-msr1u7gq' '.claude/skills/tui'Cursor
test -f '.skill-downloads/terminal-user-interface-expert-msr1u7gq/SKILL.md' && test -s '.skill-downloads/terminal-user-interface-expert-msr1u7gq/SKILL.md' && mkdir -p '.cursor/skills' && test ! -e '.cursor/skills/tui' && cp -R '.skill-downloads/terminal-user-interface-expert-msr1u7gq' '.cursor/skills/tui'Codex
test -f '.skill-downloads/terminal-user-interface-expert-msr1u7gq/SKILL.md' && test -s '.skill-downloads/terminal-user-interface-expert-msr1u7gq/SKILL.md' && mkdir -p '.agents/skills' && test ! -e '.agents/skills/tui' && cp -R '.skill-downloads/terminal-user-interface-expert-msr1u7gq' '.agents/skills/tui'OpenSkills
OpenSkills must already be installed. The local install/read procedure is checked with OpenSkills 1.5.0, which requires Node.js ≥ 20.6.0. Catalog slugs are not resolved automatically.
Official OpenSkills installationopenskills install './.skill-downloads/terminal-user-interface-expert-msr1u7gq'openskills read 'terminal-user-interface-expert-msr1u7gq'Reading should display the installed file content and its base directory. It does not run the skill or install its dependencies.
For an agent that reads AGENTS.md, then sync the index. This command changes AGENTS.md: review the diff before using it.
openskills syncManual method or another tool: attach SKILL.md to a conversation, or open it in an agent that can read files. Include any required supporting resources. No universal folder is recognized by every tool.
4. Try a first task
Use a short, synthetic input: an API endpoint, a small document or an interface brief. In a new conversation, attach the file or give the agent its path, then adapt this request:
Read .skill-downloads/terminal-user-interface-expert-msr1u7gq/SKILL.md and apply its instructions to this example: [describe a test input]. Identify any missing files, dependencies or access. Produce the result requested by the skill without inventing data or running unreviewed scripts.Expected result: output matching the skill instructions, or a precise list of missing prerequisites. A read confirmation alone does not validate a first use. If an external resource is unavailable, that path remains untested.
React Hook Form Best Practices
Development
Master React Hook Form: avoid anti-patterns, manage subscriptions, and handle reset, dirty state, and controlled inputs correctly.
Emotion to Mantine Migration
Development
Migrate Emotion styled-components to Mantine components with style props and CSS modules. Use when converting .styled.tsx files or removing @emotion imports.
Scope Creep Detector
Development
Analyzes git diffs against a stated intent to detect scope creep, unrelated files, broad PRs, and oversized changes, then suggests keep, split, or justify actions.