bubbletea

bubbletea is a skill for Claude Code, Codex from vinsonconsulting/claude-skill-foundry. It costs 253 tokens per session (4,379 once invoked), scanned A, original, Apache-2.0.

A guide for building terminal user interfaces in Go with Bubble Tea and related Charm libraries. A terminal user interface is an interactive application that runs in a command-line window.

In plain words
What is it for?
Use it to build or update Go terminal interfaces with forms, lists, tables, text fields, progress indicators, spinners, markdown, keyboard and mouse input, and tests.
Why use it?
It helps keep the code compatible with the specified Bubble Tea version and provides the correct patterns for handling events, state, layout, styling, components, streaming, and tests.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/vinsonconsulting/claude-skill-foundry/bubbletea
Any agent
npx skills add vinsonconsulting/claude-skill-foundry --skill bubbletea
Clone the repo
git clone --depth 1 https://github.com/vinsonconsulting/claude-skill-foundry

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for bubbletea

README.md
[![agentmods](https://agentmods.dev/badge/skills/vinsonconsulting/claude-skill-foundry/bubbletea.svg)](https://agentmods.dev/skills/vinsonconsulting/claude-skill-foundry/bubbletea)
Your own site
<a href="https://agentmods.dev/skills/vinsonconsulting/claude-skill-foundry/bubbletea"><img src="https://agentmods.dev/badge/skills/vinsonconsulting/claude-skill-foundry/bubbletea.svg" alt="Measured on agentmods" height="20"></a>
Per session 253 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,379 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00253 $0.04379
Opus 5 $0.00127 $0.02190
Sonnet 5 $0.00051 $0.00876
Haiku 4.5 $0.00025 $0.00438

Measured 6d ago against content hash 5e2cb7436f53, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

bubbletea scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 6d ago.

The scan reads SKILL.md. This mod also ships 2 executable files (evals/functional/graders.py, evals/functional/run_grader.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/tui/bubbletea/SKILL.md · 360 lines

How it starts

The opening of the file, as written. The whole thing — 360 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Bubble Tea

Write current, compiling Bubble Tea v2 code (pinned to v2.0.x on the charm.land/*/v2 import paths) and refuse the v1/beta patterns the model remembers from training. The body is the load-bearing 20%: the Elm mental model and one verified example per concept. Everything enumerable — the full Bubbles catalog, the key/mouse taxonomy, styling, streaming, testing, migration — lives in references/. Open the matching reference before writing nontrivial code in that area.

Imports — the whole stack is on charm.land

Every Charm framework package lives on charm.land/*/v2. The most common v2 mistake is importing lipgloss or bubbles from the old github.com/charmbracelet/… path while using charm.land bubbletea — that pulls two incompatible trees into one build and fails to compile. Use these paths; only the x/* helpers stay on github.com:

import (
	tea "charm.land/bubbletea/v2"
	"charm.land/lipgloss/v2"           // NOT github.com/charmbracelet/lipgloss
	"charm.land/bubbles/v2/viewport"   // list, table, textinput, textarea, spinner, … under bubbles/v2/<c>
	"charm.land/glamour/v2"
	"github.com/charmbracelet/x/ansi"  // width/wrap helpers — these have no charm.land alias
)

Mental model — The Elm Architecture is the whole framework

Bubble Tea is not a widget toolkit you poke at; it is one mandatory loop. You give the runtime a Model (your immutable state) and three methods, and it owns everything else:

  • Init returns an optional first Cmd.
  • Update receives a Msg, returns a (possibly changed) Model and an optional Cmd.
  • View renders the Model to a tea.View.

The runtime calls Update for every message, then View, and paints the result. This is MVU (Model-View-Update). The entire discipline follows from it:

  • Mutate state only inside Update. Never from View, from a Cmd body, or from a goroutine. Update is the single writer; everything else races the render loop.
  • Never block in Update. It runs on the render path. Do I/O — network, disk, subprocess, a timer — inside a Cmd, which the runtime runs in its own goroutine and whose result comes back as a Msg.
  • Models flow by value. Update takes the Model by value, mutates the local copy, and returns it. Bubbles (sub-components) work the same way — you reassign what their Update returns.

Read the full file on GitHub · 360 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 6d ago First seen · 360 lines · 253 tokens per session scan A 5e2cb7436f53

Subscribe to this mod's changes

bubbletea is a skill published in the GitHub repository vinsonconsulting/claude-skill-foundry (1 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 253 tokens to every session and 4,379 once invoked, about $0.0013 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.