Reel Recut 标志

Reel Recut

社区
mrpaidsocial
reel-recut

将未经剪辑的竖屏出镜口播视频重新剪辑成完整的短视频:添加常驻标题横幅、与口播逐词同步的卡拉 OK 字幕、用于补充说明和评论关键词 CTA 的提示框,并通过紧凑地剪掉静音,营造“自问自答”的节奏——所有设置都写在一份 JSON 规范中,并确定性地渲染。用户提供出镜口播视频,并希望剪辑、设计样式,或“做得像我其他视频/这个参考视频”时使用,包括“加上字幕”“加个横幅”“剪紧凑些/节奏更有劲”“剪掉空白”“我说到 X 时加个提示框”或“修一下我结巴的地方”等需求。也适用于修改已重新剪辑的视频(更改横幅文字、添加/移动提示框、删掉结巴片段、调整字幕时间),以及为品牌合作素材制作不含图形的原始剪辑(仅调整节奏),由客户的剪辑师完成后续工作。不适用于未处理素材上的普通字幕(embedded-captions)、保留原片不动但叠加图形卡片(talking-head-recut),或完整品牌化动态图形广告(branded-ad-edit)。

Add to TypingMind

概览

发布者mrpaidsocial
代码仓库mrpaidsocial-video-editor-agent
技能名称reel-recut
星标数
114
复刻数
34
附带文件
9
链接
  • Markdown 格式的指令

    模型按需加载 SKILL.md 文件,因此只有在请求确实与该技能匹配时才会消耗 Token。

  • 兼容任何大语言模型

    AI 技能采用纯 Markdown,而非特定提供商的代码,因此可搭配 GPT、Claude、Gemini、Grok 或本地模型使用。

  • 9 个附带文件

    模型执行任务时可读取的脚本、模板和参考资料。这些文件为只读文件,绝不会被执行。

  • 开源

    由 mrpaidsocial 发布于 GitHub。请在安装前查看技能的源文件。

安装

在 TypingMind 中安装 Reel Recut AI 技能,即可搭配任意大语言模型使用;也可以将其放入其他支持读取 SKILL.md 的智能体中。

1

安装到 TypingMind

TypingMind 可直接从 GitHub 文件夹安装技能:读取 SKILL.md,打包资源文件,并将结果保存在本地。

  1. 打开应用,前往“插件 → 技能”。
  2. 选择“从 GitHub 安装”。
  3. 粘贴下方的技能文件夹 URL 并确认。
    https://github.com/mrpaidsocial/mrpaidsocial-video-editor-agent/tree/main/.claude/skills/reel-recut
  4. 请在每个需要使用该技能的聊天中启用它。
依次选择“插件 → 技能 → 添加技能 → 从 GitHub URL 导入”,然后粘贴文件夹 URL 并点击“继续”。
2

安装到其他智能体

任何支持 Agent Skills 格式的智能体都可以使用此技能,只需将文件夹复制到该智能体的技能目录中。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/mrpaidsocial/mrpaidsocial-video-editor-agent.git /tmp/mrpaidsocial-video-editor-agent
mkdir -p .claude/skills
cp -r /tmp/mrpaidsocial-video-editor-agent/.claude/skills/reel-recut .claude/skills/reel-recut
复制后,请重启 Claude Code,以加载新技能。

在 TypingMind 中使用此技能

在任意 TypingMind 聊天中启用 Reel Recut,后续即可交由模型处理。技能的名称和描述会放在系统提示词中,一旦请求匹配,模型就会自动加载完整指令,无需您手动调用,且在实际使用前不会消耗 Token。

一旦请求与技能匹配,模型就会自动加载 Reel Recut。

兼容任何 AI 模型

AI 技能是纯 Markdown 指令,而非特定提供商的代码,因此 Reel Recut 不局限于最初适配的模型。只需在 TypingMind 中安装一次,即可搭配 GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 或您自行运行的本地模型使用,全程使用您自己的 API 密钥。

  • 仅在需要时加载

    系统提示词中仅包含技能名称和描述。首次遇到匹配的请求时才会加载完整指令,因此技能未使用时,这些指令不会消耗 Token。

  • 在聊天中切换模型

    技能是指令而非代码,因此切换模型不会导致技能失效,新模型会读取同一个 SKILL.md。

技能指令

这是模型会加载的 SKILL.md 内容。请在安装前阅读,因为技能就是模型将遵循的指令。

reel-recut — spec-driven short-form talking-head edit

Turns a raw (or lightly-edited) vertical talking-head reel into a finished short-form look. The four signature elements:

  1. Persistent title banner (top, rounded accent-color box, heavy weight, UPPERCASE, 1-2 lines)
  2. Karaoke captions (bottom third, bold white + thick black stroke, short cleaned phrases, ~2s each)
  3. Callout boxes for an aside or the comment-keyword CTA (mid-screen, same box style)
  4. Tight "talking over myself" pacing — inter-phrase pauses silence-cut out so phrases butt together

