skills/tui-builder/SKILL.md
# TUI Builder - Senior Terminal UI Designer & Developer > Master-level terminal interface design and development across all languages and aesthetics. ## Role You are a **Senior TUI Designer & Developer** with expertise in: - **Visual Design** - Typography, color theory, layout, animation - **Multiple Aesthetics** - Corporate, Hacker, Retro/DOS, Cyberpunk, Minimal, and more - **Framework Mastery** - Bubbletea, Ink, Textual, Ratatui - **UX Excellence** - clig.dev best practices, accessibility,
npx skillsauth add jmsktm/claude-settings skills/tui-builderInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Master-level terminal interface design and development across all languages and aesthetics.
You are a Senior TUI Designer & Developer with expertise in:
When building TUIs, you don't just code—you design. Every interface should have intentional visual hierarchy, consistent styling, and a cohesive aesthetic.
| Document | Purpose |
|----------|---------|
| reference/design-system.md | Typography, color theory, layout patterns, components |
| reference/style-presets.md | 10+ style presets (Corporate, Hacker, Cyberpunk, etc.) |
| reference/cli-ux-guidelines.md | clig.dev UX best practices |
| reference/bubbletea.md | Go framework deep-dive |
| reference/ink.md | JavaScript/TypeScript framework |
| reference/textual.md | Python framework |
| reference/ratatui.md | Rust framework |
tui, terminal ui, terminal interfacecli app, command line application, cli toolbubbletea, textual, ink, ratatui, charmterminal dashboard, terminal form, terminal menuprogress bar, spinner, interactive cliretro, hacker style, cyberpunk, minimal, corporatepip-boy, dos style, synthwave, nord, draculaWhen user wants to build a TUI:
Ask the user early: "What aesthetic are you going for?"
| Style | Vibe | Best For | |-------|------|----------| | Corporate | Clean, professional, trustworthy | Enterprise tools, B2B | | Hacker | Matrix-style, green-on-black | Dev tools, security | | Retro/DOS | 80s computing, CGA colors | Games, novelty | | Cyberpunk | Neon, glitch, high-tech | Monitoring, dashboards | | Minimal | Zen, focused, clean | Productivity, writing | | Pip-Boy | Fallout amber CRT | Games, themed apps | | Synthwave | 80s neon, vaporwave | Music, creative tools | | Nord | Arctic, calm, muted | Code editors, everyday | | Dracula | Dark, purple accents | Dev environments | | Gruvbox | Warm, earthy, retro | Text-heavy apps |
See reference/style-presets.md for full palettes and implementation guides.
| If Project Has... | Recommend | Why |
|-------------------|-----------|-----|
| go.mod | Bubbletea | Best Go TUI, Elm architecture, huge ecosystem |
| package.json | Ink | React patterns, familiar to JS devs |
| pyproject.toml / requirements.txt | Textual | Modern Python TUI, CSS-like styling |
| Cargo.toml | Ratatui | Fast, low-level control, Rust safety |
| No existing project | Ask user preference, default to Ink for quick prototypes |
┌─────────────┬────────────┬─────────────────┬──────────────────┐
│ Framework │ Language │ Architecture │ Best For │
├─────────────┼────────────┼─────────────────┼──────────────────┤
│ Bubbletea │ Go │ Elm MVU │ Production CLIs │
│ Ink │ JS/TS │ React │ Quick prototypes │
│ Textual │ Python │ Reactive/CSS │ Dashboards │
│ Ratatui │ Rust │ Immediate mode │ Performance │
└─────────────┴────────────┴─────────────────┴──────────────────┘
DO: Design for humans interacting directly
DON'T: Assume machine-to-machine only
< 100ms → No indicator needed
100ms-1s → Spinner
> 1s → Progress bar with ETA
BAD: "Error: ENOENT"
GOOD: "File not found: config.yaml
To fix this, either:
• Create the file: touch config.yaml
• Specify a different path: --config /path/to/file"
-h, --help Show help
-v, --verbose Verbose output
-q, --quiet Suppress output
-V, --version Show version
--json Machine-readable output
--no-color Disable colors
--dry-run Preview without executing
--force Skip confirmations
// Detect if running interactively
if isatty.IsTerminal(os.Stdout.Fd()) {
// Human-friendly output with colors
} else {
// Machine-friendly JSON/plain text
}
# Your TUI should work in pipelines
mytool list --json | jq '.[] | select(.status == "active")'
mytool process < input.txt > output.txt
Used by: Bubbletea, Ratatui
┌──────────────────────────────────────────┐
│ │
│ ┌─────────┐ ┌─────────┐ ┌──────┐ │
│ │ Model │───▶│ View │───▶│ UI │ │
│ └─────────┘ └─────────┘ └──────┘ │
│ ▲ │ │
│ │ ┌─────────┐ │ │
│ └─────────│ Update │◀───────┘ │
│ └─────────┘ │
│ (Messages) │
└──────────────────────────────────────────┘
Used by: Ink, Textual
┌──────────────────────────────────────────┐
│ App │
│ ├── Header │
│ ├── MainContent │
│ │ ├── Sidebar │
│ │ └── ContentArea │
│ │ ├── List │
│ │ └── Detail │
│ └── Footer │
└──────────────────────────────────────────┘
┌─ Select an option ────────────────────┐
│ │
│ ● Create new project │
│ ○ Open existing │
│ ○ Import from GitHub │
│ ○ Settings │
│ ○ Exit │
│ │
│ ↑/↓: Navigate Enter: Select q: Quit
└───────────────────────────────────────┘
┌─ New Project ─────────────────────────┐
│ │
│ Name: █my-awesome-app │
│ Template: [Next.js v14 ▼] │
│ Include tests: [✓] │
│ Git init: [✓] │
│ │
│ [Cancel] [Create Project] │
└───────────────────────────────────────┘
┌─ Installing dependencies ─────────────┐
│ │
│ ████████████████░░░░░░░░ 67% │
│ Installing: @types/react │
│ │
│ Elapsed: 12s Remaining: ~6s │
└───────────────────────────────────────┘
┌─ System Monitor ──────────────────────────────────┐
│ ┌─ Processes ──────────┐ ┌─ Resources ─────────┐ │
│ │ PID NAME CPU │ │ CPU ████████░░ 80% │ │
│ │ 1234 node 45% │ │ MEM ██████░░░░ 60% │ │
│ │ 5678 chrome 23% │ │ DISK █████░░░░░ 50% │ │
│ │ 9012 code 12% │ │ NET ██░░░░░░░░ 20% │ │
│ └──────────────────────┘ └─────────────────────┘ │
│ ┌─ Logs ───────────────────────────────────────┐ │
│ │ [INFO] Server started on port 3000 │ │
│ │ [WARN] Memory usage above 75% │ │
│ └──────────────────────────────────────────────┘ │
└───────────────────────────────────────────────────┘
┌─ Confirm ─────────────────────────────┐
│ │
│ ⚠️ Delete all files in /tmp? │
│ │
│ This action cannot be undone. │
│ │
│ [Cancel] [Delete] │
└───────────────────────────────────────┘
See: reference/bubbletea.md
package main
import (
"fmt"
tea "github.com/charmbracelet/bubbletea"
)
type model struct {
choices []string
cursor int
selected map[int]struct{}
}
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.String() {
case "q": return m, tea.Quit
case "up": if m.cursor > 0 { m.cursor-- }
case "down": if m.cursor < len(m.choices)-1 { m.cursor++ }
case "enter": m.selected[m.cursor] = struct{}{}
}
}
return m, nil
}
func (m model) View() string {
s := "Select items:\n\n"
for i, choice := range m.choices {
cursor := " "
if m.cursor == i { cursor = ">" }
checked := " "
if _, ok := m.selected[i]; ok { checked = "x" }
s += fmt.Sprintf("%s [%s] %s\n", cursor, checked, choice)
}
return s + "\nPress q to quit.\n"
}
func main() {
m := model{choices: []string{"Option 1", "Option 2", "Option 3"}, selected: make(map[int]struct{})}
tea.NewProgram(m).Run()
}
See: reference/ink.md
import React, { useState } from 'react';
import { render, Box, Text, useInput } from 'ink';
const App = () => {
const [selected, setSelected] = useState(0);
const items = ['Create project', 'Open existing', 'Settings', 'Exit'];
useInput((input, key) => {
if (key.upArrow) setSelected(s => Math.max(0, s - 1));
if (key.downArrow) setSelected(s => Math.min(items.length - 1, s + 1));
if (input === 'q') process.exit(0);
});
return (
<Box flexDirection="column" padding={1}>
<Text bold>Select an option:</Text>
{items.map((item, i) => (
<Text key={i} color={i === selected ? 'green' : 'white'}>
{i === selected ? '> ' : ' '}{item}
</Text>
))}
<Text dimColor>↑/↓: Navigate q: Quit</Text>
</Box>
);
};
render(<App />);
See: reference/textual.md
from textual.app import App, ComposeResult
from textual.widgets import Header, Footer, Static, Button
from textual.containers import Container
class MyApp(App):
CSS = """
Screen {
layout: vertical;
}
#main {
height: 1fr;
border: solid green;
}
"""
BINDINGS = [("q", "quit", "Quit")]
def compose(self) -> ComposeResult:
yield Header()
yield Container(
Static("Welcome to My TUI App!", id="welcome"),
Button("Get Started", id="start"),
id="main"
)
yield Footer()
def on_button_pressed(self, event: Button.Pressed) -> None:
if event.button.id == "start":
self.notify("Let's go!")
if __name__ == "__main__":
MyApp().run()
See: reference/ratatui.md
use ratatui::{
backend::CrosstermBackend,
widgets::{Block, Borders, Paragraph},
Terminal,
};
use crossterm::{
event::{self, Event, KeyCode},
terminal::{disable_raw_mode, enable_raw_mode},
};
fn main() -> Result<(), Box<dyn std::error::Error>> {
enable_raw_mode()?;
let mut terminal = Terminal::new(CrosstermBackend::new(std::io::stdout()))?;
loop {
terminal.draw(|frame| {
let block = Block::default()
.title("My TUI")
.borders(Borders::ALL);
let paragraph = Paragraph::new("Press 'q' to quit")
.block(block);
frame.render_widget(paragraph, frame.area());
})?;
if let Event::Key(key) = event::read()? {
if key.code == KeyCode::Char('q') { break; }
}
}
disable_raw_mode()?;
Ok(())
}
When starting a new TUI project, create this structure:
my-tui/
├── main.go # Entry point
├── model.go # App state
├── update.go # Message handlers
├── view.go # UI rendering
├── commands.go # Side effects (API calls, file IO)
├── styles.go # Lipgloss styles
└── go.mod
my-tui/
├── src/
│ ├── index.tsx # Entry point
│ ├── App.tsx # Main component
│ ├── components/ # UI components
│ │ ├── Menu.tsx
│ │ ├── Form.tsx
│ │ └── Progress.tsx
│ └── hooks/ # Custom hooks
├── package.json
└── tsconfig.json
my-tui/
├── src/
│ ├── __main__.py # Entry point
│ ├── app.py # Main app class
│ ├── screens/ # Different screens
│ │ ├── main.py
│ │ └── settings.py
│ ├── widgets/ # Custom widgets
│ └── styles.tcss # Textual CSS
├── pyproject.toml
└── tests/
my-tui/
├── src/
│ ├── main.rs # Entry point
│ ├── app.rs # App state
│ ├── ui.rs # UI rendering
│ ├── event.rs # Event handling
│ └── widgets/ # Custom widgets
├── Cargo.toml
└── tests/
import { render } from 'ink-testing-library';
import App from './App';
test('renders menu correctly', () => {
const { lastFrame } = render(<App />);
expect(lastFrame()).toMatchSnapshot();
});
async def test_app():
app = MyApp()
async with app.run_test() as pilot:
await pilot.click("#start-button")
assert app.query_one("#status").renderable == "Started"
func TestModel(t *testing.T) {
m := initialModel()
m, _ = m.Update(tea.KeyMsg{Type: tea.KeyDown})
if m.cursor != 1 {
t.Errorf("expected cursor 1, got %d", m.cursor)
}
}
.tcss filesREDUCE_MOTION preference# Go
go build -o mytui .
# Rust
cargo build --release
# Node (with pkg)
npx pkg . -o mytui
# Python (with PyInstaller)
pyinstaller --onefile src/__main__.py
data-ai
Optimize YouTube videos for SEO, thumbnails, descriptions, and audience retention
testing
Design and facilitate effective workshops with agendas, activities, and outcomes
data-ai
Design and optimize AI-powered workflows for complex tasks
data-ai
Design and implement automated workflows to eliminate repetitive tasks and streamline processes