Community程式設計與開發github.com

lalimi/claude-reelsmith

將已完成的 Reel 透過 CapCut MCP 連接器上傳圖片、語音與音樂音軌,並自動在每個效果與轉場處放置 CapCut 資料庫音效,產生可編輯的 CapCut 網頁草稿,讓創作者能自由替換音樂與音效後再匯出。

claude-reelsmith 是什麼?

此技能專為已使用 reelsmith 構建好 Reel 的開發者設計,能自動將最終成品推送至 CapCut 網頁編輯器,讓創作者在直覺的視覺介面中調整音樂與音效後再匯出。它依賴 CapCut MCP 伺服器(隨外掛捆綁,需透過 /mcp 登入一次)以及 CapCut 外掛資料夾(路徑可透過環境變數 CAPCUT_PLUGIN_DIR 設定,預設為 ~/capcut-plugin)。技能執行流程包含:在 reel.json 中定義音效事件(支援 CapCut 內建音效庫名稱或自訂本機音檔)、透過 reelsmith capcut stems 命令混合語音與音樂成符合 LUFS 標準的立體聲檔、上傳素材並取得票證、呼叫 CapCut 草稿 API 建立或更新草稿,最後產生可編輯的網頁編輯器連結。特別注意:技能會自動保留創作者在編輯器中已做的修改(透過 get_stdraft_snapshot 讀取後增量更新),避免盲目覆蓋。支援的開發平台為 Claude Code 等可執行 MCP 工具的環境,主要用於「從 CapCut 加入音效」、「放入 CapCut」、「可編輯草稿」、「在 CapCut 中更換音樂」等提示場景。

相容平台✓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 並在其基礎上建置 — 創作者可能已經編輯過草稿(回讀有損;切勿盲目覆蓋他們的更動)。對於小幅修正(例如修剪音樂結尾、調整音量),建議透過 Claude 在 Chrome 中於編輯器內直接操作。

要告知創作者的事項

  • 先聆聽:CapCut 資料庫音效曾被回報會出現在時間軸上但播放時靜音。若發生此情況,請在「音訊 → 音效」中替換,或改用本機音檔。
  • 音樂:將預留音軌靜音,然後憑聽覺挑選資料庫中的音樂;將其長度修剪至與影片相同(較長的音軌會在匯出時產生黑色尾部)。
  • 匯出(右上角 → 下載,1080p / 30 fps / 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.

相關技能