Communitygithub.com

Cody-W-Tucker/skills

AI 輔助影片剪輯工作流程,用於剪輯、結構化與強化真實素材。涵蓋從原始錄製到 FFmpeg、Remotion、ElevenLabs、fal.ai 以及最終在 Descript 或 CapCut 中打磨的完整流程。

skills 是什麼?

此技能定義了一個完整的 AI 輔助影片剪輯工作流程,專為處理真實錄製的素材而非 AI 生成的內容而設計。其核心概念是『壓縮』:不是讓 AI 製作整部影片,而是用它來剪輯、結構化和強化現有素材。支援的平台包括 FFmpeg(確定性剪輯與批次處理)、Remotion(可程式化的疊加層與場景)、ElevenLabs(語音旁白)、fal.ai(音樂、音效與生成式視覺素材),以及最後在 Descript 或 CapCut 中進行人工精修。工作流程從 Screen Studio 或原始影片錄製開始,接著使用 Claude 或 Codex 進行結構規劃,然後依序透過 FFmpeg 進行確定性剪輯、Remotion 進行組合、使用 ElevenLabs 和 fal.ai 生成所需素材,最後在傳統編輯器中進行最終調整。此技能也涵蓋社群媒體重新構圖、場景偵測、靜音偵測與重點片段擷取,並提供明確的工具選擇建議與關鍵原則,例如『先結構後風格』、『FFmpeg 是骨幹』以及『品味是最後一層』。

相容平台✓Claude Code✓Codex CLI~Cursor
npx skills add https://github.com/Cody-W-Tucker/skills/tree/HEAD/skills/video-editing

在你喜歡的 AI 中提問

開啟一個已預先載入此 Agent Skill 的新對話。

預覽

來自技能 README

說明文件

影片剪輯

使用 AI 輔助編輯真實素材。不是從提示詞產生,而是快速剪輯現有影片。

何時啟用

  • 使用者想要剪輯、裁剪或結構化影片素材
  • 將長錄製內容轉換為短影音內容
  • 從原始錄製內容製作 Vlog、教學或示範影片
  • 為現有影片添加疊加層、字幕、音樂或旁白
  • 為不同平台(YouTube、TikTok、Instagram)重新調整影片比例
  • 使用者說「編輯影片」、「剪輯這段素材」、「製作 Vlog」或「影片工作流程」

核心論點

AI 影片剪輯的真正價值在於,當你不再要求它創建整部影片,而是用它來壓縮、結構化和強化真實素材時。價值不在於生成,而在於壓縮。

工作流程

Screen Studio / 原始素材
  → Claude / Codex
  → FFmpeg
  → Remotion
  → ElevenLabs / fal.ai
  → Descript 或 CapCut

每一層都有特定的任務。不要跳過任何層級,也不要試圖讓一個工具包辦所有事情。

第一層:擷取(Screen Studio / 原始素材)

收集原始材料:

  • Screen Studio:用於應用程式示範、編碼過程、瀏覽器操作的精美螢幕錄製
  • 原始攝影機素材:Vlog 素材、訪談、活動錄影
  • 透過 VideoDB 的桌面錄製:即時情境的會話錄製(請參閱 videodb 技能)

輸出:準備好的原始檔案,可供整理。

第二層:組織(Claude / Codex)

使用 Claude Code 或 Codex 來:

  • 轉錄與標記:產生逐字稿,識別主題和話題
  • 規劃結構:決定哪些保留、哪些裁切以及合適的順序
  • 識別無效段落:找出停頓、離題和重複的 take
  • 產生編輯決策列表:包含時間戳記的剪輯點與要保留的片段
  • 建立 FFmpeg 和 Remotion 程式碼:產生指令和組合
範例提示詞:
「這是一段 4 小時錄影的逐字稿。請識別出最適合製作 24 分鐘 Vlog 的 8 個最強片段。
並提供每個片段的 FFmpeg 剪輯指令。」

這一層關乎結構,而非最終的創意品味。

第三層:確定性剪輯(FFmpeg)

FFmpeg 負責無聊但至關重要的工作:分割、修剪、串接和預處理。

按時間戳記提取片段

ffmpeg -i raw.mp4 -ss 00:12:30 -to 00:15:45 -c copy segment_01.mp4

從編輯決策列表批次剪輯

#!/bin/bash
# cuts.txt: start,end,label
while IFS=, read -r start end label; do
  ffmpeg -i raw.mp4 -ss "$start" -to "$end" -c copy "segments/${label}.mp4"
done < cuts.txt

串接片段

