agentleFS
rundopsrundops/dops/.claude/skills/demo-recording/SKILL.md

demo-recording

Skill3 starsChanged 8 months agoMITView on GitHub

Record terminal demo GIFs for README and docs using asciinema + agg. Use when creating or updating demo GIFs for interactive sessions (e.g., Claude Code MCP demos). Triggers on demo GIF creation, mcp-demo recording, or any request to record a terminal session as a GIF.

  • Installs packages

5 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

1 rule. 0 are common, 0 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 4 edited versions we read keep these.

  • 0

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Run whatever interactive session you want to capture, then exit to stop.

    line 46

“Common” is measured: kept by at least 6 in 10 of the 4 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

Demo GIF Recording with asciinema + agg

Record interactive terminal sessions as GIFs that match the project's visual style. Use this for demos that can't be scripted with VHS (e.g., Claude Code, interactive AI agents).

Tools

ToolUse For
VHSScripted TUI demos — deterministic flows (tapes/*.tape), make screenshots
asciinema + aggInteractive session recordings — Claude Code, MCP demos, anything with non-deterministic output
Playwright + ffmpegWeb UI demos — browser recordings (make web-demo)

Prerequisites

brew install asciinema agg

Recording Workflow

Step 1: Resize terminal to landscape

printf '\e[8;30;120t'

This gives a 120x30 (cols x rows) layout matching the web-demo aspect ratio.

Step 2: Record with clean prompt

asciinema rec -c "PS1='$ ' zsh --no-rcs" <name>.cast
  • PS1='$ ' — clean dollar-sign prompt, no username/path/git info
  • --no-rcs — prevents zsh from loading profile, keeps prompt clean

Step 3: Perform the demo inside the recording

Run whatever interactive session you want to capture, then exit to stop.

Step 4: Trim dead time (optional)

asciinema cut --start <seconds> --end <seconds> <name>.cast -o <name>-trimmed.cast

Step 5: Convert to GIF

agg --font-size 28 --cols 120 --rows 30 --theme github-dark <name>.cast assets/<name>.gif

Settings Reference

These settings ensure visual consistency across all project demos:

SettingValueReason
Cols120Wide landscape ratio matching web-demo
Rows30Compact height, avoids wasted vertical space
Font size28Readable when embedded at 900px width in README
Themegithub-darkMatches docs site dark theme
Prompt$ Clean, no user/path/git decorations

Adding Demos to README and Docs

README.md pattern

<div align="center">
  <em>Description of the demo:</em> <code>command</code>
  <br /><br />
  <img src="assets/<name>-demo.gif" alt="dops <name> demo" width="900" />
</div>

Docs index.md pattern

<div class="demo-section">
  <h2>Section Title</h2>
  <p>Description. Run with <code>command</code>.</p>
  <img src="https://raw.githubusercontent.com/rundops/dops/main/assets/<name>-demo.gif" alt="dops <name> demo" />
</div>

Note: Docs uses raw GitHub URLs for GIFs, not relative paths.

Demo order on homepage

  1. Terminal UI (demo.gif)
  2. Web UI (web-demo.gif)
  3. MCP Server (mcp-demo.gif)

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.