Communitygithub.com

jsath/claude-skills

生のトーキングヘッド動画を、動的なレイアウト切り替え、リアルなUI/ロゴ、Whisperタイミングのキャプション、-14 LUFSマスタリングを備えた1080x1920の完成済みリールに変換します。

claude-skills とは?

このスキルは、1テイクのトーキングヘッド動画から、プロが手編集したような1080x1920の縦型リールを生成します。フルフェイス、フルグラフィック、PIP(ピクチャー・イン・ピクチャー)の3つのレイアウトを2~5秒ごとに切り替え、実際のUIや公式ロゴを使用。Whisperによる単語レベルのタイムスタンプで全セリフにキャプションを付け、音声は合成SFXとともに-14 LUFSでマスタリング。最終出力は複数のQAゲート(フレーミング、キャプション同期、ラウドネス、カラー、クレーム検証など)で厳密にチェックされます。スクリプト作成も含み、AIらしくない自然な仕上がりを実現します。Claude Code(シェル環境)で動作し、ffmpeg、Whisper、Pythonなどが必要です。

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

お気に入りのAIに質問する

このエージェントスキルを事前に読み込んだ状態で新しいチャットを開きます。

ドキュメント

編集スタイル:生テイクから動的な縦型リール

1本の生のトーキングヘッドクリップを、手作業で編集したように見える完成済みの1080x1920リールに変換します。フレームがじっとしていることはなく、グラフィックは実際のUIまたは公式ロゴのみを使用(ストック素材や捏造は禁止)。キャプションはビートに合わせて表示されます。タイムライン上で何かをドラッグすることはありません。すべての決定はコードによってレンダリングされる書面のショット計画に基づき、最終ファイルを測定するゲートによってチェックされます。

パイプラインの一部:use-local-whisper(文字起こし)→ edit-style(短尺編集)または longform-edit(YouTube長尺)→ reel-captions(テキスト後処理)→ thumbnail-generator(サムネイル)。

必要条件

シェルとffmpegを利用できるコンピューター上のClaude Code(Claude.aiでは不可)。

必要なもの用途インストール方法
ffmpeg + ffprobe(ebur128対応)カット、合成、ゲート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からSDRへの変換xcode-select --install

インストール確認:sh tools/check_setup.sh(終了コード0 = 準備完了)。

入力

  • raw.mov(またはmp4):1テイク、スマホまたはカメラ、任意の向き。
  • script.txt:発言内容。画面に表示される通りにスペルすること。スクリプトがまだない場合は、最初に references/script-writing.md を参照して作成する。
  • オプション:キャプチャするトピックのURL(リポジトリ、商品ページ)、およびすべての数値の出典。

パイプライン(リールごとに1フォルダ:このリールのすべてのファイルはその中に配置)

以下の transcribe.py は use-local-whisper/scripts/transcribe.py です。並行編集でワークフォルダを共有しないこと:1リール、1フォルダ。

  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. リテイクとポーズをカットする。 rawを文字起こし(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. ショット計画を書く(shots.json):1行1ショット、{layout, anchor_phrase, content}。anchor_phrase はスクリプトテキストで、words.json と照合して、その単語が発話された時点でショットが開始されるようにする。タイムスタンプは手入力禁止。レイアウトルール: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または静止画):各ショットの正確な長さに合わせ、ffmpegでショットごとに合成、連結、その上に連続した音声を重ねる。レンダリングは nice -n 15 で実行。静止画でルックデブを行い、その後フルレンダリング。
  8. ミックスとマスタリング(references/edit-craft.md セクション9):ハイパス75 Hz、軽度のノイズ除去、合成SFXは音声より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. ゲート(下記参照)。すべてパスするまで修正と再実行を繰り返す。

レイアウト

レイアウト内容使用タイミング
FULL顔がフレームを埋める(頭頂13%、あご85%)フック、パーソナルビート、クローズ
GFXフルスクリーンの実UI、統計または主張カード、顔なし各キービート、CTA
PIP上部にグラフィック、下部に角丸カード内の顔(y 1086、1080x834、半径48)話しながらツール名を挙げるとき

2~5秒ごとに切り替え。FULLまたはPIPで開始、各キービートでGFXに切り替え、CTAはGFXで着地、FULLでクローズ。トピックが特定のブランド名の場合は、最初の2秒以内にその公式ロゴを表示する。

QAゲート(すべてパス必須;結果はQA.mdに書き込む)

#ゲートツールパス条件
1フレーミングface_box.py final.mp4すべてのサンプルで頭頂 > 3%、あご < 94%
2チャプターごとのキャプション同期、最終レンダリングで最終ファイルを再文字起こし、caption_sync_gate.py captions.json final.words.json chapters.json中央値 <= 0.12秒、p95 <= 0.25秒
3音声・動画の長さfinal_gates.sh final.mp41フレーム以内
4ラウドネスfinal_gates.sh-14 +/- 1 LUFS、トゥルーピーク <= -1.5 dBTP
5カラー/エンコードfinal_gates.shyuv420p、tvレンジ、BT.709タグ、8 Mbps以上
6肌の輝度 vs ソースskin_luma_check.sh2レベル以内
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     最終mp4の再文字起こしから生成、名前のスペルは正確に
  contact.png      確認した12フレームシート
  QA.md            ゲートごとに1行、さらに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 が終了コード2を返した場合(スクリプトと音声が一致しない):発言内容に合わせてスクリプトを修正する。音声と矛盾するキャプションを書き込んではならない。
  • ゲートが3回連続で失敗した場合:停止し、数値を報告して指示を仰ぐ。

AIらしく見せないためのルール

  • 浮遊するピル、バッジ、コーナータグ、ステッカー、REC表示は一切禁止。
  • コード生成によるモーショングラフィックスの煌びやかな演出は禁止。実際の映像と実際のプロダクト画面を使用すること。
  • アクセントカラーは1色。ショットタイプごとに1つのキャプションスタイル。
  • 説明ではなく見せる:ナレーションが物の名前を挙げたら、その物が画面に表示される。
  • 画面にプライベートな情報を表示しない:財務情報、クライアント名、アカウントID、内部ファイル。
  • スクリプトやキャプションにemダッシュやenダッシュを使用しない。

詳細: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.

関連スキル