Token导航 LogoToken导航TokenDH.com
研究检索执行命令github未标认证来源可访问clear审计通过

asciinema-converterasciinema 转换器

Agent Skill

asciinema-converter 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

1,909

周安装

82

GitHub Stars

38

下载量

669
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

3

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:asciinema-converter(asciinema 转换器)
来源仓库:https://github.com/terrylica/cc-skills
仓库路径:skills/asciinema-converter
安装命令:
npx skills add https://github.com/terrylica/cc-skills --skill asciinema-converter
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/terrylica/cc-skills --skill asciinema-converter

简介

asciinema-converter 用于将 .cast 录制文件转换为纯文本 .txt 格式,便于 Claude Code 分析。

  • 它实现高压缩比(约 950:1),剥离 ANSI 码与 JSON 结构,保留可搜索内容。
  • 适用于 macOS 和 Linux,需 asciinema CLI v2.4+,支持批量处理与增量更新。
  • 安装来自 GitHub,注意 CLI 版本要求,避免在不兼容环境使用。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

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.

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Claude Code

28.42%
按下载量换算190

OpenCode

23.29%
按下载量换算156

Antigravity

17.56%
按下载量换算117

Gemini CLI

12.59%
按下载量换算84

windsurf

8.12%
按下载量换算54

trae

3.91%
按下载量换算26

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

执行命令

安装流程涉及命令执行,可能通过 npx skills add https://github.com/terrylica/cc-skills --skill asciinema-converter;npx skills add terrylica/cc-skills --skill "asciinema-converter" 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。

来源信息

继续浏览同类 Skills