tui-ui

tui-ui is a skill for Claude Code from dwgx/SmartCLI. It costs 119 tokens per session (4,828 once invoked), scanned A, original, MIT.

A Python toolkit for arranging web-like screens in a terminal, including boxes, rows, columns, tables, cards, tabs, trees, meters, and charts. A terminal user interface, or TUI, is an interactive screen that runs inside a command-line terminal.

In plain words
What is it for?
Use it to build terminal dashboards, status pages, control panels, reusable widgets, and structured layouts.
Why use it?
It avoids hand-aligning terminal output, including text with wide characters such as emoji, CJK text, or box-drawing symbols.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Part of the smartcli plugin — 3 skills, 1 MCP server shipped together

Good fit Use it to build terminal dashboards, status pages, control panels, reusable widgets, and structured layouts.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/dwgx/smartcli/tui-ui
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add dwgx/SmartCLI --skill tui-ui
Clone the repo
git clone --depth 1 https://github.com/dwgx/SmartCLI

Made for: Claude Code.

Or install smartcli, the plugin that ships this one along with the rest of its 3 skills, 1 MCP server.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/dwgx/smartcli/tui-ui"><img src="https://agentmods.dev/badge/skills/dwgx/smartcli/tui-ui.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 119 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,828 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.00119 $0.04828
Opus 5.5 $0.00048 $0.01931
Sonnet 5.5 $0.00024 $0.00966
Haiku 4.5 $0.00012 $0.00483

Measured 26d ago against content hash b792a5003df5, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

tui-ui 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 26d ago.

The scan reads SKILL.md. This mod also ships 22 executable files (_selftest_effort_widgets.py, _shot_effort_widgets.py, examples/effort_selector.py, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

skills/tui-ui/SKILL.md · 322 lines

How it starts

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

tui-ui

Lay out a terminal screen the way you lay out a web page: nested boxes with margin, border, and padding; rows and columns that flex with fr units; and drop-in widgets (panels, tables, cards, meters, tabs, trees). You compose a tree of renderables, and the engine resolves sizes, composites cell grids, and serializes once to a tmux-safe ANSI frame. Everything is display-cell accurate, so CJK, emoji, and box-drawing never desync your columns.

Pure Python stdlib (optional pyfiglet for the Banner, optional wcwidth for an authoritative width — a stdlib fallback covers the same edge cases). Output is a plain string you can print, pipe, wrap in a registered fx Effect (the fx play loop drives registered effects only — it does not accept raw ANSI frames), or render to PNG with the SmartCLI pyte harness.

When to use

  • Building a status page / dashboard / control panel that should look designed, not dumped.
  • You need boxes, tables, or columns that line up — especially with wide glyphs.
  • You want web mental models (box model, flexbox rows, a grid, cards) in a TUI.
  • Adding a new reusable terminal widget to a shared catalog.
  • Do NOT use for full-screen interactive apps with input loops — that is drive-tui's job. tui-ui produces frames; something else owns the terminal.

Setup

Run from the skill directory skills/tui-ui as a package:

python -m ui widgets                                  # list widgets (--json for machine-readable)
python -m ui demo <name> --width 60 --height 12       # render one widget
python -m ui gallery --width 100 --height 30           # the showcase dashboard "page"
python -m ui demo table --theme synthwave              # --theme applies a palette
python -m ui sixel image.png --cols 40 --rows 20      # TRUE-graphics bitmap (sixel)
python -m ui sixel --cols 40 --rows 20                # no image: renders a demo gradient
python -m ui sixel image.png --mode braille           # sampling density: half|quad|sextant|braille
python -m ui sixel --probe                             # does this terminal support sixel?

Read the full file on GitHub · 322 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. 26d ago Changed · -2 lines b792a5003df5
  2. 1mo ago Changed 7ecea884386d
  3. 1mo ago First seen · 324 lines · 119 tokens per session scan A 99414b03ac59

Subscribe to this mod's changes

tui-ui is a skill published in the GitHub repository dwgx/SmartCLI (5 stars, last pushed 16d ago), licensed MIT. It adds 119 tokens to every session and 4,828 once invoked, about $0.0005 per session on Opus 5.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-08-31.

Related

Other skills, from other repositories

tui-design

Design, build, refactor, or review terminal interfaces—full-screen TUIs, interactive prompts, and command-line tools. Use for terminal-app layout and UX, CLI behavior, ncurses-style tools, dashboards, REPLs, fzf-like pickers, and libraries such as Bubble Tea, Ratatui, Textual, or Ink, including requests that name a…

gfargo/tui-design-skill · 135 tokens

frontend

Builds, styles, and polishes anything drawn with HTML, CSS, or SVG: web UI, pages, components, HTML reports rendered to PDF or print, figures, PNG/SVG diagrams, slides, and images for Notion or Slack. Use for any styling, layout, animation, or visual-quality task, or when asked to make something look or feel a certain…

code-yeongyu/lazycodex · 79 tokens

cli-anything-photoshop

A command-line tool that controls Adobe Photoshop through Windows automation. It can work with Photoshop documents, layers, selections, text, image adjustments, and exports.

yb2460/harness-anything · 43 tokens

designlang-tokens

Use when styling UI for cal.com — references the extracted design system tokens instead of inventing colors, spacing, or typography.

Manavarya09/design-extract · 30 tokens

app-screenshot-debug

Drive the running termio app via AppleScript / System Events to reach a UI state (focus the window, click a sidebar project, a terminal pane, a control), capture a pixel-accurate screenshot of just that window, and read it back for visual analysis — for diagnosing layout / spacing / alignment / 'this looks ugly'…

termio-sh/termio · 161 tokens

user-research-cookiy

End-to-end user research assistant — qualitative and quantitative. Use this skill whenever the user mentions user research, user interviews, discussion guides, interview guides, research plans, qualitative research, quantitative research, user surveys, survey design, usability studies, participant recruitment…

cookiy-ai/user-research-skill · 154 tokens