# 建立檔案列表
for f in segments/*.mp4; do echo "file '$f'"; done > concat.txt
ffmpeg -f concat -safe 0 -i concat.txt -c copy assembled.mp4

建立代理檔案以加速編輯

ffmpeg -i raw.mp4 -vf "scale=960:-2" -c:v libx264 -preset ultrafast -crf 28 proxy.mp4

提取音訊用於轉錄

ffmpeg -i raw.mp4 -vn -acodec pcm_s16le -ar 16000 audio.wav

標準化音訊音量

ffmpeg -i segment.mp4 -af loudnorm=I=-16:TP=-1.5:LRA=11 -c:v copy normalized.mp4

第四層:可程式化組合(Remotion)

Remotion 將編輯問題轉變為可組合的程式碼。用它來處理傳統編輯器難以處理的任務:

何時使用 Remotion

  • 疊加層:文字、圖片、品牌標識、下方三分法
  • 資料視覺化:圖表、統計數據、動畫數字
  • 動態圖形:轉場、說明動畫
  • 可組合場景:可跨影片重複使用的模板
  • 產品示範:帶註解的螢幕截圖、UI 高亮

基本的 Remotion 組合

import { AbsoluteFill, Sequence, Video, useCurrentFrame } from "remotion";

export const VlogComposition: React.FC = () => {
  const frame = useCurrentFrame();

  return (
    <AbsoluteFill>
      {/* 主要素材 */}
      <Sequence from={0} durationInFrames={300}>
        <Video src="/segments/intro.mp4" />
      </Sequence>

      {/* 標題疊加層 */}
      <Sequence from={30} durationInFrames={90}>
        <AbsoluteFill style={{
          justifyContent: "center",
          alignItems: "center",
        }}>
          <h1 style={{
            fontSize: 72,
            color: "white",
            textShadow: "2px 2px 8px rgba(0,0,0,0.8)",
          }}>
            AI 編輯技術棧
          </h1>
        </AbsoluteFill>
      </Sequence>

      {/* 下一個片段 */}
      <Sequence from={300} durationInFrames={450}>
        <Video src="/segments/demo.mp4" />
      </Sequence>
    </AbsoluteFill>
  );
};

渲染輸出

npx remotion render src/index.ts VlogComposition output.mp4

更多詳細模式和 API 參考,請參閱 Remotion 文件。

第五層:生成素材(ElevenLabs / fal.ai)

只生成你需要的部分。不要生成整部影片。

使用 ElevenLabs 製作旁白

import os
import requests

resp = requests.post(
    f"https://api.elevenlabs.io/v1/text-to-speech/{voice_id}",
    headers={
        "xi-api-key": os.environ["ELEVENLABS_API_KEY"],
        "Content-Type": "application/json"
    },
    json={
        "text": "你的旁白文字",
        "model_id": "eleven_turbo_v2_5",
        "voice_settings": {"stability": 0.5, "similarity_boost": 0.75}
    }
)
with open("voiceover.mp3", "wb") as f:
    f.write(resp.content)

使用 fal.ai 製作音樂與音效

使用 fal-ai-media 技能來:

  • 產生背景音樂
  • 產生音效(ThinkSound 模型,用於影片轉音訊)
  • 產生轉場音效

使用 fal.ai 生成視覺素材

可用於不存在的插播鏡頭、縮圖或 B-roll:

generate(app_id: "fal-ai/nano-banana-pro", input_data: {
  "prompt": "專業的科技 Vlog 縮圖,深色背景,畫面中有程式碼",
  "image_size": "landscape_16_9"
})

VideoDB 生成式音訊

如果已配置 VideoDB:

voiceover = coll.generate_voice(text="旁白文字", voice="alloy")
music = coll.generate_music(prompt="編程 Vlog 的 lo-fi 背景音樂", duration=120)
sfx = coll.generate_sound_effect(prompt="輕柔的 whoosh 轉場音效")

第六層:最終打磨(Descript / CapCut)

最後一層由人來處理。使用傳統編輯器來:

  • 節奏:調整感覺過快或過慢的剪輯點
  • 字幕:自動產生,然後手動清理
  • 調色:基本校正和氛圍調整
  • 最終音訊混音:平衡語音、音樂和音效的音量
  • 匯出:針對不同平台的格式和品質設定

這是品味發揮作用的地方。AI 清除重複性工作,而由你來做最終決策。

社群媒體重新構圖

不同平台需要不同的長寬比:

平台長寬比解析度
YouTube16:91920x1080
TikTok / Reels9:161080x1920
Instagram 貼文1:11080x1080
X / Twitter16:9 或 1:11280x720 或 720x720

使用 FFmpeg 重新構圖

