← ClaudeAtlas

cli-demo-recorderlisted

Create demo videos for CLI and TUI tools. Use when user asks to "record a demo", "make a demo GIF", "create a demo video", "record my CLI tool", "asciinema demo", "demo recording script". Covers asciinema+agg+ffmpeg pipeline, tmux recording, multi-shell, and dual-purpose demo+test harnesses in Python, Rust, TypeScript, and Bash.
ahundt/autorun · ★ 14 · AI & Automation · score 70
Install: claude install-skill ahundt/autorun
# CLI Demo Recorder <purpose> Record polished demo videos for CLI tools — either as **direct subprocess recordings** (CLI tools, no AI session) or **real TUI recordings** (interactive AI sessions via tmux). **Use this skill when:** A demo GIF/video is needed for a CLI tool, plugin, or terminal application. **Invoke with:** `/ar:cli-demo-recorder` (autorun plugin) or `/cli-demo-recorder` (skills root), or "Help me record a demo for my CLI tool" --- ## Choose Your Pathway [Both] Pick the pathway based on whether the tool has an interactive TUI session. Wrong choice → recording captures nothing useful. | Tool type | Interactive TUI? | Uses AI/LLM? | Correct pathway | |-----------|-----------------|--------------|-----------------| | Pure CLI (aise, git, curl) | No | No | **CLI**: harness IS the recording | | CLI + AI session (claude -p) | No TUI | Yes | **CLI**: verify output is useful | | Plugin/hook for TUI tool | Via TUI | Yes | **TUI live**: tmux + pane | | Plugin with hook-only acts | Via hook | No | **TUI scripted**: `run_hook()` + `--play` | | Spawns interactive TUI | Yes | Maybe | **TUI live**: drive TUI via tmux | | Batch/config tool | No | No | **CLI**: `capture_output=False` | **WARNING**: Using `subprocess.run(capture_output=True)` for a CLI demo silences recording entirely — asciinema captures nothing. See CLI pathway for the correct pattern. </purpose> --- <workflow> ## How It Works [Both] ### Phase 1: Plan (15–30 min) 1. **Read the tool's docs first**