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 agentmods add skills/dwgx/smartcli/tui-uinpx skills add dwgx/SmartCLI --skill tui-uigit clone --depth 1 https://github.com/dwgx/SmartCLIWhat 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 | $0.00119 | $0.04914 |
| Opus 5 | $0.00060 | $0.02457 |
| Sonnet 5 | $0.00024 | $0.00983 |
| Haiku 4.5 | $0.00012 | $0.00491 |
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 2d 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 — 324 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
27 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_junction.py 13 KB runs code
- ui/box.py 9.2 KB runs code
- ui/cli.py 8.7 KB runs code
- ui/color_model.py 3.6 KB runs code
- ui/core.py 21 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.
- 2d ago First seen · 324 lines · 119 tokens per session scan A 99414b03ac59
tui-ui is a skill published in the GitHub repository dwgx/SmartCLI (3 stars, last pushed 22d ago), licensed MIT. It adds 119 tokens to every session and 4,914 once invoked, about $0.0006 per session on Opus 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
ascii-shader-tsx
Generate animated ASCII art, dithered visuals, and shader-like effects as self-contained React/TSX components. Use when the user wants to create ASCII backgrounds, dithered image/video effects, CRT/retro overlays, matrix rain, noise fields, halftone patterns, particle systems, braille art, terminal aesthetics, or any…
archify
Create polished, validated architecture, workflow, sequence, data-flow, and lifecycle/state diagrams as explorable standalone HTML with inline SVG, dark/light themes, optional trace motion, and PNG/JPEG/WebP/SVG/WebM export. Accept plain-language requirements or pasted Mermaid flowchart, sequenceDiagram, and…
social-post
學習使用者的 Facebook/Instagram/YouTube/Threads/X 語氣與受眾,規劃、撰寫、確認後發佈內容;以已登入 Chrome 受控掃描、草擬及回覆 FB/IG/Threads 留言;並作為流量、留存與轉化的結構化帳本。使用者說「發文」「用我的口氣」「回覆留言」「自動回留言」「掃留言」「查流量」「演算法」「把數據訓練進去」「比較貼文」「優化 pattern」時使用。.
privacy-jp
日本サービス向け(일본 서비스용) プライバシーポリシー・利用規約・同意モーダル・Cookieバナー 자동 생성. 個人情報保護法(APPI)·消費者契約法·特定商取引法 반영. Next.js 1316 프로젝트 대상.
higgsfield
Use this skill whenever the user asks anything about Higgsfield AI — writing or refining video/image prompts, choosing a model (Kling, Sora 2, Veo, Wan, Seedance, Minimax Hailuo, DoP, Soul, Nano Banana, Seedream, Flux, GPT Image, etc.), camera controls, named motion presets, Soul ID character consistency, Cinema…
higgsfield-camera
Use when the user asks about camera movements, shot types, or how to describe camera behavior in a Higgsfield prompt. Contains all named camera controls with descriptions, best use cases, and example prompt phrases.