diff --git a/.agent/skills/vhs.md b/.agent/skills/vhs.md new file mode 100644 index 00000000..a65ac714 --- /dev/null +++ b/.agent/skills/vhs.md @@ -0,0 +1,101 @@ +--- +description: Writing and editing VHS `.tape` files for terminal demo GIFs +--- + +# VHS Tape Files + +[VHS](https://github.com/charmbracelet/vhs) records terminal sessions into GIFs/MP4s/WebMs from `.tape` scripts. Run with `vhs demo.tape`. + +## Critical Syntax Rules + +### Type command and inline directives + +`Type`, `Sleep`, `Enter` are **separate directives on the same line**, delimited by the closing `"` of the `Type` string. The most common bug is forgetting to close the `Type` string, which causes `Sleep`/`Enter` to be typed literally into the terminal. + +``` +# ✅ CORRECT — closing " before Sleep +Type "echo hello" Sleep 300ms Enter + +# ❌ WRONG — Sleep and Enter are typed as literal text +Type "echo hello Sleep 300ms Enter +``` + +### Type with @speed override + +Override typing speed per-command with `@