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/drive-tuinpx skills add dwgx/SmartCLI --skill drive-tuigit 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.00116 | $0.08026 |
| Opus 5 | $0.00058 | $0.04013 |
| Sonnet 5 | $0.00023 | $0.01605 |
| Haiku 4.5 | $0.00012 | $0.00803 |
Grade A, and why
drive-tui 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 — 365 lines — stays where its author put it; the contents beside it link to each section on GitHub.
drive-tui
Drive interactive terminal programs the way a human does: look at the screen, decide, press keys, wait, look again. A normal subprocess/pipe can't do this — line-buffered pipes hide menus, spinners, and prompts, and many programs refuse to run without a real TTY. This skill uses smartcli_core (a PTY + pyte screen model + semantic snapshots + readiness waits) behind a thin CLI, scripts/tui.py.
When to use
- Launching a program that draws a full-screen or line-mode UI and expects keystrokes (REPLs, installers,
vim, agent CLIs, arrow-key menus, y/n prompts, password entry). - A piped command hangs, prints nothing, or says "not a terminal".
- You need to see what an interactive program is showing right now, then act on it.
- Do NOT use for non-interactive commands whose full output you just want captured — run those directly.
Core mental model: the perceive → decide → act loop
Never fire keystrokes blind and never guess with sleep. Every interaction is one turn of this loop:
- Perceive — take a snapshot. Read the header line (cursor position, selected row, status bar, errors) and the row-numbered body.
- Decide — classify the screen: is it a menu, a text prompt, a confirmation, a spinner still loading, an error, or a finished result? Decide the single next action.
- Act — translate intent into key tokens and send them (
send-line,send-text, orkeys). - Wait — call
wait/wait-regex. NEVERsleep. The wait pumps output until the screen settles or an expected marker appears. - Confirm — re-snapshot and verify the screen changed as expected before the next action.
Setup
scripts/tui.py adds the repo root to sys.path itself, so run it from anywhere. It locates smartcli_core via smartcli_bootstrap.locate_core(): $SMARTCLI_ROOT → walk up every parent of the script for a dir containing smartcli_core/__init__.py → a bundled _vendor/ next to the skill → an existing pip install (there is no fixed "N levels up"). It also needs the deps pyte + pywinpty (Windows) importable. Set SMARTCLI_ROOT to override, or run tui.py doctor to report where the core resolved and which deps are missing.
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.
- _vendor/smartcli_core/__init__.py 1.6 KB runs code
- _vendor/smartcli_core/__main__.py 4.3 KB runs code
- _vendor/smartcli_core/pty_backend.py 10 KB runs code
- _vendor/smartcli_core/py.typed 0 B
- _vendor/smartcli_core/readiness.py 12 KB runs code
- _vendor/smartcli_core/screen_model.py 47 KB runs code
- _vendor/smartcli_core/session.py 14 KB runs code
- _vendor/smartcli_core/snapshot.py 11 KB runs code
- patterns/__init__.py 1.4 KB runs code
- patterns/base.py 5.5 KB runs code
- patterns/classify.py 2.7 KB runs code
- patterns/recipes/__init__.py 260 B runs code
- patterns/recipes/confirm_dialog.py 8.1 KB runs code
- patterns/recipes/form_fill.py 6.7 KB runs code
- patterns/recipes/menu_select.py 12 KB runs code
- patterns/recipes/paginate.py 11 KB runs code
- patterns/recipes/repl_session.py 8.2 KB runs code
- patterns/recipes/search_filter.py 12 KB runs code
- patterns/recipes/wait_progress.py 6.6 KB runs code
- patterns/recipes/wizard_flow.py 9.7 KB runs code
- patterns/registry.py 2.3 KB runs code
- references/core_api.md 6.6 KB
- references/LIMITATIONS.md 14 KB
- scripts/__init__.py 294 B runs code
- scripts/mcp_server.py 16 KB runs code
- scripts/smartcli_bootstrap.py 5.0 KB runs code
- scripts/tui.py 52 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 · 365 lines · 116 tokens per session scan A f91432b78af2
drive-tui is a skill published in the GitHub repository dwgx/SmartCLI (3 stars, last pushed 22d ago), licensed MIT. It adds 116 tokens to every session and 8,026 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.