Source profileQuality 91/100

terrylica/cc-skills/plugins/asciinema-tools/skills/asciinema-converter/SKILL.md

asciinema-converter

Convert .cast recordings to .txt for analysis. TRIGGERS - convert cast, cast to txt, strip ANSI, batch convert.

Source repository stars
62
Declared platforms
0
Static risk flags
0
Last source update
2026-08-24
Source checked
2026-08-25

Decision brief

What it does: where it fits

Convert asciinema .cast recordings to clean .txt files for Claude Code analysis. Achieves 950:1 compression (3.8GB - 4MB) by stripping ANSI codes and JSON structure.

Best for

  • Converting .cast recordings to searchable .txt format
  • Preparing recordings for Claude Code Read/Grep tools
  • Batch converting multiple recordings

Not for

  • Tasks that require unconfirmed production actions or broad system permissions.
  • Environments where the pinned source and install steps cannot be inspected.

Compatibility matrix

Platform support, with evidence labels

PlatformStatusEvidenceWhat to check
CodexNot declaredNo explicit evidencePortability before use
Claude CodeNot declaredNo explicit evidencePortability before use
CursorNot declaredNo explicit evidencePortability before use
Gemini CLINot declaredNo explicit evidencePortability before use
Open the compatibility checker

Installation

Inspect first. Install second.

The source command is displayed only when detected. A safe inspection prompt is always available so your agent can explain every action before execution.

Source-detected install commandSource
npx skills add https://github.com/terrylica/cc-skills --skill "plugins/asciinema-tools/skills/asciinema-converter"
Safe inspection promptEditorial

Inspect the Agent Skill "asciinema-converter" from https://github.com/terrylica/cc-skills/blob/a5f847b22ee5afa35677e446973a903d098cd1d4/plugins/asciinema-tools/skills/asciinema-converter/SKILL.md at commit a5f847b22ee5afa35677e446973a903d098cd1d4. List every install step, command, network request, credential, file read/write, external action, and rollback step. Explain whether it fits my task. Do not install or execute anything until I approve.

Workflow

What the source asks the agent to do

  1. 01

    Workflow Overview

    IMPORTANT: All phases are MANDATORY. Do NOT skip any phase. AskUserQuestion MUST be used at each decision point.

    IMPORTANT: All phases are MANDATORY. Do NOT skip any phase. AskUserQuestion MUST be used at each decision point.Full implementation details: Workflow PhasesActivated via --batch flag. Converts all .cast files in a directory with organized output.
  2. 02

    When to Use This Skill

    Converting .cast recordings to searchable .txt format

    Converting .cast recordings to searchable .txt formatPreparing recordings for Claude Code Read/Grep toolsBatch converting multiple recordings
  3. 03

    Why Convert?

    Key benefit: Claude Code's Read and Grep tools work directly on .txt output.

    Key benefit: Claude Code's Read and Grep tools work directly on .txt output.
  4. 04

    Requirements

    Review the “Requirements” section in the pinned source before continuing.

    Review and apply the “Requirements” source section.
  5. 05

    Single File Mode (Phases 0-6)

    Full implementation details: Workflow Phases

    Full implementation details: Workflow Phases

Permission review

Static risk signals and limitations

No configured static risk pattern was detected

This is not proof of safety. Runtime behavior, indirect dependencies, and hidden external systems are outside the static scan.

Evidence record

Why each signal appears

EvidenceSourceComputedTestedEditorial
SignalValueEvidence typeMeaning
Quality score91/100ComputedDocumentation, specificity, maintenance, and trust rules
Repository stars62SourceRepository attention, not individual Skill quality
Compatibility0 platformsSourceDeclared in the catalog source record
Usage guideautomated source guideEditorialGenerated or reviewed according to the visible evidence level

Pinned source

Provenance and original SKILL.md

Repository
terrylica/cc-skills
Skill path
plugins/asciinema-tools/skills/asciinema-converter/SKILL.md
Commit
a5f847b22ee5afa35677e446973a903d098cd1d4
License
MIT
Collected
2026-08-25
Default branch
main
View the original SKILL.md

asciinema-converter

Convert asciinema .cast recordings to clean .txt files for Claude Code analysis. Achieves 950:1 compression (3.8GB -> 4MB) by stripping ANSI codes and JSON structure.

Platform: macOS, Linux (requires asciinema CLI v2.4+)

