mcpField
C
cli-demo-gif

cli-demo-gif

github.com/b-open-ioCreative & media1662 installsUpdated 4w ago
Repository

About cli-demo-gif

A skill for creating terminal demo GIFs for CLI projects. It guides agents through writing a VHS tape file and rendering it.

Key features

  1. 01Create VHS tape files
  2. 02Set terminal appearance and timing
  3. 03Hide setup commands from recording
  4. 04Render GIF, MP4, or WebM demos

Use cases

  1. 01Document a CLI with a terminal demo
  2. 02Show CLI usage without recording setup commands

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/b-open-io/prompts --skill cli-demo-gif

After installing, type/cli-demo-gifin Claude Code to confirm it loaded.

Bundled files.clawnet/unsigned-skill.jsonREADME.md

Details

From the project README

CLI Demo GIF Generator

Generate terminal demo GIFs using vhs. When asked to create a CLI demo GIF, produce a .tape file and render it.

Steps

1. Create tape file

Place tape files in docs/demo/ to keep the project root clean:

mkdir -p docs/demo

Write the tape file with appropriate settings for the project's CLI:

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

Type "command --help"
Enter
Sleep 2s
2. For unpublished CLI packages

Use Hide/Show to configure aliases before the visible demo starts:

Hide
Type "alias mycli='bun run src/cli/index.ts'"
Enter
Sleep 500ms
Show

Type "mycli --help"
Enter
Sleep 2s
3. Render the GIF
vhs docs/demo/cli.tape

Tape Command Reference

CommandDescription
Output <path>Output file path (.gif, .mp4, .webm)
Set Shell "bash"Shell to use
Set FontSize <n>Font size
Set Width <n>Terminal width in pixels
Set Height <n>Terminal height in pixels
Set Padding <n>Padding around terminal
Set Theme "<name>"Color theme
Set TypingSpeed <duration>Delay between keystrokes
Type "<text>"Type text
EnterPress enter
Sleep <duration>Wait (e.g., 2s, 500ms)
HideStop recording
ShowResume recording
Ctrl+CSend interrupt

Default Settings

Use these defaults unless the user specifies otherwise:

  • Theme: Catppuccin Mocha
  • TypingSpeed: 50ms
  • Width: 900, Height: 500
  • FontSize: 16
  • Output directory: docs/demo/

Comments

Markdown supported