Script, drive, and visually inspect terminal UIs/TUIs with deterministic tmux sessions, keyboard scenarios, pane captures, and PNG/SVG screenshot artifacts. Use when Codex needs to QA a CLI/TUI like ockemon admin, compare character or equipment states across level-ups, capture screenshots for design review, reproduce keyboard-navigation bugs, or audit layout/design regressions in a terminal app.
Use this skill to test a terminal UI like a human would: launch it in a fixed-size terminal, send keys through a scripted scenario, capture the screen at important states, and review image artifacts instead of guessing from logs.
references/scenario-format.md.scripts/run_tui_scenario.py --command 'ockemon admin' --cwd /path/to/repo --scenario /tmp/admin-flow.json --output-dir /tmp/ockemon-admin-artifacts.png files first. Open them with the local image tool when available.Use this skill when the user wants any of the following in a terminal UI:
Model the interaction as ordered steps. Supported step fields are intentionally small:
notewaitsendliteralrepeatcaptureSee references/scenario-format.md for the schema and examples.
run_tui_scenario.py produces, per capture:
.ansi — raw escape-sequence pane dump.txt — plain-text pane dump.svg — rendered terminal image.png — Quick Look thumbnail from the SVGmanifest.json — scenario metadata + artifact indexThe PNGs are the fastest way to inspect layout, clipping, overlap, and visual drift.
Use references/inspection-checklist.md as the default rubric.
Focus on:
For each issue, include:
For ockemon admin-style checks, capture at minimum:
If comparing multiple characters or growth stages, keep them in separate output folders but reuse the same terminal dimensions.
scripts/run_tui_scenario.py — launch + drive a TUI in tmux and capture artifactsscripts/ansi_to_svg.py — render captured terminal output into SVGreferences/scenario-format.md — step format and examplesreferences/inspection-checklist.md — QA rubric for visual/debug review