terminal-session-replay

Record and replay terminal sessions for debugging, documentation, or sharing procedures with teammates.

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "terminal-session-replay" with this command: npx skills add Derick001/terminal-session-replay

Terminal Session Replay

What This Does

A CLI tool to record, replay, and export terminal sessions. Captures commands, outputs, and timing for later review, documentation, or sharing with teammates. Wraps the standard script command with a simpler interface and additional features.

Key features:

  • Record sessions - Start recording terminal session with a simple command
  • Replay sessions - Play back recorded sessions with original timing
  • Export to markdown - Convert sessions to readable documentation
  • Session management - List, view, and delete recorded sessions
  • Metadata support - Add titles, descriptions, and tags to sessions
  • Timing control - Adjust playback speed or skip timing for quick review

How To Use

Record a session:

./scripts/main.py record --output session1

Replay a session:

./scripts/main.py replay --input session1

Export to markdown:

./scripts/main.py export --input session1 --output session1.md

List recorded sessions:

./scripts/main.py list

Full command reference:

./scripts/main.py help

Commands

  • record: Start recording a terminal session

    • --output: Session name (default: timestamp-based)
    • --title: Session title for metadata
    • --desc: Session description
    • --tags: Comma-separated tags
  • replay: Replay a recorded session

    • --input: Session name to replay
    • --speed: Playback speed multiplier (default: 1.0)
    • --no-timing: Skip timing, display immediately
  • export: Export session to markdown

    • --input: Session name to export
    • --output: Output markdown file (default: session_name.md)
    • --include-timing: Include timing information in export
  • list: List all recorded sessions

    • --filter-tags: Filter by tags
  • info: Show session metadata

    • --input: Session name
  • delete: Delete a session

    • --input: Session name to delete

Output

Sessions are stored in ~/.terminal-sessions/ by default:

  • session_name.typescript: Raw terminal recording (script output)
  • session_name.timing: Timing data for replay
  • session_name.meta.json: Metadata (title, description, tags, timestamp)

Export produces markdown like:

# Terminal Session: Setting up Project

**Recorded:** 2026-03-11 10:30:00  
**Duration:** 2 minutes 15 seconds

```bash
$ git clone https://github.com/example/project
Cloning into 'project'...
remote: Enumerating objects: 100, done.
remote: Counting objects: 100% (100/100), done.
remote: Compressing objects: 100% (80/80), done.
remote: Total 100 (delta 20), reused 80 (delta 15), pack-reused 0
Receiving objects: 100% (100/100), 1.5 MiB | 3.5 MiB/s, done.
Resolving deltas: 100% (20/20), done.

$ cd project
$ npm install
...

Limitations

  • Requires script command (available on Linux/macOS, not on Windows without WSL/Cygwin)
  • Cannot record GUI applications or mouse interactions
  • Very fast terminal output may not be captured perfectly
  • Sessions can be large if recording for long periods
  • Color and formatting may not be preserved in markdown export
  • Requires terminal with proper support for script command

Examples

Record a debugging session:

./scripts/main.py record --output debug-session --title "Debugging API issue" --tags "debug,api"
# ... work in terminal ...
exit  # or Ctrl+D to end recording

Replay at 2x speed:

./scripts/main.py replay --input debug-session --speed 2.0

Export for documentation:

./scripts/main.py export --input debug-session --output DEBUGGING.md

Installation Notes

The script command is typically pre-installed on Linux and macOS systems. On Windows, use WSL or Cygwin.

The tool creates ~/.terminal-sessions/ directory to store recordings.

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

Session-Memory Enhanced

Session-Memory Enhanced v4.0 - 统一增强版。融合 session-memory + memu-engine 核心功能。特性:结构化提取 + 向量检索 + 不可变分片 + 三位一体自动化 + 多代理隔离 + AI 摘要 + 零配置启动。

Registry SourceRecently Updated
General

PRISM-GEN-DEMO

English: Retrieve, filter, sort, merge, and visualize multiple CSV result files from PRISM-Gen molecular generation/screening. Provides portable query-based...

Registry SourceRecently Updated
General

Video Pro by cza999

专业AI视频生成器,支持文本转高质量短视频,批量处理、多模板和高级自定义语音功能,适合创作者和企业。

Registry SourceRecently Updated
0133
cza999