subtitle-skill
CLAUDE.md5 starsChanged 12 days agoMITView on GitHub
This file exists so a future session (human or agent) can pick up work without replaying conversation history. It is maintained by whoever last touched the repository as its "autonomous maintainer" — update it whenever repository state materially changes (new capability, changed integration, closed gap, new known limitation). subtitle-skill: a deterministic subtitle validation / generation / burn-in-rendering execution skill. It makes no editorial decisions about subtitle content (no transcription, no diarization, no wording, no cue-splitting judgement) — see README.md and…
- Installs packages
In this repositoryOne other file it gives its agents.
- subtitle-skillSkill
The file
We split this CLAUDE.md into the rules it gives an agent
2 rules. About 0 are common, 2 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 18
Status: CURRENT, working, tested: Not experimental, not a stub.
- Distinctive: line 66
If a future contract change here breaks that byte-equality, that pin is the thing that will (rightly) fail on video-production-agent's side …
≈ “Common” is an estimate: at least 1 in 5 of the 29,248 CLAUDE.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
CLAUDE.md — repository state for future sessions
This file exists so a future session (human or agent) can pick up work without replaying conversation history. It is maintained by whoever last touched the repository as its "autonomous maintainer" — update it whenever repository state materially changes (new capability, changed integration, closed gap, new known limitation).
What this repository is
subtitle-skill: a deterministic subtitle validation / generation /
burn-in-rendering execution skill. It makes no editorial decisions
about subtitle content (no transcription, no diarization, no wording,
no cue-splitting judgement) — see README.md and SKILL.md for the
full responsibility boundary and agent-facing usage guide. Do not
duplicate that content here; this file is status, not spec.
Status: CURRENT, working, tested. Not experimental, not a stub.
1.0 compatibility promise (docs/adr/ADR-014-1-0-compatibility-promise.md,
Velisa ADR-031): subtitle.generate and subtitle.render are STABLE;
subtitle.translate and subtitle.mux stay EXPERIMENTAL, and so do the
newer opt-in fields the ADR lists (ADR-013's, animate/karaoke, shorts,
fonts_dir, regional profiles, ruby, and style_preset from 1.1.0). A breaking change to a STABLE
part needs the major label (major-label-check.yml).
Where this sits in the ecosystem
kajisho5/ai-video-production-os <- the "OS" repo named in system-map style prompts
kajisho5/video-production-agent <- the actual orchestrating agent (Python, has real code)
kajisho5/subtitle-skill <- this repo
kajisho5/ffmpeg-skill <- downstream dependency of this repo's `render` operationkajisho5/ai-video-production-os is a placeholder, not a real system.
As of this writing its main (e764520) contains exactly one file:
README.md with a single line, # video-production-ecosystem. There is
no OS contract, no capability-discovery mechanism, no runtime, nothing
to integrate against. Any documentation or code that talks about "OS
integration" as if that OS already has a contract is fabricating
architecture that does not exist — do not do that. Treat OS
integration as VISION-stage until that repository actually contains
something.
kajisho5/video-production-agent now DOES call this skill. This
was NOT true earlier in this repo's history (an earlier version of this
file, written against video-production-agent commit 287b685,
recorded "does not call this skill yet" — that is now stale and was
corrected here after re-reading the real source at commit d8a6c83).
Verified against actual source, not assumed:
src/video_agent/skills/registry.pydeclaressubtitle_generationandsubtitle_burn_inSkillSpecs that target this skill.src/video_agent/tools/subtitle/locate.pyfinds an installed subtitle-skill (a checkout'ssrc/subtitle_skillrun viapython -m subtitle_skill, or thesubtitle-skillconsole script) — the agent never imports subtitle-skill as a library, only invokes it as a subprocess, matching this repo's CLI-first design.src/video_agent/tools/subtitle/adapter.py'sSubtitleAdapterruns it as exactly["subtitle-skill", "run", "-", "--json"]with the request JSON on stdin — the same invocation shape this repo's own README documents.src/video_agent/tools/subtitle/contract_0.1.0.jsonpins a snapshot of this repo's contract. Diffed byte-for-byte against a livesubtitle-skill contract --jsonrun in this session: identical. If a future contract change here breaks that byte-equality, that pin is the thing that will (rightly) fail on video-production-agent's side — bumping this repo's contract version is a breaking change for a real, verified consumer, not a hypothetical one.
A real cross-repo compatibility bug was found and fixed this
session (see engine.py's UNKNOWN_ENGINE_VERSION): the adapter's
_check_response() requires a render response's engine_version field
to be a non-empty string, and treats anything else (including a JSON
null) as INVALID_RESULT — a non-retryable failure — rather than a
render failure. ffmpeg_skill_version() used to return None (→ JSON
null) whenever the installed ffmpeg-skill had no readable
package.json, which is a legitimate state (e.g. a hand-built or
vendored install with no npm metadata). That combination meant a
perfectly successful render could be reported to video-production-agent
as an unretryable invalid result. Fixed by having
ffmpeg_skill_version() return the literal string "unknown" instead
of None in that case — engine_version is now guaranteed to always
be a truthy string on a render response. Covered by
tests/test_engine_boundaries.py::test_engine_version_is_never_null_without_package_json
and an added assertion in
tests/test_engine_render.py::test_render_delegates_to_real_ffmpeg_skill_caption.
kajisho5/ffmpeg-skill is a real, verified downstream dependency.
render delegates burn-in (or mux) to its caption tool by invoking
scripts/caption.py directly (there is no single dispatch endpoint in
ffmpeg-skill — every tool is its own script). Verified against
kajisho5/ffmpeg-skill commit 336e0c4d6311d2407daaa529ad71fee641f59b37
(package.json version 0.12.2) as of this writing, re-vendored to close
subtitle-skill#3:
probe.py is still byte-identical to the previous pin, but caption.py
and _common.py — the files subtitle_skill.engine actually invokes —
are NOT: caption.py gained --mode mux, --audio-stream N, and
SMPTE timecode support for --text cues since the last pin (b51dc5e,
v0.9.2); _common.py gained the shared helpers those need plus
unrelated stream-preservation fixes. This jump skipped three
intermediate feature releases (0.10.0-0.12.1) that went unnoticed
between sessions — the exact failure mode the old text of this section
predicted ("vendor-drift.yml is weekly... does not open an issue or PR
by itself yet"; since then a failed scheduled run opens an issue, see
Known gaps below). Pin history:
2abd89c (v0.9.1) → b51dc5e (v0.9.2, _contract.py-only drift) →
336e0c4d (v0.12.2, caption.py+_common.py drift, this session). Do
not assume it is still byte-identical by the time you read this either
— run python3 scripts/check_vendor_drift.py (or check the daily
vendor-drift.yml workflow run) before trusting it blindly.
render now exposes caption.py's mux/audio-track capabilities
instead of hardcoding burn-only (subtitle-skill#3 fix B, same session
as the re-vendor above — the re-vendor is what made these reachable to
test against in the first place). engine.burn_in() no longer builds a
fixed 4-token argv:
mode(request field, default"burn"; validated againstengine.ALLOWED_RENDER_MODESbefore ever reaching caption.py, since an invalid--modechoice there exits non-zero with a plain-text argparse error and no JSON at all) —"mux"adds--mode mux, producing a soft/toggleable subtitle track instead of burned-in pixels.audio_stream(request field, optional 0-based int) — threaded as--audio-stream Nfor either mode; type-checked here, range-checked by caption.py itself against the real input (mapped toINVALID_INPUT).SubtitleDocument.language— required and BCP47-validated bymodels.pysince before this session, but never read by anything downstream until now — is forwarded as--language(mux-only; caption.py's own--languagealso feeds--transcribe, which subtitle-skill never uses). Real caveat found by actually running it, not assumed:.mp4/.movoutput'smov_textmux codec silently drops a language tag that is not a 3-letter ISO 639-2 code — a plain 2-letter BCP47 tag like"ja"/"en"(exactly whatSubtitleDocument.languagevalidates and what a real caller sends) can vanish from that container's stream tags with ffmpeg still exiting 0..mkv/.webmoutput writes the same value verbatim. Seeengine.burn_in's docstring and README "ffmpeg-skill integration" for the full citation;tests/test_engine_render.py's mux tests exercise this against the real (now-current) vendoredcaption.py, and the language-tag test deliberately uses.mkvoutput to isolate subtitle-skill's own forwarding logic from that muxer quirk.
render now forwards a subset of SubtitleStyle to caption.py
(subtitle-skill#5, this session). Previously SKILL.md/README documented
a deliberate full opt-out ("style is not forwarded to ffmpeg-skill's
caption tool during render... there is no lossless translation"). That
was overly broad: color/bold/size genuinely DO have a real
caption.py target (--color/--bold/--size); only align/position/
line/italic don't. Verified against caption.py's real argparse
definitions and force_style construction, not assumed:
color->--colorverbatim (caption.py's owncolor_hex()validates).bold->--boldwhenTrue(action="store_true", no--no-bold).size(0..100 percent) ->--size <round(size/100*288)>. caption.py's own help text says--sizeis "ASS points relative to a 288p script height, scales automatically" -- confirmed empirically this session by burning the same--sizeinto two real videos of different heights and measuring the rendered glyph's pixel height in each (it scaled proportionally with the real video height), not trusted from the help text alone.align/position/line/italicremain genuinely unmapped and undocumented as forwarded: no--alignflag exists at all;--position's 7 named anchors conflate horizontal justification with vertical anchor (its"center"is screen-center, not bottom-center-justified) so there is no lossless bucket foralign, and no numeric/percent placement exists at all forposition/line;italichas no force_style key in caption.py's plain-SRT path (though it already renders correctly per-cue via the pre-existing<i>SRT tag, unrelated to force_style).- The real complication:
formats.generate_srtalready rejectedcolor/sizewithUNSUPPORTED_FORMATfor any caller (it's meant for a bare .srt file, which truly can't encode them) --render's own SRT generation would have hit that same rejection before ever reaching caption.py, making the new wiring dead code. Fixed by givinggenerate_srtan internalallow_style_fieldsparameter thatoperations._run_rendersets to{"color", "size"}only formode="burn"(never forgenerate, never formode="mux", and never includingalign/position/line). - caption.py's force_style is a single, whole-burn setting with no
per-cue equivalent, but
SubtitleStyleis per-cue on this model.operations._run_renderreduces a document's cue styles to the onecolor/bold/sizetriple actually forwarded, requiring every cue that sets a given field to agree; a genuine conflict isINVALID_INPUT, never resolved by silently picking one cue's value. - Covered by
tests/test_engine_style.py(argv construction against a fake caption.py, including the "unset style changes nothing" regression guard), new cases intests/test_formats.py(theallow_style_fieldsescape hatch), and new cases intests/test_engine_render.pyagainst the real vendored caption.py (reading the persisted sidecar'sengine_response.commandsfor the real, caption.py-reportedforce_stylestring --execute()'s own response never carries it).
Capabilities (what this repo actually exposes)
Four operations, all real and tested — see contract --json as the
authoritative source, never re-describe this from memory:
| Operation | Formats | Depends on |
generate | SRT, WebVTT, TTML (IMSC 1.1, EBU-TT-D) | nothing external |
render | SRT only | a reachable ffmpeg-skill install (caption + probe tools) |
translate | SRT, WebVTT, TTML | engine memory: nothing; argos: argostranslate + an installed package; opus-mt: ctranslate2 + sentencepiece + a converted model under SUBTITLE_SKILL_OPUS_MT_DIR; ollama: a local Ollama server with the model pulled; deepl: DEEPL_AUTH_KEY |
mux | SRT only | ffmpeg-skill (caption + probe); 1.16+ for more than one track |
Capability/error/format lists live in code (src/subtitle_skill/contract.py,
src/subtitle_skill/errors.py, src/subtitle_skill/doctor.py) and are
generated at runtime — this file must never hardcode a second copy of
that list that can drift from contract --json.
Known gaps / next highest-value tasks (as of this writing)
Ordered by value, not urgency:
- PyPI publication itself — metadata is ready (see below); nothing has actually been uploaded. Requires a human decision (account, namespace, when) — not something to do unilaterally.
- Compatibility with new ffmpeg-skill releases is checked daily, not
fixed automatically —
vendor-drift.ymlnow runs the whole test suite against ffmpeg-skill main every day and fails only when subtitle-skill actually breaks (a plain new release passes). A real break still needs someone to fixsubtitle_skill.engine. A failed scheduled run opens the issue "Scheduled ffmpeg-skill compatibility check is failing", or comments on it while it is open (thereportjob,issues: writeon that job only); it does not open a PR. The schedule was red for five days (2026-11-06 to 2026-11-10) before that job existed, and nobody saw it. - No SMPTE timecode cue support in
render— ffmpeg-skill 0.12.x'scaption.py --textacceptshh:mm:ss:ffSMPTE non-drop-frame timecode cues (parse_time(fps=...)/fmt_smpte_time(), closing ffmpeg-skill#54) when--fps(or the input's own fps) is known;SubtitleCue.start/endhere are decimal seconds only, with no analog. Broadcast/EDL callers must do their own frame-to-seconds math before building aSubtitleDocument. Deliberately out of scope for subtitle-skill#3 (fix C in that issue is the cross-reposubtitle.burn-vs-subtitle.renderownership question, not this); noted here as the next real capability gap once someone decides this skill's typed cue model should grow afpsconcept. SubtitleStyle.align/.position/.line/.italicstill have norender-burn representation — not an oversight, a verified real gap (see the subtitle-skill#5 entry below and README's "SubtitleStyle → caption.py" table for the exact per-field reasoning): caption.py has no--alignflag and no numeric/percent placement at all, and its plain-SRT force_style path never exposes anItalic=key. Closing this would require either a caption.py feature that does not exist today, or moving subtitle-skill's own render path onto--ass(a bigger, riskier change than force_style flags, and this skill never sends--asstoday) — not something to do speculatively.
Done since the gaps above were first written
- Style presets as data (ECOSYSTEM_ROADMAP step 14,
docs/adr/ADR-015-style-presets.md,src/subtitle_skill/style_presets.py,src/subtitle_skill/presets/*.json).renderstyle_preset: a bundled name (clean-lower-third,bold-short-form,minimal-serif,boxed) or{"path": ...}, read against an allowlist (unknown key / path / tags →INVALID_INPUTnamingstyle_preset.<key>). Sizes in percent of the frame height; burns through this skill's ASS (WrapStyle: 0), so refused with mux,animate/karaoke, shorts, ruby, a top preset withplacement, andlegibilitywith a boxed preset. Explicit fields win over the preset. No font bundled: the first family of the chainfc-listlists. Without the field the ASS is byte-identical to 1.0.0's (golden files intests/fixtures/presets/), same argv, same identity keys (tests/test_style_presets.py). Experimental (ADR-014 section 2). Additive contract change: re-pin needed. - Caption quality for talking-head video (ECOSYSTEM_ROADMAP step 13,
docs/adr/ADR-013-caption-quality.md;cuts.py,numbers.py,emphasis.py,legibility.py,formats.ass.Look). Opt-inrenderfieldscuts(media-analysisscene_detectionor ffmpegscdet; cues split or moved at hard cuts),spoken_numbers(alsogenerate; English rules, U+00A0 inside a written form, merged word timings),emphasis(auto/numbers/words, one mark per cue, reasons in the response) andlegibility: "auto"(frames sampled behind each cue; halo or drawn scrim rectangle only where WCAG contrast is low). Emphasis, legibility and a spaced number burn through this skill's ASS (WrapStyle: 0only then) and are refused withanimate/karaoke.cuts.detectandlegibilityrun ffmpeg directly, decode only. Without the fields: same argv, same identity keys (tests/test_caption_quality.py). Additive contract change: re-pin needed. Not done: text behind the speaker (evaluated in the ADR only). Style presets (step 14) are done since, see above. - Animated captions from cues (ECOSYSTEM_ROADMAP step 12,
docs/adr/ADR-011-animated-captions.md):renderanimate/karaokeare passed through to ffmpeg-skillcaption --animate/--karaoke --karaoke-style, never drawn here. Karaoke words come fromcue.words, written as.words.jsonbeside the temporary SRT and beside caption.py's<output>_adjusted.srt(it looks there after lengthening a cue; measured at 2.24.0 and 3.8.3). Refused, not burned static: mux, the own-ASS paths (placement / regional / ruby / shorts), andanimatewithkaraoke: "word"(caption.py's per-word events make the caption blink out after the first word). Additive contract change. Tests:tests/test_animation.py, real burns read back frame by frame. renderfonts_dir: a burn with the caller's own font files (docs/adr/ADR-010-fonts-dir.md,src/subtitle_skill/fonts.py,tests/test_fonts_dir.py). For a machine where no installed font covers the subtitle's script: ffmpeg-skill refuses that burn, and a request had no way to say where a font is.fonts_diris a workspace directory (PathPolicy,resolve_input_dir).caption --fonts-diralone burns empty boxes and reportscompleted(libass does not fall back to the directory's files; measured on 2.24.0, 3.0.0, 3.3.0), sofonts.pyreads the family and thecmapcoverage from the font files and the burn names that family (--font, and theFontnameof this skill's ASS). Nofonts_dirand a missing-font refusal: the engine's reason is kept and the field is named (details: {"field": "fonts_dir"}). A caption tool without the flags isDEPENDENCY_ERROR. Contract changed (operations.renderdescription / inputs / outputs,parameters.render,capabilities.fonts_dir): re-pin needed.ci.ymlgained thereal-enginejob (Ubuntu, ffmpeg, fonts-noto-cjk): before it, no pull request ran a single burn or mux test (the OS matrix has no ffmpeg, 46 tests skipped). Not done: an explicit family override, and a real-engine check on macOS / Windows.- Shorts captions (ECOSYSTEM_ROADMAP step 11,
docs/adr/ADR-009-shorts-captions.md,src/subtitle_skill/shorts.py,formats.ass.generate_shorts_ass).rendercaption_profile: "shorts"(burn, vertical video) needscue.words; one- or two-word cues inside the TikTok/Shorts/Reels safe zone. Contract changed. - Regional caption profiles, ruby, vertical text (ECOSYSTEM_ROADMAP step 10,
docs/adr/ADR-008-regional-profiles.md,src/subtitle_skill/regional.py).regional_profile: "ja-broadcast"is opt-in on generate/translate/render; cuerubyandstyle.verticalare content. A profile or ruby sends a burn throughformats.ass(per-event colours, ruby laid out with\pos). Vertical text is not burned in. Contract changed: re-pin needed. - TTML output: IMSC 1.1 Text (
ttml) and EBU-TT-D (ebu-tt-d) (ECOSYSTEM_ROADMAP step 9,docs/adr/ADR-007-ttml-output.md,src/subtitle_skill/formats/ttml.py).generate/translateformats; each document is checked byvalidate_ttmlbefore it is written. CI validates against the vendored W3C TTML2 XSD (lxmlis a CI test dependency only). Contract changed (formats, descriptions,conformance?): re-pin needed. - Captions placed away from faces (ECOSYSTEM_ROADMAP step 8,
docs/adr/ADR-006-caption-placement.md,src/subtitle_skill/placement.py,src/subtitle_skill/formats/ass.py).rendertakesplacement(faces: detection-skilldetections@1;reframe:reframe@1;avoid: named regions;min_hold). With it a burn goes through subtitle-skill's own ASS andcaption --ass(caption.py's SRT force_style is one setting per burn);mode: "mux"writes{\an8}into the SRT. Without it nothing changes. Contract changed (operations.renderinputs/outputs/placement,parameters.render): video-production-agent must re-pin. - Argos weight licence checked;
opus-mtandollamaengines (ECOSYSTEM_ROADMAP step 7, ADR-004 addendum). The ja→en.argosmodelwas downloaded once, read and deleted: itsmetadata.jsonand README state no licence, so it stays unverified. Addedopus-mt(OPUS-MT converted to CTranslate2, Apache-2.0 weights,SUBTITLE_SKILL_OPUS_MT_DIR) andollama(local LLM,qwen3:8bdefault, one/api/chatper cue, never pulls).argosstays the default;doctorreportsweights_licenceper engine. Contract changed (operations.translate.engines,capabilities.translation_engines, the translate description): video-production-agent must re-pin. - Machine translation and multi-language mux (ECOSYSTEM_ROADMAP steps
4-6;
docs/adr/ADR-004-translation-engine.md,docs/adr/ADR-005-multi-language-mux.md;src/subtitle_skill/translation.py,operations._run_translate/_run_mux,engine.mux_tracks).translate: enginesargos(default, offline, optional import, never downloads, refused when Argos points at a remote provider),deepl(optional, key only fromDEEPL_AUTH_KEY, native glossary, HTTP layer replaceable for tests),memory(caller translation memory). Timecodes kept; text re-broken for the target language; target-language validation plusGLOSSARY_TERM_MISSING.mux: onecaption.py --mode muxcall with--srt FILE:LANGper track,--min-duration 0and a high--max-linesso caption.py does not re-time the first track (its re-wrap of that track to the frame width cannot be switched off and is reported asTRACK_RELAID_OUT). The vendored ffmpeg-skill fixture moved to 2.24.0 for this. The contract changed (operations,capabilities,parameters,provides,dependencies.for): video-production-agent's pinnedcontract_0.2.3.jsonnow drifts fatally (FATAL_DRIFT_KEYS) and itsSUPPORTED_SKILL_VERSIONS(0.1.,0.2.) does not include the 0.3.x release this ships as -- the agent must re-pin and widen that range before it sees the Skill as available again. Known gaps: no ASS soft tracks (caption.py refuses--mode mux --ass);render's single-trackmode: "mux"still lets caption.py lengthen short cues (left unchanged: an agent-facing behaviour); a sentence split over two cues is translated as two segments; the Argos weights' licence is not stated in its index (ADR-004). - Locale profiles for ja / zh / ko (ECOSYSTEM_ROADMAP.md step 3,
src/subtitle_skill/locales.py, decision and sources indocs/adr/ADR-001-locale-profiles.md). The primary subtag ofSubtitleDocument.languageselects a profile: East Asian Width counting (half-width = 0.5 for ja/ko, 1 for zh, the zh value being an explicitly conservative unverified choice), Netflix-guide defaults (ja 13 chars/4 cps, zh 16/9, ko 16/12), and kinsoku checks at existing line breaks (KINSOKU_LINE_START/KINSOKU_LINE_END, JLREQ/CLREQ/KLREQ classes).LINE_TOO_LONG/KINSOKU_*observations may carrysuggested_text(a kinsoku-compliant re-break) -- reported, never applied. Every other language is unchanged.contract --jsonwas deliberately left unchanged: video-production-agent treats any change to the contract'sparameters/capabilities/operationsas fatal drift (itsFATAL_DRIFT_KEYS), so advertising profiles there must be coordinated with its pinnedcontract_0.1.0.jsonfirst. Acceptance fixtures:tests/fixtures/locale/ja_*.json. provides[].tool_idissubtitle/generate/subtitle/render(ECOSYSTEM_ROADMAP step 2,docs/adr/ADR-002-provides-tool-id-prefix.md), no longersubtitle-skill/.... It matches video-production-agent's own tool ids and the thumbnail-skill / transcription-skill convention (short prefix in tool ids,-skillinskill_id).skill_idstayssubtitle-skillandcontract_versionstays1.0.0.providesis not in the agent'sDRIFT_KEYS/FATAL_DRIFT_KEYS, so this is not drift for its pinned contract (nowcontract_0.2.0.json). Do not changeskill_idto match: the agent compares it exactly.renderforwardsSubtitleStyle.color/.bold/.sizeto caption.py's--color/--bold/--size, formode="burn"(subtitle-skill#5, this session) — see the dedicated entry above (right after the ffmpeg-skill dependency section) for the exact mapping, thesizepercent-to-288-points conversion and its empirical verification, theformats.generate_srtallow_style_fieldsfix that made forwardingcolor/sizeactually reachable, and the per-cue-vs-whole-burn reductionoperations._run_renderperforms.align/position/line/italicremain a documented, verified gap (see above), not silently dropped or guessed at.renderexposes ffmpeg-skill/caption's mux mode, audio-track selection, and language tagging (subtitle-skill#3 fix B) —mode: "mux"(soft/toggleable subtitle track, vs. the default"burn"),audio_stream(0-based multi-track selection), andSubtitleDocument.languageforwarded as the mux language tag (mux only; previously validated but never read anywhere). See the ffmpeg-skill dependency section above for the real MOV/MP4 language-tag caveat this surfaced. Covered by new tests intests/test_engine_render.pyagainst the re-vendored realcaption.py.video-production-agentintegration — verified real and working (see above); the pinned contract snapshot matches this repo's contract byte-for-byte, and a real cross-repoengine_versioncompatibility bug found this session has been fixed. No further action needed here unless a future contract-version bump requires coordinating with that repo's pinned snapshot.- Agent Skill installer (
subtitle-skill install [--claude|--cursor|--codex|--all|--project|--dir PATH] [--uninstall] [--json],src/subtitle_skill/installer.py) — places the packagedSKILL.mdin the standard agent skill directories, mirroring ffmpeg-skill'sbin/install.jsflag convention. Deliberately option (a) from the original note below: it copies onlySKILL.md, not a runtime — thesubtitle-skillcommand still needspip installonPATHseparately, and the CLI says so. Verified against a real, non-editablepip install(not just an editable checkout) that the packagedSKILL.md(via[tool.setuptools.package-data]) actually ships and thatinstall/install --all/install --uninstallall work.tests/test_installer.pyalso guards the packaged copy against drifting from the repo-rootSKILL.md. - ffmpeg-skill compatibility check
(
scripts/check_vendor_drift.py,.github/workflows/vendor-drift.yml, daily + manualworkflow_dispatch) — clones current ffmpeg-skill main and runs the full test suite withSUBTITLE_SKILL_TEST_FFMPEG_SKILL_SRCpointed at it, so the render/doctor tests drive the real currentcaption.py/probe.py. It replaced a byte comparison against the vendored copy, which failed on every ffmpeg-skill release (several a week) whether or not anything broke. Its first run against 2.5.1 found two real breaks, both fixed inengine.py: ffmpeg-skill 2.0 moved_common.pyinto a_common/package (subtitle-skill no longer found the install at all), and 1.10 refuses to replace an existing output without--overwrite(a re-render failed). The vendored copy (0.12.2) stays as the offline fixture forci.yml; re-vendoring it is optional. Since ffmpeg-skill 3.0.0 the workflow is a matrix overmainand thev3.0.0tag (check_vendor_drift.py --ref). 3.0.0 changed only what this repo does not use (cut.pydefaults) or the environment (Python 3.10+, FFmpeg 6.1+);caption/probeand their JSON are unchanged, and the full suite passes against it. The dependency stays>=1.0ofcontract_version(3.0.0 reports2.0), with no upper bound (ADR-003).ci.ymlkeeps Python 3.9 on the vendored 2.x copy. The workflow installsfonts-noto-cjkand checksfc-list :lang=jabefore the tests: ffmpeg-skill 3.x refuses to burn text that no installed font covers,tests/test_regional.py(0.7.0) burns Japanese captions, andubuntu-latesthas no CJK font. That, not a change in ffmpeg-skill, made every scheduled run fail from 2026-11-06 (bothmainandv3.0.0). A test that burns another script needs its font added there too.
Things intentionally NOT done, and why
- No CI job clones ffmpeg-skill main for a live integration test in
ci.yml— would make this repo's normal-PR CI depend on the availability and stability of another repository's network fetch; the vendored copy plus the separate, non-blockingvendor-drift.ymlschedule (see above) is the deliberate tradeoff. - No MCP server, plugin loader, or "OS SDK" exists here — none of those exist in the actual OS repo either (see above); building one speculatively would be inventing architecture ahead of the thing it's supposed to integrate with.
- No PyPI publication —
pyproject.tomlnow carries full PEP 621 metadata (license, authors, classifiers, urls) so it's publish-ready, but nothing has actually been published; the README says so explicitly and that must stay true until it happens.
Test / CI state (verify, don't trust this number blindly)
At last update: 588 tests, pytest -q, all passing with ffmpeg and a Japanese
font installed; CI green on Ubuntu/macOS/Windows × Python 3.9/3.11 (6 jobs,
which have no ffmpeg and skip the burn and mux tests) plus the real-engine
job that runs them (.github/workflows/ci.yml).
Re-run pytest -q yourself before relying on this — it is a snapshot,
not a promise.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