# 16:9 轉 9:16(中心裁切)
ffmpeg -i input.mp4 -vf "crop=ih*9/16:ih,scale=1080:1920" vertical.mp4

# 16:9 轉 1:1(中心裁切)
ffmpeg -i input.mp4 -vf "crop=ih:ih,scale=1080:1080" square.mp4

使用 VideoDB 重新構圖

from videodb import ReframeMode

# 智慧重新構圖(AI 引導的主體追蹤)
reframed = video.reframe(start=0, end=60, target="vertical", mode=ReframeMode.smart)

場景偵測與自動剪輯

FFmpeg 場景偵測

# 偵測場景變化(閾值 0.3 = 中等敏感度)
ffmpeg -i input.mp4 -vf "select='gt(scene,0.3)',showinfo" -vsync vfr -f null - 2>&1 | grep showinfo

靜音偵測用於自動剪輯

# 找出靜音片段(對裁剪空白段落很有用)
ffmpeg -i input.mp4 -af silencedetect=noise=-30dB:d=2 -f null - 2>&1 | grep silence

重點片段擷取

使用 Claude 分析逐字稿和場景時間戳記:

「給定這份包含時間戳記的逐字稿和這些場景變換點,
請識別出最適合社群媒體的 5 個最吸引人的 30 秒片段。」

每個工具最擅長的工作

工具優勢劣勢
Claude / Codex組織、規劃、程式碼生成不處理創意品味這一層
FFmpeg確定性剪輯、批次處理、格式轉換沒有視覺化編輯 UI
Remotion可程式化疊加層、可組合場景、可重複使用模板非開發者有學習曲線
Screen Studio立即獲得精美的螢幕錄製僅限螢幕擷取
ElevenLabs語音、旁白、音樂、音效不是工作流程的核心
Descript / CapCut最終節奏、字幕、打磨手動操作,無法自動化

關鍵原則

  1. 剪輯,而非生成。 這個工作流程用於剪輯真實素材,而不是從提示詞創建內容。
  2. 先結構,後風格。 在觸及任何視覺效果之前,先在第二層把故事理順。
  3. FFmpeg 是骨幹。 無聊但至關重要。這是將長素材變得可管理的地方。
  4. Remotion 追求可重複性。 如果某個效果會用到一次以上,就把它做成 Remotion 元件。
  5. 選擇性生成。 僅對不存在的素材使用 AI 生成,而不是對所有東西都用。
  6. 品味是最後一層。 AI 清除重複性工作,你來做最終的創意決策。

相關技能

  • fal-ai-media — AI 圖片、影片與音訊生成
  • videodb — 伺服器端影片處理、索引與串流
  • content-engine — 原生平台的內容分發

Individual skills in this repo

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

Cody-W-Tucker/skills

Landing page quality assessment for paid advertising campaigns. Evaluates message match, page speed, mobile experience, trust signals, form optimization, and conversion rate potential. Use when user says landing page, post-click experience, landing page audit, conversion rate, or landing page optimization.

Cody-W-Tucker/skills

TikTok Ads deep analysis covering creative quality, tracking, bidding, campaign structure, and TikTok Shop. Evaluates 28 checks with emphasis on creative-first strategy, safe zone compliance, and Smart+ campaigns. Use when user says TikTok Ads, TikTok marketing, TikTok Shop, Spark Ads, Smart+, or TikTok campaign.

Cody-W-Tucker/skills

YouTube Ads specific analysis covering campaign types, creative quality, audience targeting, and measurement. Evaluates video ad performance across skippable, non-skippable, bumper, Shorts, Demand Gen, and Connected TV formats. Covers VAC→Demand Gen migration, Shorts creative requirements, and CTV shoppable ads. Use when user says YouTube Ads, video ads, pre-roll, bumper ads, YouTube campaign, Shorts ads, or CTV ads.

Cody-W-Tucker/skills

Craft the story that makes investors say \"I want in.\" Master the narrative structure that Reid Hoffman, Sequoia, and top founders use to raise capital. Use when: **Preparing to fundraise** to develop your story before the deck; **Investor meetings** to structure conversations that convert; **Pitch practice** to refine your narrative arc; **Cold outreach** to write compelling investor emails; **Pivoting** to reframe your story after a change

Cody-W-Tucker/skills

Identify the best GTM motions and tools across 7 motion types: Inbound, Outbound, Paid Digital, Community, Partners, ABM, and PLG. Use when selecting marketing channels, choosing between inbound and outbound strategy, or planning cross-channel campaigns.

Cody-W-Tucker/skills

