github-demo-recording
Skill1 starsChanged 5 months agoMITView on GitHub
Auto-detect environment and record terminal/GUI demos for GitHub repos. Supports VHS, asciinema+agg, svg-term, and cua-driver modes. Single-command orchestration layer.
- Installs packages
- Commits and pushes
In this repository13 other files it gives its agents.
- fix-brew-node-dylib-mismatchSkill
- github-exposure-standardSkill
- github-project-discovery-hybridSkill
- install-tool-with-verificationSkill
- ios-app-build-automationSkill
- macos-backup-overwrite-onlySkill
- macos-deploy-python-tool-from-githubSkill
- macos-ram-swap-analysisSkill
- open-notebook-docker-ollama-setupSkill
- reddit-post-launch-workflowSkill
- self-regulation-brake-systemSkill
- social-media-account-registrationSkill
- webhook-subscriptionsSkill
The file
We split this skill into the rules it gives an agent
11 rules. About 0 are common, 6 are distinctive, and 5 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈6
Distinctive · estimate
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 31
Don't reinvent the wheel: Use existing tools as engines, orchestrate via AI.
- Distinctive: line 56
Run these checks in order to determine available tools:
- Distinctive: line 94
Ask or infer: what should the demo show?
- Very specific: line 101
If using VHS/tape mode: Create a .tape file with:
- Very specific: line 102
Create a .tape file with:
- Very specific: line 120
If using asciicast mode: Use script to capture real session, or write commands for asciinema rec.
- Very specific: line 121
Use script to capture real session, or write commands for asciinema rec.
- Distinctive: line 123
If using svg mode (best for headless/CI): Two approaches:
- Very specific: line 133
When svg-term is not available or fails, use the Python-based SVG generator from scripts/gen-svg.py.
- Distinctive: line 152
If using cua-screen mode:
- Distinctive: line 197
No flickering (stable frame rate)
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
GitHub Demo Recording Skill
Record terminal/GUI demos for GitHub repos. Single command, auto-detect environment, multiple output formats (GIF/SVG/MP4).
When to use
- User asks "點樣錄個 demo" or "整段 demo"
- User needs a GIF for README
- User asks "錄個安裝步驟" or "show me how to use"
- You need to create demo media for repo promotion
- The README has a placeholder like "Image: Demo"
Core principle
Don't reinvent the wheel. Use existing tools as engines, orchestrate via AI.
Architecture
Scenario Classifier → Script Generator → Executor → Quality Check → Delivery
│ │ │ │ │
│ ▼ ▼ ▼ ▼
tape/VHS demo.tape vhs run size/fps README update
asciicast asciinema agg render clarity git commit
svg svg-term svg output correctness release attach
cua-screen cua script cua record resolution asset uploadAvailable recording modes
| Mode | Tool | Output | Requirements | Best for |
tape | VHS (charmbracelet/vhs) | GIF | Go runtime | Terminal commands |
asciicast | asciinema + agg | GIF | Python + Rust | Terminal, cross-platform |
svg | svg-term-cli | SVG | Node.js | Headless/CI, inline README |
cua-screen | cua-driver + ffmpeg | MP4 | macOS + cua-daemon | GUI apps, full-screen |
Environment detection
Run these checks in order to determine available tools:
# VHS
which vhs && vhs --version
# asciinema
which asciinema && asciinema --version
# agg (asciinema/agg)
which agg && agg --version
# svg-term
which svg-term && svg-term --version
# cua-driver (MCP server)
test -f ~/.cua-driver/config.json && echo "cua-driver configured"
# ffmpeg (for GIF composition)
which ffmpeg && ffmpeg -version | head -1
# Native terminal capture
which script && which scriptreplayDemo types & auto-selection
| User says they want to demo... | Recommended mode | Priority |
| "裝 skills 嘅步驟" | tape (VHS) | High |
| "run 一個 command 嘅效果" | asciicast | High |
| "展示 GUI 操作" | cua-screen | Low (macOS only) |
| "睇 code 結構 / 目錄" | svg (svg-term) | Medium |
| "頭先講嘅 workflow" | Best available | Auto |
Step-by-step workflow
Step 1: Understand the demo goal
Ask or infer: what should the demo show?
- Installation process?
- Feature walkthrough?
- CLI usage flow?
- GUI interaction?
Step 2: Generate demo script
If using VHS/tape mode:
Create a .tape file with:
Output demo.gif
Set Width 800
Set Height 400
Set FontSize 14
Type "git clone https://github.com/user/repo.git" 1s
Enter
Sleep 3s
Type "cd repo" 1s
Enter
Sleep 1s
Type "ls" 500ms
Enter
Sleep 2s
# ... more stepsIf using asciicast mode:
Use script to capture real session, or write commands for asciinema rec.
If using svg mode (best for headless/CI): Two approaches:
Approach A: svg-term-cli (if available)
# Generate asciicast v2 JSON → SVG
svg-term --cast demo.cast --out demo.svg --windowApproach B: Pure Python SVG generator (recommended for headless)
When svg-term is not available or fails, use the Python-based SVG generator from scripts/gen-svg.py.
It generates an animated SVG with CSS @keyframes + <animate> — no external dependencies.
Output is a self-contained SVG that works in all browsers, on GitHub README, and scales perfectly.
The generator:
- Reads an asciicast v2 file (
.cast) - Reconstructs screen state over time from output data
- Strips ANSI escape codes, keeps printable characters
- Produces an animated SVG with per-frame opacity transitions (68 frames, ~28s duration)
- Output is typically 150-200KB (vs. 3-5MB for equivalent GIF)
Key features:
- Pure Python, no external deps
- Works in headless/CI environments
- Terminal color scheme (dark theme with traffic-light title bar)
- Color-codes output: green (headings/success), blue (prompts), gray (dim/comments), purple (box art)
- Final blinking cursor
- SVG can be embedded directly inline in Markdown, or linked as an external file
If using cua-screen mode:
- Launch Terminal.app via cua-driver
- Type commands via
type_text - Capture frames via
get_window_state - Composite via ffmpeg
Step 3: Execute recording
VHS mode:
vhs demo.tape
# Output: demo.gifasciinema mode:
# Record
asciinema rec demo.cast --command "bash demo-script.sh"
# Convert to GIF
agg demo.cast demo.gifsvg mode:
# Convert asciicast to SVG
svg-term --cast demo.cast --out demo.svg --windowStep 4: Quality check
# Check GIF size (should be < 5MB for GitHub)
ls -lh demo.gif
# Check dimensions
identify -verbose demo.gif | grep "Geometry" # requires ImageMagick
# Check frame count and FPS
identify -format "%n %s\n" demo.gif | head -5Minimum quality thresholds:
- File size < 5MB
- Width ≥ 600px
- Font readable
- No flickering (stable frame rate)
- Complete demo flow (no missing steps)
Step 5: Delivery
Update README:
## Demo
Create screenshots directory:
mkdir -p screenshots
mv demo.gif screenshots/Commit and push:
git add screenshots/demo.gif README.md
git commit -m "docs: add installation demo GIF"
git pushPitfalls
- Headless environment can't run VHS — VHS needs a real PTY. Fallback to svg-term which generates SVG from text.
- GIF > 5MB breaks GitHub rendering — Always quality-check. Use
gifsicle --optimize=3to compress. - asciinema needs a real terminal — In CI/headless, use
scriptcommand instead (always available on Linux). - VHS may not be installed — Auto-detect and suggest fallback. Never assume.
- Cua Driver needs macOS — Skip cua-screen mode on Linux/headless.
scriptcommand output includes ANSI escape codes — Useaggorsvg-termwhich handle ANSI natively.- Type speed matters — In VHS tape scripts, add
Sleepbetween commands for natural pacing.
Installation of tools
VHS (Go)
go install github.com/charmbracelet/vhs@latestOr on macOS:
brew install vhsasciinema (Python)
pip install asciinemaagg (Rust)
cargo install aggOr download from GitHub releases.
svg-term (Node.js)
npm install -g svg-term-cliTroubleshooting
| Problem | Cause | Fix |
| VHS "no PTY available" | Headless environment | Use svg-term fallback |
| GIF too large | Too many frames | Reduce frame count, use gifsicle |
| asciinema "not a terminal" | Script mode | Use script + agg pipeline |
| svg-term empty output | Invalid asciicast JSON | Check JSON validity |
| Cua Driver "permission denied" | TCC not granted | cua-driver check-permissions |
Verification checklist
- Environment detection completed
- Demo script generated
- Recording executed successfully
- Output file exists and is non-empty
- File size < 5MB (GIF) or < 1MB (SVG)
- Visual quality acceptable (readable, complete flow)
- README or target location updated
- Git commit made (if applicable)
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

