video-add-captions
Add word-timed captions to an Open Recut program. Use this skill to map the canonical transcript through timeline.json, review a maintained style on…
от whitetowerai1 383 установки в других каталогах
Установить video-add-captions в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Video Add Captions
Dependencies
/video-understand is a prerequisite. Run it first so captions use the validated
word-level transcript and canonical timeline.
Before starting, verify that it is installed. If it is not, warn the user that
this prerequisite is missing and stop before processing media.
Require ffmpeg/ffprobe on PATH, Python with Pillow, and Node.js >= 22 (for the .mjs scripts and npx hyperframes, fetched on demand). hyperframes render/snapshot drives a headless Chrome — it manages its own chrome-headless-shell, and falls back to a system Chrome (set CHROME to override) when the cached one is unusable. Check these before processing media.
Scope
This skill owns caption grouping, style selection, review, and the transparent
caption track. It does not transcribe, cut, retime, grade, reframe, or choose the
delivery audio policy.
Run captions before content cards and motion graphics whenever either is selected.
The approved caption layout establishes a reserved subtitle region that both later
operations must keep clear. This relative order also applies when only one pair is active.
Use video-understand first. If a cut exists, caption the active program
timeline; do not treat source transcript seconds as program seconds.
Protocol Inputs
Required:
work/project.jsonwork/understand/transcript.json, with word-level source timestampswork/understand/media.jsonwork/timeline.json- the source video named by
work/project.json
The timeline is the only source-to-program mapping. All ranges are half-open[start_s, end_s). scripts/build_captions.py uses the sharedprojectlib.map_transcript_to_timeline; words in dropped source ranges disappear,
retained words move to program time, and cues always break at clip boundaries.
Durable Outputs
work/captions/
|-- captions-plan.json
|-- caption-spatial-context.json (only for eligible B-roll composites)
`-- caption-interaction.json
work/cache/captions/
|-- preview-project/
|-- preview-snapshots/
|-- overlay-project/
`-- overlay-frames/frame_000001.png ...
review/05-captions/
|-- captions.srt
|-- captions-style-review-<UUID>.html
|-- captions-style-review.html
|-- captions-review.html
|-- preview-early.png
|-- preview-middle.png
|-- preview-late.png
|-- preview-no-caption.png
|-- captions-evidence.json
`-- captions-summary.md
Generated HTML, copied runtime files, extracted source frames, and overlay frames
are cache. The plan, optional spatial context, SRT, decision receipt, and review
evidence are durable.
Caption Plan
work/captions/captions-plan.json is the canonical caption plan, targets overlay, and uses
program time. It records:
timeline_id,program_duration_s, and the source transcript path;- cue grouping settings;
- approved style, decision mode, rationale, gallery choice, and complete resolved style;
- source-backed review evidence and approval actor;
- cues with compatibility fields
start,end,text,lines, andwords; program_rangeandsource_rangeson every cue;- program/source ranges and
clip_idon every mapped word; - a local renderer recipe with exact rational FPS and hashed runtime assets.
The generator also accepts the old top-level cue array. That is a standalone
compatibility adapter only; it cannot express timeline provenance or regenerate an
approved protocol contribution.
Standard is the default presentation mode. Standard plans do not need apresentation field and must not be migrated merely to add one. Expressive is an
explicit presentation mode, not a preset: request it with--presentation-mode expressive. The build step then adds stable cue IDs, default
word semantic_role values, and a draft presentation planning shell; it does not
guess layout variants.
Expressive supports only bottom-standard and center-emphasis. Readreference/caption-rules.md before filling the shell. The
existing renderer consumes only completed presentation.layout_beats; it does not
infer positions or change layout inside a beat.
Expressive cues may also define one contiguous phrase-level hero_line.
Use canonical level: hero; it renders the phrase gold on its own line at1.5x. Legacy level: strong remains accepted as an input alias and renders
identically, but new Agent-authored plans must not emit it. The maintained word roles keyword, number, andcontrast each use 1.22x; normal remains 1.0x. These treatments are
orthogonal to presets and do not create new style IDs. Readreference/caption-rules.md for the schema, overflow policy, and Karaoke rules.
When an active, review-approved B-roll operation contains approved or verified
speaker-inset composites, captions may derive caption-spatial-context.json from
the frozen upstream plan, evidence, normalized composites, and explicit subshotdisplay_mode. This does not modify or reselect the B-roll layout. It aligns cue
boundaries before Expressive planning and resol
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл video-add-captions?
Add word-timed captions to an Open Recut program. Use this skill to map the canonical transcript through timeline.json, review a maintained style on source-backed pixels, render a local transparent HyperFrames PNG sequence, and register it as an overlay contribution for the shared delivery render.
Как установить скилл video-add-captions?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл video-add-captions запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
docx
AnthropicUse this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include…
AnthropicUse this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple…
xlsx
AnthropicUse this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing…
pptx
AnthropicUse this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or…