Logo Reel Recut

Reel Recut

Cộng đồng
mrpaidsocial
reel-recut

Dựng lại reel dọc quay nhân vật nói trước máy quay thành video ngắn hoàn chỉnh: có banner tiêu đề cố định, phụ đề karaoke khớp từng từ, hộp chú thích cho phần nói thêm và CTA gợi ý từ khóa bình luận, cùng nhịp dựng gọn bằng cách cắt khoảng lặng kiểu "vừa nói vừa tự ngắt lời" — tất cả được mô tả trong MỘT đặc tả JSON và kết xuất theo cách xác định. Dùng khi người dùng cung cấp video nhân vật nói trước máy quay và muốn chỉnh sửa, tạo phong cách hoặc "làm giống các video khác của tôi / reel tham chiếu này" — bao gồm "thêm phụ đề", "thêm banner", "cắt gọn hơn / làm nhịp nhanh hơn", "cắt khoảng chết", "thêm chú thích khi tôi nói X" hoặc "sửa đoạn tôi nói vấp". Cũng dùng để chỉnh sửa bản dựng lại reel (đổi nội dung banner, thêm/di chuyển chú thích, bỏ đoạn nói vấp, căn lại thời gian phụ đề), và tạo bản cắt thô không đồ họa (chỉ chỉnh nhịp) cho cảnh quay quảng cáo thương hiệu mà biên tập viên của khách hàng sẽ hoàn thiện. Không dùng cho phụ đề đơn thuần trên video chưa chỉnh sửa (embedded-captions), thẻ đồ họa phủ lên video không chỉnh sửa (talking-head-recut) hoặc quảng cáo đồ họa chuyển động có nhận diện thương hiệu đầy đủ (branded-ad-edit).

Add to TypingMind

Tổng quan

Nhà phát hànhmrpaidsocial
Kho mãmrpaidsocial-video-editor-agent
Tên kỹ năngreel-recut
Sao
114
Bản fork
34
Tệp đi kèm
9
Liên kết
  • Hướng dẫn bằng Markdown

    Tệp SKILL.md được mô hình tải khi cần, nên chỉ tốn token khi có yêu cầu thực sự phù hợp.

  • Dùng được với mọi LLM

    Kỹ năng AI dùng hướng dẫn viết bằng Markdown thay vì mã dành riêng cho một nhà cung cấp, nên dùng được với GPT, Claude, Gemini, Grok hoặc mô hình cục bộ.

  • 9 tệp đi kèm

    Các tập lệnh, mẫu và tài liệu tham khảo mà mô hình có thể đọc khi làm việc. Các tệp chỉ cho phép đọc và không bao giờ được thực thi.

  • Mã nguồn mở

    Được mrpaidsocial công bố trên GitHub. Hãy đọc các tệp nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Reel Recut trong TypingMind để dùng với bất kỳ LLM nào, hoặc thêm vào một tác nhân AI khác có thể đọc SKILL.md.

1

Cài đặt trong TypingMind

TypingMind cài đặt kỹ năng trực tiếp từ thư mục GitHub — đọc SKILL.md, đóng gói các tệp tài nguyên và lưu kết quả trên máy.

  1. Mở ứng dụng và vào Plugin → Kỹ năng.
  2. Chọn "Cài đặt từ GitHub".
  3. Dán URL của thư mục kỹ năng được hiển thị bên dưới rồi xác nhận.
    https://github.com/mrpaidsocial/mrpaidsocial-video-editor-agent/tree/main/.claude/skills/reel-recut
  4. Bật kỹ năng trong từng cuộc trò chuyện mà bạn muốn sử dụng kỹ năng đó.
Plugin → Kỹ năng → Thêm kỹ năng → Từ URL GitHub, sau đó dán URL thư mục và nhấn Tiếp tục.
2

Cài đặt trong tác nhân AI khác

Bất kỳ tác nhân AI nào đọc được định dạng Agent Skills đều có thể dùng kỹ năng này — hãy sao chép thư mục vào thư mục kỹ năng của tác nhân AI đó.

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
Khởi động lại Claude Code sau khi sao chép để ứng dụng nhận kỹ năng mới.

Sử dụng trong TypingMind

Bật Reel Recut trong bất kỳ cuộc trò chuyện nào trên TypingMind, mô hình sẽ tự xử lý phần còn lại. Tên và mô tả của kỹ năng nằm trong prompt hệ thống. Ngay khi có yêu cầu phù hợp, mô hình tự tải toàn bộ hướng dẫn — bạn không cần gọi thủ công và kỹ năng không tốn token cho đến khi thực sự được dùng.

Mô hình tự nạp Reel Recut ngay khi có yêu cầu phù hợp.

Dùng được với mọi mô hình AI

