Ui review

From Thurbeen/thurbox · View interactive version

Ui review is an AI agent skill from the GitHub repository Thurbeen/thurbox. Capture screenshots of the thurbox TUI across its screens and panels, then generate an HTML report with UI/UX feedback. Run from the thurbox repo.

How to use this skill

Skill file

ui-review — screenshot the thurbox TUI and critique its UI/UX

This skill drives the real thurbox TUI inside an isolated, throwaway

environment, takes a PNG screenshot of each major screen/panel, then has Claude

look at every screenshot and write a self-contained HTML report with UI/UX

feedback.

It takes the screenshots with VHS Screenshot directives. Nothing it does touches

your real thurbox sessions, tmux server, or agent accounts — everything runs against

the thurbox-dev dev build in a mktemp sandbox that is torn down on exit.

Run this from the thurbox repo root (or any subdir of it). The output lands in

target/ui-review/ (git-ignored).

Requirements

vhs (+ ffmpeg + ttyd), cargo, git, tmux. The capture script

preflights these and fails fast with a clear message if any are missing. Real agent

CLIs (claude/codex/opencode) are optional — if none are installed

the script runs a stub agent so every panel still renders. The sessions are Fleet

Tasks in the sandbox's own store, so the build includes fleet and runtime-mux.

Phase 1 — Capture

Resolve the skill directory and run the capture script. It builds the dev binaries,

sets up the sandbox, seeds sessions, and runs VHS to emit one PNG

per UI state plus a manifest.json describing them.

SKILL_DIR="$(cd "$(dirname "$(readlink -f .agents/skills/ui-review/SKILL.md)")" && pwd)"
# Default output dir is <repo>/target/ui-review/screenshots. Override with arg 1.
# Optional flags: --theme <thurbox-theme> (default doom), --width N, --height N.
"$SKILL_DIR/scripts/capture.sh"

When the user names a specific theme to review (e.g. "review the Tokyo Night theme"),

pass --theme "Tokyo Night". Valid theme strings are the ones from Ctrl+Y in the

TUI (e.g. doom, Catppuccin Mocha, Tokyo Night, Gruvbox Dark, `Catppuccin

Latte`, …).

On success the script prints the screenshots dir and writes

<dir>/manifest.json — a JSON array of {file, label, screen, keys} objects. Read

it to learn what each PNG depicts.

If VHS fails or a screenshot is missing, report which states were captured and

continue the review with whatever PNGs exist — do not silently claim full coverage.

Phase 2 — Analyze

  1. Read manifest.json.
  2. Read each PNG in turn (the Read tool renders the image so you can see the

actual rendered terminal). Look carefully at layout, color, text, borders,

highlighting, and spacing.

  1. For each screen, produce concrete findings. Tag every finding with:

nit (polish);

The four review lenses (apply all of them):

usage, information density.

friction, empty/edge states.

interaction patterns.

ratios, legibility at small sizes.

Each finding = a short title + 1–2 sentences of explanation + a concrete

suggested fix. Be specific and grounded in what the screenshot actually shows;

do not invent problems you cannot see.

  1. Cross-screen synthesis: note inconsistencies between panels, navigation

friction across the whole flow, and a short ordered list of top recommendations.

Phase 3 — Report

Write a self-contained report to the ignored target/ui-review/report.html using

templates/report.html.tmpl: base64-encode each PNG

(base64 -w0 <png>) into <img src="data:image/png;base64,…">, fill {{TITLE}},

{{VERSION}}, {{THEME}}, {{GENERATED_AT}}, {{SUMMARY}}, {{CARDS}} (severity

badge classes .badge.blocker/.warning/.nit, lens tags .lens.<lens>), and keep

all generated review material under target/ui-review/. These reports are working

artifacts for the current review, not project documentation, and must not be

committed.

Keep the findings honest and actionable. The goal is a report a maintainer can skim

in two minutes and act on.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.