Communitygithub.com

jsath/claude-skills

生の一人語り動画を、完全な1080x1920縦型リールに仕上げるClaude Code用スキル。ffmpeg、whisper.cpp、ヘッドレスPlaywrightといった無料のローカルツールを使用。文字起こし、リテイク処理、無音カット、全単語キャプション、実際のスクリーンショットや公式ロゴの追加、測定基準に基づくQAチェックを実行します。

claude-skills とは?

このスキルは、スマートフォンなどで撮影した生の一人語り動画(縦型)を、Instagramリール、TikTok、YouTube Shorts向けの完成済み縦型動画(1080x1920)に自動編集するためのものです。Claude Code上で動作し、ffmpegによる映像処理、whisper.cppによる高精度な単語単位の文字起こし、ヘッドレスPlaywrightによる実際のWebサイトのスクリーンショット取得など、すべてローカル環境の無料ツールで完結します。 スキルは5つのエージェントで構成され、順次実行されます。エージェント1(映像前処理・文字起こし・リテイク検出)、エージェント2(不要テイクや無音のカット)、エージェント3(全単語キャプション)、エージェント4(ショット構成・スクリーンショット/ロゴ配置・レンダリング)、エージェント5(品質ゲートチェック・コンタクトシート・クレームリスト作成)です。各エージェントは単独で再実行可能で、処理の進捗は共有ファイルで管理されるため、中断からの再開も容易です。 対応プラットフォームはmacOSまたはLinux上でのClaude Code(フルパイプライン)と、Claude.ai(トランスクリプト貼り付けによるプラン生成モードのみ)。出力はH.264+AAC、BT.709のlimit範囲、フレームは12フレームのコンタクトシート、QAレポート、そしてSRT形式のキャプションファイルを含みます。

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

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

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

ドキュメント

Raw to Reel (生からリールへ)

5つのエージェントを順に実行し、raw/<take>.mov を out/<take>/final.mp4 に変換します。これは簡易版です。完全版(行ごとのレイアウト、合成SE、追加QAゲートなど)は ../edit-style を参照。whisper.cppの詳細なセットアップ手順は ../use-local-whisper を参照。

実行環境

  • macOSまたはLinux上のClaude Code: フルパイプラインが必要。ffmpeg、whisper.cpp(whisper-cli)とモデル、Python 3(Pillow、OpenCV)、Playwright(ヘッドレスChromium)が必要。
  • Claude.ai: 動画のオープンやエクスポートは不可。plan モードのみ。文字起こしを貼り付けると、引き締めたスクリプト、ショット計画、.srtファイルを出力。

コマンド

コマンド実行内容出力
setup下記のツールチェック不足ツール+インストールコマンド。ユーザーの許可後インストール
edit raw/<file>エージェント1, 2, 4, 3, 5out/<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: 以前のテイク、無音、間を削除。単語を途切れさせることはしない。
  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          完了した各ステップに1行。停止した実行を再開可能に
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 limited range
out/<name>/captions.srt
out/<name>/contact.png      12フレーム
out/<name>/QA.md

安全ルール(すべてのエージェント)

  • RAWファイルを変更または上書きしない。動画ごとに1つのworkフォルダ。
  • 投稿やアップロードは一切行わない。
  • 映像のタイミングを再調整するが、音声は決して速度変更しない。音声を合わせるために速度を変えてはならない。
  • 画面には実際のものだけを表示する:実際のWebサイト、実際のアプリ画面、公式ロゴ。生成されたUI、偽のダッシュボード、ピルバッジ、ステッカー、絵文字は禁止。
  • プライベートデータ(受信トレイ、銀行ページ、クライアント名、ログイン済みダッシュボード)を画面に表示しない。ユーザーが画像を提供し安全であると確認した場合を除く。
  • ユーザーからのソースがない限り、数字や主張を画面上のテキストとして表示しない。
  • ブラウザはヘッドレスのみで実行。レンダリングは 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 カットフラグ at 00:17.3
4 Visuals   11 ショット (4 フル, 3 GFX, 4 分割), 3 スクリーンショット, 2 公式ロゴ
3 Captions  96 キュー, 2 単語アライン不一致 (QA.md にリスト)
5 QA        READY (8/8 ゲート PASS)  -> out/take1/QA.md
決定:       "doubles your output" がカメラ上でソースなしに発言されている (クレームリスト)
何も投稿されていません。アップロード前に 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.

関連スキル