tui-design

An agent skill that helps coding agents design and build terminal apps: full-screen TUIs, interactive prompts, and plain command-line tools, in Go, Rust, Python, and TypeScript. It works in Claude Code, Codex, and other agents that read skills, and it loads only the part a question needs.
What it changes. Same model (Claude Opus 5.5), same prompt: "I'm building a TUI for browsing Kubernetes pods: a namespace sidebar, a pod list, and a detail pane with logs. Design the layout for me." Without the skill, the answer drew one layout 108 columns wide, described smaller terminals in a table, and set no minimum size. With it, the answer also drew the layout at 60 columns and said that below 50×12 it shows terminal too small: need 50x12:
prod-us-1 / payments / pods live 2s
Pods 2/14
NAME READY STATUS RST
>api-7d9f-x2k 1/1 Running 0
worker-5c6b-zz1 0/1 CrashLoopBackOff 12
migrate-28411030-hk2p4 0/1 Completed 0
web-6f8d4-9tq 1/1 Running 0
enter logs ⋅ / filter ⋅ n namespace ⋅ q quit ⋅ ? help
Both answers are in the repository (without, with). Over three runs each, the answers met 4 of 15 checks without the skill and 14 of 15 with it (Codex: 5 and 15). That is one case; the Evaluation section has every recorded result, including the sets where the skill made no difference.
Install
npx skills add gfargo/tui-design-skill
That works for any agent the skills CLI supports, including Claude Code, Codex, and Cursor, and asks which agents to install for. In Claude Code you can use the plugin marketplace instead:
/plugin marketplace add gfargo/tui-design-skill
/plugin install tui-design@tui-design-marketplace
Global installs, Claude.ai, and a manual copy are under All install options.
Use it, and check it loaded
| Host | Check it's installed | Call it by name |
|---|
| Claude Code | /skills lists tui-design | /tui-design, or /tui-design:tui-design when installed as a plugin |
| Codex | /skills lists tui-design | Put $tui-design in the prompt |
You don't have to name it. The agent loads it by itself when you ask to build, review, or choose a library for a terminal app (see When the skill triggers). Name it when you want to be sure it's used.
What it covers · When it triggers · Example prompts · All install options · Evaluation · Contributing
What the skill covers
The skill loads in two layers. A short SKILL.md carries the workflow, a routing table that says which reference to read for each topic, and rules that apply to every answer. The agent then reads one reference per topic only when the question needs it, so most answers never load most of the skill.
Top-level (SKILL.md):
- Product classification: one-shot CLI, summon–choose–exit tool, or full-screen session
- Single-source routing for layouts, visual systems, interactions, ecosystem APIs, CLI contracts, and case studies
- Two checks applied to every layout review, even when the user didn't ask: the clutter audit, which counts borders, repeated signals, and per-row markers so "feels busy" becomes a list of things to cut, and pressure-testing the floor, which shows the layout at the smallest size it must work in (80×24 and a 60-column split) and when it says the terminal is too small
- Cross-cutting contracts for lifecycle, non-blocking work, redraws, cell width, output streams, semantic color, keyboard access, and plain-mode fallbacks
- A build workflow, bottom-heavy test pyramid, verification matrix, and prioritized review checklist