Building Glamorous Tuis logo

Building Glamorous Tuis

Community
Dicklesworthstone
building-glamorous-tuis

Build terminal UIs with Charmbracelet (Bubble Tea, Lip Gloss, Gum). Use when: Go TUI, shell prompts/spinners, "make CLI prettier", adaptive layouts, async rendering, focus state machines, sparklines, heatmaps, kanban boards, SSH apps.

Overview

PublisherDicklesworthstone
Repositorymeta_skill
Skill namebuilding-glamorous-tuis
Stars
196
Forks
38
Bundled files
8
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 8 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by Dicklesworthstone on GitHub. Read the source before you install it.

Installation

Install the Building Glamorous Tuis AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/Dicklesworthstone/meta_skill.git /tmp/meta_skill
mkdir -p .claude/skills
cp -r /tmp/meta_skill/skills/building-glamorous-tuis .claude/skills/building-glamorous-tuis
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Building Glamorous Tuis in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Building Glamorous Tuis on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Building Glamorous Tuis is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Building Glamorous TUIs with Charmbracelet

Quick Router — Start Here

I need to...UseReference
Add prompts/spinners to a shell scriptGum (no Go)Shell Scripts
Build a Go TUIBubble Tea + Lip GlossGo TUI
Build a production-grade Go TUIAbove + elite patternsProduction Architecture
Serve a TUI over SSHWish + Bubble TeaInfrastructure
Record a terminal demoVHSShell Scripts
Find a Bubbles componentlist, table, viewport, spinner, progress...Component Catalog
Get a copy-paste patternLayouts, forms, animation, testingQuick Reference / Advanced Patterns

Decision Guide

Is it a shell script?
├─ Yes → Use Gum
│        Need recording? → VHS
│        Need AI? → Mods
└─ No (Go application)
   ├─ Just styled output? → Lip Gloss only
   ├─ Simple prompts/forms? → Huh standalone
   ├─ Full interactive TUI? → Bubble Tea + Bubbles + Lip Gloss
   │  │
   │  └─ Production-grade?  → Also add elite patterns:
   │     (multi-view, data-    two-phase async, immutable snapshots,
   │      dense, must be       adaptive layout, focus state machine,
   │      fast & polished)     semantic theming, pre-computed styles
   │                           → See Production Architecture reference
   └─ Need SSH access? → Wish + Bubble Tea

Shell Scripts (No Go Required)

bash
brew install gum  # One-time install
bash
# Input
NAME=$(gum input --placeholder "Your name")

# Selection
COLOR=$(gum choose "red" "green" "blue")

# Fuzzy filter from stdin
BRANCH=$(git branch | gum filter)

# Confirmation
gum confirm "Continue?" && echo "yes"

# Spinner
gum spin --title "Working..." -- long-command

# Styled output
gum style --border rounded --padding "1 2" "Hello"

Full Gum Reference → VHS Recording → Mods AI →


Go Applications

bash
go get github.com/charmbracelet/bubbletea github.com/charmbracelet/lipgloss

Minimal TUI (Copy & Run)

go
package main

import (
    "fmt"
    tea "github.com/charmbracelet/bubbletea"
    "github.com/charmbracelet/lipgloss"
)

var highlight = lipgloss.NewStyle().Foreground(lipgloss.Color("212")).Bold(true)

type model struct {
    items  []string
    cursor int
}

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", "ctrl+c":
            return m, tea.Quit
        case "up", "k":
            if m.cursor > 0 { m.cursor-- }
        case "down", "j":
            if m.cursor < len(m.items)-1 { m.cursor++ }
        case "enter":
            fmt.Printf("Selected: %s\n", m.items[m.cursor])
            return m, tea.Quit
        }
    }
    return m, nil
}

func (m model) View() string {
    s := ""
    for i, item := range m.items {
        if i == m.cursor {
            s += highlight.Render("▸ "+item) + "\n"
        } else {
            s += "  " + item + "\n"
        }
    }
    return s + "\n(↑/↓ move, enter select, q quit)"
}

func main() {
    m := model{items: []string{"Option A", "Option B", "Option C"}}
    tea.NewProgram(m).Run()
}

Library Cheat Sheet

NeedLibraryExample
TUI frameworkbubbleteatea.NewProgram(model).Run()
Componentsbubbleslist.New(), textinput.New()
Stylinglipglossstyle.Foreground(lipgloss.Color("212"))
Formshuhhuh.NewInput().Title("Name").Run()
Markdownglamourglamour.Render(md, "dark")
Animationharmonicaharmonica.NewSpring()

Full Go TUI Guide → All Bubbles Components → Layout & Animation Patterns →


SSH Apps (Infrastructure)

go
s, _ := wish.NewServer(
    wish.WithAddress(":2222"),
    wish.WithHostKeyPath(".ssh/key"),
    wish.WithMiddleware(
        bubbletea.Middleware(handler),
        logging.Middleware(),
    ),
)
s.ListenAndServe()

Connect: ssh localhost -p 2222

Full Infrastructure Guide →


Production TUI Architecture (Elite Patterns)

Beyond basic Bubble Tea: patterns that make TUIs feel fast, polished, and professional. Each links to a full code example in Production Architecture.

My TUI is slow or janky

