Communitygithub.com

jsath/claude-skills:動態直式短片剪輯風格

將一段原始的 talking-head 素材,製作成 1080x1920 解析度、具備動態編輯效果的直式短片:包含全臉、全圖像及分割畫面佈局(每 2 至 5 秒切換一次)、真實 UI 與官方標誌面板、由 Whisper 定時逐字字幕、人聲加合成音效(無背景音樂)、最終輸出符合 -14 LUFS 標準,並通過嚴格的 QA 關卡(最終渲染的字幕同步、影音長度、音量、色彩、構圖、聯絡表及聲明驗證)。也涵蓋撰寫不帶 AI 氣息的腳本。當使用者要求「編輯這支短片」、「讓它看起來像經過編輯」、「加上字幕/動態佈局/圖像」或「撰寫短片腳本」時使用。

claude-skills:動態直式短片剪輯風格 是什麼?

此技能旨在將單一 raw talking-head 素材自動轉換為一條經過精細編輯的 1080x1920 直式短片,讓畫面看起來完全像手工剪輯:框架絕不靜止,圖形元素必須是真實 UI 或官方標誌(絕不使用素材庫或虛構圖案),並且字幕必須對準節奏。整個過程不依賴手動拖曳時間軸,而是透過撰寫 shot plan,由程式自動渲染,最後再通過對最終檔案進行量化檢測的 QA 關卡。 此技能支援 Claude Code 環境(需具備 shell 與 ffmpeg),並與其他技能串聯形成完整 pipeline:`use-local-whisper`(語音轉文字)→ `edit-style`(短片編輯)或 `longform-edit`(長片編輯)→ `reel-captions`(後製字幕)→ `thumbnail-generator`(縮圖)。它涵蓋從素材檢查、剪輯重拍與靜音段、Whisper 轉錄、撰寫 shot plan、擷取素材資產、人臉構圖框選、面板合成、混音 mastering、最終字幕燒錄,到十道嚴格的 QA 關卡。 失敗處理機制完善:若缺乏 Whisper 則停止並要求安裝;若缺乏 OpenCV 則跳過特定構圖檢測但改以人工檢查;若無 Remotion 則改用 Pillow 或 Playwright 產生靜態 PNG 再模擬推鏡效果。所有影片必須符合專業廣播品質:-14 LUFS 音量標準、BT.709 色彩空間、無浮動貼紙或 AI 產生的動態特效,確保成品看起來專業且不帶 AI 生成痕跡。

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

在你喜歡的 AI 中提問

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

說明文件

編輯風格:從原始素材動態製作直式短片

您將一段原始的 talking-head 素材,製作成一條完成的 1080x1920 解析度直式短片,讓它看起來像手工編輯過:畫面絕不靜止,圖形元素必須是真實 UI 或官方標誌(絕不使用素材庫或虛構圖案),並且字幕要對準節奏。不需要手動拖曳時間軸。每一個決定都是透過書面的 shot plan,由程式渲染,然後再通過對最終檔案進行量化測量的 QA 關卡。

屬於 pipeline 的一部分:use-local-whisper(語音轉文字)-> edit-style(短片編輯)或 longform-edit(YouTube 長片)-> reel-captions(後製字幕)-> thumbnail-generator(縮圖)。

需求

需要在電腦上使用 Claude Code(不能在 Claude.ai 上:它需要 shell 和 ffmpeg)。

需求用途安裝方式
ffmpeg + ffprobe(含 ebur128)每個剪輯、合成、QA 檢測brew install ffmpeg / apt install ffmpeg
Python 3.9+ 和 Pillow字幕、提示對齊pip install pillow
本機 Whisper單字時間戳請參閱 use-local-whisper 技能
OpenCV(選用)構圖檢測、裁切計算pip install opencv-python-headless + YuNet 模型(請參閱 tools/face_box.py)
Node + Playwright(選用)無頭螢幕截取npm i playwright && npx playwright install chromium
Remotion(選用)動畫圖形面板npx create-video@latest;完整的面板工作室位於 github.com/johannships/reels-engine
swiftc,僅限 macOS(選用)iPhone HDR 轉 SDRxcode-select --install

安裝檢查:sh tools/check_setup.sh(exit 0 = 就緒)。

