Communitygithub.com

jsath/claude-skills

將一個原始 talking-head 鏡頭,利用免費本地工具(ffmpeg、whisper.cpp、headless Playwright)在 Claude Code 中自動轉換為完成的 1080x1920 直式 Reel:轉錄、保留重複台詞的最後一次錄製、剪掉停頓、為每個單字加上字幕、加入真實螢幕截圖與官方標誌,並執行可量化的 QA 閘道。

claude-skills 是什麼?

這個技能 (Raw to Reel) 定義了一個由五個代理 (agents) 依序執行的完整影片編輯流程,專門用來將單一原始 talking-head 鏡頭剪輯成適合 Reel、TikTok 或 Shorts 的直式短影音。使用者只需提供原始影片檔 (raw/<take>.mov),技能會自動進行色調校正、逐字轉錄、保留重複台詞的最後一次錄製、剪除靜默與暫停、為每個單字加上動態字幕、根據視覺規劃(全螢幕、圖形、分割畫面)合成最終影片,並產出包含 8 個可量化閘道的 QA 報告。它依賴完全免費的本地工具:ffmpeg、whisper.cpp (whisper-cli) 以及 headless Playwright,因此僅在具備這些工具的 macOS 或 Linux 環境(特別是 Claude Code)中才能執行完整管線。在 Claude.ai 中,由於無法開啟或匯出影片,技能僅能產生剪輯清單、拍攝計畫與 .srt 字幕檔。每個步驟的詳細規則都寫在各自的 agents 資料夾檔案中,使用者可以將其放入 .claude/agents/ 作為實際的子代理執行。安全規則要求任何人都不能修改原始檔、不能上傳內容、不能改變音訊速度,並且螢幕上只能顯示真實的網站、應用程式畫面與官方標誌。

相容平台✓Claude Code~Codex CLI~Cursor
npx skills add https://github.com/jsath/claude-skills/tree/HEAD/skills/video/raw-to-reel

在你喜歡的 AI 中提問

開啟一個已預先載入此 Agent Skill 的新對話。

說明文件

Raw to Reel

五個代理依序執行,將 raw/<take>.mov 轉換為 out/<take>/final.mp4。這是簡化版本。如需完整引擎(逐行佈局、合成音效、更多 QA 閘道),請使用 ../edit-style。關於如何深入設定 whisper.cpp,請參考 ../use-local-whisper。

執行環境

  • macOS 或 Linux 上的 Claude Code: 完整管線。需要 ffmpeg、whisper.cpp (whisper-cli) 搭配模型、Python 3 與 Pillow 及 OpenCV,以及 Playwright 與 headless Chromium。
  • Claude.ai: 無法開啟或匯出影片。僅限 plan 模式:貼上逐字稿,獲得精簡腳本、拍攝計畫與 .srt 檔。

指令

指令執行內容輸出結果
setup下方工具檢查缺少的工具 + 安裝指令;僅在使用者同意後才安裝
edit raw/<file>代理 1, 2, 4, 3, 5下方 out/<name>/ 中的檔案
plan raw/<file> 或 plan + 貼上的逐字稿代理 1(逐字稿、重拍)、2(僅剪輯清單)、4(僅拍攝計畫)表格,無渲染
check <file>代理 5QA.md

字幕(代理 3)在視覺建置(代理 4)之後執行,因為佈局會改變字幕位置,且字幕永遠在最上層。

setup 檢查

ffmpeg -version | head -1; ffprobe -version | head -1
whisper-cli --help >/dev/null 2>&1 && echo WHISPER_OK || echo WHISPER_MISSING
ls ~/whisper-models/ggml-*.bin 2>/dev/null || echo NO_MODEL
python3 -c "import PIL, cv2; print('PY_OK')"
python3 -c "import playwright; print('PW_OK')"

可提供的安裝指令(以 macOS 為例;在 Linux 上請使用發行版套件安裝 ffmpeg 並從原始碼建置 whisper.cpp):

brew install ffmpeg whisper-cpp
mkdir -p ~/whisper-models && curl -L -o ~/whisper-models/ggml-small.en.bin \
  https://huggingface.co/ggerganov/whisper.cpp/resolve/main/ggml-small.en.bin
python3 -m pip install pillow opencv-python playwright && python3 -m playwright install chromium

預設使用 ggml-small.en(約 466 MB);如果機器效能較慢則使用 ggml-base.en;非英語錄製使用多語系 ggml-small。

代理

