/solo-skills:tui-craftfrom solo-skills
Design, build, and debug full-screen terminal UI apps — layering, state ownership, repaint discipline, key routing, retrofits. Triggers: picking a TUI framework; building a terminal chat or agent client; flicker, tearing, resize corruption, broken copy-paste, slow output with long content, a terminal left broken after exit; Textual, Rich, Ratatui, crossterm, Bubble Tea, Lipgloss, OpenTUI, Ink, prompt_toolkit, curses, ncurses, notcurses, tview, tcell, blessed, alternate screen, raw mode.
Ships in solo-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Start here, not at the laws. The laws are an index for review (references/laws.md). What you need first is which of these situations you are in.
Ask this before anything else, because a non-fullscreen CLI is exempt from nearly every hard problem below — L84 has the exemption list.
A full-screen alternate-screen app earns its cost only when you need at least two of: content that updates in place, modal navigation, a persistent layout, direct manipulation, or a long-lived session.
If you need none of them, write a streaming CLI with ANSI colour and stop reading. If you need one, build inline first and keep full-screen as a flag — both major agent CLIs ship non-fullscreen as first-class.
Full decision aid with the price list: references/interaction.md §0.
Out of scope: ordinary CLI work (argument parsing, printing a table, a progress bar or spinner in a script that doesn't take the screen), browser-based terminal emulators (xterm.js and similar), and shell-prompt (PS1/starship) customization.
| Situation | Read |
|---|---|
| Deciding whether to build a TUI | interaction.md §0 — it may save you everything else |
| Starting a new TUI | build-order.md, then §2 below |
| Inherited a TUI you didn't write | retrofit.md — start at its symptom table |
| Debugging a specific symptom | retrofit.md §1 — symptom → root cause → fix |
| Auditing an unfamiliar TUI quickly | retrofit.md §2 — a dozen runnable checks |
| Content arrives incrementally over a network | streaming.md |
| Fighting the terminal itself — exit state, width, resize, tmux, colour | terminal.md (start with its pre-ship checklist) |
| Designing keys, focus, modals, discoverability | interaction.md |
| Reviewing a diff | laws.md — cite by number |
| Need an exact escape sequence or version fact | hard-facts.md |
Scope warning. If your data is local and synchronous (file browser, git UI, process monitor), most of streaming.md is dead weight — its opening paragraph names the two parts that still apply. Laws are tagged [net], [new]; untagged laws apply to any TUI.
These are the ones where reading them late is too late. Each is one line here; the rationale and failure mode live with the law in laws.md.
SIGINT, SIGTERM, SIGHUP, and Ctrl-Z. L71–L73 → terminal.md §1L48L96 → terminal.md §8isatty selects a different renderer, not a dimmer one — honour NO_COLOR, TERM=dumb, CLICOLOR_FORCE. L76L77, L78$TERM — with a sentinel and a timeout, and consume the reply before exiting. L42, L80, L81, L83 → terminal.md §5L43L45L82L1L14L22(id, revision, width), and invalidate everything on a width change. L38L24, L25L86L91L84, and who owns the scrollback L46. → retrofit.md §8Follow build-order.md. Its central claim: the first four steps contain no terminal code at all. Get the data layer right and testable before a character is drawn, because every bug you find there is cheap and every bug you find after the UI exists is not.
Go to retrofit.md. Its ordering:
Cost, roughly: cheap self-contained fixes ≈ a day total, contained fixes ≈ a week, structural ≈ a rewrite — retrofit.md §3 has the exact lists.
Do not apply greenfield laws to an existing codebase without translating them. "Draw the layers before the first widget" is not advice to someone whose widgets shipped two years ago; retrofit.md gives the brownfield form of each.
README.md (opens in a new tab)references/build-order.md (opens in a new tab)references/hard-facts.md (opens in a new tab)references/interaction.md (opens in a new tab)references/laws.md (opens in a new tab)references/retrofit.md (opens in a new tab)references/streaming.md (opens in a new tab)references/terminal.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
13 skills in this plugin
/claude-code-configConfigure Claude Code itself — settings-file precedence, permissions, hooks, env vars, and MCP registration, closed by a take-effect check. Use for "change a setting", "allow/deny a command", "add or move a permission rule", "set up a hook", "run something automatically whenever X happens", "always do Y every time", "add an environment variable", "register an MCP server", or "why isn't my setting taking effect"./claude-code-expertiseExpert map of Claude Code's extension surfaces for authoring and debugging extenders — skills, subagents, hooks, commands, plugins, marketplaces, MCP servers, and settings/permissions contracts. Use to decide which surface fits a need, to look up a surface's frontmatter or config contract, to author or debug a skill, subagent, hook, command, or plugin, or to answer how any Claude Code extension surface works. Not for changing settings, permissions, or hook wiring in a project - that is claude-code-config.Other plugins' skills for the same job
/datavizDesign data visualizations - charts, graphs, plots, and dashboards - that are correct, legible, and honest, in any medium. Consult this BEFORE writing any chart, graph, plot, or dashboard code, whatever the library (matplotlib, plotly, d3, Recharts, inline SVG) or output (static image, notebook, web app, deck). Use whenever a task involves picking a chart type, a color palette for data, dashboard or KPI-tile layout, axis and label formatting, or making a visualization colorblind-safe and light/dark-ready. Covers the data-shape to mark-type heuristic, chart anti-patterns to refuse (pie overuse, dual axes, truncated bar axes, rainbow scales, 3D), a brand-neutral colorblind-safe palette you can rebrand, composition, interaction and static degradation, and a final validation checklist. Data charts only - structural diagrams and deck theming are out of scope.npx claudepluginhub hsb3/dotfiles-agents --plugin solo-skills