Self-Evolving Skill: This skill improves through use. If instructions are wrong, parameters drifted, or a workaround was needed — fix this file immediately, don't defer. Only update for real, reproducible issues.

When to Use This Skill

Use this skill when:

  • Converting .cast recordings to searchable .txt format
  • Preparing recordings for Claude Code Read/Grep tools
  • Batch converting multiple recordings
  • Reducing storage size of session archives
  • Extracting clean text from ANSI-coded terminal output

Why Convert?

FormatSize (22h session)Claude Code CompatibleSearchable
.cast3.8GBNo (NDJSON + ANSI)Via jq
.txt~4MBYes (clean text)Grep/Read

Key benefit: Claude Code's Read and Grep tools work directly on .txt output.


Requirements

ComponentRequiredInstallationNotes
asciinemaYesbrew install asciinemav2.4+ for convert cmd

Workflow Overview

IMPORTANT: All phases are MANDATORY. Do NOT skip any phase. AskUserQuestion MUST be used at each decision point.

Single File Mode (Phases 0-6)

PhasePurposeKey Action
0Preflight checkVerify asciinema CLI v2.4+
1File discovery & selectionAskUserQuestion: file to convert
2Output optionsAskUserQuestion: conversion opts
3Output locationAskUserQuestion: save destination
4Execute conversionasciinema convert -f txt
5Timestamp indexOptional [HH:MM:SS] index
6Next stepsAskUserQuestion: what's next

Full implementation details: Workflow Phases

Batch Mode (Phases 7-10)

Activated via --batch flag. Converts all .cast files in a directory with organized output.

PhasePurposeKey Action
7Source selectionAskUserQuestion (skip if --source)
8Output organizationAskUserQuestion (skip if --output-dir)
9Execute batchConvert all with progress reporting
10Batch next stepsAskUserQuestion: what's next

Full implementation details: Batch Workflow


iTerm2 Filename Format

iTerm2 auto-logged files follow this format:

{creationTimeString}.{profileName}.{termid}.{iterm2.pid}.{autoLogId}.cast

Example: 20260118_232025.Claude Code.w0t1p1.70C05103-2F29-4B42-8067-BE475DB6126A.68721.4013739999.cast

ComponentDescriptionExample
creationTimeStringYYYYMMDD_HHMMSS20260118_232025
profileNameiTerm2 profile (may have dots)Claude Code
termidWindow/tab/pane identifierw0t1p1
iterm2.pidiTerm2 process UUID70C05103-2F29-4B42-8067-BE475DB6126A
autoLogIdSession auto-log identifier68721.4013739999

CLI Quick Reference

# Basic conversion
asciinema convert -f txt recording.cast recording.txt

# Check asciinema version
asciinema --version

# Verify convert command exists
asciinema convert --help

Reference Documentation

Internal References

External References


Troubleshooting

IssueCauseSolution
convert command not foundasciinema too oldUpgrade: brew upgrade asciinema (need v2.4+)
asciinema not installedMissing CLIbrew install asciinema
Empty output fileCorrupted .cast inputVerify .cast file has valid NDJSON structure
Conversion failedInvalid cast formatCheck header line is valid JSON with jq
numfmt not foundmacOS missing coreutilsUse raw byte count or brew install coreutils
stat syntax errorLinux vs macOS differenceScript handles both; check stat version
Batch skipping all filesAll .txt already existUse --skip-existing=false to reconvert
Permission denied on outputDirectory not writableCheck output directory permissions

Post-Execution Reflection

After this skill completes, check before closing:

  1. Did the command succeed? — If not, fix the instruction or error table that caused the failure.
  2. Did parameters or output change? — If the underlying tool's interface drifted, update Usage examples and Parameters table to match.
  3. Was a workaround needed? — If you had to improvise (different flags, extra steps), update this SKILL.md so the next invocation doesn't need the same workaround.

Only update if the issue is real and reproducible — not speculative.

Frequently asked questions

What to verify before installation and use

What does the asciinema-converter source document cover?

Convert asciinema .cast recordings to clean .txt files for Claude Code analysis. Achieves 950:1 compression (3.8GB - 4MB) by stripping ANSI codes and JSON structure.

How do I install asciinema-converter?

The source record exposes this install command: npx skills add https://github.com/terrylica/cc-skills --skill "plugins/asciinema-tools/skills/asciinema-converter". Inspect the command and pinned source before running it.

Alternatives

Compare before choosing