360 Secure SkillHub
360 安全技能中心

vhs-recording

核心功能是将声明式VHS脚本(定义终端命令、时序、外观)转换为专业终端操作GIF录屏。适用于录制CLI工作流、制作教程演示文档,不适用于浏览器或GUI场景。需提供符合语法的VHS tape文件作为输入,输出为指定路径的GIF,工作流程含脚本验证、依赖检查、录制执行及输出验证。

athola
athola
热度 62.84
最近更新 2026-08-26 21:24:18
分类:自动化依赖:代码执行 / 读写文件应用场景:自动化脚本 / 图像生成 / tutorial / 工作流

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add nm-scry-vhs-recording
Metadata
name
vhs-recording
description
Generates terminal recordings using VHS tape scripts and produces GIF outputs
version
1.9.8
triggers
["vhs","terminal","recording","gif","demo","tutorial","creating demo GIFs or documenting CLI workflows for tutorials"]
metadata
{"openclaw":{"homepage":"https://github.com/athola/claude-night-market/tree/master/plugins/scry","emoji":"🦞"}}
source
claude-night-market
source_plugin
scry

Night Market Skill — ported from claude-night-market/scry. For the full experience with agents, hooks, and commands, install the Claude Code plugin.

VHS Recording Skill

Generate professional terminal recordings from VHS tape files.

When To Use

  • Recording terminal sessions with VHS tape scripts
  • Creating terminal demo recordings for documentation

When NOT To Use

  • Browser-based workflows - use scry:browser-recording instead
  • Non-terminal demos or GUI applications

Overview

VHS converts declarative tape files into animated GIFs of terminal sessions. Tape files define commands, timing, and terminal appearance.

Required TodoWrite Items

- Locate and validate tape file
- Check VHS installation status
- Execute VHS recording
- Verify output GIF creation

Module Reference

  • See modules/tape-syntax.md for VHS tape file directives
  • See modules/execution.md for recording workflow details

Workflow

Phase 1: Validate Tape File

  1. Confirm tape file exists at specified path
  2. Read tape file contents
  3. Verify required directives:
    • Output directive specifies GIF destination
    • At least one action command (Type, Enter, etc.)

Phase 2: Check VHS Installation

which vhs && vhs --version

If not installed:

# Linux/WSL
go install github.com/charmbracelet/vhs@latest

# macOS
brew install charmbracelet/tap/vhs

# Also requires ttyd and ffmpeg

Phase 3: Execute Recording

vhs <tape-file.tape>

VHS will:

  1. Parse tape file directives
  2. Launch virtual terminal (ttyd)
  3. Execute commands with timing
  4. Capture frames
  5. Encode to GIF using ffmpeg

Phase 4: Verify Output

  1. Check GIF file exists at Output path
  2. Verify file size is non-zero
  3. Report success with output location

Exit Criteria

  • GIF file created at specified Output path
  • File size indicates successful recording (typically >50KB)
  • No error messages from VHS execution

Troubleshooting

Common Issues

If vhs is not found, verify that your Go bin directory is in your PATH (typically ~/go/bin). If the recording fails to start, ensure ttyd and ffmpeg are installed, as VHS depends on them for terminal emulation and video encoding. For "permission denied" errors when writing the GIF, check that the output directory exists and is writable.