vhs-e2e-gif

vhs-e2e-gif is a skill for Claude Code, Codex from dimetron/pi-go. It costs 106 tokens per session (1,938 once invoked), scanned A, original, MIT.

A workflow that records an end-to-end test, terminal session, or command as a GIF using VHS. It can attach the recording to a GitHub pull request as a hosted asset instead of committing it to the repository.

In plain words
What is it for?
Use it to make a visual test demo, record a terminal workflow, or add a passing end-to-end run to a pull request.
Why use it?
It lets reviewers see a test or fix running successfully without checking out the branch, while avoiding common recording and upload mistakes.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is scripts/record-gif.sh "go test -tags e2e ./internal/agent/ -run TestE2E -v 2>&1 | grep -E '^(--- |ok|FAIL)'".

Good fit Use it to make a visual test demo, record a terminal workflow, or add a passing end-to-end run to a pull request.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/dimetron/pi-go
agentmods
npx agentmods add skills/dimetron/pi-go/vhs-e2e-gif

Made for: Claude Code, Codex.

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-e2e-gif

README.md
[![agentmods](https://agentmods.dev/badge/skills/dimetron/pi-go/vhs-e2e-gif/github.svg)](https://agentmods.dev/skills/dimetron/pi-go/vhs-e2e-gif)
Your own site
<a href="https://agentmods.dev/skills/dimetron/pi-go/vhs-e2e-gif"><img src="https://agentmods.dev/badge/skills/dimetron/pi-go/vhs-e2e-gif/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-e2e-gif

Your own site · 80×15
<a href="https://agentmods.dev/skills/dimetron/pi-go/vhs-e2e-gif"><img src="https://agentmods.dev/badge/skills/dimetron/pi-go/vhs-e2e-gif.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 106 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,938 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. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Excessive Agency · line 9
    Skill enables autonomous high-impact decisions without human-in-the-loop verification. Critical operations (destructive commands, financial transactions, data deletion) should require explicit user confirmation.
    Fix: Add human-in-the-loop confirmation for destructive, irreversible, or high-impact operations. Never auto-execute commands that modify files, send data, or alter system state.
How audits are shown
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.00106 $0.01938
Opus 5 $0.00053 $0.00969
Sonnet 5 $0.00021 $0.00388
Haiku 4.5 $0.00011 $0.00194

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

Security

Grade A, and why

vhs-e2e-gif 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 9d ago.

The scan reads SKILL.md. This mod also ships 2 executable files (scripts/attach-gif-to-pr.sh, scripts/record-gif.sh), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

.pi-go/skills/vhs-e2e-gif/SKILL.md · 163 lines

How it starts

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

Recording an e2e run as a GIF on a PR

Turn a test run into a short GIF and hang it off the PR, so a reviewer sees the suite go green without checking out the branch.

The one trap

VHS segfaults inside the agent sandbox. It binds a loopback port for ttyd, the sandbox refuses, and randomPort() dereferences the nil listener:

panic: runtime error: invalid memory address or nil pointer dereference
main.randomPort()
	github.com/charmbracelet/vhs/tty.go:22

That is the sandbox, not a broken tape. Run every vhs invocation with the sandbox disabled. Same for gh (network) — the upload step needs it too.

Dependencies: vhs, ttyd, ffmpeg (brew install vhs ttyd ffmpeg). VHS pulls in the other two, but check before blaming a tape.

Workflow

1. Record.

OUT=/tmp/e2e-tool-calls.gif DIR=$PWD \
  scripts/record-gif.sh "go test -tags e2e ./internal/agent/ -run TestE2E -v 2>&1 | grep -E '^(--- |ok|FAIL)'"

The script writes the tape, runs VHS, and extracts the final frame next to the GIF as <name>.last.png.

2. Read the last frame before posting. A GIF is opaque to you — the PNG is not. Open it and confirm the run actually passed. Posting a recording of a failing suite as evidence of a passing one is the failure mode this step exists to prevent.

3. Attach.

CAPTIONS='e2e: tool calls after the fix' \
  scripts/attach-gif-to-pr.sh 246 /tmp/e2e-tool-calls.gif

Uploads as a release asset — never a repo commit — and posts, or edits, a single recording comment on the PR, so a re-record updates that comment in place instead of adding another.

Choosing what to record

Record the narrowest command that proves the claim, filtered to result lines. A full go test ./... scroll is unreadable at 14pt and the interesting line scrolls off. These read well:

go test -tags e2e ./internal/agent/ -run TestE2E -v 2>&1 | grep -E '^(--- |ok|FAIL)'
go test -tags e2e ./... 2>&1 | grep -vE '(no test files)$'
make lint

Read the full file on GitHub · 163 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 9d ago First seen · 163 lines · 106 tokens per session scan A 5fdc5434ed78

Subscribe to this mod's changes

vhs-e2e-gif is a skill published in the GitHub repository dimetron/pi-go (155 stars, last pushed today), licensed MIT. It adds 106 tokens to every session and 1,938 once invoked, about $0.0005 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.