Claude-skill-registry cli-demo-gif
Generate CLI demo GIFs using vhs (Charmbracelet). Use when creating terminal recordings for README files or documentation.
install
source · Clone the upstream repo
git clone https://github.com/majiayu000/claude-skill-registry
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/majiayu000/claude-skill-registry "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/data/cli-demo-gif" ~/.claude/skills/majiayu000-claude-skill-registry-cli-demo-gif && rm -rf "$T"
manifest:
skills/data/cli-demo-gif/SKILL.mdsource content
CLI Demo GIF Generator
Create polished terminal demo GIFs using vhs.
Prerequisites
brew install vhs
Usage
1. Create tape file
Place in
docs/demo/ to keep root clean:
mkdir -p docs/demo
2. Tape file structure
# Description comment Output docs/demo/demo.gif Set Shell "bash" Set FontSize 16 Set Width 900 Set Height 500 Set Padding 20 Set Theme "Catppuccin Mocha" Set TypingSpeed 50ms # Commands here Type "command --help" Enter Sleep 2s
3. For unpublished CLI packages
Use Hide/Show to set up aliases silently before the visible demo:
# Set up alias without showing it Hide Type "alias mycli='bun run src/cli/index.ts'" Enter Sleep 500ms Show # Now show the demo with clean commands Type "mycli --help" Enter Sleep 2s
4. Generate GIF
vhs docs/demo/cli.tape
Tape Commands Reference
| Command | Description |
|---|---|
| Output file path (.gif, .mp4, .webm) |
| Shell to use |
| Font size (16 recommended) |
| Terminal width in pixels |
| Terminal height in pixels |
| Padding around terminal |
| Color theme |
| Delay between keystrokes |
| Type text |
| Press enter |
| Wait (e.g., 2s, 500ms) |
| Stop recording |
| Resume recording |
| Send interrupt |
Recommended Themes
- dark, modernCatppuccin Mocha
- dark purpleDracula
- dark blueTokyo Night
- darkOne Dark
- GitHub's dark themeGitHub Dark
Tips
- Keep GIFs under 1MB for fast loading
- Use
generously so viewers can read outputSleep - 50ms typing speed looks natural
- 900x500 works well for most CLIs
- Show 3-5 commands max per GIF