gentleman-bubbletea

gentleman-bubbletea is a skill for Claude Code, Codex from Gentleman-Programming/Gentleman.Dots. It costs 42 tokens per session (1,448 once invoked), scanned A, a copy of gentleman-bubbletea, Apache-2.0.

A set of patterns for building Bubble Tea terminal interfaces, text-based programs operated from a command line, in the Gentleman.Dots installer.

In plain words
What is it for?
Use it when adding installer screens, handling keyboard input, creating Lipgloss interface components, or managing screen transitions in Go files under installer/internal/tui/.
Why use it?
It keeps screens, keyboard handling, navigation, and application state organized as the installer grows.

Skill for Claude CodeCodex

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

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is cd installer && go build ./cmd/gentleman-installer # Build installer.

Good fit Use it when adding installer screens, handling keyboard input, creating Lipgloss interface components, or managing screen transitions in Go files under installer/internal/tui/.

Compare 6 skills from other repositories ↓
About the project

Gentleman.Dots is a personal development-environment configuration for Neovim, shells, terminal multiplexers, terminal emulators, and related command-line tools. Developers use it to install and configure a consistent coding setup, with an AI development layer managed separately through gentle-ai. The catalogue skills and instruction belong to that configured AI workflow.

Gentleman-Programming/Gentleman.Dots · 2,148 stars · on GitHub

Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/Gentleman-Programming/Gentleman.Dots
agentmods
npx agentmods add skills/gentleman-programming/gentleman.dots/gentleman-bubbletea

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 gentleman-bubbletea

README.md
[![agentmods](https://agentmods.dev/badge/skills/gentleman-programming/gentleman.dots/gentleman-bubbletea/github.svg)](https://agentmods.dev/skills/gentleman-programming/gentleman.dots/gentleman-bubbletea)
Your own site
<a href="https://agentmods.dev/skills/gentleman-programming/gentleman.dots/gentleman-bubbletea"><img src="https://agentmods.dev/badge/skills/gentleman-programming/gentleman.dots/gentleman-bubbletea/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for gentleman-bubbletea

Your own site · 80×15
<a href="https://agentmods.dev/skills/gentleman-programming/gentleman.dots/gentleman-bubbletea"><img src="https://agentmods.dev/badge/skills/gentleman-programming/gentleman.dots/gentleman-bubbletea.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 42 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,448 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin 100% copy Near-identical to another mod 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.00042 $0.01448
Opus 5.5 $0.00017 $0.00579
Sonnet 5.5 $0.00008 $0.00290
Haiku 4.5 $0.00004 $0.00145

Measured 3mo ago against content hash 93c836b6a941, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

gentleman-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 3mo ago.

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.

Origin

This is a copy

100% identical to gentleman-bubbletea — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

skills/gentleman-bubbletea/SKILL.md · 250 lines

How it starts

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

When to Use

Use this skill when:

  • Adding new screens to the TUI installer
  • Handling keyboard input or navigation
  • Creating new UI components with Lipgloss
  • Working on screen transitions or state management

Critical Patterns

Pattern 1: Screen Constants in model.go

All screens MUST be defined as Screen constants in model.go:

type Screen int

const (
    ScreenWelcome Screen = iota
    ScreenMainMenu
    ScreenOSSelect
    // ... new screens go here
    ScreenNewFeature      // Add new screen
    ScreenNewFeatureCat   // Add category screen if needed
)

Pattern 2: Model Struct Holds All State

The Model struct in model.go holds ALL application state:

type Model struct {
    Screen      Screen
    PrevScreen  Screen      // For back navigation
    Width       int
    Height      int
    Cursor      int
    // Add new state here
    NewFeatureData    []SomeType
    NewFeatureScroll  int
}

Pattern 3: Update Pattern with Type Switch

All input handling goes through Update() with a type switch:

func (m Model) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
    switch msg := msg.(type) {
    case tea.KeyMsg:
        return m.handleKeyPress(msg)
    case tea.WindowSizeMsg:
        m.Width = msg.Width
        m.Height = msg.Height
        return m, nil
    case customMsg:
        // Handle custom messages
        return m, nil
    }
    return m, nil
}

Pattern 4: Key Handlers Return (Model, Cmd)

Separate handler per screen, always return (tea.Model, tea.Cmd):

func (m Model) handleNewFeatureKeys(key string) (tea.Model, tea.Cmd) {
    options := m.GetCurrentOptions()

    switch key {
    case "up", "k":
        if m.Cursor > 0 {
            m.Cursor--
            // Skip separator
            if strings.HasPrefix(options[m.Cursor], "───") && m.Cursor > 0 {
                m.Cursor--
            }
        }
    case "down", "j":
        if m.Cursor < len(options)-1 {
            m.Cursor++
            if strings.HasPrefix(options[m.Cursor], "───") && m.Cursor < len(options)-1 {
                m.Cursor++
            }
        }
    case "enter", " ":
        // Handle selection
        return m.handleNewFeatureSelection()
    case "esc":
        m.Screen = m.PrevScreen
        m.Cursor = 0
    }
    return m, nil
}

Read the full file on GitHub · 250 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. 3mo ago First seen · 250 lines · 42 tokens per session scan A 93c836b6a941

Subscribe to this mod's changes

gentleman-bubbletea is a skill published in the GitHub repository Gentleman-Programming/Gentleman.Dots (2,148 stars, last pushed 20d ago), licensed Apache-2.0. It adds 42 tokens to every session and 1,448 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 100% identical to gentleman-bubbletea, differing in 0 lines, and is treated as a copy.

Related

gentleman-bubbletea compared with skills from other repositories

gentleman-bubbletea next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
gentleman-bubbleteaGentleman-Programming/Gentleman.DotsSkill2.1k20d agoApache-2.0A42Claude Code, Codex
golang-testingaffaan-m/ECCSkill313k7d agoMITA37Claude Code, Kiro
golang-patternsaffaan-m/ECCSkill313k7d agoMITA45Claude Code, Kiro
ax-go-agent-optimizeax-llm/axSkill3.0ktodayApache-2.0A51Claude Code, Codex
golang-testingsamber/cc-skills-golangSkill4.0k21d agoMITA115Claude Code
golang-samber-oopssamber/cc-skills-golangSkill4.0k21d agoMITA74Claude Code
golang-uber-fxsamber/cc-skills-golangSkill4.0k21d agoMITA122Claude Code