cross-platform-ffmpeg

cross-platform-ffmpeg is a skill for Claude Code, Codex from heristop/leclap. It costs 45 tokens per session (975 once invoked), scanned A, original, MIT.

A set of rules for using FFmpeg across Node.js, web browsers, and React Native. FFmpeg is software for processing video and audio, while these rules describe how the application selects the appropriate version for each environment.

In plain words
What is it for?
Use it when working on the ffmpeg-video-composer project, especially its platform bridge, FFmpeg adapters, runtime detection, browser processing, or React Native support.
Why use it?
It keeps the main video-processing code independent from platform-specific FFmpeg details. It also defines fallback and storage choices for different runtimes.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

Good fit Use it when working on the ffmpeg-video-composer project, especially its platform bridge, FFmpeg adapters, runtime detection, browser processing, or React Native support.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/heristop/leclap/cross-platform-ffmpeg
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 heristop/leclap --skill cross-platform-ffmpeg
Clone the repo
git clone --depth 1 https://github.com/heristop/leclap

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 cross-platform-ffmpeg

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/heristop/leclap/cross-platform-ffmpeg"><img src="https://agentmods.dev/badge/skills/heristop/leclap/cross-platform-ffmpeg.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 45 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 975 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.00045 $0.00975
Opus 5.5 $0.00018 $0.00390
Sonnet 5.5 $0.00009 $0.00195
Haiku 4.5 $0.00005 $0.00097

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

Security

Grade A, and why

cross-platform-ffmpeg 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 24d 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.

.agents/skills/cross-platform-ffmpeg/SKILL.md · 39 lines

How it starts

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

Cross-Platform FFmpeg

Adapter wiring

Shared command builders use AbstractFFmpeg. The Node entry point uses PlatformBridge; the browser and React Native entry points register their own adapters directly. Do not route their bundles through PlatformBridge, which imports Node modules. Architecture: docs/architecture.md.

Entry point FFmpeg Filesystem Logger Music
src/index.ts (Node) FFmpegNodeAdapter or FFmpegStaticAdapter FilesystemNodeAdapter PinoLogAdapter MusicNodeAdapter
src/browser.ts FFmpegWasmAdapter BrowserFilesystemAdapter (IndexedDB) BrowserLogger MusicWasmAdapter
src/reactnative.ts FFmpegDeviceAdapter (injected NativeEngine) FilesystemExpoAdapter ReactNativeLogger MusicFFmpegAdapter

Paths above are relative to packages/ffmpeg-video-composer/. FFmpeg and music adapters live in src/platform/ffmpeg/; filesystem adapters live in src/platform/filesystem/, and the Node logger lives in src/platform/logging/. The logger classes for browser/RN live in their entry points.

Detection and probing

FFmpegDetector.detect() tries system ffmpeg -version, then the ffmpeg-static binary. Both adapters use execFile with parseCommand argv, without a shell. System detection does not check ffprobe; FFmpegNodeAdapter.getInfos() expects ffprobe on PATH.

The detector also has a WASM branch, but detectWasmFFmpeg() refuses environments without window. It is not a working pure-Node fallback. Browser hosts use browser.ts directly. With no available backend, the Node bridge throws with installation instructions.

ffmpeg-static ships only FFmpeg. resolve-ffprobe.ts selects an existence-checked binary from the optional ffprobe-static package or beside the resolved FFmpeg binary. Without one, FFmpegStaticAdapter.probeUnavailableReason is set. director/render-needs.ts rejects probing templates before the first segment encodes: non-cut transitions, whole-video overlays, enabled/resolved music, and project_video sections. MusicNodeAdapter probes and loops through the selected adapter's binaries, preserving the static path.

Read the full file on GitHub · 39 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. 24d ago Changed · -14 lines 6baf58723a74
  2. 1mo ago Changed 305259752c95
  3. 1mo ago First seen · 53 lines · 45 tokens per session scan A 38f60ba7c587

Subscribe to this mod's changes

cross-platform-ffmpeg is a skill published in the GitHub repository heristop/leclap (36 stars, last pushed 4d ago), licensed MIT. It adds 45 tokens to every session and 975 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

Other skills, from other repositories

qiaomu-cut

A workflow for turning a brief video idea into a planned, sourced, edited, rendered, and checked video project.

joeseesun/qiaomu-cut-skill · 218 tokens

writing-react-native-storybook-stories

Create and edit React Native Storybook stories using Component Story Format (CSF). Use when writing .stories.tsx files, adding stories to React Native components, configuring Storybook addons (controls, actions, backgrounds, notes), setting up argTypes, decorators, parameters, or working with portable stories for…

storybookjs/react-native · 83 tokens

setup-react-native-storybook

Set up Storybook for React Native in Expo, React Native CLI, or Re.Pack projects. Use when adding Storybook to a project, configuring metro.config.js with withStorybook, creating .rnstorybook configuration files, setting up Storybook routes in Expo Router, configuring getStorybookUI, or adding the StorybookPlugin to a…

storybookjs/react-native · 102 tokens

uniwind

Uniwind — Tailwind CSS v4 styling for React Native. Use when adding, building, or debugging components in a React Native project that uses Uniwind classNames. Covers setup, Metro config, global.css, theming, className props, accent- color props, platform/data/state/responsive variants, CSS variables, custom utilities…

uni-stack/uniwind · 130 tokens

expo

Use when shipping a React Native app with Expo — EAS Build/Submit/Update, eas.json profiles and channels, config plugins, prebuild/CNG, runtime-version policy, OTA updates that never land, SDK upgrades, the New Architecture. NOT RN UI, navigation or native-module authoring (that is react-native), NOT a Dart app (that…

ericrisco/rsc-harness · 79 tokens

react-native

Use when writing the JS/TS inside a React Native or Expo app — screens, Expo Router navigation, lists, Reanimated gestures, platform forks, offline state, native modules — or killing jank and render storms. NOT eas build/submit/OTA/config-plugin (that is expo), NOT a Dart app (that is flutter), NOT web React/DOM (that…

ericrisco/rsc-harness · 90 tokens