Vhs Terminal Recorderのロゴ

Vhs Terminal Recorder

コミュニティ
tmchow
vhs-terminal-recorder

ユーザーがCharmbracelet VHSを指定した場合、`vhs` CLIの使用を依頼した場合、ターミナル録画、ターミナルGIF、ターミナルMP4/WebM、`.tape`ファイル、スクリプトによるターミナルデモ、再現可能なコマンドラインのスクリーンキャストを求めた場合に使用してください。一般的なブラウザー録画、デスクトップ全体の画面キャプチャ、秘密情報を含む可能性があるスクリプトなしの対話セッションには使用しないでください。

概要

公開者tmchow
リポジトリagent-skills
スキル名vhs-terminal-recorder
スター
67
フォーク
4
同梱ファイル
指示のみ
ライセンスMIT
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 指示だけで完結

    モデルに必要なものはすべて指示に含まれているため、別途同期するファイルはありません。

  • オープンソース

    tmchowがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキル「Vhs Terminal Recorder」をTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/tmchow/agent-skills/tree/main/vhs-terminal-recorder
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/tmchow/agent-skills.git /tmp/agent-skills
mkdir -p .claude/skills
cp -r /tmp/agent-skills/vhs-terminal-recorder .claude/skills/vhs-terminal-recorder
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでVhs Terminal Recorderを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあるとすぐに、モデルが自動的にVhs Terminal Recorderを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Vhs Terminal Recorderは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、スキルを使わない間は指示の読み込みにトークンを消費しません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

VHS Terminal Recorder

When to use

Use this skill only when vhs or Charmbracelet VHS is actually the right surface:

  • user says vhs, Charmbracelet VHS, .tape, terminal GIF, terminal recording, command-line screencast, or scripted terminal demo
  • docs need a reproducible recording of CLI behavior
  • an existing VHS tape needs authoring, validation, rendering, or debugging

Do not use it for arbitrary desktop capture, browser product tours, video editing, or one-off interactive work that cannot be made deterministic. Use a video/screen-capture workflow instead when the subject is not a terminal.

Mental model

VHS runs a tape file in a pseudo-terminal and renders the terminal session to GIF, MP4, or WebM. Treat a tape like a small executable test:

  • the tape must create or point at deterministic state
  • commands shown to viewers should be short and intentional
  • setup belongs behind Hide / Show
  • vhs validate checks tape syntax but does not prove the commands work
  • vhs <file> executes the tape and can mutate files, hit the network, or run project commands

This skill is not the VHS language reference. For exact syntax, generate or inspect live docs:

bash
vhs --help
vhs manual
vhs new /tmp/example.tape
vhs validate /tmp/example.tape

Setup and verification

VHS is the Charmbracelet CLI from https://github.com/charmbracelet/vhs. Before depending on it, verify the local binary and help:

bash
vhs --version
vhs --help

Use command-specific help for current flags:

bash
vhs record --help
vhs validate --help
vhs publish --help

Rendering also depends on the local VHS render stack, especially ttyd and ffmpeg. If vhs validate passes but rendering fails before running the tape, check those binaries before changing tape logic.

If vhs is missing and the user wants it installed, prefer the upstream-supported package manager for the current machine. The common macOS/Linux path is:

bash
brew install vhs

For Windows, Arch, Nix, Docker, Debian/RPM packages, or Go source installs, use the upstream installation section instead of copying commands from memory: https://github.com/charmbracelet/vhs#installation

First render can be slow because VHS may initialize browser/rendering caches. Do not misdiagnose that as a bad tape until validation passes and the render actually fails.

Authoring rules

Start from a hand-written tape for agent-created demos. Use vhs record only as a rough draft, then clean the tape before committing it.

Keep tapes deterministic:

  • keep Output, Require, and most Set commands at the top of the tape before visible actions; VHS docs call out top-of-file ordering for dependencies and settings
  • set Output, Set Shell, Set Width, Set Height, Set FontSize, Set TypingSpeed, and Set Theme explicitly
  • add Require <program> for every external command the tape depends on
  • create fixtures or temp files in hidden setup instead of relying on the user's current shell state
  • prefer fake/sample values over real accounts, tokens, private paths, or production URLs
  • constrain noisy commands with flags, known fixtures, or small output windows
  • keep Type lines simple; put complex setup in a script or separate hidden commands instead of relying on nested quotes or command substitution
  • use Wait+Screen@<timeout> /pattern/ or Wait@<timeout> /prompt-or-line/ for readiness; reserve Sleep for presentation timing after readiness has happened
  • when waiting on a server, file watcher, or network dependency, prefer a hidden shell readiness loop or a visible command followed by a VHS Wait+Screen; do not rely on a bare fixed sleep

