finalize

finalize is a skill for Claude Code, Codex from terrylica/cc-skills. It costs 33 tokens per session (2,605 once invoked), scanned A, original, MIT.

A cleanup tool for unfinished asciinema recordings. Asciinema records terminal sessions, and this tool stops active recordings, compresses their files, and can send them to a separate Git branch.

In plain words
What is it for?
Use it to finish one recording or all unhandled .cast files, stop recordings that are still running, compress them, and optionally push or retain the results.
Why use it?
It removes the manual work of finding abandoned recording processes and unprocessed recording files. It also checks files and can clean up local copies.

Skill for Claude CodeCodex

Part of the asciinema-tools plugin — 24 skills shipped together , and of cc-skills

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/terrylica/cc-skills/finalize
Any agent
npx skills add terrylica/cc-skills --skill finalize
Clone the repo
git clone --depth 1 https://github.com/terrylica/cc-skills

Made for: Claude Code, Codex.

Or install asciinema-tools, the plugin that ships this one along with the rest of its 24 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for finalize

README.md
[![agentmods](https://agentmods.dev/badge/skills/terrylica/cc-skills/finalize.svg)](https://agentmods.dev/skills/terrylica/cc-skills/finalize)
Your own site
<a href="https://agentmods.dev/skills/terrylica/cc-skills/finalize"><img src="https://agentmods.dev/badge/skills/terrylica/cc-skills/finalize.svg" alt="Measured on agentmods" height="20"></a>
Per session 33 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,605 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00033 $0.02605
Opus 5 $0.00016 $0.01303
Sonnet 5 $0.00007 $0.00521
Haiku 4.5 $0.00003 $0.00261

Measured 5d ago against content hash aeb85eba5954, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

Grade A, and why

finalize scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/asciinema-tools/skills/finalize/SKILL.md · 296 lines

How it starts

The opening of the file, as written. The whole thing — 296 lines — stays where its author put it; the contents beside it link to each section on GitHub.

/asciinema-tools:finalize

Finalize orphaned asciinema recordings: stop running processes gracefully, compress, and push to the orphan branch.

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 Specific .cast file to finalize
--all Finalize all unhandled .cast files
--force Use SIGKILL if graceful stop fails
--no-push Skip pushing to orphan branch (local only)
--keep-local Keep local .cast after compression

Workflow

  1. Discovery: Find running asciinema processes and unhandled .cast files
  2. Selection: AskUserQuestion for which files to process
  3. Stop: Gracefully stop running processes (SIGTERM → SIGINT → SIGKILL)
  4. Verify: Check file integrity after stop
  5. Compress: zstd compress .cast files
  6. Push: Push to orphan branch (if configured)
  7. Cleanup: Remove local .cast (optional)

Execution

Phase 1: Discovery

/usr/bin/env bash << 'DISCOVER_EOF'
echo "=== Running asciinema processes ==="
PROCS=$(ps aux | grep -E "asciinema rec" | grep -v grep)
if [[ -n "$PROCS" ]]; then
  echo "$PROCS" | while read -r line; do
    PID=$(echo "$line" | awk '{print $2}')
    CAST_FILE=$(echo "$line" | grep -oE '[^ ]+\.cast' | head -1)
    if [[ -n "$CAST_FILE" ]]; then
      SIZE=$(ls -lh "$CAST_FILE" 2>/dev/null | awk '{print $5}' || echo "?")
      echo "PID $PID: $CAST_FILE ($SIZE)"
    else
      echo "PID $PID: (no file detected)"
    fi
  done
else
  echo "No running asciinema processes"
fi

echo ""
echo "=== Unhandled .cast files ==="
find ~/eon -name "*.cast" -size +1M -mtime -30 2>/dev/null | while read -r f; do
  SIZE=$(ls -lh "$f" | awk '{print $5}')
  echo "$f ($SIZE)"
done
DISCOVER_EOF

Read the full file on GitHub · 296 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago First seen · 296 lines · 33 tokens per session scan A aeb85eba5954

Subscribe to this mod's changes

finalize is a skill published in the GitHub repository terrylica/cc-skills (62 stars, last pushed today), licensed MIT. It adds 33 tokens to every session and 2,605 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

push-release

Push to GitHub and optionally bump version to trigger PyPI release.

liaohch3/claude-tap · 16 tokens

omh-deploy-and-monitor

This is a Hermes-native deploy-and-monitor workflow skill.

rlaope/oh-my-hermes · 66 tokens

release-and-publish

Ship a release end-to-end across every registry the project targets (npm, MCP Registry, GitHub Releases for .mcpb bundles, GHCR). Runs the final verification gate, pushes commits and tags, then publishes to each applicable destination. Assumes git wrapup (version bumps, changelog, commit, annotated tag) is already…

cyanheads/obsidian-mcp-server · 112 tokens

release

Cut a new SlackCLI release end to end — survey commits since the last tag, recommend a SemVer bump, open the release issue, prepare the version bump and CHANGELOG promotion on a branch, open the linked PR, and after merge push the annotated tag that publishes binaries and updates the Homebrew tap. Use when asked to…

shaharia-lab/slackcli · 87 tokens

dbcrust-release

Use this skill when the user asks to cut, publish, prepare, or automate a DBCrust release. It runs release checks, uses Commitizen to bump the version/changelog/tag, pushes the release tag, and waits for the GitHub Release workflow (binaries, GitHub Release, PyPI publish).

clement-tourriere/dbcrust · 68 tokens

generate-release-notes

Generate comprehensive, categorized release notes between two Git refs (tags, branches, commits). Compares refs to gather commits and merged MRs, then produces polished release notes organized by category (Features, Bug Fixes, Improvements, Breaking Changes, Documentation). Works with any GitLab project accessible via…

jmrplens/gitlab-mcp-server · 67 tokens