aio-tui

aio-tui is a skill for Claude Code from aiocean/claude-plugins. It costs 129 tokens per session (6,042 once invoked), scanned A, original, MIT.

A guide to building interactive terminal interfaces in Go with Bubble Tea and Lip Gloss, including their state, layout, input, and rendering patterns.

In plain words
What is it for?
It is for creating Go terminal dashboards, command palettes, dialogs, resizable panes, and other interactive text-based interfaces.
Why use it?
It explains the structure needed for terminal programs that handle keyboard and mouse input, asynchronous work, resizing, and multiple interface modes.

Skill for Claude Code

Written for Claude Code: argument-hint in frontmatter.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the aio-tui plugin — 1 skill shipped together

Good fit It is for creating Go terminal dashboards, command palettes, dialogs, resizable panes, and other interactive text-based interfaces.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add aiocean/claude-plugins
Claude Code
/plugin install aio-tui

Made for: Claude Code.

Or install aio-tui, the plugin that ships this one along with the rest of its 1 skill.

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 aio-tui

README.md
[![agentmods](https://agentmods.dev/badge/skills/aiocean/claude-plugins/aio-tui/github.svg)](https://agentmods.dev/skills/aiocean/claude-plugins/aio-tui)
Your own site
<a href="https://agentmods.dev/skills/aiocean/claude-plugins/aio-tui"><img src="https://agentmods.dev/badge/skills/aiocean/claude-plugins/aio-tui/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 aio-tui

Your own site · 80×15
<a href="https://agentmods.dev/skills/aiocean/claude-plugins/aio-tui"><img src="https://agentmods.dev/badge/skills/aiocean/claude-plugins/aio-tui.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 129 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 6,042 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 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.00129 $0.06042
Opus 5 $0.00064 $0.03021
Sonnet 5 $0.00026 $0.01208
Haiku 4.5 $0.00013 $0.00604

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

Security

Grade A, and why

aio-tui 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 7d 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.

plugins/aio-tui/skills/aio-tui/SKILL.md · 577 lines

How it starts

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

Environment

  • go: !go version 2>/dev/null || echo "NOT INSTALLED"
REFS="${CLAUDE_PLUGIN_ROOT}/skills/aio-tui/references"

Bubbletea v2 TUI Development Guide

Build interactive terminal UIs on the charmbracelet v2 ecosystem: charm.land/bubbletea/v2 + charm.land/lipgloss/v2. The v2 API differs from v1 in load-bearing ways — every snippet here is v2-correct.

Architecture: The Elm Architecture (TEA)

Model (state) → Update (handle messages) → Model → View (render) ...
func (m model) Init() tea.Cmd                            // initial command(s)
func (m model) Update(msg tea.Msg) (tea.Model, tea.Cmd)  // state transitions
func (m model) View() tea.View                           // render → tea.View struct

Key rules:

  • The model is a value receiver. Update returns a NEW model — never mutates in place.
  • View() is a pure function of model state — no side effects, reads m only.
  • Init() returns a tea.Cmd, NOT a modified model — create heavy clients in main() and pass them in.
  • Messages are the ONLY way to communicate async results back to the model.
  • A tea.Cmd is func() tea.Msg. Don't double-wrap (a Cmd that returns a Cmd); use tea.Batch(c1, c2) to run several.

v2 API — the differences that bite

Concern v2 (correct)
View() return tea.View struct — frame string is in .Content
Alt-screen / mouse Fields on the tea.View: v.AltScreen = true, v.MouseMode = tea.MouseModeCellMotion — NOT tea.NewProgram options
Keys tea.KeyPressMsg{Code rune, Text string} — printable input in .Text, named keys via .String(). No .Runes.
Mouse An interface: the message TYPE is the action — tea.MouseClickMsg / MouseReleaseMsg / MouseWheelMsg / MouseMotionMsg. No .Action field. Each has .Mouse()tea.Mouse{X, Y, Button, Mod}.
Mouse mode MouseModeCellMotion gives click + wheel + drag (motion only while a button is held). Motion with no button — i.e. hover — needs MouseModeAllMotion, which fires per cell crossed.
Color lipgloss.Color("#RRGGBB") is a color.Color, full truecolor. No SetColorProfile — downsampling happens at the output writer.
Background detect lipgloss.HasDarkBackground(os.Stdin, os.Stdout)
.Width(n) OUTER width — border + padding included (see Layout gotchas)

Read the full file on GitHub · 577 lines

Files

What ships with it

6 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 7d ago First seen · 577 lines · 129 tokens per session scan A 6b8e04240024

Subscribe to this mod's changes

aio-tui is a skill published in the GitHub repository aiocean/claude-plugins (4 stars, last pushed 8d ago), licensed MIT. It adds 129 tokens to every session and 6,042 once invoked, about $0.0006 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-09-03.

Related

Other skills, from other repositories

design-patterns

Detect, suggest, and evaluate GoF design patterns in TypeScript/JavaScript codebases. Use when refactoring code, applying singleton/factory/observer/strategy patterns, reviewing pattern quality, or finding stack-native alternatives for React, Angular, NestJS, and Vue.

FlorianBruniaux/claude-code-ultimate-guide · 59 tokens

landing-page-generator

Generate complete, deploy-ready landing pages from any repository. Use when creating a homepage for an open-source project, building a project website, converting a README into a marketing page, or standardizing landing pages across multiple repos.

FlorianBruniaux/claude-code-ultimate-guide · 48 tokens

unit-test

A Go testing workflow for writing unit tests: small tests that check individual functions or components. It supports table-driven cases, where many inputs and expected results are organised in one test, and subtests.

johnqtcg/awesome-skills · 100 tokens

go-benchmark

Go performance benchmarking and pprof profiling specialist. ALWAYS use when writing benchmark functions (testing.B), generating or reading pprof profiles, interpreting flame graphs, finding memory allocation hotspots, comparing implementations with benchstat, or measuring ns/op / B/op / allocs/op. In Go code contexts…

johnqtcg/awesome-skills · 90 tokens

go-code-reviewer

Review Go code with a defect-first approach using repository policy (constitution.md first, then AGENTS.md fallback). Use for code review, PR review, quality checks, risk analysis, and regression detection.

johnqtcg/awesome-skills · 45 tokens

go-dependency-audit

Go dependency audit specialist for CVE scanning (govulncheck), license risk triage, outdated dependency detection, upgrade impact analysis, and supply chain security. ALWAYS use when auditing go.mod dependencies, running govulncheck, checking license compatibility, planning dependency upgrades, or investigating supply…

johnqtcg/awesome-skills · 102 tokens