輸入

  • raw.mov(或 mp4):一次拍攝,手機或相機,任何方向。
  • script.txt:說話的內容,拼寫方式必須與螢幕上顯示的一致。如果還沒有腳本,請先使用 references/script-writing.md 撰寫一個。
  • 可選:一個主題網址(儲存庫、產品頁面)以進行截取,以及每個數字的來源。

Pipeline(一個短片一個資料夾:該短片的每個檔案都放在裡面)

下方的 transcribe.py 實際上是 use-local-whisper/scripts/transcribe.py。平行處理的編輯工作絕不共用一個工作資料夾:一個短片,一個資料夾。

  1. 檢查來源。 ffprobe -v error -select_streams v:0 -show_entries stream=color_range,color_transfer,r_frame_rate -of csv=p=0 raw.mov arib-std-b67 = iPhone HDR,需先進行色調對應;pc,bt709 = 全範圍攝影機檔案。確切處理方式:references/source-footage.md。
  2. 修剪重拍片段,然後修剪靜音段。 先將原始素材轉錄(transcribe.py raw.mov),保留任何重複對白的最後一次拍攝,絕不能在單字中途剪輯。然後執行 python3 tools/tighten.py cut.mp4 tight.mp4(-50 dB,絕不能是 -38 dB)。
  3. 轉錄修剪後的素材:transcribe.py tight.mp4 會產生 tight.words.json。
  4. 撰寫 shot plan(shots.json):每個 shot 一行, {layout, anchor_phrase, content}。anchor_phrase 是腳本中的文字,會與 words.json 比對,以便在該對話出現時開始該 shot。絕不能手動輸入時間戳。佈局規則:references/edit-craft.md。
  5. 擷取和取得素材。 螢幕截圖:node tools/capture_clock.js <url> shots/s3 6(無頭模式,影格精確)。標誌:僅限品牌的官方新聞頁面或網站 SVG。在使用前,請打開每個素材並仔細檢視。
  6. 為每次拍攝框選臉部:python3 tools/face_box.py tight.mp4 --model yunet.onnx --solve full(和 --solve pip)。絕不能重複使用其他拍攝的裁切。
  7. 渲染面板(Remotion 或靜態圖片)到每個 shot 的準確時長, 每個 shot 使用 ffmpeg 合成,然後串接,並將連續的人聲疊加在上面。使用 nice -n 15 執行渲染。先在靜止圖片上進行調色,然後進行一次完整渲染。
  8. 混音和 mastering(references/edit-craft.md 第 9 節):高通濾波 75 Hz, 輕度降噪,合成音效比人聲低 12 到 20 dB,-14 LUFS,真實峰值在或低於 -1.5 dBTP。
  9. 字幕,根據最終音訊進行定時:transcribe.py final_nocaps.mp4,然後 python3 tools/make_cues.py script.txt final_nocaps.words.json --fix fix.json,然後 python3 tools/burn_captions.py final_nocaps.mp4 cues.json final.mp4 --caps。 文字來自腳本,時間來自 Whisper。在 PIP 畫面上使用 --y 0.38。
  10. QA 關卡(下方)。修正並重新執行,直到全部通過。

佈局

佈局內容使用時機
FULL臉部填滿畫面(頭頂 13%,下巴 85%)鉤子、個人時刻、結尾
GFX全螢幕真實 UI、統計或聲明卡片,不顯示臉部每個關鍵時刻、CTA
PIP圖形在上方,臉部在底部的圓角卡片中(y 1086, 1080x834, 圓角半徑 48)在說話時提及某個工具

每 2 到 5 秒切換一次。以 FULL 或 PIP 開場,在每個關鍵時刻切換到 GFX,以 GFX 呈現 CTA,並以 FULL 結尾。如果主題是知名品牌,請在前 2 秒內顯示其官方標誌。

QA 關卡(所有關卡都必須通過;將結果寫入 QA.md)

