Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

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…

gfargoот 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:

  1. 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 bundled scripts/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.
  2. Make it deterministic, and size it generously. Pin the clock, lock the theme, pick a readable FontSize, and settle long enough for cold-start. Leave Set Width/Set Height alone 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.)
  3. Use the right output. Screenshot file.png for a single still; Output file.gif/.mp4 for motion. Output file.png is 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 repeatable npm run screenshot-style workflow. Pairs with assets/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

  1. 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.
  2. 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 bare vhs new, which has none of them), or the annotated examples in the tape reference.
  3. Make it deterministic — pin time, lock the theme, pick a readable font size, give the ap
Полный SKILL.md на ClawHub

Установить vhs-cli-demos в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Read
Write
Edit
Bash

FAQ

Что делает скилл 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 запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить vhs-cli-demos с