commit 76a9e7a0cc50754edf8918ef3e81ba47842df60c Author: wehub-resource-sync Date: Mon Jul 13 12:38:06 2026 +0800 chore: import upstream snapshot with attribution diff --git a/.agent/skills/vhs.md b/.agent/skills/vhs.md new file mode 100644 index 0000000..a65ac71 --- /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 `@