Claude Code for editing

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

Tags

Claude CodeSkillFFmpegWhisper

Save it as

.claude/skills/cut-silences/SKILL.md

.claude/skills/cut-silences/SKILL.md · 23 linesDownload .md
---
name: cut-silences
description: Find pauses and dead air in a talking head video with ffmpeg silencedetect, propose a cut list, and export a tightened version. Use when the user asks to cut silences, tighten a take, or make a jump cut edit.
argument-hint: <video file> [min pause in seconds, default 0.6]
---

# Cut silences

Input: $ARGUMENTS

1. Run `ffprobe` on the file and report duration, fps and audio channels.
2. Detect silence on the first audio stream:
   `ffmpeg -hide_banner -i INPUT -map 0:a:0 -af silencedetect=noise=-35dB:d=MIN_PAUSE -f null - 2> work/silence.txt`
   If no audio stream exists, stop and tell the user.
3. Parse `silence_start` and `silence_end` pairs. Keep 0.12 s of padding on each side of every kept segment so words are not clipped.
4. Never cut a pause shorter than MIN_PAUSE. Never leave a kept segment shorter than 0.4 s, merge it with its neighbor instead.
5. Write the plan to `work/cutlist.csv` with columns: keep_start, keep_end, length. Show the user a summary: number of cuts, old duration, new duration, the 3 longest removed pauses with timestamps.
6. Wait for the user to say go.
7. Export with frame accurate cuts (re-encode) to `out/<name>_tight.mp4`, keeping source fps and resolution. Use the select and aselect filters or a concat list, whichever is simpler for the number of segments.
8. ffprobe the result, confirm the new duration matches the plan within 0.2 s, and list 3 cut points worth checking by eye.

Rules: never write into `raw/`. Never overwrite an existing output. If the user is in Premiere, Resolve or CapCut, offer to write the cut list as markers instead of exporting a 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: /captions

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

    Claude CodeSkillWhisperFFmpeg

  • 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.