sdk: Skill for Claude Code

.claude/skills/ffmpeg-mixing/SKILL.md

ffmpeg-mixing is a skill for Claude Code from vargHQ/sdk. It costs 54 tokens per session (825 once invoked), scanned A, original, Apache-2.0.

Guidance for using ffmpeg to trim, mix, and join video clips while keeping their sound and picture synchronized. ffmpeg is a command-line tool for processing media files.

In plain words
What is it for?
Stitching generated clips into a video, inserting scenes at exact times, and building ffmpeg filter graphs with continuous audio.
Why use it?
It avoids timing drift caused by trimming an input twice with conflicting timestamp systems.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

This is vargHQ/sdk's own configuration. It tells Claude Code how to work on sdk itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything sdk configures →

Reuse

Borrowing it

Nothing to install: this file belongs to vargHQ/sdk. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/vargHQ/sdk/main/.claude/skills/ffmpeg-mixing/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/vargHQ/sdk

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 ffmpeg-mixing

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/varghq/sdk/ffmpeg-mixing"><img src="https://agentmods.dev/badge/skills/varghq/sdk/ffmpeg-mixing.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 54 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 825 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 pass 7 Sept 2026
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.00054 $0.00825
Opus 5.5 $0.00022 $0.00330
Sonnet 5.5 $0.00011 $0.00165
Haiku 4.5 $0.00005 $0.00082

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

Security

Grade A, and why

ffmpeg-mixing 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 2mo 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.

.claude/skills/ffmpeg-mixing/SKILL.md · 82 lines

How it starts

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

ffmpeg video mixing

Lessons for mixing video clips with ffmpeg while keeping audio and video in sync.

problem: audio/video desync when mixing clips

what went wrong

using -ss X -t Y to pre-trim input, then applying relative trim filters caused timing drift:

# BAD: relative timestamps after pre-trim
ffmpeg -ss 64 -t 36 -i original.mp4 ...
  -filter_complex "
    [0:v]split=5[orig1][orig2]...;
    [orig1]trim=0:4,setpts=PTS-STARTPTS[o1];
    [orig2]trim=4:11,setpts=PTS-STARTPTS[o2];
    ..."

this produced wrong duration (38s instead of 36s) with audio desync.

solution: use absolute timestamps from full input

trim directly from full original using absolute timestamps:

# GOOD: absolute timestamps from full file
ffmpeg -i original.mp4 -i scene1.mp4 -i scene2.mp4 ...
  -filter_complex "
    [0:v]trim=64:68,setpts=PTS-STARTPTS[o1];
    [1:v]scale=1280:720,trim=4:6,setpts=PTS-STARTPTS[s1];
    [0:v]trim=70:75,setpts=PTS-STARTPTS[o2];
    ...
    [o1][s1][o2]...concat=n=N:v=1:a=0[outv];
    [0:a]atrim=64:100,asetpts=PTS-STARTPTS[outa]
  "
  -map "[outv]" -map "[outa]"

key points

  1. absolute timestamps: trim from full input file, not pre-trimmed
  2. separate audio handling: use atrim on audio stream independently
  3. setpts reset: always use setpts=PTS-STARTPTS after trim to reset timestamps
  4. scale before trim: when mixing different resolutions, scale first then trim
  5. video duration = audio duration: ensure total video segments match audio segment length

example: inserting clips into original

to insert generated clips at specific timestamps while keeping continuous audio:

ffmpeg -y \
  -i original.mp4 \
  -i generated-scene.mp4 \
  -filter_complex "
    [0:v]trim=START1:END1,setpts=PTS-STARTPTS[o1];
    [1:v]scale=1280:720,trim=0:DURATION,setpts=PTS-STARTPTS[s1];
    [0:v]trim=START2:END2,setpts=PTS-STARTPTS[o2];
    [o1][s1][o2]concat=n=3:v=1:a=0[outv];
    [0:a]atrim=AUDIO_START:AUDIO_END,asetpts=PTS-STARTPTS[outa]
  " \
  -map "[outv]" -map "[outa]" \
  -c:v libx264 -preset fast -crf 18 \
  -c:a aac -b:a 192k \
  output.mp4

Read the full file on GitHub · 82 lines

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. 2mo ago First seen · 82 lines · 54 tokens per session scan A 03f742a522a5

Subscribe to this mod's changes

ffmpeg-mixing is a skill published in the GitHub repository vargHQ/sdk (341 stars, last pushed 6d ago), licensed Apache-2.0. It adds 54 tokens to every session and 825 once invoked, about $0.0002 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

ffmpeg-mixing compared with skills from other repositories

ffmpeg-mixing next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
ffmpeg-mixingvargHQ/sdkSkill3416d agoApache-2.0A54Claude Code
kling-aimaciejdzierzek/kling-ai-prompt-generatorSkill352mo agoMITA89Claude Code
ai-mediaericrisco/rsc-harnessSkill5032d agoMITA82Claude Code, Codex
frontend-designOrkas-AI/Orkas-VideoStudioSkill3442d agoMITA57Claude Code, Codex
stage-planOrkas-AI/Orkas-VideoStudioSkill3442d agoMITA0Claude Code, Codex
gate-controlOrkas-AI/Orkas-VideoStudioSkill3442d agoMITA81Claude Code, Codex
stage-editOrkas-AI/Orkas-VideoStudioSkill3442d agoMITA62Claude Code, Codex