Claude Code for editing

Claude Code skill: /captions

You want accurate SRT captions from local Whisper, split into readable lines, and optionally burned into a vertical export

Tags

Claude CodeSkillWhisperFFmpegCaptions

Save it as

.claude/skills/captions/SKILL.md

.claude/skills/captions/SKILL.md · 25 linesDownload .md
---
name: captions
description: Transcribe a video locally with Whisper, build clean SRT captions with readable line lengths, and optionally burn them in. Use when the user asks for captions, subtitles, an SRT or burned in text.
argument-hint: <video file> [burn] [language]
---

# Captions

Input: $ARGUMENTS

1. Extract audio: `ffmpeg -i INPUT -vn -ac 1 -ar 16000 work/audio.wav`
2. Transcribe with word timestamps (ask which Whisper the user has installed if unsure):
   `whisper work/audio.wav --model small --word_timestamps True --output_format json --output_dir work`
3. Build captions from the word timings:
   - Max 42 characters per line, max 2 lines per caption (vertical video: 1 line, max 28 characters).
   - Keep reading speed under 20 characters per second. Merge or extend if faster.
   - Minimum 0.8 s on screen, maximum 6 s.
   - Break lines after punctuation or before conjunctions, never between an adjective and its noun.
   - Start each caption about 0.05 s after the first word starts. Early captions look out of sync.
4. Fix obvious mistakes in names and product terms using the list in CLAUDE.md, if there is one. Do not rewrite what the speaker said.
5. Save `out/<name>.srt` and show the user the 5 captions you are least sure about with timestamps.
6. If the user asked to burn them in, use the caption style from `brand/DESIGN.md` if it exists, otherwise white text, black outline, bottom center, inside the safe area:
   `ffmpeg -i INPUT -vf "subtitles=out/<name>.srt:force_style='FontName=Inter,FontSize=18,Outline=2,MarginV=60'" -c:a copy out/<name>_captioned.mp4`
7. Never overwrite an existing file.

Before you run it Fill in anything in [brackets]. If it edits a project, use a duplicate and read the agent's plan before you say go

Sources and credit

The prompt text is written by AgentCut. These sources informed it and are worth reading in full

More in Claude Code for editing

All 39 prompts →

  • Claude Code

    CLAUDE.md for a Remotion motion graphics project

    You make motion graphics or explainers in code with Claude Code and Remotion, and you want every session to follow the same rules for timing, fonts and renders

    Claude CodeRemotionCLAUDE.md

  • Claude Code

    CLAUDE.md for an FFmpeg editing folder

    You keep raw footage in a folder and let Claude Code trim, cut, caption and export it with FFmpeg, and you never want it to touch your originals

    Claude CodeFFmpegCLAUDE.md

  • Claude Code

    CLAUDE.md for editing in Resolve, Premiere or After Effects through MCP

    You connected Claude Code to DaVinci Resolve, Premiere Pro or After Effects with an MCP server and want safe habits before it touches a real project

    Claude CodeMCPResolvePremiere

  • Claude Code

    Claude Code skill: /cut-silences

    You record talking head videos and want one command that finds the pauses, shows you the cut list, and exports a tighter version

    Claude CodeSkillFFmpegWhisper

  • Claude Code

    Claude Code skill: /shorts from a long video

    You have a podcast, stream or long YouTube video and want Claude to find the best moments and export vertical clips you can review

    Claude CodeSkillShortsFFmpeg

  • Claude Code

    Claude Code skill: /qa-render before you deliver

    You want a repeatable final check on every export before it goes to a client or gets uploaded

    Claude CodeSkillFFmpegQA

The AgentCut weekly

New AI connectors for After Effects, Premiere, Resolve and CapCut, tested setup notes, and what broke after app updates. One email a week.