Communitygithub.com

SrigadaAkshayKumar/ai-video-editor

为视频编辑设计并生成高点击率的 YouTube 缩略图和 Instagram 封面,包括真实人像抠图、吸引人的文案、任意字体(含泰卢固语/梵文)排布、可选的背景图生成,并验证缩略图的清晰度与可读性。

ai-video-editor 是什么?

该技能专为需要快速生成视频缩略图或封面图的开发者/内容创作者设计,特别适用于使用 Claude Code、Cursor 或 Codex 等 AI 代理的场景。其核心优势在于:依赖真实视频帧中的人脸(而非 AI 生成的虚构面孔),结合专业排版与本地化字体(支持 Telugu、Devanagari 等复杂文字),从而提升个人频道的识别度和点击率(CTR)。用户只需提供视频剪辑成品,技能会自动读取关键帧、选择最佳钩子(hook)文案、生成背景图(或使用纯色渐变),最后通过命令行工具输出 1280x720 的 YouTube 缩略图和 1080x1920 的 Instagram 封面。它还内置了可读性检查和标题去重验证,确保缩略图在小尺寸预览下依然清晰有效。支持的平台包括 YouTube、Instagram Reels,以及任何需要封面图的社交渠道。

兼容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/SrigadaAkshayKumar/ai-video-editor/tree/HEAD/.claude/skills/youtube-thumbnail

在你喜欢的 AI 中提问

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

文档

缩略图(和 Reels 封面)

决定一切的核心规则

图像模型无法生成创作者的真实面孔,也无法设置文字(它会把拉丁字母搞乱,泰卢固语的连字更是完全无法处理)。一张生成的“戴眼镜的印度男人”是个陌生人,而个人频道上出现陌生人会摧毁辨识度。因此,每个缩略图都是分层制作的:

  1. 人脸——来自视频素材的真实帧,并抠图;
  2. 背景/图形——可生成、使用某一帧、或直接采用纯色渐变;
  3. 文字——由 tools/thumbnail.mjs render 使用真实字体排布。 无面部视频:去掉人脸层,使用图形/素材背景 + 文字即可。

1. 先阅读视频(永远不要问视频内容是什么)

需要读取 work/cleancut.transcript.md、work/visual-plan.json(big_statement 已经是点睛之笔——通常最佳的那个就是缩略图文案;chapter_open 是章节标题),以及如果 youtube-metadata 技能运行过后的视频标题(缩略图补全标题,而不是重复标题)。

2. 一个钩子

选取观众假设与视频实际内容差距最大的那个瞬间:反直觉的答案、他们不知道的数字、以及不观看就无法解决的二元对立。针对学生/早期职业观众:关注金钱、工作和浪费的努力;害怕浪费努力比获得回报的承诺更有效。以风险为引导——但必须是视频实际能解决的那个风险。

3. 人脸帧(人物出镜)

node tools/thumbnail.mjs frames <p> --auto            # 抓取重点讲述的时刻 + big_statement 起始点
node tools/thumbnail.mjs frames <p> --at 41.2,88.0    # 或指定精确的干净剪切时间

帧来自 RAW 素材的全质量版本(通过 work/timeline.json 映射)。阅读它们;选择眼睛看向镜头、眉毛上扬或紧蹙、嘴巴半张、手部有动作的帧。说明选择哪一帧以及原因。 node tools/thumbnail.mjs cutout <p> work/thumb/face-41.2.png → work/thumb/cutout.png(阅读结果:头发和手部边缘完整吗?)。

4. 背景(可选的生成层)

为用户提供仅用于背景的图像生成提示,以构图和光线描述,而非场景描述:“深藏蓝色工作室背景,单束暖色轮廓光从右上方照射,左侧三分之一处有柔和琥珀光晕,细点网格纹理,深渐晕,右侧三分之二留出空白供主体抠图,电影感,高对比度,16:9 1280x720”。反向提示始终为:no text, no letters, no words, no watermark, no logos, no people, no faces, no hands, cluttered, low contrast, busy。(“no people” 很重要——生成的背景层不能出现第二个人。)或者跳过背景:渲染器会绘制一个强调色渐变。

5. 渲染

node tools/thumbnail.mjs render <p> --big "NOT ENOUGH" --small "Certificates alone" \
     --native "ఉద్యోగం రాదు" --cutout work/thumb/cutout.png [--background work/thumb/bg.png] \
     --accent "#ffcc00" --side right

→ output/thumbnail-16x9.png(1280x720)和 output/cover-9x16.png(1080x1920 Reels 封面)。 布局规则已内置:人脸占三分之一,文字占另外三分之一;两种字号;右下角留空供时长标记使用。文字 3-4 个单词;其中一个单词特别大。一行本地文字搭配英语标题能立即传达语言信息。强调色 = 钩子所在章节的强调色,或如果用户指定了品牌则使用品牌颜色(config/brands/<slug>.json)。没有品牌则不假定频道样式。

