agentleFS
jessepinkman9900jessepinkman9900/claude-second-brain/.claude/skills/record-demo/SKILL.md

record-demo

Skill187 starsChanged 6 days agoMITView on GitHub

Re-record the terminal demo GIF at the top of the README (.github/assets/demo.gif) from .github/assets/demo.tape with vhs, check it frame by frame, and commit it. Use after the setup prompts or output of bin/create.js change, or when the demo looks stale. Trigger phrases: /record-demo, re-record the demo, regenerate the GIF, new demo video, update the README GIF.

  • Installs packages

16 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

4 rules. 0 are common, 2 are distinctive, and 2 are very specific to this project.

  • 0

    Common

    Most of the 16 edited versions we read keep these.

  • 2

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    If any are missing:

    line 19
  2. Very specific:

    Read the prompts in createBrain() in bin/create.js and compare them with the keystrokes in demo.tape.

    line 30
  3. Distinctive:

    Don't trust a recording you haven't looked at.

    line 51
  4. Very specific:

    Commit any bin/create.js fix as its own commit before the GIF.

    line 85

“Common” is measured: kept by at least 6 in 10 of the 16 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Record Demo

Re-records .github/assets/demo.gif, the ~30 second terminal recording of npx claude-second-brain that the root README shows on its first screen. The source of truth is .github/assets/demo.tape, a vhs script.

The tape is safe to run on a real machine. Its hidden setup npm packs the current checkout, installs the tarball into a temp HOME with its own npm prefix, and sets a throwaway git identity, so it never touches the real ~/.claude-second-brain, ~/.agents/skills or ~/.claude/skills. It records whatever is checked out, so pull the branch you want to show first.

Step 1: Check the tools

vhs --version && ttyd --version && ffmpeg -version | head -1

If any are missing:

  • macOS: brew install vhs (pulls in ttyd and ffmpeg).
  • Linux: download the vhs and ttyd release binaries from GitHub (charmbracelet/vhs, tsl0922/ttyd), install ffmpeg from the package manager, and put them on PATH. vhs drives a headless Chromium. If it can't find one, symlink an existing Chrome or Chromium binary as chromium on PATH.

The tape also needs the JetBrainsMono Nerd Font. It sets CSB_ICONS=nerd, so the git-remote picker shows the GitHub, Cloudflare and folder glyphs that Ghostty, WezTerm and kitty users see. Without the font those glyphs render as blank boxes. Check with fc-list | grep "JetBrainsMono Nerd Font" (Linux) or Font Book (macOS). Install it with brew install --cask font-jetbrains-mono-nerd-font, or unzip JetBrainsMono.zip from the ryanoasis/nerd-fonts releases into ~/.local/share/fonts and run fc-cache -f.

The repo's own dependencies must be installed too (pnpm install), since the tape runs npm pack.

Step 2: Update the tape if the CLI changed

Read the prompts in createBrain() in bin/create.js and compare them with the keystrokes in demo.tape. Today the tape answers:

  1. Name of the brain? types my-brain.
  2. Where to host the Git remote? presses Down twice to reach "Skip".
  3. Register qmd collections? presses Enter (Yes).
  4. Install skills for which agents? presses Enter (keeps Claude Code preselected).

If a prompt was added, removed or reordered, change the keystrokes to match. Keep the remote on "Skip": GitHub and Cloudflare need real accounts and would make the recording interactive. If you pass the user's notes as an argument, start from what they say changed.

Step 3: Record

From the repo root:

vhs .github/assets/demo.tape

It takes about 1 to 2 minutes, most of it the hidden install. Recording overwrites .github/assets/demo.gif.

Step 4: Check the GIF frame by frame

Don't trust a recording you haven't looked at. Build a contact sheet and view it:

ffprobe -v error -show_entries format=duration -of csv=p=0 .github/assets/demo.gif
ffmpeg -y -v error -i .github/assets/demo.gif -vf "fps=1/3,scale=500:-1,tile=3x4" -frames:v 1 /tmp/demo-sheet.png
ffmpeg -y -v error -sseof -1 -i .github/assets/demo.gif -frames:v 1 /tmp/demo-last.png

Open both images and check:

CheckWhat good looks like
Length25 to 35 seconds
PromptsEach answer shows the expected value (my-brain, Skip, Yes, Claude Code)
IconsThe remote picker shows the GitHub, cloud and folder glyphs, not emoji or empty boxes
SpinnerOne line that updates in place, never a column of repeated "Installing vault dependencies" lines
ErrorsNo red ✗ steps, stack traces or "failed" messages
EndingThe last frame shows the full Next steps box and "Happy knowledge building!"
SizeUnder about 2 MB (ls -la .github/assets/demo.gif)

Fix and re-record when something is off:

  • Ends before Next steps: raise the Sleep after the last Enter (install time varies with network and cache).
  • Long still tail: lower that same Sleep.
  • Spinner prints a new line every tick: a spinner message is wider than the terminal. Fix the message width in bin/create.js (see runStep) rather than widening the tape, because real users hit the same bug.
  • Hidden setup leaks into the recording: raise the Sleep inside the Hide block.

Step 5: Commit

git add .github/assets/demo.gif .github/assets/demo.tape
git commit -m "docs: re-record the README demo GIF"

Commit any bin/create.js fix as its own commit before the GIF. The README already points at .github/assets/demo.gif, so it needs no change unless the path moves.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.