#關卡工具通過標準
1構圖face_box.py final.mp4每個取樣中,頭頂 > 3%,下巴 < 94%
2根據最終渲染版本檢查各章節的字幕同步重新轉錄 final,caption_sync_gate.py captions.json final.words.json chapters.json中位數 <= 0.12 秒,p95 <= 0.25 秒
3影音長度final_gates.sh final.mp4相差不超過一個影格
4音量final_gates.sh-14 +/- 1 LUFS,真實峰值 <= -1.5 dBTP
5色彩/編碼final_gates.shyuv420p, tv range, BT.709 標籤, >= 8 Mbps
6膚色亮度 vs 來源skin_luma_check.sh差異在 2 個色階內
7第一個單字保留下來重新轉錄前 2 秒腳本第一個單字存在
8聯絡表final_gates.sh 會寫入 contact.png您 已打開 它:沒有藥丸貼紙或貼紙,字幕沒有蓋到嘴巴,標誌正確,沒有私人資訊,每個標籤都在 4:5 裁切範圍內(y 285 到 1635)
9聲明手動檢查每個畫面上的數字都有當天即時驗證的命名來源;虛假的對話已被剪掉並列出

如果字幕同步失敗:則重新調整該章節的提示對應最終文字的時序,重新燒錄字幕,重新轉錄,重新檢測。重複直到每個章節都通過。

輸出

reel-folder/
  final.mp4        1080x1920, H.264 BT.709, AAC 48 kHz, -14 LUFS
  captions.srt     基於 final.mp4 重新轉錄的結果,名稱拼寫正確
  contact.png      您已檢視過的 12 個影格聯絡表
  QA.md            每個關卡一行,包含 CLAIMS 以及任何被剪掉的私人細節
  LOG.md           在過程中撰寫

QA.md 範例:

framing      12/12 PASS (head-top min 6.1%, chin max 88.4%)
caption sync hook median 0.04 p95 0.11 PASS | body 0.05/0.14 PASS | cta 0.03/0.09 PASS
A/V          diff 0.012s PASS     loudness -14.1 LUFS, -1.8 dBTP PASS
colour       yuv420p tv bt709 13.9 Mbps PASS   skin luma diff 1.2 PASS
contact      looked: no pills, captions clear of mouth, logos official, 4:5 safe
CLAIMS       "40,000 stars": GitHub API 14:05 today = 41,212 (shown as 41K)

失敗處理

  • 沒有 Whisper:停止並安裝一個(use-local-whisper)。絕不能猜測時間。
  • 沒有 OpenCV:跳過關卡 1 的工具,但用肉眼檢查聯絡表中的每個影格是否有下巴/額頭被切掉的情況,並在 QA.md 中說明。
  • 沒有 Remotion:將 GFX 畫面建構為靜態 PNG(使用 Pillow 或無頭 Playwright 截取 HTML 卡片的螢幕截圖),並使用緩慢的推鏡效果(zoompan)。
  • make_cues.py 以 exit 2 結束(腳本和音訊不一致):修正腳本使其與說話內容一致。絕不能燒錄與人聲不一致的字幕。
  • 某個 QA 關卡連續失敗三次:停止,報告數值,並提問。

避免看起來像 AI 的規則

  • 絕對不能使用浮動藥丸貼紙、徽章、角落標籤、貼紙或 REC 晶片。
  • 不能使用程式生成的動態特效。必須是真實的素材和真實的產品螢幕截圖。
  • 一種強調色。每種畫面類型一種字幕樣式。
  • 展示,而非敘述:當人聲提到一個事物時,該事物必須出現在畫面上。
  • 畫面上不能出現私人資訊:財務資訊、客戶名稱、帳號、內部檔案。
  • 腳本或字幕中不能使用長破折號或短破折號。

深入參考:references/script-writing.md(鉤子、語氣、數字)、 references/source-footage.md(HDR、全範圍攝影機、複製拍攝、靜音)、 references/edit-craft.md(字幕、螢幕、構圖、手勢、音訊、常見陷阱)。

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

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 one raw talking-head take into a finished 1080x1920 vertical reel in Claude Code with free local tools (ffmpeg, whisper.cpp, headless Playwright): transcribes, keeps the last take of repeated lines, cuts pauses, captions every word, adds real screenshots and official logos, and runs measured QA gates. Use when someone wants a raw phone take edited into a Reel, TikTok or Short, retakes and silences cut, word-by-word captions, or a finished video checked. In Claude.ai it only produces a cut list, shot plan and .srt from a pasted transcript.

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.

相關技能