vhs-cli-demos
БесплатноЗапускает вложенные скриптыНе проверенGenerate deterministic screenshots and demo GIFs of command-line and terminal (TUI) applications using Charm VHS. Use this skill whenever the user wants to…
от gfargo202 установки в других каталогахОб этом скилле
Capturing CLI & TUI apps with VHS
VHS (by Charm) drives a real PTY through a headless terminal and records exactly what a user would see — so captures are pixel-accurate, scriptable, and reproducible in CI. It's the right tool for README GIFs, docs/marketing stills, release demos, and terminal visual-regression tests. This skill is the methodology; it transfers to any CLI or TUI regardless of language (Go, Rust, Python, Node, a shell script — VHS only sees the terminal).
The single most important thing to internalize: a .tape is a screenplay, not
a config file. You're directing a short scene — what's typed, how long each
beat holds, when the camera clicks. Two failure modes dominate, and both are
covered below: captures that look wrong (loading spinners, drifting dates, empty
state — a determinism problem) and GIFs that are enormous (10-20 MB — a
file-size problem with a one-line lossless fix).
This skill assumes the interface being captured already looks good. If the user
is still shaping the TUI/CLI itself — layout, keybindings, color, what a screen
should even show — that's the tui-design skill's job; design it there first,
then come back here to capture it.
The essentials (if you read nothing else)
Three things separate a capture that ships from one that embarrasses you. Get these right and the rest is polish:
- Always optimize GIFs losslessly. Raw VHS GIFs are 10-20 MB of redundant
frames. Run
gifsicle -O3(lossless, 20-30× smaller, zero quality loss) — via the bundledscripts/optimize_gif.sh— or bake it into your pipeline. Never ship a raw VHS GIF, and never reach for lossy compression as the default fix. - Make it deterministic, and size it generously. Pin the clock, lock the
theme, pick a readable
FontSize, and settle long enough for cold-start. LeaveSet Width/Set Heightalone and let VHS use its roomy defaults: a too-small capture renders fine on its own but turns soft and blurry the moment it's scaled up to fill a README or docs column. (See Determinism.) - Use the right output.
Screenshot file.pngfor a single still;Output file.gif/.mp4for motion.Output file.pngis a trap — it records a frame sequence, not an image.
Everything below explains the why and the edge cases. When in doubt, those three are the load-bearing ones.
When to read which reference
Keep this body in context for the workflow and the hard-won lessons. Load a reference only when you reach that step:
references/tape-reference.md— the full VHS tape DSL (Set,Type,Sleep,Key,Hide/Show,Output,Screenshot,Source,Require), output formats (gif/mp4/webm/png), and complete annotated example tapes for both a still and a motion demo. Read it when authoring a non-trivial tape or when you need a command you don't remember.references/recipe-catalog-pattern.md— how to graduate from hand-written one-off tapes to a generated recipe catalog + driver when a project needs many captures kept in sync (the pattern behind a mature pipeline: typed recipe list, scenario fixtures, theme-palette mapping, a sync step to a docs/site folder). Read it when the user has more than a handful of captures or wants a repeatablenpm run screenshot-style workflow. Pairs withassets/recipe-catalog-starter/— a copy-pasteable implementation of the whole pattern, not just a description of it.references/recipe-catalog-advanced.md— techniques that only show up once a catalog reaches production scale (100+ recipes): mocking an external CLI a view depends on (gh/glab), an authentic cold-boot hero GIF instead of always hiding startup, decoupling the on-camera command from the real one, pinning a fast model for deterministic AI-response timing, and generating a theme gallery programmatically instead of hand-writing each variant. Read it once the base recipe-catalog pattern feels natural and a real need for one of these shows up.
Setup
brew install vhs # also available via Go, Nix, apt, scoop, docker
# VHS needs ffmpeg (and ttyd) for video/gif encoding — brew pulls them in.
brew install gifsicle # for the lossless GIF optimization step (below)
Verify with vhs --version. If vhs new demo.tape errors about ttyd/ffmpeg,
install those explicitly (brew install ttyd ffmpeg).
The core workflow
- Pick the output: a still PNG (
Screenshot) or a motion GIF (Output foo.gif). Stills are for docs/feature shots; GIFs for workflows in motion. - Write the tape — the scene. Start from
scripts/new_tape.sh demo [--gif|--still], which scaffolds a tape with the determinism defaults below already filled in (rather than barevhs new, which has none of them), or the annotated examples in the tape reference. - Make it deterministic — pin time, lock the theme, pick a readable font size, give the ap
Установить vhs-cli-demos в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
ReadWriteEditBashFAQ
Что делает скилл vhs-cli-demos?
Generate deterministic screenshots and demo GIFs of command-line and terminal (TUI) applications using Charm VHS. Use this skill whenever the user wants to capture, record, screenshot, or make a GIF/video of a CLI or terminal app — for a README, docs site, marketing page, changelog, release notes, or visual regression tests. Trigger on phrases like "record a gif of my CLI", "demo gif for the README", "screenshot my terminal app", "capture the TUI", "make a terminal recording", "VHS tape", "charm vhs", "asciinema but as a gif", or any request to show a terminal program in motion or as a still — even when the user doesn't name VHS. Also use when a captured GIF is too large and needs to be shrunk for the web, or when setting up a repeatable capture pipeline for many scenes. Covers install, authoring tapes, determinism, motion-GIF storytelling, and the lossless size-optimization that makes GIFs web-viable.
Как установить скилл vhs-cli-demos?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл vhs-cli-demos запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
от Anthropicacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
от Anthropicinternal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
от Anthropicskill-development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…
от Anthropic