بنقرة واحدة
record-demo
// Record terminal demos as GIFs using VHS tape files. Use when asked to record a demo, create a terminal recording, or generate a GIF of CLI usage.
// Record terminal demos as GIFs using VHS tape files. Use when asked to record a demo, create a terminal recording, or generate a GIF of CLI usage.
| name | record-demo |
| description | Record terminal demos as GIFs using VHS tape files. Use when asked to record a demo, create a terminal recording, or generate a GIF of CLI usage. |
| argument-hint | <description> |
Record a demo of $ARGUMENTS using VHS.
Check VHS is installed: Run which vhs. If not found, tell the user to install it with brew install vhs.
Create a .tape file in demos/ (create the directory if needed). Use this template:
# Demo: <description>
Output demos/<name>.gif # Always use .gif format
Set Shell "zsh"
Set FontSize 16
Set Width 1200
Set Height 600
Set Theme "Catppuccin Mocha"
Set TypingSpeed 75ms
Set Padding 20
Type "<command>"
Sleep 500ms
Enter
Sleep 3s
VHS Tape DSL reference: For the full command reference, see vhs-reference.md.
Tips for good demos:
Sleep after commands to let output render and be readableHide/Show to run setup commands invisiblySleep 3s at the end so viewers can see final outputSleep 500ms pause after each Type line (before Enter) to mimic a human pause./bin/slack directly as the CLI binary path (do NOT export PATH)Hide to cd into the app, then use ../bin/slack as the binary path--app A12345) to avoid interactive prompts when the ID is knownRun the recording: Execute vhs <filename>.tape to generate the output file.
Review: Open the demos/ directory with open demos/ so the user can review the output.