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.
npx skills add dwgx/SmartCLI --skill tui-uigit clone --depth 1 https://github.com/dwgx/SmartCLIWrote 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.
[](https://agentmods.dev/skills/dwgx/smartcli/tui-ui)<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.
<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>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.
| Model | Per session | Once 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 |
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.
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.
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?
What ships with it
25 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.
- _selftest_effort_widgets.py 4.9 KB runs code
- _shot_effort_widgets.py 4.7 KB runs code
- examples/effort_selector.py 22 KB runs code
- references/effort-replica-spec.md 12 KB
- references/HARD-LESSONS.md 7.5 KB
- references/RENDERING-MODEL.md 5.4 KB
- self_test.py 5.7 KB runs code
- ui/__init__.py 1.4 KB runs code
- ui/__main__.py 183 B runs code
- ui/box.py 9.2 KB runs code
- ui/cli.py 8.7 KB runs code
- ui/core.py 26 KB runs code
- ui/field.py 20 KB runs code
- ui/layout.py 11 KB runs code
- ui/raster.py 28 KB runs code
- ui/registry.py 2.7 KB runs code
- ui/sixel.py 9.2 KB runs code
- ui/widgets_ext/__init__.py 207 B runs code
- ui/widgets_ext/braille_chart.py 6.7 KB runs code
- ui/widgets_ext/fuzzy_filter_list.py 5.0 KB runs code
- ui/widgets_ext/gradient_rule.py 3.5 KB runs code
- ui/widgets_ext/preview_pane.py 3.1 KB runs code
- ui/widgets_ext/radial_glow.py 8.8 KB runs code
- ui/widgets_ext/slider_track.py 7.7 KB runs code
- ui/widgets.py 24 KB runs code
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.
- 26d ago Changed · -2 lines b792a5003df5
- 1mo ago Changed 7ecea884386d
- 1mo ago First seen · 324 lines · 119 tokens per session scan A 99414b03ac59
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.
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…
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…
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.
designlang-tokens
Use when styling UI for cal.com — references the extracted design system tokens instead of inventing colors, spacing, or typography.
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'…
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…