Communitygithub.com

jsath/claude-skills

将原始人物谈话镜头转变为动态编辑的 1080x1920 短视频:全脸、全图形和分屏布局,每 2 到 5 秒切换一次,真实的 UI 和官方标志面板,每个单词由 Whisper 定时添加字幕,语音加上合成 SFX(无背景音乐)混音到 -14 LUFS,以及硬性 QA 关卡(最终渲染上的字幕同步、音视频长度、响度、色彩、构图、联系表、声明)。还可用于编写不显得像 AI 的脚本。适用于要求“编辑此短视频”、“使其看起来经过编辑”、“添加字幕/动态布局/图形”或“编写短视频脚本”时。

claude-skills 是什么?

此技能提供一套完整的自动化工作流程,用于将原始的人物谈话镜头转换为专业、动态的 1080x1920 竖版短视频。它能根据文字脚本生成多变的视觉布局(全脸、全屏图形、画中画),每 2-5 秒切换一次,并集成真实 UI 屏幕截图、官方标志和由 Whisper 精准定时的字幕。该技能专为 Claude Code 设计,可在本地 Shell 环境中通过 ffmpeg、Python 和可选的 Node.js/Playwright 等工具链运行。它包含严格的 QA 关卡,从构图、字幕同步、响度匹配到色彩一致性,确保最终成品达到专业编辑水准,同时避免 AI 生成内容的常见痕迹,如使用真实产品界面而非虚构图形。

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

在你喜欢的 AI 中提问

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

文档

编辑风格:从原始镜头制作动态竖版短视频

你将一段原始人物谈话镜头转变为成品 1080x1920 的短视频,看起来就像手工编辑过一样:帧画面从不静止,图形是真实的 UI 或官方标志(绝不使用素材库或虚构内容),字幕精准落在节拍上。无需在时间线上拖拽。每个决策都是一个由代码渲染的书面镜头计划,然后通过测量最终文件的关卡进行检查。

属于流程的一部分:use-local-whisper(转录) -> edit-style(短视频编辑)或 longform-edit(YouTube 长视频) -> reel-captions(后期文本) -> thumbnail-generator(封面)。

前置条件

在电脑上使用 Claude Code(不是 Claude.ai:它需要 Shell 和 ffmpeg)。

所需内容用途安装方式
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 转 SDRxcode-select --install

安装检查:sh tools/check_setup.sh(退出码 0 = 就绪)。

输入

  • raw.mov(或 mp4):一段镜头,手机或相机,任何方向。
  • script.txt:所说内容,按屏幕显示方式拼写。如果还没有脚本,请先用 references/script-writing.md 编写一个。
  • 可选:用于捕获的主题 URL(仓库、产品页面),以及每个数字的来源。

工作流程(每个短视频一个文件夹:该短视频的所有文件都存放在其中)

下面的 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. 编写镜头计划(shots.json):每个镜头一行,{layout, anchor_phrase, content}。anchor_phrase 是与 words.json 匹配的脚本文本,以便镜头在该单词被说出时开始。绝不手动输入时间戳。布局规则:references/edit-craft.md。
  5. 捕获和获取素材。 屏幕截图:node tools/capture_clock.js <url> shots/s3 6(无头,帧精确)。Logo:仅限该品牌的官方新闻页面或网站 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,统计数据或声明卡片,无人脸每个关键节点、行动号召
PIP图形在上方,人脸在下方圆角卡片中(y 1086, 1080x834, 半径 48)在说话的同时命名一个工具

每 2 到 5 秒切换一次。以 FULL 或 PIP 开始,在每个关键节点切换到 GFX,将行动号召放在 GFX 上,以 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 范围, BT.709 标签, >= 8 Mbps
6皮肤亮度与源对比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     来自 final.mp4 的重新转录,名称拼写正确
  contact.png      你检查过的 12 帧联系表
  QA.md            每个关卡一行,加上声明和任何私人细节的剪切
  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 或 HTML 卡片的无头 Playwright 屏幕截图),并带有缓慢推入效果(zoompan)。
  • make_cues.py 退出码 2(脚本和音频不一致):修改脚本以匹配所说内容。绝不烧录与语音不一致的字幕。
  • 一个关卡连续失败三次:停止,报告数字,询问。

避免看起来像 AI 的规则

  • 没有浮动药丸、徽章、角落标签、贴纸或 REC 芯片。绝不。
  • 没有代码生成的动态图形花哨效果。使用真实素材和真实产品屏幕。
  • 一个强调色。每种镜头类型一种字幕样式。
  • 展示,而非叙述:当语音提到某个事物时,该事物必须在屏幕上。
  • 屏幕上没有私人信息:财务状况、客户姓名、账户 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.

相关技能