finalize

finalize is a skill for Claude Code 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 Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: names the AskUserQuestion tool; positional $N argument.

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

Good fit 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.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/terrylica/cc-skills/finalize
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.

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.

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/github.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/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for finalize

Your own site · 80×15
<a href="https://agentmods.dev/skills/terrylica/cc-skills/finalize"><img src="https://agentmods.dev/badge/skills/terrylica/cc-skills/finalize.svg" alt="Reviewed on agentmods" width="80" 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. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high Tool Misuse · line 228
    Tool parameters are crafted to achieve unintended or unsafe behavior. Parameter abuse can bypass intended safety checks (e.g. shell=True, --force, dangerous glob patterns).
    Fix: Validate all tool parameters against an allowlist. Reject dangerous parameter values (shell=True, --force, -rf /) and use safe defaults.
How audits are shown
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.5 $0.00013 $0.01042
Sonnet 5.5 $0.00007 $0.00521
Haiku 4.5 $0.00003 $0.00261

Measured 1mo ago against content hash aeb85eba5954, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 1mo 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. 1mo 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 (0 stars, last pushed yesterday), licensed MIT. It adds 33 tokens to every session and 2,605 once invoked, about $0.0001 per session on Opus 5.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

github-ops

GitHub remote operations and README authoring: repo creation, metadata, releases, issue/PR management with preview-before-send, README as a landing page (badge row, features-as-benefits, screenshots, Recent Updates), and read-only security auditing. Triggers on: write a README, improve the README, README badges…

0xDarkMatter/claude-mods · 105 tokens

ci-cd-ops

CI/CD pipeline patterns with GitHub Actions, release automation, and testing strategies. Use for: github actions, workflow, CI, CD, pipeline, deploy, release, semantic release, changesets, goreleaser, matrix, cache, secrets, environment, artifact, reusable workflow, composite action.

0xDarkMatter/claude-mods · 66 tokens

github-project-management

GitHub project management with issue tracking, project-board automation, and sprint planning. Use when triaging or organizing issues, automating a project board, planning a sprint, or running release/roadmap coordination on GitHub.

frankxai/claude-skills-library · 49 tokens

ship

Commit, push, create PR(s), and auto-finalize — full automation pipeline. Handles uncommitted changes and recently created PRs.

dryvist/claude-code-plugins · 30 tokens

promote-release

Prepare a release on develop and promote it to main on a git-flow repo. Confirm the auto-merging release-please PR landed on develop, validate the promotion, and merge develop to main with a merge commit; release-please tags on promotion. Refuses on trunk repos (default branch main) — use /merge-pr instead.

dryvist/claude-code-plugins · 71 tokens

release-and-changelog

Use when cutting a release, bumping a version, or writing release notes. Activate for keywords like "release", "version bump", "changelog", "release notes", "tag", "publish", "ship a release", "v1.x", "v2.x". Enforces version hygiene: SemVer respect, changelog discipline, atomic commits, tagged release. Always reflect…

duthaho/claudekit · 99 tokens