Produce a print-grade single-page kami (紙 / 纸) document — warm parchment canvas, ink-blue accent, serif at one weight, no italic, no cool grays. The output reads like a professional white paper or studio one-pager, not an app UI. Multilingual by design (EN · zh-CN · ja). One self-contained HTML file, zero dependencies.

Cody-W-Tucker/skills

Optimize landing pages for maximum conversions using proven frameworks from Unbounce and Oli Gardner—apply the \"one goal, one message, one action\" principle with data-driven design, copy, and CTA best practices. Use when: **Create a new landing page** for a campaign; **Optimize an existing landing page** that isn't converting; **Review landing page design** before launch; **Improve form conversion rates** on lead gen pages; **A/B test landing page elements** systematically

Cody-W-Tucker/skills

Advanced motion patterns for React / Next.js — drag & drop, gestures, text animations, SVG path drawing, custom hooks, imperative sequences (useAnimate), loaders, and the full API decision tree. Requires motion-foundations.

Cody-W-Tucker/skills

Motion tokens, spring presets, performance rules, device adaptation, accessibility enforcement, and SSR safety for React / Next.js using motion/react. Foundation layer — all other motion skills depend on this.

Cody-W-Tucker/skills

A single-frame motion-design composition with looping CSS animations — rotating type ring, animated globe, ticking timer, parallax labels. Renders as a hero video poster you can hand straight to HyperFrames or any keyframe-based exporter. Use when the brief asks for "motion design", "animated hero", "loop", "video poster", "title card", or pairs Open Claude Design with HyperFrames for a kinetic export.

Cody-W-Tucker/skills

Production-ready animation patterns for React / Next.js — button, modal, toast, stagger, page transitions, exit animations, scroll, and layout — built on motion-foundations tokens and springs.

Cody-W-Tucker/skills

Production-ready UI motion system for React/Next.js. Use when implementing animations, transitions, or motion patterns.

Cody-W-Tucker/skills

Produce a single-file slide deck in the Atelier Zero visual language (warm-paper background, italic-serif emphasis spans, coral terminating dots, surreal collage plates) — Open Design's brand deck recipe. The deck uses **horizontal magazine-style swipe pagination** (←/→, wheel, swipe), a per-slide chrome strip with brand mark and slide counter, an ESC overview grid, a coral progress bar, and inherits the canonical stylesheet + 16-slot image library from the sister `open-design-landing` skill.

Cody-W-Tucker/skills

Produce a world-class single-page editorial landing site in the Atelier Zero visual language (Monocle / Apartamento / Études editorial collage) — the same aesthetic Open Design uses for its own marketing surface. The agent fills a typed `inputs.json` from a brand brief, optionally generates 16 collage assets via gpt-image-2, then runs a pure-function composer that emits a self-contained HTML file; a separate path can mirror the Astro marketing site in `apps/landing-page/`. Drop-in scroll-reveal motion and a Headroom-style sticky nav are wired automatically.

Cody-W-Tucker/skills

Best practices for Remotion - Video creation in React. 29 domain-specific rules covering 3D, animations, audio, captions, charts, transitions, and more.

Cody-W-Tucker/skills

Single-page SaaS landing with hero, features, social proof, pricing, and CTA. Respects the active DESIGN.md color/typography/layout tokens. Trigger keywords: "saas landing", "marketing page", "product landing".

Cody-W-Tucker/skills

Single-page SaaS landing with hero, features, social proof, pricing, and CTA. Respects the active DESIGN.md color/typography/layout tokens. Trigger keywords: "saas landing", "marketing page", "product landing".

Cody-W-Tucker/skills

Master April Dunford's 8-step sales narrative from \"Sales Pitch\" (2023). Transform your positioning into a compelling story that wins enterprise deals. Use when: Structuring B2B sales presentations and demos; Creating pitch decks for complex products; Training sales teams on narrative-driven selling; Converting positioning strategy into sales conversations; Winning against entrenched competitors

Cody-W-Tucker/skills

Swiss-style user-research narrative template in warm-paper editorial aesthetics. Use when users ask for a premium research deck or story-first live artifact with minimalist typography, high-clarity layout, subtle motion, donut breakdowns, and keyboard/click navigation across slides in a single HTML file.

Cody-W-Tucker/skills

See, Understand, Act on video and audio. See- ingest from local files, URLs, RTSP/live feeds, or live record desktop; return realtime context and playable stream links. Understand- extract frames, build visual/semantic/temporal indexes, and search moments with timestamps and auto-clips. Act- transcode and normalize (codec, fps, resolution, aspect ratio), perform timeline edits (subtitles, text/image overlays, branding, audio overlays, dubbing, translation), generate media assets (image, audio, video), and create real time alerts for events from live streams or desktop capture.

相關技能