Community编程与开发github.com

lalimi/claude-reelsmith

将构建好的Reel视频成品导入CapCut——上传已渲染的视频、人声和音乐音轨,为每个特效和转场添加CapCut库音效,生成可编辑的CapCut网页草稿,让创作者可以自由更换音乐和音效后再导出。

claude-reelsmith 是什么?

该技能能自动将 AI 生成的 Reel 视频成品无缝迁移到 CapCut Web 编辑器中,保留完整的可编辑性。它能上传视频画面、人声和音乐分轨,并依据 `reel.json` 中的 `sfx` 配置自动为每个画面事件添加 CapCut 内建的音效库音效(如 whoosh、click 等);如果指定的音效名称不在内建列表中,则会自动上传本地音频文件。技能最终会生成一个带音效的 CapCut 网页草稿,并返回编辑链接。创作者可以在 CapCut 网页中聆听效果、随意替换背景音乐或调整音量,然后以 1080p/30fps/MP4 格式导出。使用此技能前需要先完成 `reelsmith build <dir>` 构建 Reel,并确保 CapCut MCP 服务已登录。

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

Installed? Explore more 编程与开发 skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

在你喜欢的 AI 中提问

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

文档

Reel → CapCut 草稿

需要:已构建的 Reel(reelsmith build <dir>)、CapCut MCP 服务(capcut,已包含在本插件的 .mcp.json 中;首次通过 /mcp 登录一次),以及磁盘上 CapCut 的插件包用于上传器和草稿构建器(参见 $(reelsmith root)/docs/capcut.md,环境变量 CAPCUT_PLUGIN_DIR,默认为 ~/capcut-plugin)。

步骤

  1. 在 reel.json 中添加 "sfx" 字段——每个画面事件对应一条记录:
    "sfx": [{"name": "whoosh", "t": 6.9, "vol": 0.5}, {"name": "click", "t": 30.62, "vol": 0.5},
            {"name": "typing", "t": 2.5, "vol": 0.35, "dur": 1.4}, {"name": "my_sounds/rip.mp3", "t": 15.36}]
    
    内建音效库名称:whoosh、whoosh-short、pop、typing、click、sparkle、coin、chime、impact、shutter、ding(ID 定义在 engine/capcut.py 中)。其他名称均视为您拥有的本地音频文件,将随音轨一起上传。
  2. reelsmith capcut stems <dir> → 输出到 out/capcut/{video.mp4, voice.wav, music.wav} + files.json。人声和音乐共享一个增益(总和 = −14 LUFS)并经过限制器处理;音乐已经为人声做了闪避处理。
  3. 上传:调用 capcut_asset_upload_credential,携带 version: 2 以及每个文件的精确 file_name 和 size_bytes(请在上传前重新核对大小;不匹配会导致 upload_files_mismatch 错误)。然后执行: printf '%s' <ticket> | node "${CAPCUT_PLUGIN_DIR:-$HOME/capcut-plugin}"/x/plugins/codex/skills/capcut-upload/scripts/capcut-upload.mjs --files "$(cat out/capcut/files.json)" --upload-ticket-stdin --json > out/capcut/upload.json
  4. reelsmith capcut draft <dir> → 输出 out/capcut/draft.json(已校验)。
  5. 调用 start_stdraft_session → push_stdraft_snapshot,设置 base_package_id: "",并传入草稿 JSON。将 web_editor_url 提供给创作者。
  6. 再次推送之前,先调用 get_stdraft_snapshot 并在此基础上编辑——创作者可能已经修改了草稿(回读会丢失部分信息;切勿盲目覆盖他们的更改)。对于小的修正(如裁剪音乐尾部、调整音量),建议通过 Chrome 中的 Claude 在编辑器内直接操作。

需告知创作者

  • 先试听:CapCut 库音效有时会出现在时间线上但播放无声。如果遇到这种情况,请在“音频 → 音效”中替换,或者使用本地文件。
  • 音乐:将占位的背景音乐音轨静音,然后通过试听选择库中的音乐;将音乐裁剪至与视频长度一致(如果音轨更长,导出时会在视频尾部添加黑屏)。
  • 导出(右上角 → 下载,1080p / 30fps / MP4)会先保存到创作者的 CapCut 云空间:如果云空间已满,导出会失败并提示“无法保存”——请清理 CapCut 空间中的文件,或保留引擎输出的 MP4 文件。
  • 连接器自带的音效搜索(search_capcut_material)仅支持简单的标题搜索,没有试听功能;完整的音效库只能在 CapCut 应用中浏览。

Individual skills in this repo

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

lalimi/claude-reelsmith

Build a finished voice-over reel (Instagram Reels / TikTok / Shorts, 1080×1920, 25–70 s) from one reel.json — the creator's own clips and photos + a voice-over + subtitles with accent words + hook/end cards, stamps, punch-ins, transitions and motion effects (cover story, orbit text, doodle boil, glass type, checklist, headline wall, black-and-white → colour burst, photo montage), music bed, −14 LUFS mix, safe-zone QA sheet, cover and caption. Use after a script is approved (reel-script skill) when the reel is a voice-over over footage (for someone talking to camera use talking-head-edit), or when asked to "make / build / rebuild / re-cut a reel", "змонтуй рілс", "перезбери".

lalimi/claude-reelsmith

The director of a reel made from the creator's own footage — runs the whole job from idea to a post-ready MP4 + cover + caption and makes the creative calls (which story structure, which 3–5 effects go on which beat, where the transitions are, pacing, sound), then reviews the cut like a critic before handing it over. Use when someone says "make me a reel", "turn my clips into a reel", "edit this like a pro", "what do you think as a critic / director", "make it more alive", "add effects", "зроби рілс", "що скажеш як критик", or when a reel is being planned, reviewed or re-cut.

lalimi/claude-reelsmith

Write, analyse and plan short-video scripts (Instagram Reels, TikTok, YouTube Shorts, 30–60 s) in four proven viral structures — contrarian insight with a named archetype, series episode with a cliffhanger, humor hook + list of N factors, and "the scenario of …" confession. Use when the user asks to "write a reel script", "give me reel ideas", "analyse this viral reel", "break this reel down", "turn this transcript into a structure", "make one like this reel", pastes a reel transcript, or wants to edit a reel that has no script yet. Triggers in any language (e.g. "напиши сценарій для рілса"). Writes flowing spoken text in the creator's own language (English, Ukrainian, …), checks it against a checklist, and hands a montage plan to reel-builder, talking-head-edit or reel-director.

相关技能