6. 交付前检查

阅读 Feed 尺寸预览图(work/thumb/preview-120-*.png):大字清晰吗?人脸可辨识吗?是否重复了标题?陌生人能看懂吗?视频实际内容是否匹配缩略图的暗示?

禁止

不得伪造 Logo、证书、工资单或文件;默认不得使用商标(如有需要,标记出来让用户决定);不得使用机械的红箭头 + 震惊脸——可信度高于标题党;不得使用表情符号。

Individual skills in this repo

This repo contains 9 individual skills — each has its own dedicated page.

SrigadaAkshayKumar/ai-video-editor

Turn a finished AI-edits video (projects/<p>, or several parts of one long video) into YouTube Shorts. Reuses the edit's word timestamps, reads the whole transcript, picks self-contained dialog moments, adds text hooks + comment prompts, renders 9:16 clips with Remotion. Use when the user asks to clip/make shorts from an edited project or a long video.

SrigadaAkshayKumar/ai-video-editor

Choose, fetch and place background music for an edit — Openverse search (commercial-use CC, or CC0-only), music_cues in work/audio-plan.json with fades, offsets and a deliberate silence gap; tools/mix.mjs conditions every bed, sets it to one measured house level under the voice and sidechain-ducks it. Use when adding, swapping or re-levelling music.

SrigadaAkshayKumar/ai-video-editor

Generate and style word-synced captions (Telugu, Hindi, English, code-mixed) as the HyperFrames captions pass over each format's Remotion picture, fix caption text, black captions out under on-screen text, and check caption content at every cut join. Use when creating, restyling, correcting or repositioning captions in any edit.

SrigadaAkshayKumar/ai-video-editor

Editorial rules for turning a raw talking video or voiceover into a clean cut — removing retakes, repetitions, false starts, stutters, fillers, mispronounced words, contradictions/inconsistencies, off-script chatter and dead air — by writing work/edl.json for tools/cut.mjs. Telugu, Hindi, English and code-mixed speech. Use for stage 2 of edit-video or whenever the user asks to tighten/re-cut a video.

SrigadaAkshayKumar/ai-video-editor

Turns a bare voiceover (no presenter on camera) into a finished faceless documentary/explainer for YouTube 16:9 and Instagram 9:16 — clean-cuts the narration, DIRECTS it (story spine, tension curve, hooks, involvement beats), researches the claims and screenshots the real sources, plans a scene track (stock b-roll, stills, news screenshots, pure-graphic beats) with motion graphics, designs music + SFX, renders, captions and credits it. Use when the user gives a voiceover/narration file (or says "faceless video", "make a video from this VO", "documentary").

SrigadaAkshayKumar/ai-video-editor

End-to-end editor for TALKING-HEAD videos (a person on camera) in this repo. Use when the user hands over a raw video with a speaker and wants a finished edit, or asks to continue/resume/redo any stage of an existing talking-head project — clean cut, motion graphics, b-roll, SFX, music, captions, final render, thumbnail. Delivers YouTube 16:9 and Instagram 9:16. Telugu, Hindi, English and code-mixed speech. For a voiceover with no presenter use edit-video-faceless.

SrigadaAkshayKumar/ai-video-editor

Plan the picture of an edit in work/visual-plan.json — motion graphics (28 component types across six stage layouts that dock/shrink/dim the video), b-roll cutaways from Pexels/Pixabay, camera moves, a-roll framing for 9:16 — validate it, QA it with stills in both formats, and render it with Remotion. Use for any titles, charts, stats, lower thirds, diagrams, b-roll or zooms in a talking-head or faceless edit.

SrigadaAkshayKumar/ai-video-editor

Design the sound effects of an edit in work/audio-plan.json sfx_events — which effect, where, how often — using the measured SFX library (repo assets/sfx, HyperFrames' bundled set, CC0 fetches from Openverse) and the spectral rule that sub-band cues carry structure while vocal-band cues are rationed. Mixed and levelled by tools/mix.mjs. Use when adding or adjusting SFX in any edit.

SrigadaAkshayKumar/ai-video-editor

Write the upload package for a video this repo edited — YouTube title options, description with chapters, tags, pinned comment, thumbnail text, and the Instagram Reels caption + hashtags for the 9:16 cut — optimised for whichever channel/client the user says it is for (config/brands/ profiles, only when named). Use when the user asks what to title a video, for a description, tags, chapters, "the YouTube metadata", an Instagram caption, or SEO/CTR advice on a finished render.

相关技能