media-studio

media-studio is a skill for Claude Code, Codex from tozhax/plumbwork. It costs 133 tokens per session (7,000 once invoked), scanned B, original, MIT.

A workflow for creating and editing audio, video, images, and animations, including restoration and format conversion. It inspects media first, processes it, and then checks the result; tools such as ffmpeg handle common media conversions.

In plain words
What is it for?
Use it to produce or edit media, repair damaged containers, reduce noise, upscale images, create animations, and prepare audio for broadcast loudness requirements.
Why use it?
It helps avoid broken files, clipped sound, colour problems, and audio-video timing errors caused by processing media blindly.

Skill for Claude CodeCodex

Which agent this was written for is unclear — built for aider. Also seen: built for aider; mentions Gemini CLI.

Good fit Use it to produce or edit media, repair damaged containers, reduce noise, upscale images, create animations, and prepare audio for broadcast loudness requirements.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/tozhax/plumbwork/media-studio
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 tozhax/plumbwork --skill media-studio
Clone the repo
git clone --depth 1 https://github.com/tozhax/plumbwork

Made for: Claude Code, Codex.

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 media-studio

README.md
[![agentmods](https://agentmods.dev/badge/skills/tozhax/plumbwork/media-studio/github.svg)](https://agentmods.dev/skills/tozhax/plumbwork/media-studio)
Your own site
<a href="https://agentmods.dev/skills/tozhax/plumbwork/media-studio"><img src="https://agentmods.dev/badge/skills/tozhax/plumbwork/media-studio/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 media-studio

Your own site · 80×15
<a href="https://agentmods.dev/skills/tozhax/plumbwork/media-studio"><img src="https://agentmods.dev/badge/skills/tozhax/plumbwork/media-studio.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 133 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 7,000 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. A grade says what 26 rules found in the file — not that it is safe.
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.00133 $0.07000
Opus 5.5 $0.00053 $0.02800
Sonnet 5.5 $0.00027 $0.01400
Haiku 4.5 $0.00013 $0.00700

Measured 2d ago against content hash eb5037944fa6, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade B, and why

media-studio scanned grade B with 1 finding 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 2d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/media_qc.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

Reads agent configuration directoriesmediumAgent snooping

.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.

[ -f "$MEDIA_QC" ] || MEDIA_QC="$HOME/.gemini/config/skills/media-studio/scripts/media_qc.py"
skills/media-studio/SKILL.md · 214 lines

How it starts

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

Media Studio — Audio, Video, Still Image & Animated Visual Production, Salvage & Restoration Discipline

Guessing raw ffmpeg flags from memory, applying single-pass dynamic loudness filters that pump background noise, converting videos to 256-color GIFs without a custom palette, or re-encoding lossy streams without inspecting container metadata produces clipped audio, color-banded gradients, audio-video synchronization drift, and broken browser playback. This skill enforces a deterministic four-stage engineering pipeline (Probe → Plan → Process → Verify) across synthesis, timeline editing, signal restoration, and mastering.


1. The 4-Stage Deterministic Media Pipeline & Guardrails

Every audio, video, or animated visual task executes four ordered phases:

  1. Stage 1 — Pre-Flight Probe & Defect Diagnosis (probe & check):
    • Pre-Flight Missing-Binary Stop Rule (ffmpeg & ffprobe): Verify command -v ffmpeg && command -v ffprobe before probing or processing media. If either binary is absent, halt immediately in BLOCKED status and ask the human operator to install ffmpeg — never download unpinned binaries or execute remote install scripts (GEMINI.md Rule 12).
    • For existing media files, never construct a filtergraph before inspecting the input stream layout and signal metrics:
      MEDIA_QC="skills/media-studio/scripts/media_qc.py"
      for _p in .claude .cursor .agents .aider; do [ -f "$MEDIA_QC" ] || MEDIA_QC="$_p/skills/media-studio/scripts/media_qc.py"; done
      [ -f "$MEDIA_QC" ] || MEDIA_QC="$HOME/.gemini/config/skills/media-studio/scripts/media_qc.py"
      [ -f "$MEDIA_QC" ] || MEDIA_QC="/usr/share/plumbwork/skills/media-studio/scripts/media_qc.py"
      python3 "$MEDIA_QC" probe <input_path> --json
      python3 "$MEDIA_QC" check <input_path> --json
      
    • Record container format, video codec, dimensions, Sample Aspect Ratio (SAR), Display Aspect Ratio (DAR), pixel format (pix_fmt), color space (color_space, color_transfer, color_primaries), nominal vs. average frame rate (r_frame_rate vs. avg_frame_rate to detect Variable Frame Rate VFR), audio codec, sample rate, channel layout, integrated loudness (LUFS), True Peak (dBTP), Direct Current (DC) offset, and broadcast range outliers (brng).
  2. Stage 2 — Filtergraph & Synthesis Planning (Plan):
    • Non-Destructive File Discipline: Never overwrite an input media file in place. Always write to a distinct output filename or staging path and verify the output before replacing any target file.
    • Stream-Copy & Salvage First (-c copy / salvage): When remuxing containers, stripping metadata, cutting on keyframe boundaries, or recovering truncated .wav headers / broken .mp4/.mkv timestamps without altering pixels or audio samples, use -c copy (via python3 "$MEDIA_QC" salvage <input> <output>) to preserve 100% of the source quality. Re-encode only when filtering, resizing, repairing signal defects, or changing codecs.
  3. Stage 3 — Execution (Process):
    • Combine all video and audio transformations into a single unified -filter_complex pass (or a lossless float/raw pipe from Python into ffmpeg) so media never suffers multi-generation lossy re-compression.
  4. Stage 4 — Objective Quality Control & Visual Inspection (Verify):
    • Run python3 "$MEDIA_QC" check <output_path> (resolving workspace, exported .claude/.cursor/.agents/.aider, installed global ~/.gemini/config/skills/media-studio/scripts/media_qc.py, or system fallback /usr/share/plumbwork/skills/media-studio/scripts/media_qc.py), plus compare <reference> <output> on visual outputs (--min-ssim 0.95 --min-psnr 35.0 for lossless-intent transcodes, --min-ssim 0.85 --min-psnr 24.0 for spatial upscales, or --min-ssim 0.0 --min-psnr 0.0 aspect/duration lock for faded-cast/tone-mapped restorations) and keyframes or ab-sheet viewed via read_file before declaring completion.

Read the full file on GitHub · 214 lines

Files

What ships with it

2 files 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. 2d ago First seen · 214 lines · 133 tokens per session scan B eb5037944fa6

Subscribe to this mod's changes

media-studio is a skill published in the GitHub repository tozhax/plumbwork (33 stars, last pushed 2d ago), licensed MIT. It adds 133 tokens to every session and 7,000 once invoked, about $0.0005 per session on Opus 5.5. A static security scan graded it B with 1 finding (reads agent configuration directories). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-12-02.

Related

media-studio compared with skills from other repositories

media-studio next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
media-studiotozhax/plumbworkSkill332d agoMITB133Claude Code, Codex
local-ai-agentsmicrosoft/ai-agents-for-beginnersSkill82kyesterdayMITA200Claude Code, Codex
imagegenopenai/codexSkill137ktodayApache-2.0A113Codex
playwright-climicrosoft/playwrightSkill102ktodayApache-2.0A19Claude Code
browser-automationopenclaw/openclawSkill396ktodayMITA36Claude Code
free-llm-apismnfst/awesome-free-llm-apisSkill15kyesterdayCC0-1.0A113Claude Code, Codex
systematic-debuggingobra/superpowersSkill332k6d agoMITA21Claude Code