asciinema-streaming-backup

Back up asciinema recordings to GitHub with idle-based chunking and brotli archival.

62|10|Updated Dec 4, 2025
One-click install
npx skills add https://github.com/terrylica/cc-skills --skill asciinema-streaming-backup
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: asciinema-streaming-backup
Source: https://github.com/terrylica/cc-skills/tree/main/plugins/asciinema-tools/skills/asciinema-streaming-backup
Command: npx skills add https://github.com/terrylica/cc-skills --skill asciinema-streaming-backup

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires asciinema, zstd, brotli, git, gh, fswatch, and includes references (resource) and scripts (resource) components.

What problem does it solve?

It provides a streaming backup mechanism for asciinema recordings by chunking idle data into zstd chunks, archiving with brotli on GitHub Actions, and isolating history using an orphan branch.

Core Features & Use Cases

  • Idle-based Chunking: Create zstd chunks during idle periods.
  • Orphan Branch Storage: Separate history to avoid polluting main history.
  • Brotli Recompression: Post-process chunks into compact archives with GitHub Actions.

Quick Start

Prepare prerequisites (asciinema, zstd, brotli, git, gh, and optional fswatch), then set up the orphan-branch workflow and start recording.

Frequently Asked Questions about asciinema-streaming-backup

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I back up asciinema recordings to GitHub automatically?

Back up asciinema recordings by chunking idle periods into zstd-compressed segments, then archiving them with brotli on an isolated GitHub orphan branch. The workflow detects inactivity, streams data efficiently, and recompresses chunks via GitHub Actions for long-running sessions on macOS and Linux.

What's the difference between zstd and brotli compression for asciinema backups?

Zstd handles real-time streaming compression during recording with fast concatenation of chunks. Brotli provides final-stage recompression for maximum archival density. Together they balance streaming performance with compact long-term storage on GitHub.

Can I use asciinema backup with continuous recording sessions?

Yes. Idle-based chunking automatically segments long-running asciinema sessions into manageable zstd chunks during inactive periods, preventing large monolithic uploads and enabling incremental backups to GitHub without manual intervention.

Do I need fswatch to set up asciinema streaming backup?

Fswatch is optional. Core dependencies—asciinema, zstd, brotli, git, and gh—are required. Fswatch enhances file-watching capabilities but isn't mandatory for idle-detection-based chunking and GitHub archival on macOS and Linux.

Why use an orphan branch for asciinema recording backups?

An orphan branch isolates backup history from your main repository history, keeping archives separate and avoiding clutter. This structure supports independent retention policies and makes recompression workflows via GitHub Actions cleaner and more manageable.

How does idle detection trigger backup chunks in asciinema?

Idle detection monitors asciinema recording activity and automatically segments data into zstd chunks when inactivity is detected. This approach reduces per-chunk size, enables parallel GitHub uploads, and ensures efficient streaming without requiring manual segment boundaries.