在執行該步驟前,請先閱讀代理檔案。每個檔案是其詳細規則的唯一存放位置。在 Claude Code 中,您可以將它們複製到 .claude/agents/ 作為真正的子代理執行。

  1. agents/01-footage-prep.md:探測、色彩修正、逐字轉錄、重拍表格。
  2. agents/02-cutter.md:移除較早的 take、靜默與暫停,但不剪掉單字。
  3. agents/03-captions.md:每個單字都加上字幕,時間來自裁剪後音頻的逐字稿。
  4. agents/04-visual-planner.md:臉部 / 圖形 / 分割畫面拍攝計畫、真實螢幕截圖與標誌、分層渲染。
  5. agents/05-qa-checker.md:可量化閘道、聯繫表、聲明列表、READY 或 NOT READY。

如果某個代理失敗,請修正並僅重新執行該代理,然後執行其後的所有代理。

共用檔案

raw/<name>.mov             從不修改
work/<name>/LOG.md         每個完成步驟一行,讓中斷的執行可從中斷處恢復
work/<name>/words.json     代理 1 逐字稿(單字、開始、結束時間)
work/<name>/cuts.csv       代理 2
work/<name>/shotplan.md    代理 4,包含 assets/SOURCES.md
out/<name>/final.mp4        1080x1920,H.264 + AAC,BT.709 有限範圍
out/<name>/captions.srt
out/<name>/contact.png      12 個影格
out/<name>/QA.md

安全規則(所有代理)

  • 絕不修改或覆寫原始檔。每個影片有專屬的工作資料夾。
  • 絕不發布或上傳任何內容。
  • 重新調整畫面時間,絕不調整聲音:不對音訊進行速度變更以符合某個時間點。
  • 螢幕上只顯示真實內容:真實網站、真實應用程式畫面、官方標誌。不得使用生成的 UI、假儀表板、藥丸徽章、貼紙或表情符號。
  • 螢幕上不得顯示私人資料(收件匣、銀行頁面、客戶名稱、已登入的儀表板),除非使用者提供了圖片並確認其安全。
  • 螢幕上的數字或聲明必須附帶使用者提供的來源。
  • 瀏覽器僅以 headless 模式執行。使用 nice -n 10 執行渲染。若使用者表示正在錄製,請停止渲染。

執行結束輸出

RAW TO REEL: take1
1 Prep      4K HDR -> SDR BT.709, 212 字, 發現 3 個重拍, 保留每個重拍的最後一次
2 Cutter    58.4 秒 -> 41.2 秒, 19 個暫停剪輯, 3 個重拍剪輯, 1 個標記於 00:17.3 的剪輯
4 Visuals   11 個鏡頭 (4 個全螢幕, 3 個圖形, 4 個分割畫面), 3 張螢幕截圖, 2 個官方標誌
3 Captions  96 個字幕提示, 2 個單字未對齊 (列於 QA.md 中)
5 QA        READY (8/8 閘道 PASS)  -> out/take1/QA.md
決定:      "doubles your output" 在鏡頭中說出但無來源 (CLAIMS 列表)
尚未發布任何內容。上傳前請先觀看一次 final.mp4。

Individual skills in this repo

This repo contains 11 individual skills — each has its own dedicated page.

jsath/claude-skills

Writes captions for a finished video from its transcript: pulls the line worth repeating, writes first-line options, writes per-platform versions (Instagram, TikTok, YouTube title and description, others on request), keeps the creator's voice using their best past captions, and checks the call to action matches what the video actually says. Use when a creator asks for captions, a caption hook, a YouTube title and description, or a CTA check. Drafts only; never posts or schedules.

jsath/claude-skills

Write CAPTIONS-PLATFORMS.md for one finished short video: a per-platform post caption for Instagram, TikTok, YouTube Shorts (title + description), Facebook, Threads, Bluesky and X, each within that platform's limits, with your comment-keyword CTA on the platforms where it belongs and never on X. Keyword, CTA, platforms, hashtags and limits come from a config file; a checker script fails the file on any miss. Use after an edit is finished, when asked to 'write the captions', 'caption this reel for every platform', or before scheduling.

jsath/claude-skills

Transcribe audio or video on your own machine with Whisper (mlx-whisper, faster-whisper or whisper.cpp) and get word-level timestamps as words.json, a plain .txt and an .srt. No API key, nothing uploaded. This is the transcription step the editing skills (edit-style, longform-edit, reel-captions) depend on. Use when asked to transcribe a take, get word timings, make an SRT, re-transcribe a final render for a caption sync check, or 'run whisper locally'.

jsath/claude-skills