Minimal skeleton:

text
Output demo.gif

Require bash
Require your-cli

Set Shell "bash"
Set Width 1200
Set Height 700
Set FontSize 28
Set Theme "Builtin Dark"

Hide
Type "mkdir -p /tmp/vhs-demo && cd /tmp/vhs-demo"
Enter
Type "your-cli init --fixture small >/dev/null"
Enter
Show

Type "your-cli status"
Enter
Wait+Screen@5s /ready|ok|complete/
Sleep 1s

Best-practice scenarios

Create a docs GIF. Author a tape beside the docs or examples it supports, use a small deterministic fixture, validate it, render it, then inspect the output file before reporting success:

bash
vhs validate docs/demo.tape
vhs docs/demo.tape

Render another format. Prefer GIF for lightweight README embeds. Use MP4 or WebM when quality or file size matters:

text
Output demo.mp4
Output demo.webm

Use Output frames/ for a PNG sequence when post-processing is needed. Use text outputs such as Output golden.ascii only for integration-test/golden-file workflows, not as the normal docs artifact.

Choose a theme. Do not guess theme names from memory. List them and copy the theme string exactly:

bash
vhs themes
vhs themes --markdown

Validate several tapes. Quote globs so the shell does not expand or reject them before VHS sees the pattern, especially in zsh:

bash
vhs validate 'docs/*.tape'

Debug a failing tape. Validate first. If validation passes, run each viewer-facing command directly in a clean shell or temp directory. Most VHS failures are ordinary command failures hidden inside a recording.

Use recording mode. Reach for vhs record only to capture an exploratory interaction or learn a rough sequence. Rewrite the result into a short scripted tape with hidden setup, explicit dimensions, and no accidental local state.

Safety and publishing

Rendering executes the tape. Read untrusted tapes before running them.

Never capture or publish secrets. Before rendering or committing, scan the tape for tokens, real customer data, private paths, .env output, shell history, git remotes, and account-specific prompts.

Publishing uploads a GIF to vhs.charm.sh. Treat it as an external side effect: only run vhs publish <file>.gif or vhs <file> --publish when the user has explicitly approved that exact file for public sharing.

Pitfalls

  • vhs validate is parse-only; it does not run Require checks or prove the demo commands succeed.
  • Unquoted globs can fail in the shell before VHS runs.
  • Long command output makes unreadable recordings. Shrink the scenario instead of increasing terminal height until everything fits.
  • Nested quoting and shell command substitution inside Type lines can produce confusing parse errors. Simplify the line or move setup into a small script.
  • Plain Wait /pattern/ watches the current line. Use Wait+Screen /pattern/ when matching command output anywhere on the terminal.
  • VHS supports useful commands beyond the common demo path, including Screenshot, Source, Copy, Paste, and version-dependent Env; check vhs manual before using them, and never use Env as a way to smuggle real secrets into recordings.
  • Default shell, prompt, theme, size, and font can vary by machine. Set the recording surface explicitly.
  • Sleep hides races in the final video. Use hidden readiness checks for anything that depends on a server, file watcher, background job, or network.
  • Do not commit generated videos unless the repo expects binary demo assets. If unsure, ask before adding large GIF/MP4/WebM files to version control.

よくある質問

AIスキル「Vhs Terminal Recorder」では何ができますか?

ユーザーがCharmbracelet VHSを指定した場合、`vhs` CLIの使用を依頼した場合、ターミナル録画、ターミナルGIF、ターミナルMP4/WebM、`.tape`ファイル、スクリプトによるターミナルデモ、再現可能なコマンドラインのスクリーンキャストを求めた場合に使用してください。一般的なブラウザー録画、デスクトップ全体の画面キャプチャ、秘密情報を含む可能性があるスクリプトなしの対話セッションには使用しないでください。

TypingMindでVhs Terminal Recorderを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Vhs Terminal Recorderはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにVhs Terminal Recorderをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/tmchow/agent-skills/tree/main/vhs-terminal-recorderを貼り付けてください。TypingMindがSKILL.mdを読み込み、チャットごとに有効にできるスキルとしてインストールします。

Vhs Terminal Recorderを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストの内容がこのスキルの用途に合ったときに、このスキルを読み込めます。

Vhs Terminal Recorderで使えるAIモデルの数に制限はありますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもVhs Terminal Recorderを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Vhs Terminal Recorder」は無料ですか?

はい。tmchowがMITライセンスのもとでGitHubに公開しています。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