Communitygithub.com

Raw to Reel (原始素材到短视频)

将一段原始的自拍录像,通过本地免费工具(ffmpeg、whisper.cpp、headless Playwright)自动变成一条 1080×1920 的竖版短视频:转录、保留重录行的最后一条、剪掉停顿、逐字加字幕、添加真实截图和官方 Logo,并通过量化质检关卡。

Raw to Reel (原始素材到短视频) 是什么?

该技能将一段单纯的“面对面说话”原始视频,自动转化为一条完成度极高的 1080×1920 竖版短视频(适合 Reel、TikTok、Short)。它由五个按序执行的 Agent 组成:第一步进行音视频探测、色彩校正、词级转录并识别重录行;第二步剪掉前次重录、死寂和过长的停顿但不会截断单词;第三步根据剪辑后的音频为每个单词生成时间轴精确的字幕;第四步规划画面布局(人脸/分屏/图文叠加),截取真实网页和应用截图,并叠加官方 Logo;第五步执行量化质检:检查音画同步、字幕准确率、画面安全区域等,生成联系表和质量报告。该技能在 macOS/Linux 上的 Claude Code 中可完整运行(需提前安装 ffmpeg、whisper.cpp、Python 3 及 Pillow/OpenCV、Playwright 等依赖)。在 Claude.ai 中只能以纯文本模式工作:粘贴视频转录后输出精简脚本、分镜计划和一版 .srt 字幕文件。

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

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

原始到短视频

五个 Agent 按顺序执行,将 raw/<take>.mov 转换为 out/<take>/final.mp4。这是简化版。如需完整引擎(逐行布局、合成音效、更多质检关卡),请使用 ../edit-style。有关深入配置 whisper.cpp,请参见 ../use-local-whisper。

运行环境

  • macOS 或 Linux 上的 Claude Code: 完整流水线。需要 ffmpeg、whisper.cpp(whisper-cli)及模型、Python 3(含 Pillow 和 OpenCV)、支持 headless Chromium 的 Playwright。
  • Claude.ai: 无法打开或导出视频。仅限 plan(方案)模式:粘贴转录文本,获得精简脚本、拍摄方案和 .srt 字幕文件。

命令

命令执行内容输出
setup下文的工具检查缺失的工具及安装命令;仅当用户确认后才安装
edit raw/<file>Agent 1、2、4、3、5out/<name>/ 下的文件
plan raw/<file> 或 plan + 粘贴的转录Agent 1(转录、重录行)、2(仅剪裁列表)、4(仅拍摄方案)表格,不渲染
check <file>Agent 5QA.md

字幕(Agent 3)在画面构建(Agent 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。

智能体

执行每个步骤前请先阅读对应的 Agent 文件。每个文件是其详细规则的唯一来源。在 Claude Code 中,你可以将它们复制到 .claude/agents/ 目录下作为真正的子 Agent 运行。

  1. agents/01-footage-prep.md:探测、色彩校正、词级转录、重录对照表。
  2. agents/02-cutter.md:删除前次重录、静音和停顿,但不剪断单词。
  3. agents/03-captions.md:为每个单词添加字幕,时间轴根据剪辑后的音频对齐。
  4. agents/04-visual-planner.md:人脸/图形/分屏拍摄方案,真实截图和 Logo,分层渲染。
  5. agents/05-qa-checker.md:量化质检、联系表、声明列表,输出 READY 或 NOT READY。

如果某个 Agent 执行失败,请修复后仅重新执行该 Agent,然后执行其后的所有步骤。

共享文件

raw/<name>.mov              永远不被修改
work/<name>/LOG.md          每个完成的步骤记录一行,以便中断后继续
work/<name>/words.json      Agent 1 的输出(单词、开始时间、结束时间)
work/<name>/cuts.csv        Agent 2 的输出
work/<name>/shotplan.md     Agent 4 的输出,附带 assets/SOURCES.md
out/<name>/final.mp4        1080×1920,H.264 + AAC,BT.709 limited range
out/<name>/captions.srt
out/<name>/contact.png      12 帧联系表
out/<name>/QA.md

安全规则(所有智能体均需遵守)

  • 切勿修改或覆盖原始文件。每个视频使用一个单独的工作文件夹。
  • 切勿发布或上传任何内容。
  • 重新调整画面时间,但绝不改变语音速度:不得为了对齐而加速或减速音频。
  • 屏幕上只显示真实内容:真实网站、真实应用界面、官方 Logo。不得出现生成的 UI、虚假仪表盘、药丸徽章、贴纸或表情符号。
  • 除非用户提供图片并确认安全,否则屏幕上不得出现私人数据(收件箱、银行页面、客户名称、登录后的仪表盘)。
  • 屏幕上的数字或声明必须提供来源。
  • 浏览器仅以 headless 模式运行。渲染时使用 nice -n 10。如果用户表示正在录制,请停止渲染。

运行结束输出

RAW TO REEL: take1
1 预处理     4K HDR -> SDR BT.709,212 个单词,发现 3 处重录,保留每条重录的最后一次
2 剪辑       58.4 秒 -> 41.2 秒,19 次停顿剪裁,3 次重录剪裁,1 处剪裁标记于 00:17.3
4 画面       11 个镜头(4 个全屏、3 个图文、4 个分屏),3 张截图,2 个官方 Logo
3 字幕       96 条字幕,2 个单词未对齐(详见 QA.md)
5 质检       READY(8/8 关卡通过) -> 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.

相关技能