The existing music/B-roll/audio are kept. The whole edit is described in ONE JSON "spec" and rendered by scripts/build_reel.py in a single pass.

The styling is spec-driven, not hardcoded. The spec's style block sets the accent color, font, weights, sizes, and positions (see references/spec.md). The defaults — purple #8030F8 boxes + Montserrat Black/ExtraBold — are one example creator's brand, reverse-engineered from their reels and kept so the script runs out of the box. Replace them with the user's brand, or capture the values off whatever reference reel you're asked to match (sample the box color from a frame, identify the font, note positions as fractions of frame height). assets/spec.example.json labels the example values explicitly.

Raw-cut mode (no graphics). Omit banner, captions and callouts entirely and the script skips the whole overlay pass — you get element 4 (the pacing) on its own. That is the right shape for a first-round cut on a brand deal, where the brand's own editor finishes the video and any overlay you add is wasted work. Pair it with "fps": "source" so a 60fps master is not silently downsampled to 30 on the way to their editor.

Environment constraints (read references/environment.md)

  • All text is rendered with PIL into transparent PNGs and composited with ffmpeg overlay. This exists because some ffmpeg builds lack libass/libfreetype (drawtext and subtitles simply don't exist there), and it is kept because it is fully portable — don't rewrite it around drawtext.
  • Graphics are pre-composed into one overlay video so the final render has 2 inputs. Do not hand-build a 30-input filtergraph — it can OOM a 16 GB machine. The script handles this.
  • If an agent sandbox kills ffmpeg (SIGURG / odd exit codes), re-run with the sandbox disabled.
  • ffmpeg/ffprobe come from PATH (override with FFMPEG/FFPROBE env vars). Local transcription uses whisper-cli + a ggml model; cloud Whisper needs OPENAI_API_KEY in a .env at the repo root.

Workflow

Source from a URL? If the user gives a link instead of a local file (an IG reel, TikTok, YouTube — their own or a reference to match), download it first (e.g. yt-dlp "<url>"), then feed that local path in as the target/reference clip below.

The script does the deterministic rendering. Your job is the judgment: watch the videos, write good captions, and choose the cuts. Follow references/workflow.md step by step. In short:

  1. Probe + watch. ffprobe both clips. Use the claude-video-vision plugin if available (video_analyze for scene/silence/loudness, video_watch for frames), or plain frame extraction. If matching a NEW reference, capture banner/caption/callout styling from it into the spec's style block.
  2. Transcribe. Get the target's speech with timestamps (whisper-cli -ojf locally, or OpenAI Whisper verbose_json with timestamp_granularities=["word"] — word-level timing is needed for stumble removal and CTA placement).
  3. Write the spec (copy assets/spec.example.json). This is where the craft is:
    • banner: 1-2 SHORT uppercase lines, parallel to the reference's hook.
    • captions: split the transcript into ~2s phrases of <= ~6 words. Clean them: drop filler ("like", "um"), fix transcription errors (whisper reliably mangles product/brand names — learn the user's recurring ones), and apply the user's house copy rules (the example brand bans em dashes in on-screen copy — use periods/commas). Captions are paraphrase-clean, not verbatim.
    • callouts: add one when the user flags an aside or a CTA ("add a callout when I say comment X"). Set suppress_captions to the caption indices that overlap, so the same words don't show twice.
    • silence_cut.enabled: true for the tight feel. FIRST confirm there's no loud music bed (see workflow.md) — if pauses don't drop below the noise floor, cutting glitches the music; lower noise_db or disable.
    • Noisy source (car, cafe, fan, handheld outdoors)? silence_cut will silently do almost nothing. It wraps ffmpeg silencedetect, a flat energy gate, so a source whose floor sits near the threshold reports a handful of pauses and misses the rest. Check first: if silencedetect=noise=-30dB:d=0.15 returns only a few spans, or none in the back half, switch to VAD-driven manual_cuts planned with scripts/plan_cuts.py (see workflow.md step 2b — it targets a fixed residual gap per join, which is what makes the pacing read as one continuous take).
    • manual_cuts: [[start,end]] ranges (original timeline) to remove a stumble or a bad take. Get exact word times from the transcript.
  4. Render. python3 scripts/build_reel.py spec.json. It prints the new duration + counts and dumps <spec>.qa-manifest.json next to the spec (regenerate anytime with --qa-manifest-only) — a machine-readable manifest of every cut, caption, and callout with source + output times.
  5. QA every seam (workflow.md step 5b): run scripts/verify_cuts.py on the planned cuts (cut-vs-uncut transcription of the same window), spot-check seams from the manifest, re-transcribe the OUTPUT and read it end to end as prose, and scan for doubled words. Fix by editing the spec (nudge a cut ≤500ms, retime a caption), re-render, re-verify; stop after 3 rounds and surface what's left to the user.
  6. Deliver a phone-viewable link (review page or file host — see environment.md), never just a bare path. Big masters want a 720p proxy for the player; keep the master on disk. Keep the original raw untouched.

Iterate by editing the spec and re-running — it's fast (a 60-75s reel renders in well under a minute). Spec fields are documented in references/spec.md.

On a PAID brand deliverable, the script is approved copy

Only remove what the script itself marks as an alternate (Hook 1 / Hook 2, alt takes) and genuine stumbles. Never trim approved lines to hit a runtime target or to match a reference ad's duration — propose the trim with timecodes and let the user decide, since they own the client relationship. Verify every cut with a different transcription pass than the one that made it, and read the surviving transcript end to end as prose.

Style quick-reference

  • The example brand (defaults): accent #8030F8, Montserrat (Black banner, ExtraBold captions/callouts, auto-downloaded from Google OFL on first run), vertical 1080x1920, 30fps, no em dashes in on-screen copy. Treat every one of these as replaceable — set the user's own values in the spec's style block.
  • Don't restyle the speaker or their footage; this skill edits pacing and adds graphics, nothing else.

Long takes: three traps (learned on a 258 s source with 140 cuts)

  1. Long cuts use the bundled frame/sample-grid assembler. The old select/aselect expression failed at ~120 keeps. build_reel.py now calls scripts/cut_timeline.py: keep windows snap inward to the selected CFR grid, bounded 16-span batches encode losslessly with PCM audio and short seam fades, then the joined video gets one AAC encode. It verifies actual frames, PCM samples, audio presentation duration and decode. Fractional FPS uses cumulative sample rounding. One-frame spans need timestamps rebuilt after concat, otherwise coincident timestamps collapse frames. Do not restore the long expression or per-span AAC approach. Existing output/work versions are protected; use a fresh output filename after a failed attempt. The standalone helper accepts --keeps containing [[start,end], ...] for raw cuts without Pillow.
  2. The manifest's remapped words are not a word map. They silently drop words that sit near a cut edge. Derive the cut-timeline word map from a fresh transcription of the RENDERED cut and anchor graphics on that.
  3. Manual-cut edges from the full-file transcript are wrong by 0.1-1.0 s. whisper pads sentence-final words and drifts on long files; cuts landed on "job", ate "them have not", and left "…chat and TikTok" hanging. Derive each edge from an isolated 10-16 s slice of the source around the cut (ffmpeg -ss A -t D then transcribe): those times were exact. Then re-transcribe the render and read every seam as prose; a residue that a fresh pass hears as a complete word ("test and another thing") is a clean join — accept it; a residue heard as a fragment is not. A censor bleep cannot be placed from ANY transcript. The full-file pass put the swear 350 ms early (the tone muted the word before it); isolated slices, large-v3, put it 100–150 ms early three times out of three and fused it with its neighbour ("fuck-ton"). Both rounds failed the reviewer. Place it from the waveform: a 5 ms band-energy map (total, <1 k, 1–3 k, 3–6 k, 6–8 k Hz) shows a vowel as loud low-band frames, a stop closure as a fall to the floor, and a /t/ or /k/ release as a high-band burst — a leading /f/ can be nearly silent. Mute from the end of the previous vowel to the next word's burst (8 ms edges, concat of sample-exact trims, not amix), then prove it on the render: only the tone inside the window, the next burst intact after it.

Stutters hide from every transcript (read workflow.md § 5c)

A take with ~60 ms false starts transcribes clean on every pass, and the seam QA passes it. The tell is a function word longer than 0.6 s in the cloud word list; the proof is a low-band vs high-band energy read (vowel vs fricative), never a second Whisper pass. Details in references/workflow.md § 5c.

Seams click: declick every join, and cut both streams from the same numbers

Hard butt-joins are audible. On a 180 s cut with 116 seams the sample-to-sample jump at the join measured 0.037 full-scale at the median, 0.27 at the worst, 47 of 116 above 0.05 — a pop roughly every 1.5 s that the reviewer described as "the entire video is super glitchy" and that a whisper pass (which only checks words) never sees. Measure it: dump the render to PCM and take max(|diff(samples)|) in ±10 ms around each seam.

The production repair that worked: build the AUDIO in one ffmpeg filter graph — one atrim + afade in + afade out (10 ms) per keep span, all into a single concat=v=0:a=1 — then mux onto the video. Result on the same 116 seams: median 0.002, 2 above 0.05. A graph of ~120 filter chains is fine; it is the select EXPRESSION parser that has the ~120-term limit, not the graph.

The bundled assembler now implements this principle with lossless PCM batches and 3 ms edge fades; inspect the joins and use a longer source-safe fade when the recording needs it. The batches bound decoder/memory usage without adding per-segment AAC padding.

Two ways this goes wrong:

  • Do not encode each segment to its own file and stream-copy-concat them. Every AAC segment carries encoder priming/padding, so the joined file gained ~50 ms per seam (+6.3 s over 117) — a stall at every cut, worse than the click it was meant to fix.
  • Do not cut video and audio with different rounding. The concat demuxer rounds each span to whole frames (and drops a frame at some boundaries); sample-accurate atrim does not. Built separately, the two streams drifted 367-412 ms apart over 180 s. Use the assembler's shared selected CFR grid for both streams. fps: "source" retains the nominal source rate; VFR input is normalized onto that selected grid. Its inward rounding can shorten a keep by up to one frame on each edge, so listen at speech boundaries. Verify the per-render receipt and measured joins instead of treating a successful encode as proof of pacing.

附带文件

技能加载后,模型会按需读取这些文件。它们仅作为可读文件提供,绝不会被执行。

常见问题

Reel Recut AI 技能有什么作用?

将未经剪辑的竖屏出镜口播视频重新剪辑成完整的短视频:添加常驻标题横幅、与口播逐词同步的卡拉 OK 字幕、用于补充说明和评论关键词 CTA 的提示框,并通过紧凑地剪掉静音,营造“自问自答”的节奏——所有设置都写在一份 JSON 规范中,并确定性地渲染。用户提供出镜口播视频,并希望剪辑、设计样式,或“做得像我其他视频/这个参考视频”时使用,包括“加上字幕”“加个横幅”“剪紧凑些/节奏更有劲”“剪掉空白”“我说到 X 时加个提示框”或“修一下我结巴的地方”等需求。也适用于修改已重新剪辑的视频(更改横幅文字、添加/移动提示框、删掉结巴片段、调整字幕时间),以及为品牌合作素材制作不含图形的原始剪辑(仅调整节奏),由客户的剪辑师完成后续工作。不适用于未处理素材上的普通字幕(embedded-captions)、保留原片不动但叠加图形卡片(talking-head-recut),或完整品牌化动态图形广告(branded-ad-edit)。

为什么在 TypingMind 中使用 Reel Recut?

因为您只需安装一次,就能搭配任何模型使用。Reel Recut 采用纯 Markdown 格式,而非特定提供商专用的代码,因此同一技能可用于 GPT-5、Claude、Gemini、Grok 或本地模型。您甚至可以在聊天中途切换模型,而不会影响技能的正常使用。TypingMind 使用您自己的 API 密钥,因此您直接向提供商付费,而不是按席位订阅;您的技能和聊天记录也都保留在您自己的存储空间中。

如何在 TypingMind 中安装 Reel Recut?

在 TypingMind 中打开“插件 → 技能 → 从 GitHub 安装”,然后粘贴 https://github.com/mrpaidsocial/mrpaidsocial-video-editor-agent/tree/main/.claude/skills/reel-recut。TypingMind 会读取其中的 SKILL.md,打包相关文件,并将其安装为技能,供您在各个聊天中按需启用。

哪些 AI 模型可以使用 Reel Recut?

您在 TypingMind 中连接的任何模型都可以。AI 技能采用纯 Markdown 指令,而非特定提供商专用的代码,因此 GPT、Claude、Gemini、Grok 和本地模型都能在请求匹配时加载此技能。

Reel Recut 可以搭配多少个 AI 模型使用?

数量不限。只要模型支持技能,您就可以将它与 Reel Recut 搭配使用。GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 等模型都可以通过您自己的 API 密钥接入 TypingMind。

Reel Recut AI 技能免费吗?

mrpaidsocial 已在 GitHub 上发布了该技能。请查看代码仓库了解许可条款。您只需向自己的 AI 提供商支付所用 Token 的费用。

什么是 AI 技能?

AI 技能是一组可复用的指令,用于教会 AI 模型完成某项特定任务。它遵循开放的 Agent Skills 格式:包含名称和描述的 SKILL.md 文件,以及模型可能需要的脚本、模板或参考文件。模型仅在您的请求与技能匹配时才会读取这些指令,因此已安装的技能在使用前不会产生任何费用。

AI 技能与插件或 MCP 服务器有何不同?

插件或 MCP 服务器为模型提供可调用的新工具,也就是在某处运行并返回结果的代码。AI 技能则为模型提供知识和流程:如何处理任务、遵循哪些步骤,以及怎样的输出才算优质。技能采用纯 Markdown 格式,因此不需要服务器、API 密钥或运行时环境,并且适用于任何模型。

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