Turns one published long-form video or podcast transcript into up to thirty pieces: 10 clips with new hooks and exact timestamps, 8 X posts, 4 LinkedIn posts, 3 carousels, 2 threads, a newsletter, a community post and a blog post, laid out on a two-week plan, all built only from what was said. In Claude Code it also cuts, reframes and captions the clips with ffmpeg. Use when someone wants to repurpose a long video, find clips, or write social posts from a transcript. Never posts or schedules.

jsath/claude-skills

Turn a raw talking-head take into a dynamically edited 1080x1920 reel: full-face, full-graphic and split layouts that switch every 2 to 5 seconds, real UI and official-logo panels, captions on every word timed by Whisper, voice plus synthesised SFX (no music bed) mastered to -14 LUFS, and hard QA gates (caption sync on the final render, A/V length, loudness, colour, framing, contact sheet, claims). Also covers writing the script so it does not read as AI. Use when asked to 'edit this reel', 'make it look edited', 'add captions / dynamic layout / graphics', or 'write a reel script'.

jsath/claude-skills

Edits a raw long-form YouTube recording (screen recording export, camera file, or either plus a separate mic) into a publish-ready video automatically, like Descript on autopilot: transcribes with word timestamps, removes retakes and keeps the last take, tightens dead space while keeping silent on-screen action (speeding up long waits), masters the voice to -14 LUFS / -1.5 dBTP with no music bed, re-transcribes the FINAL render for an every-word SRT (optional burned-in captions), drafts chapters, titles and a description, and fails loudly on QA gates (words, A/V sync, caption sync per chapter, caption coverage, loudness) plus contact sheets you look at. Use when someone says edit this long-form, clean up my recording, cut the retakes and dead space, process the long-form inbox, or descript this. Needs Claude Code with ffmpeg, whisper.cpp and Python 3.

jsath/claude-skills

Turns one podcast episode transcript into a week of written content: an Episode Prep agent that checks the transcript and speaker names, a Clip Spotter that picks the best short-clip moments with exact timestamps and hooks for an editor to cut, a Show Notes Writer that writes show notes and chapter markers, a Repurpose Writer that turns the big ideas into a newsletter, a LinkedIn post and Instagram captions, and an Episode Planner that spreads it all over the week. Works from a transcript the user supplies or exports from their transcription tool. It does not edit audio or video and does not cut clips. Use when a podcaster asks for show notes, chapters, clip timestamps, or posts from an episode, or says \"repurpose this episode\". Drafts only; never posts.

jsath/claude-skills

Turns notes, voice-note transcripts and half ideas into Reel, TikTok and YouTube scripts in the creator's own voice: ranks an idea bank, writes ten hooks per idea, writes the script at the right length, rewrites anything that sounds like AI using transcripts of the creator's past videos, and fact-checks every claim with a source and date. Use when someone wants a video script, hooks, a ranked list of what to film, a voice pass, a claims check, or a record sheet to read from while filming.

jsath/claude-skills

Reviews and rewrites a video script (YouTube long-form, a short, or a talking-head reel) so it sounds like one person talking to one friend and holds attention: kills forced analogies and presenter phrases, fixes framing, checks hooks, open loops and re-engagement beats, and suggests titles. Use when someone says fix this script, polish my script, make it sound like me, tighten this before I film, or asks for a hook or title for a video. Returns the rewritten script plus a short change log.

jsath/claude-skills

Make a 1280x720 YouTube thumbnail (or a banner/cover) that reads at phone size: a text-free background plate (generated or from a real frame), a real cutout of the person, 1 to 3 words in tight colour blocks, an official logo, composed by a script that checks overlaps and frame edges and renders the 320px and 168px views you must look at. Use when asked for a thumbnail, cover, banner, 'make this clickable', or to fix a thumbnail that looks cluttered or small.

jsath/claude-skills

Runs five agents that keep a YouTube channel's titles and descriptions matched to what people search for now: a Channel Reader that pulls the user's own video list and stats with their YouTube Data API key, YouTube Analytics OAuth or a pasted YouTube Studio export, a Niche Watcher that finds what is working right now for similar-size channels from public search results the API returns or the user provides, a Title Writer that drafts titles, descriptions and chapters for new videos, a Back Catalogue agent that picks old videos worth a refresh and drafts new versions, and a Change Tracker that records every change the user makes and compares before and after on matched windows. Use when a creator asks for YouTube SEO, better titles or descriptions, what is working in their niche, a back catalogue refresh, or says \"seo run\". Never invents search volumes or stats and never changes a video; drafts only.

相關技能