Standardmäßig ist der Prompt ausgewählt, der zuerst die Quelle prüft. Sie können zu einem direkten Befehl wechseln oder eine lokale Kopie herunterladen.
Quelldateien prüfen
Lesen Sie SKILL.md und alle von SkillsMP angezeigten Begleitdateien, bevor Sie sich für eine Installation entscheiden.
Mit Codex oder Claude installieren Kopieren Sie diesen Prompt, fügen Sie ihn in Codex, Claude oder einen anderen Assistant ein und lassen Sie die Skill-Seite prüfen und installieren.
Ein direkter Befehl überspringt den Prüf-Prompt. Prüfen Sie die Quelle, bevor Sie ihn ausführen.
Play .cast terminal recordings in iTerm2. TRIGGERS - asciinema play, .cast file, play recording, recording playback.
allowed-tools
Read, Bash, Glob, AskUserQuestion
asciinema-player
Play terminal session recordings (.cast files) in a dedicated iTerm2 window with full playback controls. Opens a clean window (bypasses default arrangements) for distraction-free viewing.
Platform: macOS only (requires iTerm2)
Why iTerm2 Instead of Browser?
Aspect
Browser Player
iTerm2 CLI
Large files (>100MB)
Crashes (memory limit)
Streams from disk
Memory usage
2-4GB for 700MB file
Minimal
Startup time
Slow (download + parse)
Instant
Native feel
Web-based
True terminal
Decision: iTerm2 CLI is the only reliable method for large recordings.
Requirements
Component
Required
Installation
iTerm2
Yes
brew install --cask iterm2
asciinema CLI
Yes
brew install asciinema
Note: This skill is macOS-only. Linux users should run asciinema play directly in their terminal.
Workflow Phases (ALL MANDATORY)
IMPORTANT: All phases are MANDATORY. Do NOT skip any phase. AskUserQuestion MUST be used at each decision point.
Phase 0: Preflight Checks
Purpose: Verify iTerm2 and asciinema are installed.
Purpose: Discover and select the recording to play.
Step 1.1: Discover Recordings
# Search for .cast files in common locations
fd -e cast . --max-depth 5 2>/dev/null | head -20
# Also check common locationsls -lh ~/scripts/tmp/*.cast 2>/dev/null
ls -lh ~/.local/share/asciinema/*.cast 2>/dev/null
ls -lh ./tmp/*.cast 2>/dev/null
Step 1.2: Get File Info
# Get file size and line count for selected filels -lh {file_path}
wc -l {file_path}
Question: "Play this recording?"
Header: "Confirm"
Options:
- Label: "Yes, play {filename}"
Description: "{size}, {line_count} events"
- Label: "Choose different file"
Description: "Browse for other recordings"
If no path provided, discover and present options:
Question: "Which recording would you like to play?"
Header: "Recording"
Options:
- Label: "{filename} ({size})"
Description: "{line_count} events"
- ... (up to 4 most recent)
Phase 2: Playback Settings (MANDATORY)
Purpose: Configure playback options before launching iTerm2.
Question: "Select additional playback options:"
Header: "Options"
multiSelect: true
Options:
- Label: "Limit idle time (2s)"
Description: "Cap pauses to 2 seconds max (recommended)"
- Label: "Loop playback"
Description: "Restart automatically when finished"
- Label: "Resize terminal"
Description: "Match terminal size to recording dimensions"
- Label: "Pause on markers"
Description: "Auto-pause at marked points (for demos)"
Phase 3: Launch in iTerm2
Purpose: Open clean iTerm2 window and start playback.
Step 3.1: Build Command
Construct the asciinema play command based on user selections:
# Example with all options
asciinema play -s 6 -i 2 -l -r /path/to/recording.cast
Option flags:
-s {speed} - Playback speed
-i 2 - Idle time limit (if selected)
-l - Loop (if selected)
-r - Resize terminal (if selected)
-m - Pause on markers (if selected)
Step 3.2: Launch iTerm2 Window
Use AppleScript to open a clean window (bypasses default arrangements):
osascript -e 'tell application "iTerm2"
create window with default profile
tell current window
tell current session
write text "asciinema play -s {speed} {options} {file_path}"
end tell
end tell
end tell'
Step 3.3: Display Controls Reference
## Playback Started**Recording:**`{filename}`**Speed:** {speed}x
**Options:** {options_summary}
### Keyboard Controls
| Key | Action |
| -------- | --------------------------------- |
| `Space` | Pause / Resume |
| `Ctrl+C` | Stop playback |
| `.` | Step forward (when paused) |
| `]` | Skip to next marker (when paused) |
### Tips
- Press `Space` to pause anytime
- Use `.` to step through frame by frame
- `Ctrl+C` to exit when done
TodoWrite Task Template (MANDATORY)
Load this template into TodoWrite before starting:
tell application "iTerm2"
create window with default profile
tell current window
tell current session
write text "your command here"
end tell
end tell
end tell
Why this works: create window with default profile creates a fresh window, bypassing any saved window arrangements.
One-liner for Bash
osascript -e 'tell application "iTerm2"
create window with default profile
tell current window
tell current session
write text "asciinema play -s 6 -i 2 /path/to/file.cast"
end tell
end tell
end tell'
Troubleshooting
"Device not configured" error
Cause: Running asciinema play from a non-TTY context (e.g., Claude Code's Bash tool)
Fix: Use AppleScript to open a real iTerm2 window (this skill does this automatically)
Recording plays too fast/slow
Fix: Use the speed AskUserQuestion to select appropriate speed:
2x for careful review
6x for quick scan
16x for ultra-fast skim of very long recordings
iTerm2 not opening
Cause: iTerm2 not installed or AppleScript permissions not granted
Fix:
Install iTerm2: brew install --cask iterm2
Grant permissions: System Settings → Privacy & Security → Automation → Allow Terminal/Claude to control iTerm2
Large file (>500MB) considerations
The CLI player streams from disk, so file size doesn't cause memory issues. However:
Very long recordings may benefit from higher speeds (6x, 16x)
Use -i 2 to skip idle time
Consider splitting very long recordings
Post-Change Checklist
After modifying this skill:
Preflight checks verify iTerm2 and asciinema
AskUserQuestion phases use proper multiSelect where applicable
AppleScript uses heredoc wrapper for bash compatibility