Install
openclaw skills install @tmchow/vhs-terminal-recorderThis skill should be used when the user names Charmbracelet VHS, asks to use the vhs CLI, wants a terminal recording, terminal GIF, terminal MP4/WebM, .tape file, scripted terminal demo, or a reproducible command-line screencast. Do NOT use for generic browser recording, full desktop screen capture, or unscripted secret-bearing interactive sessions.
openclaw skills install @tmchow/vhs-terminal-recorderUse this skill only when vhs or Charmbracelet VHS is actually the right surface:
vhs, Charmbracelet VHS, .tape, terminal GIF, terminal recording, command-line screencast, or scripted terminal demoDo not use it for arbitrary desktop capture, browser product tours, video editing, or one-off interactive work that cannot be made deterministic. Use a video/screen-capture workflow instead when the subject is not a terminal.
VHS runs a tape file in a pseudo-terminal and renders the terminal session to GIF, MP4, or WebM. Treat a tape like a small executable test:
Hide / Showvhs validate checks tape syntax but does not prove the commands workvhs <file> executes the tape and can mutate files, hit the network, or run project commandsThis skill is not the VHS language reference. For exact syntax, generate or inspect live docs:
vhs --help
vhs manual
vhs new /tmp/example.tape
vhs validate /tmp/example.tape
VHS is the Charmbracelet CLI from https://github.com/charmbracelet/vhs. Before depending on it, verify the local binary and help:
vhs --version
vhs --help
Use command-specific help for current flags:
vhs record --help
vhs validate --help
vhs publish --help
Rendering also depends on the local VHS render stack, especially ttyd and ffmpeg. If vhs validate passes but rendering fails before running the tape, check those binaries before changing tape logic.
If vhs is missing and the user wants it installed, prefer the upstream-supported package manager for the current machine. The common macOS/Linux path is:
brew install vhs
For Windows, Arch, Nix, Docker, Debian/RPM packages, or Go source installs, use the upstream installation section instead of copying commands from memory: https://github.com/charmbracelet/vhs#installation
First render can be slow because VHS may initialize browser/rendering caches. Do not misdiagnose that as a bad tape until validation passes and the render actually fails.
Start from a hand-written tape for agent-created demos. Use vhs record only as a rough draft, then clean the tape before committing it.
Keep tapes deterministic:
Output, Require, and most Set commands at the top of the tape before visible actions; VHS docs call out top-of-file ordering for dependencies and settingsOutput, Set Shell, Set Width, Set Height, Set FontSize, Set TypingSpeed, and Set Theme explicitlyRequire <program> for every external command the tape depends onType lines simple; put complex setup in a script or separate hidden commands instead of relying on nested quotes or command substitutionWait+Screen@<timeout> /pattern/ or Wait@<timeout> /prompt-or-line/ for readiness; reserve Sleep for presentation timing after readiness has happenedWait+Screen; do not rely on a bare fixed sleepMinimal skeleton:
Output demo.gif
Require bash
Require your-cli
Set Shell "bash"
Set Width 1200
Set Height 700
Set FontSize 28
Set Theme "Builtin Dark"
Hide
Type "mkdir -p /tmp/vhs-demo && cd /tmp/vhs-demo"
Enter
Type "your-cli init --fixture small >/dev/null"
Enter
Show
Type "your-cli status"
Enter
Wait+Screen@5s /ready|ok|complete/
Sleep 1s
Create a docs GIF. Author a tape beside the docs or examples it supports, use a small deterministic fixture, validate it, render it, then inspect the output file before reporting success:
vhs validate docs/demo.tape
vhs docs/demo.tape
Render another format. Prefer GIF for lightweight README embeds. Use MP4 or WebM when quality or file size matters:
Output demo.mp4
Output demo.webm
Use Output frames/ for a PNG sequence when post-processing is needed. Use text outputs such as Output golden.ascii only for integration-test/golden-file workflows, not as the normal docs artifact.
Choose a theme. Do not guess theme names from memory. List them and copy the theme string exactly:
vhs themes
vhs themes --markdown
Validate several tapes. Quote globs so the shell does not expand or reject them before VHS sees the pattern, especially in zsh:
vhs validate 'docs/*.tape'
Debug a failing tape. Validate first. If validation passes, run each viewer-facing command directly in a clean shell or temp directory. Most VHS failures are ordinary command failures hidden inside a recording.
Use recording mode. Reach for vhs record only to capture an exploratory interaction or learn a rough sequence. Rewrite the result into a short scripted tape with hidden setup, explicit dimensions, and no accidental local state.
Rendering executes the tape. Read untrusted tapes before running them.
Never capture or publish secrets. Before rendering or committing, scan the tape for tokens, real customer data, private paths, .env output, shell history, git remotes, and account-specific prompts.
Publishing uploads a GIF to vhs.charm.sh. Treat it as an external side effect: only run vhs publish <file>.gif or vhs <file> --publish when the user has explicitly approved that exact file for public sharing.
vhs validate is parse-only; it does not run Require checks or prove the demo commands succeed.Type lines can produce confusing parse errors. Simplify the line or move setup into a small script.Wait /pattern/ watches the current line. Use Wait+Screen /pattern/ when matching command output anywhere on the terminal.Screenshot, Source, Copy, Paste, and version-dependent Env; check vhs manual before using them, and never use Env as a way to smuggle real secrets into recordings.Sleep hides races in the final video. Use hidden readiness checks for anything that depends on a server, file watcher, background job, or network.