media-generation

media-generation is a skill for Claude Code from onimusya/media-gen. It costs 88 tokens per session (2,324 once invoked), scanned A, original, MIT.

A command-line toolkit for creating and editing images and videos, generating speech, and working with audio. It supports audio transcription and translation through multiple AI providers.

In plain words
What is it for?
Use it to generate or edit images, create or extend videos, animate images, synthesize or clone voices, remove background sound, transcribe audio, and translate speech.
Why use it?
It puts several media-creation and audio-processing tasks behind one command-line interface, so developers do not need a separate workflow for each type of output.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is --output ./outputs/arena.png \.

Good fit Use it to generate or edit images, create or extend videos, animate images, synthesize or clone voices, remove background sound, transcribe audio, and translate speech.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/onimusya/media-gen
agentmods
npx agentmods add skills/onimusya/media-gen/media-generation

Made for: Claude Code.

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-generation

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/onimusya/media-gen/media-generation"><img src="https://agentmods.dev/badge/skills/onimusya/media-gen/media-generation.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 88 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,324 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.
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.00088 $0.02324
Opus 5 $0.00044 $0.01162
Sonnet 5 $0.00018 $0.00465
Haiku 4.5 $0.00009 $0.00232

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

Security

Grade A, and why

media-generation 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 12d ago.

The scan reads SKILL.md. This mod also ships 7 executable files (scripts/install.cmd, scripts/install.ps1, scripts/install.sh, …), 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.

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.

skills/media-generation/SKILL.md · 274 lines

How it starts

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

Media Generation

Run the CLI at ${CLAUDE_SKILL_DIR}/scripts/media-gen.mjs with Node.js. Always use --json for parseable output.

node ${CLAUDE_SKILL_DIR}/scripts/media-gen.mjs <command> [options] --json

Commands

Command Purpose
image generate Generate images from text prompts
image edit Edit existing images with a prompt
video generate Generate video from text (async)
video image-to-video Animate an image into video
video extend Extend an existing video
voice tts Text to speech synthesis
voice clone Clone a voice from audio samples
voice isolate Isolate voice from background audio
audio transcribe Transcribe audio to text
audio translate Translate audio to another language
providers list List all providers with capabilities, models, and voices
providers list --configured List only configured providers
providers list --capability <cap> Filter by capability
providers models List all models across all providers
providers models --provider <id> List models/voices for a specific provider
providers models --capability <cap> Filter models by capability
config init Initialize project-level config
config init --global Initialize user-level config at ~/.media-gen/
config validate Check which providers are configured
job status Check async job status
job download Download completed async job result

Configuration

Defaults are set via .env (at project root or ~/.media-gen/.env for global). With defaults configured, --provider, --model, and --voice-id are all optional:

MEDIA_GEN_DEFAULT_PROVIDER=openrouter
MEDIA_GEN_DEFAULT_MODEL=openai/gpt-image-2
MEDIA_GEN_VOICE_PROVIDER=edge-tts
MEDIA_GEN_VOICE_MODEL=
MEDIA_GEN_VOICE_ID=en-US-EmmaMultilingualNeural
MEDIA_GEN_VIDEO_PROVIDER=google
MEDIA_GEN_VIDEO_MODEL=veo-3.1-generate-preview
MEDIA_GEN_AUDIO_PROVIDER=deepgram
MEDIA_GEN_AUDIO_MODEL=nova-3
MEDIA_GEN_LOG_LEVEL=error

Read the full file on GitHub · 274 lines

Files

What ships with it

9 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. 12d ago First seen · 274 lines · 88 tokens per session scan A eb990c2d863c

Subscribe to this mod's changes

media-generation is a skill published in the GitHub repository onimusya/media-gen (6 stars, last pushed 1mo ago), licensed MIT. It adds 88 tokens to every session and 2,324 once invoked, about $0.0004 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-31.