Charm TUI
Charm TUI guides an agent building Go terminal interfaces with Bubble Tea v2, Bubbles v2, Lip Gloss v2, and Bubblebook. It teaches one architecture: a root coordinates the application, components own their local behavior, and thin story adapters expose the same components in the catalogue.
The skill covers input and focus ownership, asynchronous work, terminal geometry, semantic styles, deterministic tests, and isolated component development. It respects the existing project's scope and does not automatically migrate a v1 application.
Install with npx skills
Install the skill into the current project:
npx skills add meza/skills --skill charm-tuiInstall it globally for Codex:
npx skills add meza/skills --skill charm-tui --agent codex --globalInstall it globally for Claude Code:
npx skills add meza/skills --skill charm-tui --agent claude-code --globalAfter installation, ask your agent to build, refactor, or review a Charm interface. For example:
Build a searchable results component with loading and error states, tests,
and Bubblebook stories for my Charm v2 application.Bubblebook stories
Use meza/bubblebook, the native Bubble Tea v2 catalogue, to inspect fresh instances of the same components used by the application. Stories share controlled fixture inputs with component tests.
The story reference explains fixture ownership, the preview lifecycle, and verification. The agent's complete instructions are in SKILL.md.
Worked guidance
The skill pairs its architectural rules with practical references:
| Reference | What you can learn and apply |
|---|---|
| Component design | Contracts and comparisons, with task routes to the complete Results example, input routing, effects and ordering, and lifecycle/Bubbles lessons |
| Layout and style | Calculate outer and content sizes; inject semantic styles; handle ANSI and Unicode; position a real cursor through nested geometry |
| Testing | Select the applicable layers, then read the component, effects/time, rendering/golden, parent-routing, or runtime test guide |
| Bubblebook stories | Share fixtures, build a thin story adapter, register fresh factories, inspect edge states, and preserve preview lifecycle behavior |
| Performance and debugging | Select CI/delivery, rendering performance, terminal debugging, or recording guidance for the current task |
| Library support | Maintain a published component library's versioned Go and dependency support contract |
Start with component design and follow the references for the task at hand. The tables explain the selected approach; the diagrams and code show how its parts connect. All examples use the same root-and-components architecture. The task routers require every guide applicable to the work; related examples retain explicit prerequisite links. Each lesson keeps its code, assumptions, and verification guidance together.
Repository changes follow the contribution guide.