Skip to content
Back to skills

Docs

ASecurity

`motion-graphics-skill` never talks to `ffmpeg`/`ffprobe` directly. It locates one `ffmpeg-skill` checkout (`adapter.FfmpegSkill.locate`) and calls exactly three of its tools, always as `[sys.executable, <dir>/scripts/<tool>.py, <typed argv...>, --json]` (never a shell, never a request-supplied string as a flag): | Tool | Used for | |---|---| | `probe` | Source video facts (resolution, duration, presence of a video stream) and output validation after every render. | | `graphics` | `TITLE` (`-...

  • 19 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added October 26, 2026
ai-agentsshellapi

Works with

  • api

Security analysis

A100/100

Pro scans all 6 files and shows the line behind each finding

Scanned November 11, 2026

npx -y skills add kajisho5/motion-graphics-skill --skill docs --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Docs?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Docs
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/kajisho5-docs-motion-graphics-skill/badge)](https://www.skillsdirectory.com/skills/kajisho5-docs-motion-graphics-skill)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
# ffmpeg-skill integration contract

`motion-graphics-skill` never talks to `ffmpeg`/`ffprobe` directly. It locates one `ffmpeg-skill` checkout
(`adapter.FfmpegSkill.locate`) and calls exactly three of its tools, always as
`[sys.executable, <dir>/scripts/<tool>.py, <typed argv...>, --json]` (never a shell, never a request-supplied
string as a flag):

| Tool | Used for |
|---|---|
| `probe` | Source video facts (resolution, duration, presence of a video stream) and output validation after every render. |
| `graphics` | `TITLE` (`--template title`), `LOWER_THIRD` (`--template lower-third`), `BUG`, `CHAPTER`, `PROGRESS`, `COUNTDOWN`, and — only when the checkout has them — `STICKER` (`--template sticker`, `--text`), `HOOK` (`--template hook`, `--duration`) and `MEME` (`--template meme`, `--top`/`--bottom`). Built-in animation, brand-free (colours passed explicitly via `--text-color`/`--primary`, never through a `brand.json`). |
| `overlay` | `TEXT_OVERLAY` (`--text`), `IMAGE_OVERLAY` (`--image`), and `VIDEO_OVERLAY` (`--video`, with optional `--chromakey`/`--chromakey-similarity`/`--chromakey-blend` green-screen removal) — position, margin, static scale, opacity, and (text/image only) a configurable `--fade`.; `RENDERED_LAYER` (`--video` with one `--place SRC_START-SRC_END@AT` per IN / LOOP / OUT piece, when the checkout has `--place`: ADR-25). |

Every `graphics`/`overlay` invocation may also carry `--audio-stream` (`document.options.audio_stream`) to select
which audio track of the source survives, and `--platform` (`document.options.platform`) to put each element's margin in a
destination's safe zone.

## Compatibility: capability detection, no version window

There is no ffmpeg-skill version window (ADR-18 in `decisions.md`). `FfmpegSkill.info()` reads the flags each tool
takes from the located checkout — `scripts/_contract.py --json --static`, then `_contract.py --json`, then
`scripts/contract.py --json`, and finally each tool's own `--help` — and `adapter.check_tools()` compares them with
what this skill emits:

- every flag in `adapter.REQUIRED_FLAGS` must be present (a missing one is a `TOOL_ERROR` naming it, surfaced by
  `doctor` and refused by `run` before anything renders). They imply ffmpeg-skill >= 0.12.0 (`--video`/`--chromakey*`
  on `overlay`: 0.11.0, `--audio-stream`: 0.12.0), but that floor is detected, not computed from a version number;
- encoder quality: `--quality` when offered (1.10+; 2.0 removed `--crf` on `graphics`/`overlay`), else `--crf` — the
  same CRF scale, so `document.options.crf` means the same thing on every version;
- `--overwrite` is passed when offered (1.10+ refuses to replace an existing output without it, older releases
  reject it); the consent is this skill's own `document.output.overwrite` check;
- a bare `RRGGBB` colour on `overlay` is passed as `0xRRGGBB` (2.x validates colour flags; every version reads it the
  same way);
- `graphics` reads `--primary`/`--text-color` through `color_hex`, which takes `RRGGBB` only (no name, no `@alpha`, no
  opacity flag) on every version from 0.12.5 to 2.21.0: a colour name is sent as its `RRGGBB` from the fixed table in
  `colors.py` (FFmpeg's own names), and `@alpha` on a template colour is refused before rendering (ADR-20);
- `--platform` is passed only when `document.options.platform` is set, and the request is refused up front when the checkout has
  no such flag on a tool it needs, or does not know that destination (the choices are read from the contract's `enum`, else `--help`);
- the `sticker`, `hook` and `meme` templates (`adapter.TEMPLATE_FLAGS`) are used only when the checkout's `--template` choices and
  flags have them. An older checkout (0.12.5 has none of them, nor `--platform`) stays fully usable for every other element type, and
  `doctor` reports these three `unsupported` (ADR-19).

`contract_version` (`"1.0"` in every release so far) and the version number are reported, never gated on.
`doctor --json` shows what was detected under `checks.ffmpeg_skill.detected`. CI runs against ffmpeg-skill `main`
(every push, and daily) and against 0.12.5 (`87c84f2`, the oldest verified commit).

## Discovery order (`FfmpegSkill.candidates`)

1. `--ffmpeg-skill <dir>` (explicit; never silently replaced by a fallback)
2. `MOTION_GRAPHICS_FFMPEG_SKILL_DIR` environment variable
3. `VIDEO_AGENT_FFMPEG_SKILL_DIR` environment variable (shared with sibling Skills in this ecosystem)
4. `~/.claude/skills/ffmpeg-skill`
5. `./vendor/ffmpeg-skill`
6. `../ffmpeg-skill`

## Flags used, by tool (`adapter.REQUIRED_FLAGS`, `FLAG_ALTERNATIVES`, `OPTIONAL_FLAGS`)

- `probe`: `inputs` (positional)
- `graphics`: `input`, `output`, `template`, `start`, `end`, `quality`|`crf`, `preset`, `audio_stream`, `title`,
  `subtitle`, `name`, `position`, `count_from`, `text_color`, `primary`, `json`; `overwrite` and `platform` when offered; and per
  template when offered: `text` (sticker), `duration` (hook), `top`/`bottom` (meme)
- `overlay`: `input`, `output`, `position`, `margin`, `start`, `end`, `opacity`, `quality`|`crf`, `preset`,
  `audio_stream`, `fade`, `text`, `font_size`, `font_color`, `border`, `border_color`, `box`, `box_color`, `font`,
  `font_file`, `image`, `scale`, `scale_percent`, `video`, `chromakey`, `chromakey_similarity`, `chromakey_blend`,
  `json`; `overwrite` and `platform` when offered
- `background` (optional, `adapter.GENERATOR_TOOLS`; `shape` only, ADR-22): `output`, `duration`, `width`, `height`, `color`,
  `json`; `quality`|`crf`, `preset` and `overwrite` when offered. A checkout without the tool or these flags reports `shape`
  unsupported; it is never needed to locate a checkout
- Layer export (`document.options.layer_export`, ADR-30; `layerexport.LAYER_EXPORT_FLAGS`): `background` `transparent`, `fps`,
  `alpha_codec`, `alpha_mode` (the transparent canvas, always `--alpha-codec prores4444`); `color` `retag` (the canvas gets the programme's
  colour tags, a stream copy, so every layer carries them; an untagged layer made FFmpeg 7.1+'s overlay convert the picture under it);
  `graphics` and `overlay` `keep_alpha`,
  `alpha_codec`, `alpha_mode` (each layer: the burn's own argv on the canvas, with these in place of `quality`|`crf` / `preset`
  and without `audio_stream`). Detected like the optional flags; a checkout without every one of them (ffmpeg-skill before
  3.2.3) refuses the option before rendering, and doctor reports `ffmpeg-skill-feature:layer_export` with the `--alpha-codec`
  choices it offers. Each layer's `alpha_codec`, `alpha_mode`, `verified` and `alpha` verification step are read off the tool's
  own result

## `dropped_non_av_streams` (ffmpeg-skill 0.12.1)

`graphics`/`overlay`'s `--json` response carries `dropped_non_av_streams: bool` — `true` only when that tool's own
attempt to preserve the source's subtitle/data stream(s) failed and it fell back to a video+audio-only re-encode
for that one invocation. `adapter.ToolRun` reads it off every tool response; `executor.StageResult.to_dict()`
includes it per operation only when the field was actually present and truthy-or-falsy as a real `bool` (an older
ffmpeg-skill response that never carries the field at all leaves it out entirely, never guessed as `false`), and
`Executor.response()` adds one `warnings[]` entry per stage where it was `true`. Matches this Skill's own stated
philosophy (`docs/decisions.md` ADR-12/ADR-17): never claim support — or non-loss — that isn't backed by what the
real renderer actually reported.

## Known gaps (observed, not assumed)

- `ffmpeg-skill/overlay --fade` always fades both in and out when `--start`/`--end` are both given: there is no
  in-only or out-only mode over a bounded window (ADR-2 in `decisions.md`).
- `ffmpeg-skill/overlay`'s `--video` branch never reads `args.fade` at all (only `--image`/`--text` do): a
  `video_overlay` element cannot have a configurable `fade` animation for the same reason `title`/`lower_third`
  cannot (ADR-15 in `decisions.md`).
- `ffmpeg-skill/graphics --template title|lower-third` bakes in a fixed, non-configurable 0.3s fade (title) or
  slide+fade (lower-third): no flag exists to change the timing (ADR-3).
- Filter-capability detection through `ffmpeg-skill doctor` is unreliable on FFmpeg builds whose `-filters` output
  format changed (observed on FFmpeg 8.0+, see `ffmpeg-skill`'s own `docs/contract.md`); `doctor.py` reports those
  capabilities as `unknown`, never `unsupported`, when `ffmpeg-skill` itself reports zero filters detected.
- On some Windows FFmpeg builds, `ffmpeg-skill/overlay --font-file <absolute Windows path>` fails to parse
  (`No option name near ...`, `Invalid argument`) regardless of slash style or escaping, because ffmpeg-skill's
  own filter-path escaping round-trips the value through `pathlib.Path` and always re-normalises it to the same
  form before escaping the drive letter's colon. Worked around entirely on this skill's side (ADR-9 in
  `decisions.md`): that one invocation runs with `cwd` set to the font file's directory and `--font-file` gets
  just the bare file name, which needs no escaping.

Files in this skill

  • architecture.md4.2 KB
  • decisions.md33.2 KB
  • ffmpeg-skill.md6.2 KB
  • security.md4.3 KB
  • testing.md4.5 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.