Skip to content
Back to skills

Play

ASecurity

Play .cast recordings in iTerm2 with speed controls. TRIGGERS - play recording, asciinema play, view cast.

  • 75 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added May 27, 2026
toolsbash

Works with

  • terminal

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned May 27, 2026

npx -y skills add terrylica/cc-skills --skill play --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Play?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Play
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/terrylica-play/badge)](https://www.skillsdirectory.com/skills/terrylica-play)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: play
description: Play .cast recordings in iTerm2 with speed controls. TRIGGERS - play recording, asciinema play, view cast.
allowed-tools: Bash, AskUserQuestion, Glob
argument-hint: "[file] [-s speed] [-i idle-limit] [-l loop] [-r resize] [-m markers]"
model: haiku
---

# /asciinema-tools:play

Play terminal recordings in a dedicated iTerm2 window.

> **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.

## Arguments

| Argument                | Description                      |
| ----------------------- | -------------------------------- |
| `file`                  | Path to .cast file               |
| `-s, --speed`           | Playback speed (e.g., `-s 6`)    |
| `-i, --idle-time-limit` | Max idle time in seconds         |
| `-l, --loop`            | Loop playback                    |
| `-r, --resize`          | Match terminal to recording size |
| `-m, --markers`         | Pause on markers                 |

## Execution

Invoke the `asciinema-player` skill with user-selected options.

### Skip Logic

- If `file` provided -> skip Phase 1 (file selection)
- If `-s` provided -> skip Phase 2 (speed selection)
- If any of `-i/-l/-r/-m` provided -> skip Phase 3 (options)

### Workflow

1. **Preflight**: Check iTerm2 and asciinema
2. **Discovery**: Find .cast files
3. **Selection**: AskUserQuestion for file
4. **Speed**: AskUserQuestion for playback speed
5. **Options**: AskUserQuestion for additional options
6. **Launch**: Open iTerm2 via AppleScript

## Examples

```bash
# Play recording at normal speed
/asciinema-tools:play session.cast

# Play at 6x speed
/asciinema-tools:play session.cast -s 6

# Play with idle time limit and looping
/asciinema-tools:play session.cast -i 2 -l
```

## Troubleshooting

| Issue               | Cause             | Solution                               |
| ------------------- | ----------------- | -------------------------------------- |
| iTerm2 not found    | Not installed     | `brew install --cask iterm2`           |
| Window not opening  | AppleScript issue | Grant iTerm2 accessibility permissions |
| Playback stuttering | Large file        | Use `-i 1` to cap idle time            |


## 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.

Files in this skill

  • SKILL.md2.8 KB
  • references/evolution-log.md690 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.