Communitygithub.com

jsath/claude-skills

为已完成剪辑的短视频生成按平台区分的发布文案(CAPTIONS-PLATFORMS.md),涵盖 Instagram、TikTok、YouTube Shorts(标题+描述)、Facebook、Threads、Bluesky 和 X,所有文案均遵守各平台字符限制,并在指定平台加入评论关键词互动引导(X 平台不添加)。关键词、互动引导语、目标平台、话题标签及字符限制均从配置文件读取;校验脚本会严格检查文件是否合规。

claude-skills 是什么?

这是一个专为短视频创作者设计的 AI Agent 技能,用于在视频剪辑完成后自动生成适配多平台的发布文案。它读取配置文件(config.json)中的关键词(keyword)、互动引导语(CTA)、各平台字符限制、话题标签数量范围等参数,然后根据视频字幕文件(captions.srt)和编辑草稿(CAPTION.md,可选)生成一份结构化的 CAPTIONS-PLATFORMS.md 文件。该文件包含每个目标平台的独立文案,并强制在指定平台(如 Instagram、TikTok)添加 CTA 互动引导,同时严格禁止在 X(原 Twitter)上出现任何关键词、CTA 或“comment”字样以避免被视为垃圾信息。技能内置校验脚本 check_captions.py,可自动检查字符数、关键词放置、禁止字符等规则,确保文案完全合规。该技能运行在命令行环境(如 Claude Code、Cursor、Codex)中,依赖本地 Whisper 转录视频、Python 脚本校验,适合内容创作者在编排多平台发布流程时使用。

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

在你喜欢的 AI 中提问

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

文档

短视频发布文案生成

输入一集已完成剪辑的短视频,输出一份 CAPTIONS-PLATFORMS.md 文件,并由 scripts/check_captions.py 自动校验。本技能仅生成文案,不涉及发布或排期。在内容处理流程中的位置:位于 edit-style(或针对长视频的 longform-edit)之后,排期之前。

初始配置

cp config.example.json config.json

编辑 config.json:

键含义示例
keywordDM 自动回复机器人响应的默认评论关键词GUIDE
cta确切的互动引导语句,原样使用comment "GUIDE" & i'll send you the link
cta_platforms必须包含 CTA 的平台instagram, tiktok, facebook, threads, bluesky, youtube_description
no_cta_platforms禁止出现 CTA、关键词及“comment”的平台twitter
skip_platforms从不为其生成文案的平台linkedin
limits各平台最大字符数bluesky 300, threads 500, X 280
hashtags各平台话题标签数量 [最小值, 最大值],其它平台使用 defaultinstagram [4, 7]
core_hashtags永久自带的话题标签#yourniche
ban禁止使用的字符或短语em dash, en dash

仅承诺你的 DM 自动回复机器人确实会响应的关键词。如果不确定,请在写入文案前向用户确认。

输入

  • 视频文件夹:包含 final.mp4、captions.srt(最终渲染版的转录文本),以及可选的编辑草稿 CAPTION.md(草稿文案和标题)。切勿编辑 CAPTION.md。
  • 如果视频中口播了不同的关键词,则使用该视频专属关键词。文案中的关键词必须与视频中口播的一致。

步骤

  1. 读取 captions.srt。开篇语(hook) = 视频中第一句口播内容,几乎逐字照录。
  2. 如果存在 CAPTION.md,读取并复用其标题和措辞。
  3. 填写下方模板。先写入 CTA 语句,再围绕它写好正文。当字符超出限制时,缩短正文而非 CTA。
  4. 将所有数字与视频或编辑的 QA 核实清单进行核对。如果存在差异,保留实测数字,并添加一行 # OPEN: 注释。
  5. 运行 python3 scripts/check_captions.py <reel>/CAPTIONS-PLATFORMS.md。修复每个 FAIL 项,重新运行直至通过。

格式

# <reel> 各平台发布文案。来源:CAPTION.md + captions.srt
keyword: <KEYWORD 或 none>
cta: <确切的 CTA 语句 或 none>
## instagram
<CTA 语句>

<开篇语>

<2 到 5 个简短段落>

<再次放 CTA 语句>

<核心话题标签 + 1 到 2 个主题标签,一行>
## short
<CTA 语句>

<开篇语>

<1 到 2 句可传达要点的话>
## twitter
<开篇语 + 一行话,一个段落,无 CTA,无标签,目标 130 到 200 字符>
## bluesky
<CTA 语句>

<开篇语 + 一行话;整段文本(包含 CTA)需在限制范围内>
## youtube_title
<一行,最佳 40 到 60 字符,最多 100,无 emoji>

short 部分将用于 TikTok、Facebook、Threads 以及 YouTube 描述。如需为特定平台定制,可添加 ## tiktok、## facebook、## threads 或 ## youtube_description 覆盖。

规则

  • 除 X 外所有平台均需 CTA。 X 是简短说明,而非引流渠道:在 X 上使用评论引流语句会被视为垃圾信息。校验脚本会拒绝包含 CTA、关键词或“comment”字样的 X 文案。
  • 该视频没有关键词? 写 keyword: none,并将互动问题作为 cta:(例如:“which one would you use?”)或写 cta: none。
  • Instagram: CTA、开篇语、简短段落、再次 CTA、一行小写话题标签。避免 @提及和链接(用户在 Instagram 上不会点击链接)。表情符号列表项转换为普通 "- " 行。
  • 短视频平台: CTA、开篇语、1 到 2 句话,无话题标签。
  • YouTube 标题: 一句话陈述或结果(例如:“This free tool replaces a $50/month app”),而非标签式描述(例如:“Tool review”)。
  • 语调: 使用缩写、直接陈述句,允许使用“&”。禁止使用 em dash 或 en dash、避免“Not X. Y.”式的句式、避免“game-changer”词汇、避免反问句开头。
  • 绝对禁止: 首条评论、协作标签、LinkedIn 文案、音乐符号、私密数据(收入、客户姓名、账户 ID)。

完整示例

配置中的关键词设置为 GUIDE,视频中口播说“comment GUIDE”。完整通过校验的文件:examples/CAPTIONS-PLATFORMS.md。其中关于 X 的部分:

## twitter
this free tool replaces a $50/month app. it runs on your own laptop, no account, no upload & the code is public.

校验输出:

  bluesky                126 chars
  instagram              333 chars
  twitter                112 chars
  youtube_title           39 chars
PASS

错误处理

问题做法
缺少 captions.srt先使用 use-local-whisper 技能转录 final.mp4
缺少 config.json校验工具会报错退出:复制示例文件并填入内容
口播关键词与配置不同在头部使用口播关键词(keyword: / cta: 行覆盖配置),并标记为 # OPEN:
某平台字符限制无法同时容纳 CTA 和开篇语将正文缩减至仅保留开篇语;如果仍超出限制,报告问题,不要删除 CTA
在 Claude.ai 等无 Shell 环境运行直接写入文件,然后手动对照上表检查字符数限制,并说明未运行校验脚本

交付

报告内容包括:文件路径、使用的关键词和 CTA、校验结果,以及所有 # OPEN: 行。

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

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

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.

相关技能