简介
Charm 官方出品的终端录屏工具,用声明式 Tape 文件生成专业级 GIF/MP4 演示,适合 CLI 文档与社交媒体传播
原始描述
Create professional terminal recordings with VHS tape files - guides through syntax, timing, settings, and best practices
通过你的 Agent 添加
安装目录:vhs-recorder/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。
点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。
或者手动安装
包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可;
目录名不用换,也不要把包直接解压到 skills 根目录。
技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。
中文使用说明 来自收录源
核心用法
VHS Recorder 是 Charm 团队开发的终端录制工具,采用声明式配置:用户编写 .tape 文件定义整个录制流程,包括输入命令、按键、等待时机、样式设置等,然后执行 vhs demo.tape 生成 GIF、MP4 或 WebM 等格式输出。
典型工作流:
- 编写 Tape 文件(设置输出格式→终端尺寸→主题→依赖检查→隐藏准备→核心演示→收尾)
- 使用
Hide/Show隔离初始化与正式内容 - 通过
Type+Enter+Wait+Sleep控制节奏 - 执行
vhs demo.tape自动生成动画
关键特性:
- 50+ 内置终端主题(Catppuccin、Dracula、Gruvbox 等)
- 精确时序控制(
Type@50ms内联覆盖、Wait /pattern/正则匹配) - 多格式输出(.gif/.mp4/.webm/.ascii/PNG序列)
- 环境变量注入、剪贴板操作、截图单帧
显著优点
- 可复现性:Tape 文件即代码,版本可控、团队协作、CI 集成友好
- 专业输出:像素级控制终端尺寸、字体、边距,告别手动录屏的抖动与不一致
- 效率极高:修改文字后秒级重新生成,无需重新操作终端
- 社区生态:Charm 品牌背书,GitHub 星标 15k+,持续维护
潜在局限
- 依赖较重:需安装
ttyd(Web 终端)和 ffmpeg(视频编码),Docker/CI 环境配置略复杂
- 交互限制:不支持需要真实用户输入的程序(如密码输入、交互式 TUI 的复杂导航)
- 学习曲线:Tape 语法需记忆,调试需反复生成预览
- 性能开销:
ffmpeg 编码大分辨率/长时长视频时资源占用高
适合人群
- 开源项目维护者(制作 README 演示动画)
- CLI 开发者(产品发布、文档视频)
- 技术布道者(Twitter/X、博客、会议演讲素材)
- DevRel 与产品市场团队
常规风险
- 输出体积:未优化的 GIF 可能数十 MB,建议配合
gifsicle 或转 MP4
- 时序漂移:
Wait 依赖终端输出匹配,复杂动画需手动微调 Sleep
- 敏感信息泄露:Tape 文件中的
Type 命令若含密钥,会明文记录并输出到动画
- 跨平台差异:字体渲染、终端颜色在不同系统生成结果可能有细微差异
- 依赖较重:需安装
ttyd(Web 终端)和ffmpeg(视频编码),Docker/CI 环境配置略复杂 - 交互限制:不支持需要真实用户输入的程序(如密码输入、交互式 TUI 的复杂导航)
- 学习曲线:Tape 语法需记忆,调试需反复生成预览
- 性能开销:
ffmpeg编码大分辨率/长时长视频时资源占用高
适合人群
- 开源项目维护者(制作 README 演示动画)
- CLI 开发者(产品发布、文档视频)
- 技术布道者(Twitter/X、博客、会议演讲素材)
- DevRel 与产品市场团队
常规风险
- 输出体积:未优化的 GIF 可能数十 MB,建议配合
gifsicle 或转 MP4
- 时序漂移:
Wait 依赖终端输出匹配,复杂动画需手动微调 Sleep
- 敏感信息泄露:Tape 文件中的
Type 命令若含密钥,会明文记录并输出到动画
- 跨平台差异:字体渲染、终端颜色在不同系统生成结果可能有细微差异
- 输出体积:未优化的 GIF 可能数十 MB,建议配合
gifsicle或转 MP4 - 时序漂移:
Wait依赖终端输出匹配,复杂动画需手动微调Sleep - 敏感信息泄露:Tape 文件中的
Type命令若含密钥,会明文记录并输出到动画 - 跨平台差异:字体渲染、终端颜色在不同系统生成结果可能有细微差异
技能正文
name: vhs-recorder
description: Create professional terminal recordings with VHS tape files - guides through syntax, timing, settings, and best practices
VHS Recorder
Create terminal recordings with Charm's VHS. Use when creating CLI demos, README animations, documentation videos.
Prerequisites
vhs installed (brew install vhs / go install github.com/charmbracelet/vhs@latest)
ttyd and ffmpeg on PATH
Tape File Structure
Output demo.gif # Outputs first
Set Width 1200 # Settings second
Set Theme "Catppuccin Mocha"
Require git # Requirements third
Hide # Hidden setup
Type "cd /tmp && clear"
Enter
Show
Type "your command" # Main recording
Enter
Wait
Sleep 2s
Core Commands
Command
Purpose
Type "text"
Type text (uses TypingSpeed setting)
Enter / Tab / Space
Key presses
Up / Down / Left / Right
Arrow navigation
PageUp / PageDown
Page navigation
Ctrl+C / Ctrl+D / Ctrl+L
Signal/EOF/clear combos
Wait / Wait /pattern/
Wait for prompt or regex match
Sleep 2s
Fixed pause (supports ms/s/m)
Hide/Show
Hide setup/cleanup from output
Type@50ms "text"
Override typing speed inline
Backspace N / Delete N
Delete N chars back/forward
Copy / Paste
Clipboard operations
Screenshot path.png
Capture single frame
Env VAR "value"
Set environment variable
Essential Settings
Setting
Default
Notes
Width/Height
1200/600
Terminal dimensions in pixels
FontSize
32
Text size; FontFamily for custom fonts
TypingSpeed
50ms
Per-char delay (override with Type@Xms)
Theme
-
Use vhs themes to list all available
Padding
40
Border space; LetterSpacing/LineHeight also available
Timing & Patterns
vhs installed (brew install vhs / go install github.com/charmbracelet/vhs@latest)ttyd and ffmpeg on PATHOutput demo.gif # Outputs first
Set Width 1200 # Settings second
Set Theme "Catppuccin Mocha"
Require git # Requirements third
Hide # Hidden setup
Type "cd /tmp && clear"
Enter
Show
Type "your command" # Main recording
Enter
Wait
Sleep 2s
Core Commands
Command
Purpose
Type "text"
Type text (uses TypingSpeed setting)
Enter / Tab / Space
Key presses
Up / Down / Left / Right
Arrow navigation
PageUp / PageDown
Page navigation
Ctrl+C / Ctrl+D / Ctrl+L
Signal/EOF/clear combos
Wait / Wait /pattern/
Wait for prompt or regex match
Sleep 2s
Fixed pause (supports ms/s/m)
Hide/Show
Hide setup/cleanup from output
Type@50ms "text"
Override typing speed inline
Backspace N / Delete N
Delete N chars back/forward
Copy / Paste
Clipboard operations
Screenshot path.png
Capture single frame
Env VAR "value"
Set environment variable
Essential Settings
Setting
Default
Notes
Width/Height
1200/600
Terminal dimensions in pixels
FontSize
32
Text size; FontFamily for custom fonts
TypingSpeed
50ms
Per-char delay (override with Type@Xms)
Theme
-
Use vhs themes to list all available
Padding
40
Border space; LetterSpacing/LineHeight also available
Timing & Patterns
| Command | Purpose |
|---|---|
Type "text" |
Type text (uses TypingSpeed setting) |
Enter / Tab / Space |
Key presses |
Up / Down / Left / Right |
Arrow navigation |
PageUp / PageDown |
Page navigation |
Ctrl+C / Ctrl+D / Ctrl+L |
Signal/EOF/clear combos |
Wait / Wait /pattern/ |
Wait for prompt or regex match |
Sleep 2s |
Fixed pause (supports ms/s/m) |
Hide/Show |
Hide setup/cleanup from output |
Type@50ms "text" |
Override typing speed inline |
Backspace N / Delete N |
Delete N chars back/forward |
Copy / Paste |
Clipboard operations |
Screenshot path.png |
Capture single frame |
Env VAR "value" |
Set environment variable |
| Setting | Default | Notes |
|---|---|---|
| Width/Height | 1200/600 | Terminal dimensions in pixels |
| FontSize | 32 | Text size; FontFamily for custom fonts |
| TypingSpeed | 50ms | Per-char delay (override with Type@Xms) |
| Theme | - | Use vhs themes to list all available |
| Padding | 40 | Border space; LetterSpacing/LineHeight also available |
Timing & Patterns
3-2-1 Rule: 3s after important commands, 2s between actions, 1s for transitions
- Clean start:
Hide→Type "clear"→Enter→Show - Command-wait:
Type→Enter→Wait→Sleep 2s - Fast hidden:
Type@10ms "setup command" - ASCII preview:
Output demo.asciifor instant test
Output Formats
Format
Use Case
.gif
Web/README (universal)
.mp4/.webm
Social media / modern browsers
.ascii
Preview/test (instant, no ffmpeg)
frames/
PNG sequence for post-processing
Quick Fixes
Issue
Solution
Commands too fast
Add Wait + Sleep 2s after Enter
Messy terminal
Hide → clear → Show at start
Inconsistent pacing
Follow 3-2-1 timing rule
CLI Commands
vhs demo.tape # Run tape file
vhs themes # List all available themes
vhs manual # Show full command reference
References
- vhs-syntax.md - Full command reference
- timing-control.md - Pacing strategies
- settings.md - All configuration options
- examples.md - Real-world tape files
| Format | Use Case |
|---|---|
.gif |
Web/README (universal) |
.mp4/.webm |
Social media / modern browsers |
.ascii |
Preview/test (instant, no ffmpeg) |
frames/ |
PNG sequence for post-processing |
| Issue | Solution |
|---|---|
| Commands too fast | Add Wait + Sleep 2s after Enter |
| Messy terminal | Hide → clear → Show at start |
| Inconsistent pacing | Follow 3-2-1 timing rule |
CLI Commands
vhs demo.tape # Run tape file
vhs themes # List all available themes
vhs manual # Show full command reference
References
- vhs-syntax.md - Full command reference
- timing-control.md - Pacing strategies
- settings.md - All configuration options
- examples.md - Real-world tape files
vhs demo.tape # Run tape file
vhs themes # List all available themes
vhs manual # Show full command reference
- vhs-syntax.md - Full command reference
- timing-control.md - Pacing strategies
- settings.md - All configuration options
- examples.md - Real-world tape files
正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。