record-asciinema

record-asciinema is a skill for Claude Code from tomzx/agents. It costs 46 tokens per session (1,530 once invoked), scanned A, original, MIT.

A terminal-recording helper that captures command-line activity with Asciinema and renders it as a GIF or SVG when possible.

In plain words
What is it for?
Use it to record CLI commands and their output for pull requests, documentation, or troubleshooting.
Why use it?
It gives reviewers a replayable demonstration of how a command-line change works.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: positional $N argument.

Good fit Use it to record CLI commands and their output for pull requests, documentation, or troubleshooting.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/tomzx/agents/record-asciinema
View source ↗ tomzx/agents
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add tomzx/agents --skill record-asciinema
Clone the repo
git clone --depth 1 https://github.com/tomzx/agents

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 record-asciinema

README.md
[![agentmods](https://agentmods.dev/badge/skills/tomzx/agents/record-asciinema/github.svg)](https://agentmods.dev/skills/tomzx/agents/record-asciinema)
Your own site
<a href="https://agentmods.dev/skills/tomzx/agents/record-asciinema"><img src="https://agentmods.dev/badge/skills/tomzx/agents/record-asciinema/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 record-asciinema

Your own site · 80×15
<a href="https://agentmods.dev/skills/tomzx/agents/record-asciinema"><img src="https://agentmods.dev/badge/skills/tomzx/agents/record-asciinema.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 46 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,530 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.00046 $0.01530
Opus 5 $0.00023 $0.00765
Sonnet 5 $0.00009 $0.00306
Haiku 4.5 $0.00005 $0.00153

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

Security

Grade A, and why

record-asciinema 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 6d 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.

skills/record-asciinema/SKILL.md · 162 lines

How it starts

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

Record CLI Demo (asciinema)

Record a terminal demonstration with asciinema, render the .cast to a GIF (or SVG fallback) so it can be embedded inline in a GitHub PR or comment, and return the path to the rendered asset.

This is the recording primitive for CLI changes. For web UI changes, use /record-playwright.

Recording principle: show commands

Always display the commands being run in the recording so viewers can see what was executed and reproduce it. Hide commands only when it is appropriate for the purpose of the demo (e.g. focusing purely on output, or a polished marketing-style demo where the command is irrelevant). When in doubt, show the command.

Prerequisites

  • asciinema installed
  • One of agg, asciicast2gif, or svg-term-cli installed (for rendering). agg is preferred (fastest, best quality).
  • If none are installed, the skill still returns the raw .cast with playback instructions.

Inputs

The skill is driven by the following inputs. Set them from context, or accept them from the command line.

Input Meaning Default
$RECORD_SLUG ($1) Filename slug for the recording, e.g. verbose-flag demo
$RECORD_TITLE Human-readable title shown in the asciinema player CLI demo
$RECORD_DIR Output directory for .cast / .gif /tmp/record-asciinema
$RECORD_COMMAND ($2..) A single command to record non-interactively (single-shot demos) (none; interactive mode)

If $RECORD_COMMAND is provided, the demo runs that one command and exits. If not, the skill drops into an interactive asciinema shell where the agent types the relevant commands and exits.

Workflow

Inputs resolved (slug, title, dir, command?)
          |
          v
asciinema available?
   /            \
 Yes             No
  |               |
  v               v
Record .cast   Return nothing,
               caller falls back to text
  |
  v
Render to GIF (agg -> asciicast2gif -> svg-term)
   |
   v
Return rendered asset path (+ raw .cast)

Read the full file on GitHub · 162 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. 6d ago First seen · 162 lines · 46 tokens per session scan A 9bffa476df34

Subscribe to this mod's changes

record-asciinema is a skill published in the GitHub repository tomzx/agents (6 stars, last pushed today), licensed MIT. It adds 46 tokens to every session and 1,530 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-09-03.