Expert TUI development in Go with Charm libraries (Bubble Tea, Lip Gloss, Bubbles), bloom for layout, layers, mouse, focus, and animation, and steep/reel for testing, recording, and driving terminal programs. Always use when building, testing, or debugging terminal user interfaces, TUI components, layouts, styling, theming, or the Elm Architecture in Go.
Ships in lrstanley. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Expert Go TUI developer specializing in the Charm ecosystem (Bubble Tea, Lip Gloss, Bubbles) and supporting libraries (bloom, steep, bubbletint, chroma, go-nf). Builds production-grade terminal applications following the Elm Architecture with proper theming, composition, and terminal compatibility.
Default library choices:
github.com/lrstanley/bloom). Describe the screen as a node tree instead of
hand-computing widths, joining strings, compositing overlays, or hit testing by X/Y.github.com/lrstanley/steep) for model, component, and exec
(any binary) tests, snapshots, and failure recordings. Not teatest or go-snaps.reel session (reel CLI, from the steep repo) to run,
observe, and verify terminal programs that have no steep tests, such as third-party
libraries being fixed or extended.bloom and steep are pre-1.0 and evolve quickly. Their reference files here are maps;
read the linked llms.txt docs for current APIs before writing code.
For TUI UX and layout guidance, tui-design (hyperskills) is a recommended companion skill.
reel session rather than guessing from codeLoad detailed guidance based on context:
| Topic | Reference | Load When |
|---|---|---|
| Bubble Tea v2 | references/libraries/bubbletea-v2.md | Always load when implementing or debugging tea.Program, tea.Model, Init / Update / View, tea.Cmd / tea.Msg, built-in messages and commands, async I/O, or key/mouse handling |
| Bubble Tea Examples | references/libraries/bubbletea-v2-examples.md | Use when mapping a feature to an official Bubble Tea example, upstream example pattern, or sample app |
| Lip Gloss v2 | references/libraries/lipgloss-v2.md | Always load when changing layout math inside styled regions, or when using colors, borders, padding, joins, placement, tables, lists, trees, or the compositor |
| Bubbles v2 | references/libraries/bubbles-v2.md | Always load when integrating or troubleshooting Bubbles components such as spinner, textinput, textarea, list, table, tree, viewport, progress, help, paginator, or filepicker |
| Layout & Motion (bloom) | references/libraries/bloom.md | Always load when building or changing screen layout, panes, sizing, responsive collapse, scrolling, dialogs/modals, dropdowns, toasts, mouse handling, focus, animations, transitions, or effects |
| Testing & Driving TUIs (steep, reel) | references/libraries/steep.md | Always load when writing or fixing TUI tests, snapshots, golden files, recordings, demo tapes, migrating from teatest / go-snaps, or when an agent needs to run and observe a terminal program (reel session) |
| Chroma | references/libraries/chroma-v2.md | Use when adding syntax highlighting, terminal formatters, chroma styles, or chromatint integration |
| Bubbletint | references/libraries/bubbletint-v2.md | Load before building theme registries, tint switching, dynamic theme updates, or theme-aware Chroma output via chromatint |
| Nerd Fonts | references/libraries/go-nf.md | Always load when rendering Nerd Font icons or glyphs in user-visible UI so fallback and detection behavior stay correct |
| Notifications | references/libraries/beeep.md | Always load when integrating desktop notifications, alerts, or beeps from Bubble Tea, especially with focus-aware delivery |
| Project Structure | references/project-structure.md | Use when scaffolding a new app or reorganizing main.go, cmd/, internal/, pages/components, or Taskfile-based workflows |
| Elm Architecture | references/elm-architecture.md | Always load when deciding whether work belongs in Update, a tea.Cmd, or a child model, especially for blocking vs non-blocking behavior |
| Model & Update | references/model-update.md | Always load when designing or refactoring models, Init, Update, WindowSizeMsg, command batching, state machines, or sub-component propagation |
| View & Styling | references/view-styling.md | Always load when implementing or debugging View, per-region width budgets, full-bleed vs inset layout, truncation, border/frame accounting, or adaptive colors |
| Child Model Composition | references/child-model-composition.md | Load before adopting a Component / Page interface, focus routing, dialog overlays, drill-down stacks, or bubbles-backed child models |
| External processes | references/exec-external.md | Load before suspending the TUI for tea.ExecProcess, pagers, editors, *exec.Cmd, or x/editor helpers |
| Keymaps | references/keymaps.md | Always load when adding or refactoring centralized key bindings, key groups, key.Matches, or help integration |
| Terminal Standards | references/terminal-standards.md | Always load when adding terminal integration (window title, terminal progress bar, program status, focus, clipboard, hyperlinks, working directory, notifications), handling color-profile or background messages, alt screen, bracketed paste, Kitty keyboard enhancements, OSC behavior, or reduced-color testing; raster protocols are summarized with a link to references/images.md |
| Terminal images | references/images.md | Load before choosing or implementing Sixel, Kitty, iTerm2 OSC 1337, mosaic unicode, x/ansi encoders, or image snapshot strategies |
| Performance | references/performance.md | Always load when optimizing View hot paths, ANSI-aware width or truncation, allocations, visible-window rendering, strings.Builder usage, or FPS tuning |
| Clipboard | references/clipboard.md | Load before implementing clipboard copy/read flows, OSC 52 fallback, native clipboard support, or a dual-write strategy |
| Configuration | references/configuration.md | Load before choosing config/cache paths, file permissions, validation, migration, or os.UserConfigDir / XDG conventions |
| Troubleshooting | references/troubleshooting.md | Use when debugging blank screens, freezes, color issues, focus/logging problems, reproducing what a TUI draws, demo recording, or pprof-based investigation |
Minimal Bubble Tea v2 fullscreen application, laid out with bloom:
package main
import (
"fmt"
"os"
tea "charm.land/bubbletea/v2"
"charm.land/lipgloss/v2"
"github.com/lrstanley/bloom"
)
var panel = lipgloss.NewStyle().Border(lipgloss.RoundedBorder()).Padding(0, 1)
type model struct {
ui *bloom.Root
width, height int
count int
}
func (m *model) Init() tea.Cmd { return m.ui.Init() }
func (m *model) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
cmd := m.ui.Update(msg) // pass every message to the root
switch msg := msg.(type) {
case tea.WindowSizeMsg:
m.width, m.height = msg.Width, msg.Height
case tea.KeyPressMsg:
switch msg.String() {
case "q", "ctrl+c":
return m, tea.Quit
case "up", "k":
m.count++
case "down", "j":
m.count--
}
}
return m, cmd
}
func (m *model) layout() bloom.Child {
return bloom.Column(
bloom.Fill(bloom.Box(panel, bloom.Centered(bloom.Text(fmt.Sprintf("Count: %d", m.count))))),
bloom.Text("up/down: change -- q: quit"),
)
}
func (m *model) View() tea.View {
v := m.ui.View(m.width, m.height, m.layout())
v.AltScreen = true
v.WindowTitle = "My App"
return v
}
func main() {
if _, err := tea.NewProgram(&model{ui: bloom.New()}).Run(); err != nil {
fmt.Fprintln(os.Stderr, err)
os.Exit(1)
}
}
tea.WindowSizeMsg in every application (sent on startup and resize)tea.ColorProfileMsg and tea.BackgroundColorMsg for theme/color detectionstrings.Builder in View to avoid allocationsansi.StringWidth or lipgloss.Width instead of len() for calculating string widthkey.Matches with centralized (or per-component) key bindings instead of raw string
comparisontea.Cmd functionsRender(...) string functions. Internal
components should return bloom nodes via bloom.Layouter rather than flattening to a
View() string (which still works as-is for Bubbles and simple leaf widgets)references/libraries/bloom.md)reel session when
working on programs without steep tests (see references/libraries/steep.md)<style>.GetVerticalBorderSize() / GetVerticalFrameSize())m.width - N for full-bleed chrome
and inset form content unless the same outer padding applies; use GetHorizontalFrameSize()
when truncating text inside a bordered/padded block (see references/view-styling.md)references/terminal-standards.md)Update() (no I/O, no time.Sleep, no blocking channel reads)fmt.Println (stdout is owned by the TUI renderer; use tea.Println or log/slog)View() (define at package level or in Update)len() on strings that will be rendered/displayedtea.WindowSizeMsg in Update), and prefer using
GetHorizontalFrameSize() / GetVerticalFrameSize() (or similar) functions on the style you render
with, rather than hardcoding 2, 4, etc for borders and padding. references:
references/view-styling.mdreferences/libraries/lipgloss-v2.mdteatest, x/exp/golden, go-snaps, or bubblezone to Bubble Tea v2 code when steep
or bloom covers the needtime.Sleep to wait for a TUI in tests or reel session; wait on screen contentBubble Tea v2, Lip Gloss v2, Bubbles v2, Elm Architecture, tea.Model, tea.Cmd, tea.Msg, tea.View, tea.Program, tea.NewView, tea.KeyPressMsg, tea.WindowSizeMsg, tea.ColorProfileMsg, tea.BackgroundColorMsg, bubbletint, tint registry, chroma, chromatint, go-nf, Nerd Fonts, beeep, x/ansi, x/editor, bloom, bloom.Root, bloom.Solve, bloom.Render, bloom/anim, bloom/fx, bloom/on, slots, layers, overlays, dialogs, toasts, transitions, layout animation, steep, NewHarness, NewComponentHarness, NewExecHarness, reel, reel CLI, reel session, VHS tapes, asciicast, x/exp/teatest, x/exp/golden, go-snaps, lipgloss.JoinHorizontal, lipgloss.JoinVertical, lipgloss.Place, lipgloss.Darken, lipgloss.Lighten, lipgloss.LightDark, weight-based layout, compositor, spinner, textinput, textarea, list, table, tree, viewport, paginator, progress, help, filepicker, key.Binding, key.Matches, OSC 52, clipboard, colorprofile, alt screen, bracketed paste, PasteMsg, KeyboardEnhancements, KeyReleaseMsg, OSC 9 progress, view.ProgressBar, snapshot testing, golden files.
references/child-model-composition.md (opens in a new tab)references/clipboard.md (opens in a new tab)references/configuration.md (opens in a new tab)references/elm-architecture.md (opens in a new tab)references/exec-external.md (opens in a new tab)references/images.md (opens in a new tab)references/keymaps.md (opens in a new tab)references/libraries/beeep.md (opens in a new tab)references/libraries/bloom.md (opens in a new tab)references/libraries/bubbles-v2.md (opens in a new tab)references/libraries/bubbletea-v2-examples.md (opens in a new tab)references/libraries/bubbletea-v2.md (opens in a new tab)references/libraries/bubbletint-v2.md (opens in a new tab)references/libraries/chroma-v2.md (opens in a new tab)references/libraries/go-nf.md (opens in a new tab)references/libraries/lipgloss-v2.md (opens in a new tab)references/libraries/steep.md (opens in a new tab)references/model-update.md (opens in a new tab)references/performance.md (opens in a new tab)references/project-structure.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
/lrstanley:golang-tuifrom lrstanley
npx claudepluginhub lrstanley/skills --plugin lrstanley25 skills in this plugin
/apply-worktreeLand the current git worktree's commits onto the main worktree's default branch, verify, and clean up. Use for /apply-worktree./babysit-prWatch a pull request through CI and review bots, fix real findings, and keep it rebased until it is ready. Use for /babysit-pr./documentation-writerCreates high-quality technical documentation using the Diataxis framework. Use when writing tutorials, how-to guides, reference material, or explanations for software projects./file-prFile a concise pull request that leads with the problem, not an inventory of changes. Use for /file-pr./frontend-designGuidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making choices that don't read as templated defaults./golangExpert Go developer. Use when building Go applications, designing interfaces, writing tests, profiling, working with goroutines, HTTP servers/clients, error handling, tracing, CLI tools, generics, caching, writing Go documentation, structured logging, and more.