Proposal: a `terminal` platform for TUIs and rich CLIs

Author: crichalchemistCreated Sep 26, 2026Updated Sep 26, 2026
Labelsneeds triage

I like building things I find interesting, but I don't trust my own eye for design, and this workflow gets the visuals right fast across a lot of a project. So I was disappointed to find nothing for TUIs and rich CLIs while building a tool for making music videos from the terminal. Impeccable treats a terminal app as a website: web guidance, and a detector that never reads its source.

I threw my hat in, with specialized help from a digital ringer. My fork adds a fifth ## Platform value, terminal, for full-screen TUIs and rich CLIs (Ratatui, Bubble Tea and Lip Gloss, Textual and Rich, Ink), and it works end to end there. I know you prefer issues first, so the changes are on the fork for review, and I can follow up with screen grabs of the TUI I am working on. Do you want it upstream at all?

What it adds, briefly:

Guidance. A reference/terminal.md that context inlines the way it inlines the iOS and Android refs, plus audit.terminal.md and adapt.terminal.md on the web report skeleton. init picks the platform up from root manifests (ratatui, bubbletea/lipgloss/bubbles, textual, ink). Unlike the native values, terminal keeps the detector and the hook on. Live mode stays web-only.

Two calls in the skill text you may disagree with. A terminal surface always builds code-led, because the comp-led path ends in screenshot diffs a terminal can't produce. And build evidence is text: tmux captures at 80x24, 120x40 and 40x24, a NO_COLOR=1 run, and the app's output piped through cat.

Eleven source rules, all advisory, gated on the platform so web output is byte-identical:

  • slop: tui-figlet-banner, tui-gradient-title, tui-emoji-density, tui-double-border, tui-blink-attribute, tui-nerd-glyph-no-fallback
  • quality: tui-hardcoded-rgb-no-adapt, tui-hardcoded-size, tui-spinner-no-tty-guard, tui-grapheme-unsafe-truncate, tui-print-in-loop

A file is only scanned if it imports one of the frameworks. I ran them over ratatui's examples, glow, toolong, ink-ui and my own app, then narrowed the noisiest ones.

A runtime check. detect --tmux <pane> reads a pane you already have running, optionally at several sizes (the window is restored afterwards), and runs seven tui-rt-* rules over the cell grid: contrast, nested borders, truecolor on a 256-color client, emoji and CJK width drift, missing key hints, collapse under 60 columns, a spinner that never stops. It doesn't launch anything. It lives in its own crate, and nothing changes without --tmux. Against top, vim, less, man and the Ratatui demo, the collapse rule's false positives went from 15 to 2 once overflow only counted rows that carry a box-drawing glyph.

I followed the contributor rules: new oracle cases recorded from the binary, fixtures per rule, no version bumps. One new registry field (platforms) and one new dependency (unicode-width). The skill-behavior suite scores the same as main (68 of 78, same failures), though no scenario covers a terminal project yet.

Known gaps are listed in the spec. The biggest: verification assumes tmux, and the font and color guidance in craft-floor.md is still written for the web.

Questions:

  1. Is a terminal platform something you want? If not, it stays on my fork.
  2. If yes, what split would you like? On the fork it went guidance, source rules, runtime check, then four hardening passes that could fold into the first three.
  3. Should terminal rules stay advisory until there is wider calibration?
  4. Is tmux acceptable as the dependency behind an opt-in flag?
  5. Is code-led-only right for terminal, or would you rather keep comp-led with a text-capture gate?

Fork: https://github.com/crichalchemist/impeccable. The design spec is docs/superpowers/specs/2026-09-24-terminal-platform-design.md (section 7 has the follow-ups and the gap table), and the manual pass notes are under docs/superpowers/research/.

Disclosure: the implementation and this text were drafted with AI assistance (Claude Code) under my direction, per the repo's contribution rules.