Communitygithub.com

jsath/claude-skills

制作一张在手机端可读的1280×720 YouTube缩略图(或横幅/封面):包含无文字背景底版、人物实际抠图、1到3个紧凑色块文字、官方徽标,通过脚本自动检测重叠和边框并生成你必须检查的320px和168px预览图。当被要求制作缩略图、封面、横幅、'让这个更吸引点击'或修复显得杂乱或太小的缩略图时使用。

claude-skills 是什么?

该技能提供了一个系统化的缩略图生成方法,核心原则是“图像模型生成底版,代码生成文字”。它利用脚本 `scripts/compose_thumbnail.py` 将AI生成的背景底版、真实人物抠图、紧凑文字色块和官方徽标合成在一起,并自动检测元素重叠、超出边界等问题。技能支持YouTube缩略图、横幅和方形广告等多种格式,要求用户提供真实的照片或视频帧(绝不从文本生成人脸),以及官方徽标。它通过一个严格的QA检查清单(包括168px预览效果、文字可读性、人脸可见性、对比度等)确保缩略图在手机端也能清晰传达信息。该技能主要用于Claude Code(需要Shell环境),但也适用于Claude.ai进行规划和提示编写。

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

在你喜欢的 AI 中提问

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

文档

缩略图生成器

方法:图像模型生成底版,代码生成文字。 生成的文字容易出现拼写错误,生成的人脸会变成另一个人,因此文字、徽标和人物的真实面孔通过 scripts/compose_thumbnail.py 合成,然后脚本会检查布局。

同类技能:longform-edit 和 edit-style 负责生成视频及其帧;此技能将一帧画面转化为封面。

要求

  • Python 3.9+ 和 Pillow (pip install pillow)。必需。
  • 抠图:pip install "rembg[cli]" 然后 rembg i photo.jpg cutout.png,或者任何能输出透明PNG的背景去除工具。
  • 底版(可选):你可以使用的任何图像模型(你代理中的图像生成工具、具有编辑端点的图像API,或者不使用:模糊、暗化的真实帧也可以作为底版)。
  • Claude.ai 可用于规划和提示编写;合成需要 Claude Code(Shell环境)。

输入

  • 视频标题及其一句话承诺。
  • 人物的真实照片或视频帧,理想情况下高度至少1500像素,并且具有视频所需的情绪(挑选帧;不要凭空生成面孔)。
  • 任何命名工具的官方徽标(品牌新闻页面或网站自己的 SVG)。
  • 可选:用户希望匹配的参考缩略图。先找到并研究该确切图像(参见 references/reference-matching.md)。

步骤

  1. 概念用一行概括:观众看到的内容 + 1到3个词。如果需要超过3个词,则概念有问题。展示结果,隐藏过程。
  2. 制作底版(1280×720 或更大,16:9)。任何模型的提示规则:
    • “不要人物,不要面孔,不要文字,不要字母,不要徽标”(始终使用)
    • 与主题相关的场景,能讲述故事,而不是“带有屏幕的黑暗房间”
    • 高对比度,一种主色,为文字留出空白区域
    • 避免默认的蓝/紫色AI渐变风格 替代方案:视频中的真实帧,使用 gblur 并暗化20%到40%。
  3. 从选定的真实帧中抠出人物(rembg)。绝不从文本生成人物。如果使用图像模型对人物进行重新造型,请将真实帧作为输入图像喂给模型,并拒绝任何改变面部、牙齿或衣物的结果。
  4. 编写 layout.json(格式见脚本头部)。起始值:抠图 height 0.85 到 0.95 位于一侧,底部对齐;标题 size 110 到 140;第二行 60 到 80;徽标 width 180 到 260。
  5. 合成:python3 scripts/compose_thumbnail.py layout.json --out thumb.png。修复每一个 FAIL(重叠、超出边框、抠图高度低于70%、超过5个词)。
  6. 查看 thumb.preview.png,先看168px视图。运行下面的检查清单。调整布局,而不是底版:仅当概念改变时才重新生成。
  7. 可选的一次性润色:如果图像模型有编辑模式,将完成后的合成图通过一次低强度(0.3到0.5)的编辑,用于调整光照和饱和度。然后重新检查每个词是否仍然拼写正确,以及面孔是否仍是同一个人。如果不是,则使用未润色的版本。

规则(来自被拒绝的缩略图)

  • 层次结构:面孔 > 标题 > 徽标 > 背景。
  • 所有东西都太小了。 将元素放大到感觉合适的30%到50%更大;大多数人看到的是168px宽。
  • 文字放在纯色色块中,内边距紧贴字母(在1280宽时大约8像素),带有投影。黄色 = 注意力,绿色 = 正面,红色 = 危险(白色文字),白色 = 中性。粗体无衬线压缩字体(Impact, Bebas Neue)。
  • 没有东西覆盖面孔。文字绝不能穿过面孔。
  • 一个底版铺满整个边框:无空隙,无可见接缝。
  • 重复或镜像的元素显得廉价:每个重复元素都是独立的图像。
  • 每张新缩略图看起来都不同于该频道最近的几张。
  • 不要将抠图放大超过约1.15倍(脚本会警告):寻找更大的源素材。
  • 徽标:使用官方、未修改的颜色和比例,绝不用AI重绘。

QA检查清单(在回复中写出答案)

  • 168px视图:你能看清每个词并认出面孔吗?
  • 1到3个词(最多5个),拼写正确
  • 面孔完全可见,下巴或额头没有被裁剪,无源帧中的UI徽章
  • 无重叠,没有元素被边框切断(脚本PASS)
  • 高对比度,一个清晰的焦点,无杂乱
  • 与频道其他缩略图并列时,你会点击它吗?

输出

thumb.png            1280×720 最终版
thumb.preview.png    全尺寸 + 320px + 168px 并排预览
layout.json          以便下次调整是重新运行,而不是重做

示例回复:

thumb.png PASS (合成检查通过)。168px: "IT'S FREE" 可读,面孔清晰。
概念:惊讶面孔 + "IT'S FREE" + 工具徽标;底版 = 03:12处的模糊帧,暗化30%。
所有版本保留在 thumbs/v1..v3 中。

失败处理

问题做法
没有图像模型使用模糊、暗化的真实帧作为底版
没有人物好的真实照片索取一张;绝不生成替代面孔
模型在底版中生成了文字或面孔重新生成,提示开头加上“无文字,无人”这一行,或者裁剪掉该区域
抠图有光晕或头发缺失尝试 rembg -m isnet-general-use,或选择背景更平坦的帧
字体缺失(文字太小或使用后备字体)在 layout.json 中将 "font" 设置为真实的粗体 .ttf

保留所有版本,直到用户选择其中一个。深度资料: references/composition.md(尺寸、文字、图层顺序)和 references/reference-matching.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

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 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

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.

相关技能