SymptomPatternFix
UI blocks during computationTwo-Phase AsyncPhase 1 instant, Phase 2 background goroutine
Render path holds mutexImmutable SnapshotsPre-build snapshot, atomic pointer swap
File changes cause stutterBackground WorkerDebounced watcher + coalescing
Thousands of allocs per framePre-Computed StylesAllocate delegate styles once at startup
O(n²) string concat in View()strings.BuilderPre-allocated Builder with Grow()
Glamour re-renders every frameCached MarkdownCache by content hash, invalidate on width change
GC pauses during interactionIdle-Time GCTrigger GC during idle periods
Large dataset = high memoryObject Poolingsync.Pool with pre-allocated slices
Rendering off-screen itemsViewport VirtualizationOnly render visible rows

My layout breaks on different terminals

SymptomPatternFix
Hardcoded widths breakAdaptive Layout3-4 responsive breakpoints (80/100/140/180 cols)
Colors wrong on light terminalsSemantic Theminglipgloss.AdaptiveColor + WCAG AA contrast
Items have equal priority → list shufflesDeterministic SortingStable sort with tie-breaking secondary key
Sort mode not visibleDynamic Status BarLeft/right segments with gap-fill

My TUI has multiple views and it's getting messy

SymptomPatternFix
Key routing chaosFocus State MachineExplicit focus enum + modal priority layer
User gets lost in nested viewsBreadcrumb NavigationHome > Board > Priority path indicator
Overlay dismiss loses positionFocus RestorationSave focus before overlay, restore on dismiss
Old async results overwrite new dataStale Message DetectionCompare data hash before applying results
Multiple component updates per frametea.Batch AccumulationCollect cmds in slice, return tea.Batch(cmds...)
Background goroutine panic kills TUIError Recoverydefer/recover wrapper for all goroutines

I want to add data-rich visualizations

WantPatternCode
Bar charts in list columnsUnicode Sparklines▇▅▂ using 8-level block characters
Color-by-intensityPerceptual Heatmapsgray → blue → purple → pink gradient
Dependency graph in terminalASCII Graph RendererCanvas + Manhattan routing (╭─╮│╰╯)
Age at a glanceAge Color CodingFresh=green, aging=yellow, stale=red
Borders that mean somethingSemantic BordersRed=blocked, green=ready, yellow=high-impact

I want my TUI to feel polished and professional

WantPatternKey Idea
Vim-style gg/GVim Key CombosTrack waitingForG state between keystrokes
Search without jankDebounced Search150ms timer, fire only when typing stops
Search across all fields at onceComposite FilterValueFlatten all fields into one string
4-line cards with metadataRich DelegatesCustom delegate with Height()=4
Expand detail inlineInline ExpansionToggle with d, auto-collapse on j/k
Copy to clipboardClipboard Integrationy for ID, C for markdown + toast feedback
? / ` / ; helpMulti-Tier HelpQuick ref + tutorial + persistent sidebar
Kanban with mode switchingKanban SwimlanesPre-computed board states, O(1) switch
Collapsible tree with h/lTree NavigationFlatten tree to visible list for j/k nav
Suspend TUI for vim editEditor Dispatchtea.ExecProcess for terminal, background for GUI
Remember expand/collapsePersistent StateSave to JSON, graceful degradation on corrupt
Tune via env varsEnv PreferencesNO_COLOR, theme, debounce, split ratio
Optional feature missing?Graceful DegradationDetect at startup, hide unavailable features

Full Production Architecture Guide →


Pre-Flight Checklist (Every TUI)

  • Handle tea.WindowSizeMsg — resize all components
  • Handle ctrl+c — cleanup, restore terminal state
  • Detect piped stdin/stdout — fall back to plain text
  • Test on 80×24 minimum terminal
  • Provide --no-tui / NO_TUI escape hatch
  • Test with both light AND dark backgrounds
  • Test with NO_COLOR=1 and TERM=dumb

For production TUIs, see the full checklist (16 must-have + 20 polish items).


When NOT to Use Charm

  • Output is piped: mytool | grep → plain text
  • CI/CD: No terminal → use flags/env vars
  • One simple prompt: Maybe fmt.Scanf is fine

Escape hatch:

go
if !term.IsTerminal(os.Stdin.Fd()) || os.Getenv("NO_TUI") != "" {
    runPlainMode()
    return
}

All References

I need...Read this
Copy-paste one-linersQuick Reference
Prompts to give Claude for TUI tasksPrompts
Gum / VHS / Mods / Freeze / GlowShell Scripts
Bubble Tea architecture, debugging, anti-patternsGo TUI
Bubbles component APIs (list, table, viewport...)Component Catalog
Theming, layouts, animation, Huh forms, testingAdvanced Patterns
Elite patterns: async, snapshots, focus machines, adaptive layout, sparklines, kanban, trees, cachingProduction Architecture
Wish SSH server, Soft Serve, teatestInfrastructure

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Building Glamorous Tuis AI skill do?

Build terminal UIs with Charmbracelet (Bubble Tea, Lip Gloss, Gum). Use when: Go TUI, shell prompts/spinners, "make CLI prettier", adaptive layouts, async rendering, focus state machines, sparklines, heatmaps, kanban boards, SSH apps.

Why use Building Glamorous Tuis on TypingMind?

Because you install it once and use it with any model. Building Glamorous Tuis is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Building Glamorous Tuis in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/Dicklesworthstone/meta_skill/tree/main/skills/building-glamorous-tuis. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Building Glamorous Tuis?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Building Glamorous Tuis?

As many as you like. As long as a model supports skills, you can use Building Glamorous Tuis with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Building Glamorous Tuis AI skill free?

It is published on GitHub by Dicklesworthstone. Check the repository for licensing terms. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