一键导入
demo-video
Create or update demo videos for payload-content-cli using VHS. Generates GIF and MP4 from a scripted terminal recording with mock CLI output.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Create or update demo videos for payload-content-cli using VHS. Generates GIF and MP4 from a scripted terminal recording with mock CLI output.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | demo-video |
| description | Create or update demo videos for payload-content-cli using VHS. Generates GIF and MP4 from a scripted terminal recording with mock CLI output. |
Create or update demo videos for the payload-content-cli project using VHS (charmbracelet/vhs).
Script first — Before touching any files, write a human-readable script with scenes (command + expected output) and present it to the user for review. Do NOT generate video until the script is approved.
Update mock CLI — If the script includes commands not yet handled by .claude/skills/demo-video/mock-cli.sh, add cases for them. The mock matches on $1 (command name) and flags to return realistic JSON output. This avoids needing a running Payload instance.
Write the tape — Edit .claude/skills/demo-video/demo.tape. VHS syntax rules:
Type "text" for regular stringsType `payload-content find posts --select '{"title":true}'`\") do NOT work in VHS Type — always use backticks insteadHide/Show to hide setup commands (alias wiring, clear)Sleep Xs for pauses between scenesType "alias payload-content='./.claude/skills/demo-video/mock-cli.sh'"Generate — Run vhs .claude/skills/demo-video/demo.tape from the project root. Output goes to .claude/skills/demo-video/output/.
Preview — Extract frames with ffmpeg to verify scenes look correct:
ffmpeg -i .claude/skills/demo-video/output/demo.mp4 -vf "select=eq(n\,N)" -frames:v 1 -update 1 -y /tmp/frame.png
Show frames to the user for approval.
.claude/skills/demo-video/
SKILL.md # This skill file
demo.tape # VHS script — defines what gets typed and shown
mock-cli.sh # Mock CLI that simulates payload-content output
output/
demo.gif # Generated GIF (good for README/GitHub embeds)
demo.mp4 # Generated MP4 (good for Twitter/LinkedIn)
Set Shell zsh
Set FontSize 18
Set Width 1200
Set Height 700
Set Padding 20
Set Theme "Catppuccin Mocha"
Set TypingSpeed 35ms
Sleep values that give enough time to read output but don't drag.vhs publish .claude/skills/demo-video/output/demo.gifvhs (brew install vhs) and ffmpeg.