kergoth/dotfiles/vhs-demos
Claude Code and agent skill by kergoth/dotfiles
- community
Checking that the SKILL.md file is still in the repository.
Reference for recording terminal demo GIFs with VHS (charmbracelet/vhs). Use whenever the user wants to record, demo, or show off a CLI tool or workflow: "make a demo gif", "record this", "show X in action", "create a terminal animation", "make a demo for the PR", "capture this workflow", or any request to produce a GIF or MP4 of a terminal session. Also use when the user is already writing a .tape file and hits a VHS-specific issue (timing, sizing, Hide/Show, colors, stubs).
Install
npx vskill@latest install kergoth/dotfiles/vhs-demosSKILL.md
The same SKILL.md was published earlier as kergoth/dotfiles/vhs-demos.
VHS Demo Recording
VHS records terminal sessions into GIF/MP4 by executing commands in a pseudo-terminal and capturing frames.
Gotchas
Width/Height are pixels, not columns. Set Width 100 produces a 120×120 minimum-dimension error. Use pixel values: 1200×600 is a reasonable default for a readable widescreen GIF.
`Hide` does not erase scrollback. Commands in a Hide block still run and their output sits in the terminal buffer. Add Ctrl+L (or Type "clear"; Enter as a fallback) followed by Sleep 200ms at the end of the Hide block before Show, or setup commands bleed into the recording. Ctrl+L is preferred: it clears the visible screen in one line with no typing animation artifact.
`Read` on a GIF shows only the first frame. To verify what the recording looks like at the end, extract the last frame with ffmpeg:
Then Read /tmp/last.png.
Color PS1 needs readline width guards. Without \001...\002 wrappers the cursor position is miscalculated and the prompt wraps incorrectly. Use a sourced setup script rather than inline tape escaping:
`Sleep` timing is recording time, not playback time. Set Sleep values to cover real command execution. PlaybackSpeed compresses the recorded frames in post — it does not affect what gets recorded.
Timing strategy
- Try `Set PlaybackSpeed N` first. It compresses the whole GIF uniformly
with no other changes. If the ratio between fast and slow operations is acceptable at the chosen multiplier, you're done. PlaybackSpeed 2.0–3.0 covers most cases where one step is moderately slow.
- Use stubs when the ratio is unworkable. If a 1s git fetch and a 60s AI
analysis both need to look natural, no single PlaybackSpeed value works. Create stub executables in a temp directory and prepend to PATH via the setup script. Stubs must emit the exact stderr messages the real tool would produce — silent stubs misrepresent behavior.
- Measure real durations first. Run the commands outside vhs and note wall
time. Set tape Sleep values to real_time × 1.3 plus a 3–4s tail pause on the final command so output is fully visible when the GIF ends.
- `Type@Xms` overrides typing speed per command without changing the global
Set TypingSpeed. Useful for one-off adjustments.
Minimal tape template
Stub pattern
GitHub embedding
Drag the GIF into the PR description textarea. GitHub uploads it to their CDN and inserts an  link automatically — no external hosting needed.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckinghome/dot_agents/skills/vhs-demos/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/kergoth/dotfiles/vhs-demos)