Teaches how to create deterministic terminal screencasts with VHS, including sync strategies for LLM-powered TUIs and Nix integration.
Ships in juspay. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
VHS records terminal sessions by scripting keystrokes in .tape files and rendering them as GIFs. Use Wait+Screen /regex/ to synchronize with interactive TUI elements instead of fragile fixed Sleep durations. VHS can only detect text appearing on screen, not disappearing — keep this constraint in mind when designing wait conditions.
When recording an LLM-powered TUI, detecting when a response is complete requires special care. Naive approaches all fail:
| Approach | Why it fails |
|---|---|
Fixed Sleep | Not deterministic |
Unique marker in prompt (XYZENDXYZ) | Appears in the typed prompt on screen — Wait+Screen matches immediately |
Math formula (347+829 → wait for 1176) | LLM computes the answer in its visible thinking trace before the response finishes |
Wait+Line /^MARKER$/ | TUI padding/borders prevent exact line matching |
Hide + type marker | Hide only hides VHS command log, not terminal content |
Ask the LLM to concatenate two words and print the result. The prompt contains both words separately but never the combined string:
Type "briefly explain this repo. Then print ALFA concatenated with BRAVO."
Enter
Wait+Screen /ALFABRAVO/
Why it works:
...ALFA concatenated with BRAVO — no ALFABRAVOALFABRAVOALFABRAVO — the only matchUse uncommon words (ALFA, BRAVO, ZULU) so the combined form can't appear accidentally.
ffmpeg -i demo.gif -vf "select='eq(n\,100)'" -vsync vfr /tmp/frame.png
flake.nix for the demo (e.g., doc/demo/flake.nix) so anyone can reproduce the recording with nix run.vhs "${./.}/demo.tape") — don't cd into the store, as it may contain a flake.nix that confuses nix run inside the recording.What SKILL.md sets; muted values are Claude Code's defaults
/juspay:vhsfrom juspay
npx claudepluginhub juspay/skills --plugin juspay17 skills in this plugin
/cargo-watchRun cargo-watch in the background for continuous clippy feedback during code editing./nix-bunUse this when building a Bun (bun.lock) project with Nix. Covers bun2nix, the bun.nix dependency workflow, the bun --compile top-level-await pitfall, and a CI drift check./nix-ciUse this when setting up CI for a GitHub repository — offers GitHub Actions or Vira depending on the project/nix-for-devUse this when setting up Nix for a development project (devShell + package build) and you care about `nix develop` being fast. Covers the zero-inputs flake.nix + npins + default.nix/shell.nix layout, sub-flakes for non-user-facing Nix, and language-specific recommendations./nix-haskellUse this when working on a Haskell project with Nix. Covers haskell-flake setup, adding/overriding dependencies, package settings, and devShell configuration./nix-healthUse this when diagnosing or fixing a user's Nix installation — checks flakes, version, caches, max-jobs, direnv, rosetta, trusted-users, and shell configOther plugins' skills for the same job