home / skills / yonatangross / orchestkit / terminal-demo-generator
/plugins/ork/skills/terminal-demo-generator
This skill helps you create authentic terminal demos using asciinema and VHS scripts for Claude Code recordings and video production.
npx playbooks add skill yonatangross/orchestkit --skill terminal-demo-generatorReview the files below or copy the command above to add this skill to your agents.
---
name: terminal-demo-generator
description: Terminal recording patterns using VHS (scripted) and asciinema (real). Documents tape format, cast editing, Claude Code CLI simulation, and conversion to video.
context: inherit
version: 2.0.0
author: OrchestKit
tags: [demo, video, vhs, asciinema, terminal, recording, cli]
user-invocable: false
---
# Terminal Demo Generator
Two approaches for terminal demo recordings:
| Method | Best For | Authenticity |
|--------|----------|--------------|
| **asciinema** | Real CC sessions, actual output | ⭐⭐⭐⭐⭐ |
| **VHS scripts** | Controlled demos, reproducible | ⭐⭐⭐ |
## Quick Start
### Real Session (Recommended)
```bash
# Record actual Claude Code session
asciinema rec --cols 120 --rows 35 -i 2 demo.cast
# Convert to MP4 via VHS
vhs << 'EOF'
Output demo.mp4
Set Width 1400
Set Height 800
Source demo.cast
EOF
```
### Scripted Demo
```bash
# Generate script via demo-producer
./skills/demo-producer/scripts/generate.sh skill verify
# Record with VHS
vhs orchestkit-demos/tapes/sim-verify.tape
```
## Recording Methods
### 1. Asciinema (Real Sessions)
Record actual Claude Code usage:
```bash
# Start recording
asciinema rec \
--cols 120 \
--rows 35 \
--idle-time-limit 2 \
session.cast
# Inside recording:
claude
> /verify
# ... real Claude output ...
> exit
```
See `references/asciinema-recording.md` for editing and conversion.
### 2. VHS Scripts (Controlled)
Pre-scripted terminal simulations:
```tape
Output demo.mp4
Set Shell "bash"
Set FontFamily "Menlo"
Set FontSize 16
Set Width 1400
Set Height 800
Set Theme "Dracula"
Set Framerate 30
Type "./demo-script.sh"
Enter
Sleep 15s
```
## Claude Code CLI Patterns
### Status Bar (CC 2.1.16+)
```
[Opus 4.5] ████████░░ 42% | ~/project git:(main) | ● 3m
✓ Bash ×3 | ✓ Read ×5 | ✓ Grep ×2 | ✓ Task ×∞
>> bypass permissions on (shift+Tab to cycle)
```
### Task Management
```
◆ TaskCreate #1 "Analyze codebase"
◆ TaskCreate #2 "Security scan"
◆ TaskCreate #3 "Generate report" blockedBy: #1, #2
◆ TaskUpdate: #1, #2 → in_progress (PARALLEL)
✓ Task #1 completed
✓ Task #2 completed
◆ Task #3 unblocked (2/2 resolved)
```
### Agent Spawning
```
⚡ Spawning 6 parallel agents via Task tool
▸ code-reviewer spawned
▸ security-auditor spawned
▸ test-generator spawned
```
## Color Codes
```bash
P="\033[35m" # Purple - skills, agents
C="\033[36m" # Cyan - info, tasks
G="\033[32m" # Green - success
Y="\033[33m" # Yellow - warnings, progress
R="\033[31m" # Red - errors
D="\033[90m" # Gray - dim/secondary
B="\033[1m" # Bold
N="\033[0m" # Reset
```
## Pipeline Integration
Terminal recordings feed into the full demo pipeline:
```
terminal-demo-generator → demo-producer → remotion-composer
(asciinema/VHS recording) (orchestration) (final composition)
↓
manim-visualizer
(animations)
```
## References
- `references/asciinema-recording.md` - Real session recording
- See `demo-producer` for full pipeline
- See `remotion-composer` for video composition
This skill generates and manages terminal demo recordings using two complementary approaches: real session capture with asciinema and scripted simulations with VHS. It documents tape format, color codes, Claude Code CLI patterns, cast editing, and conversion into MP4 for inclusion in demo pipelines. The output integrates with a demo-producer and remotion-composer workflow for final video composition.
For real sessions, it uses asciinema to record an interactive Claude Code session into a .cast file, which preserves real terminal output and timing. For controlled demos, it uses VHS tape scripts that describe typed input, sleeps, styling, and output destination, producing reproducible MP4s. The skill also documents CLI status bar, task/agent patterns, terminal color codes, and conversion steps to fit into an automated demo pipeline.
Which method produces the most authentic output?
Asciinema records actual sessions and produces the most authentic output and timing.
When should I use VHS scripts instead?
Use VHS for controlled, repeatable demos where exact timing, fonts, or theme matter and you want reproducible results.
How do I convert a .cast to MP4?
Record with asciinema to create a .cast, then use VHS to load the cast and render to MP4 with specified width, height, and framerate.