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
# Project: FFmpeg editing folder
I edit videos here with FFmpeg through you. Treat my footage like a client's footage.
## Folders
- `raw/` original files. READ ONLY. Never write, move, rename or delete anything in here.
- `work/` temporary files. You can create and delete files here.
- `out/` finished exports only.
- `logs/` one text file per job with the exact commands you ran.
## Rules
- Run `ffprobe` on every input before you build a command. Report resolution, fps, codec, duration and audio channels.
- Keep the source fps and resolution unless I ask for something else.
- Prefer stream copy (`-c copy`) for simple trims on keyframes. Re-encode when cuts must be frame accurate and say so.
- Default delivery encode: H.264, `-crf 18`, `-preset slow`, `-pix_fmt yuv420p`, AAC 320k, `-movflags +faststart`.
- Never overwrite a file. If the output exists, add `_v2`, `_v3`.
- Show me the full command before any job that takes more than a minute, then run it after I say go.
- Write every command you ran into `logs/<job>.txt` so I can rerun it.
## Checks after every export
- `ffprobe` the output: duration, fps and resolution match what we planned.
- Audio is present and not silent (`volumedetect` mean volume above -50 dB).
- Tell me 3 timestamps worth checking by eye, for example the first cut, the busiest caption and the last second.
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
- n0an/ffmpeg-skill (MIT)Idea of giving the agent vetted recipes instead of recalled commands
- Claude Code docs, How Claude remembers your projectWhat belongs in CLAUDE.md
The prompt text is written by AgentCut. These sources informed it and are worth reading in full
More in Claude Code for editing
- CLAUDE.md for editing in Resolve, Premiere or After Effects through MCPYou connected Claude Code to DaVinci Resolve, Premiere Pro or After Effects with an MCP server and want…
- Claude Code skill: /captionsYou want accurate SRT captions from local Whisper, split into readable lines, and optionally burned into a…
- Connect Claude Code to DaVinci Resolve, step by stepYou want Claude Code to read and edit your Resolve timeline and need a safe first session
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