Kỹ năng AI là các hướng dẫn Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên bạn có thể dùng Reel Recut với cả những mô hình khác ngoài mô hình ban đầu. Chỉ cần cài đặt một lần trong TypingMind rồi dùng với GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama hoặc mô hình cục bộ do bạn tự chạy — tất cả đều dùng khóa API của riêng bạn.

  • Chỉ tải khi cần

    Prompt hệ thống chỉ chứa tên và mô tả. Hướng dẫn được tải khi có yêu cầu phù hợp đầu tiên, nên khi kỹ năng chưa được dùng, bạn không tốn token cho phần hướng dẫn.

  • Đổi mô hình ngay trong cuộc trò chuyện

    Vì kỹ năng là hướng dẫn chứ không phải mã, việc đổi mô hình không làm kỹ năng ngừng hoạt động — mô hình tiếp theo vẫn đọc cùng tệp SKILL.md.

Hướng dẫn của kỹ năng

Đây là nội dung SKILL.md mà mô hình tải. Hãy đọc trước khi cài đặt — kỹ năng là những hướng dẫn mà mô hình của bạn sẽ làm theo.

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.

Tệp đi kèm

Khi kỹ năng đã được tải, mô hình có thể đọc các tệp này nếu cần. Các tệp này chỉ dùng để đọc và không bao giờ được thực thi.

Câu hỏi thường gặp

Kỹ năng AI Reel Recut làm được gì?

Dựng lại reel dọc quay nhân vật nói trước máy quay thành video ngắn hoàn chỉnh: có banner tiêu đề cố định, phụ đề karaoke khớp từng từ, hộp chú thích cho phần nói thêm và CTA gợi ý từ khóa bình luận, cùng nhịp dựng gọn bằng cách cắt khoảng lặng kiểu "vừa nói vừa tự ngắt lời" — tất cả được mô tả trong MỘT đặc tả JSON và kết xuất theo cách xác định. Dùng khi người dùng cung cấp video nhân vật nói trước máy quay và muốn chỉnh sửa, tạo phong cách hoặc "làm giống các video khác của tôi / reel tham chiếu này" — bao gồm "thêm phụ đề", "thêm banner", "cắt gọn hơn / làm nhịp nhanh hơn", "cắt khoảng...

Vì sao nên dùng Reel Recut trên TypingMind?

Vì bạn chỉ cần cài một lần rồi dùng với bất kỳ mô hình nào. Reel Recut là nội dung Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên cùng một kỹ năng có thể chạy trên GPT-5, Claude, Gemini, Grok hoặc mô hình trên thiết bị — và bạn có thể đổi mô hình ngay trong cuộc trò chuyện mà kỹ năng vẫn hoạt động. TypingMind dùng khóa API riêng của bạn, nên bạn thanh toán trực tiếp cho nhà cung cấp thay vì trả phí thuê bao theo suất người dùng, đồng thời kỹ năng và các cuộc trò chuyện vẫn nằm trong bộ lưu trữ của bạn.

Làm thế nào để cài Reel Recut trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/mrpaidsocial/mrpaidsocial-video-editor-agent/tree/main/.claude/skills/reel-recut. TypingMind đọc tệp SKILL.md, đóng gói các tệp đi kèm rồi cài đặt cả gói dưới dạng một kỹ năng mà bạn có thể bật cho từng cuộc trò chuyện.

Những mô hình AI nào có thể dùng Reel Recut?

Bất kỳ mô hình nào bạn kết nối trong TypingMind. Kỹ năng AI là các hướng dẫn bằng Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên GPT, Claude, Gemini, Grok và các mô hình chạy trên thiết bị đều có thể tải kỹ năng này khi có yêu cầu phù hợp.

Có thể dùng Reel Recut với bao nhiêu mô hình AI?

Bao nhiêu cũng được. Miễn là mô hình hỗ trợ kỹ năng, bạn có thể dùng Reel Recut với mô hình đó — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama và nhiều mô hình khác — tất cả đều trên TypingMind với khóa API riêng của bạn.

Kỹ năng AI Reel Recut có miễn phí không?

Kỹ năng này được mrpaidsocial phát hành trên GitHub. Hãy xem điều khoản giấy phép trong kho mã. Bạn chỉ trả tiền cho nhà cung cấp AI của mình theo số token đã dùng.

Kỹ năng AI là gì?

Kỹ năng AI là một gói hướng dẫn có thể tái sử dụng, chỉ cho mô hình AI cách thực hiện một tác vụ cụ thể. Kỹ năng tuân theo định dạng mở Agent Skills: một tệp SKILL.md chứa tên và mô tả, cùng các tập lệnh, mẫu hoặc tệp tham khảo mà mô hình có thể cần. Mô hình chỉ đọc hướng dẫn khi yêu cầu của bạn phù hợp với kỹ năng, nên kỹ năng đã cài đặt không phát sinh chi phí cho đến khi được sử dụng.

Kỹ năng AI khác gì với plugin hoặc máy chủ MCP?

Plugin hoặc máy chủ MCP cung cấp các công cụ mới mà mô hình có thể gọi. Khi mô hình gọi một công cụ, mã của công cụ đó chạy ở đâu đó và trả về kết quả. Còn kỹ năng AI cung cấp kiến thức và quy trình: cách tiếp cận tác vụ, các bước cần thực hiện và những tiêu chí mà kết quả cần đáp ứng. Kỹ năng chỉ là nội dung Markdown, nên không cần máy chủ, khóa API hay môi trường thực thi và hoạt động với mọi mô hình.

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