gh-infra: Skill for Claude Code

.claude/skills/vhs-demo/SKILL.md

vhs-demo is a skill for Claude Code from babarot/gh-infra. It costs 35 tokens per session (1,279 once invoked), scanned A, original, MIT.

Instructions for recording terminal demos with VHS and converting the recordings into GIF images. The process uses Docker, a tool for running isolated environments, plus ffmpeg for video conversion.

In plain words
What is it for?
Use it to run the demo build, troubleshoot recording problems, or regenerate GIFs from existing MP4 video files.
Why use it?
It documents the project’s recording pipeline and helps diagnose failed recordings or empty GIF files.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

This is babarot/gh-infra's own configuration. It tells Claude Code how to work on gh-infra itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything gh-infra configures →

Reuse

Borrowing it

Nothing to install: this file belongs to babarot/gh-infra. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/babarot/gh-infra/main/.claude/skills/vhs-demo/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/babarot/gh-infra

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for vhs-demo

README.md
[![agentmods](https://agentmods.dev/badge/skills/babarot/gh-infra/vhs-demo/github.svg)](https://agentmods.dev/skills/babarot/gh-infra/vhs-demo)
Your own site
<a href="https://agentmods.dev/skills/babarot/gh-infra/vhs-demo"><img src="https://agentmods.dev/badge/skills/babarot/gh-infra/vhs-demo/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for vhs-demo

Your own site · 80×15
<a href="https://agentmods.dev/skills/babarot/gh-infra/vhs-demo"><img src="https://agentmods.dev/badge/skills/babarot/gh-infra/vhs-demo.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 35 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,279 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00035 $0.01279
Opus 5 $0.00017 $0.00639
Sonnet 5 $0.00007 $0.00256
Haiku 4.5 $0.00003 $0.00128

Measured 13d ago against content hash 5ab1b10c9a7e, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

vhs-demo scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 13d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/skills/vhs-demo/SKILL.md · 119 lines

How it starts

The opening of the file, as written. The whole thing — 119 lines — stays where its author put it; the contents beside it link to each section on GitHub.

VHS Demo Recording

Use this skill to run, debug, or regenerate gh-infra demo GIF recordings.

When To Use

  • Running make demo or docs/tapes/vhs.sh directly
  • Diagnosing why a recording failed or produced a 0-byte GIF
  • Regenerating GIFs from existing MP4s without re-recording
  • Understanding the recording pipeline

Prerequisites

  • Docker must be running
  • Go toolchain (for cross-compiling the Linux binary)

Pipeline

make demo
  1. go build -o docs/tapes/.gh-infra  (GOOS=linux GOARCH=amd64)
  2. docs/tapes/vhs.sh
     a. docker build → gh-infra-vhs image (VHS + vim)
     b. For each *.tape in parallel:
        docker run --memory=1g --cpus=2 → produces .mp4
     c. For each .mp4 sequentially:
        docker run jrottenberg/ffmpeg:7-alpine → produces .gif
  3. Copy GIFs to docs/public/
  4. Clean up .gh-infra binary

Why MP4 → GIF Instead of Direct GIF

VHS's built-in GIF output is unreliable when multiple containers run in parallel on macOS. The workaround is to output MP4 only from VHS, then convert to GIF via ffmpeg with high-quality settings (lanczos scaling, sierra2_4a dithering, 256 colors).

Key Files

File Role
docs/tapes/vhs.sh Orchestrator: parallel recording + sequential GIF conversion
docs/tapes/Dockerfile ghcr.io/charmbracelet/vhs + vim
docs/tapes/*.tape VHS scenario files
docs/tapes/setup*.sh Per-demo setup scripts (mock data, gh wrapper)
docs/tapes/mock-gh Generic mock for gh CLI
docs/tapes/.gh-infra Cross-compiled Linux binary (ephemeral)

Output Locations

  • Raw recordings: docs/tapes/*.mp4 and docs/tapes/*.gif
  • Published assets: docs/public/demo*.gif (copied by Makefile)

Environment Variables

make demo forwards DEMO_ENV variables into Docker via -e flags. Use this to pass environment overrides (e.g. GH_INFRA_OUTPUT) into the recording containers.

Resource Planning

All tapes run in parallel. Each container requests --memory and --cpus (see vhs.sh). The total resource demand is:

Read the full file on GitHub · 119 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 13d ago First seen · 119 lines · 35 tokens per session scan A 5ab1b10c9a7e

Subscribe to this mod's changes

vhs-demo is a skill published in the GitHub repository babarot/gh-infra (134 stars, last pushed 3mo ago), licensed MIT. It adds 35 tokens to every session and 1,279 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

gh-attach

Uploads a local file (screenshot, image, PDF, zip, video) to GitHub user-attachments, downloads GitHub user-attachments, and embeds local files in a PR, issue, or comment. Use when asked to "attach a screenshot to the PR", "add an image to the issue", "embed before/after screenshots", "attach this file", or "download…

sudosubin/gh-attach · 94 tokens

clickup-cli

ClickUp CLI for managing tasks, sprints, comments, statuses, Docs, and archiving. Use when the user needs to interact with ClickUp — creating/editing/archiving tasks, checking sprint status, adding comments, linking PRs, managing Docs and pages, or searching tasks. Includes a generic clickup api passthrough covering…

triptechtravel/clickup-cli · 90 tokens

pkup-enchant

Enrich an existing PKUP report directory — group commits into tasks, filter out non-creative groups, and write Polish descriptions. Use when the user has already generated a PKUP report and wants to clean it up or add "Zaprojektowałem..." descriptions.

pPrecel/pkup-gen · 59 tokens

pkup-gen

Generate a PKUP report for given GitHub users. Use when the user asks to generate a PKUP report.

pPrecel/pkup-gen · 27 tokens

gh-stack

Manages stacked PRs and splits multi-part work into reviewable branches with gh-stack. Use for stack creation, viewing, edits, push, submit, sync, rebase, merge, or checkout; when asked to split or isolate work for review; whenever a user mentions a stack, branch layers, dependent PRs, or gh stack; or when a stack is…

github/gh-stack · 80 tokens

dd-code-generation

Use pup CLI for immediate Datadog operations or generate code for integration into applications.

DataDog/pup · 16 tokens