Communitygithub.com

NeverSight/learn-skills.dev

AI 辅助视频编辑工作流,用于剪切、结构化和增强真实素材。覆盖从原始录制到 FFmpeg、Remotion、ElevenLabs、fal.ai 以及在 Descript 或 CapCut 中最终润色的完整流水线。当用户想要编辑视频、剪切素材、制作 Vlog 或构建视频内容时使用。

learn-skills.dev 是什麼?

此技能定義了一套完整的 AI 輔助影片編輯工作流程,專注於處理真實拍攝的素材,而非從提示詞生成影片。其核心理念是「編輯,而非生成」,強調透過 AI 來壓縮、結構化和增強現有素材,從而提升效率。技能將工作流程分為六個層級:從 Screen Studio 或原始素材的採集、使用 Claude/Codex 進行素材整理與結構規劃、利用 FFmpeg 進行精確的剪輯和批次處理、透過 Remotion 實現可程式化的合成與動態圖形、必要時使用 ElevenLabs 和 fal.ai 生成配音與資產,最終在 Descript 或 CapCut 中進行人工精修。此技能同時支援 YouTube、TikTok、Instagram 等不同平台的重新構圖,並整合場景偵測與自動剪輯功能。它適用於 Claude Code、Codex 等終端機與 IDE 環境,提供清晰的命令行範例與 API 整合說明,讓開發者能構建自動化、可重複的影片編輯管線。

相容平台✓Claude Code✓Codex CLI~Cursor
npx skills add https://github.com/NeverSight/learn-skills.dev/tree/HEAD/data/skills-md/aaione/everything-claude-code-zh/video-editing

在你喜歡的 AI 中提問

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

預覽

來自技能 README

說明文件

影片編輯

AI 輔助編輯真實素材。不是從提示詞生成。快速編輯現有影片。

何時啟動

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

核心論點

AI 影片編輯在你停止要求它建立整個影片,開始用它來壓縮、結構化和增強真實素材時才有用。價值不在於生成。價值在於壓縮。

管線

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

每一層都有特定的工作。不要跳過層級。不要試圖讓一個工具做所有事情。

第 1 層:採集(Screen Studio / 原始素材)

收集來源材料:

  • Screen Studio:用於應用程式示範、編碼會話、瀏覽器工作流程的精美螢幕錄製
  • 原始鏡頭素材:Vlog 素材、訪談、活動錄製
  • 透過 VideoDB 的桌面擷取:帶即時上下文的會話錄製(參見 videodb 技能)

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

第 2 層:整理(Claude / Codex)

使用 Claude Code 或 Codex 來:

  • 轉錄和標記:生成轉錄文字,識別主題和話題
  • 規劃結構:決定保留什麼、剪輯什麼、什麼順序合適
  • 識別死區:查找停頓、離題、重複拍攝
  • 生成編輯決策列表:剪輯的時間戳記、保留的片段
  • 搭建 FFmpeg 和 Remotion 程式碼:生成命令和合成
範例提示:
「這是一段 4 小時錄製的轉錄文字。找出 8 個最強片段
用於 24 分鐘的 Vlog。給我每個片段的 FFmpeg 剪輯命令。」

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

第 3 層:確定性剪輯(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

第 4 層:可程式化合成(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

詳見 Remotion 文件 獲取詳細模式和 API 參考。

第 5 層:生成資產(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="微弱的咻咻轉場音效")

第 6 層:最終潤色(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確定性剪輯、批次處理、格式轉換無可視化編輯介面
Remotion可程式化疊加層、可組合場景、可重複使用模板非開發者有學習曲線
Screen Studio即刻生成精美螢幕錄製僅限螢幕擷取
ElevenLabs語音、旁白、音樂、音效不是工作流中心
Descript / CapCut最終節奏、字幕、潤色手動操作,不可自動化

關鍵原則

  1. 編輯,而非生成。 此工作流用於剪輯真實素材,而非從提示詞建立。
  2. 結構先於風格。 在第 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.

NeverSight/learn-skills.dev

Use when generating or modifying Remotion video code, creating demo videos, or working with the demo-video/ directory

NeverSight/learn-skills.dev

Create AI avatar and talking head videos via inference.sh CLI. Recommended: P-Video-Avatar (fastest, cheapest, built-in TTS). Also: OmniHuman, Fabric, PixVerse. Audio: Inworld TTS-2 (100+ languages, emotion steering for characters), ElevenLabs, Kokoro. Capabilities: audio-driven avatars, text-to-avatar, lipsync videos, talking head generation, virtual presenters, UGC content. Use for: AI presenters, explainer videos, virtual influencers, dubbing, marketing videos, UGC ads, gaming avatars, NPC dialogue. Triggers: ai avatar, talking head, lipsync, avatar video, virtual presenter, ai spokesperson, audio driven video, heygen alternative, synthesia alternative, talking avatar, lip sync, video avatar, ai presenter, digital human, ugc, ugc video, ugc ad, avatar ugc

NeverSight/learn-skills.dev

Create AI marketing videos for ads, promos, product launches, and brand content. Models: Veo, Seedance, Wan, FLUX for visuals, Kokoro for voiceover. Types: product demos, testimonials, explainers, social ads, brand videos. Use for: Facebook ads, YouTube ads, product launches, brand awareness. Triggers: marketing video, ad video, promo video, commercial, brand video, product video, explainer video, ad creative, video ad, facebook ad video, youtube ad, instagram ad, tiktok ad, promotional video, launch video

NeverSight/learn-skills.dev

Generate AI videos with Google Veo, Seedance 2.0, HappyHorse, Wan, Grok and 40+ models via inference.sh CLI. Models: Veo 3.1, Veo 3, Seedance 2.0, HappyHorse 1.0, Wan 2.5, Grok Imagine Video, OmniHuman, Fabric, HunyuanVideo. Capabilities: text-to-video, image-to-video, reference-to-video, video editing, lipsync, avatar animation, video upscaling, foley sound. Use for: social media videos, marketing content, explainer videos, product demos, AI avatars. Triggers: video generation, ai video, text to video, image to video, veo, animate image, video from image, ai animation, video generator, generate video, t2v, i2v, ai video maker, create video with ai, runway alternative, pika alternative, sora alternative, kling alternative, seedance, happyhorse

NeverSight/learn-skills.dev

ElevenLabs automatic dubbing - translate and dub audio/video into 29 languages while preserving speaker voice via inference.sh CLI. Capabilities: auto speaker detection, voice-preserving translation, video dubbing, audio localization. Use for: content localization, video translation, multilingual content, international distribution. Triggers: dubbing, dub video, translate audio, video translation, audio translation, localize content, elevenlabs dubbing, eleven labs dub, multilingual dub, voice translation, auto dub, language dub, content localization

NeverSight/learn-skills.dev

Explainer video production guide: scripting, voiceover, visuals, and assembly. Covers script formulas, pacing rules, scene planning, and multi-tool pipelines. Use for: product demos, how-it-works videos, onboarding videos, social explainers. Triggers: explainer video, how to make explainer, product video, demo video, video production, video script, animated explainer, product demo video, tutorial video, onboarding video, walkthrough video, video pipeline

NeverSight/learn-skills.dev

Still-to-video conversion guide: model selection, motion prompting, and camera movement. Covers Wan 2.5 i2v, Seedance, Fabric, Grok Video with when to use each. Use for: animating images, creating video from stills, adding motion, product animations. Triggers: image to video, i2v, animate image, still to video, add motion to image, image animation, photo to video, animate still, wan i2v, image2video, bring image to life, animate photo, motion from image

NeverSight/learn-skills.dev

Generate talking head avatar videos with Pruna P-Video-Avatar via inference.sh CLI. Turn a portrait image into a realistic speaking video with built-in TTS. 18x faster and 6x cheaper than competitors. Models: P-Video-Avatar, P-Image (for portrait generation). Capabilities: text-to-avatar, audio-driven avatars, 30 voices, 10 languages, 720p/1080p, built-in TTS, dynamic backgrounds, full-body control. Use for: AI presenters, product demos, explainer videos, virtual influencers, marketing, education, multilingual content, UGC, gaming avatars. Triggers: avatar video, talking head, ai avatar, p-video-avatar, pruna avatar, video avatar, ai presenter, digital human, virtual presenter, lipsync, talking avatar, ai spokesperson, heygen alternative, synthesia alternative, veed alternative, fabric alternative, omnihuman alternative

NeverSight/learn-skills.dev

Generate videos with Pruna P-Video and WAN models via inference.sh CLI. Models: P-Video, WAN-T2V, WAN-I2V. Capabilities: text-to-video, image-to-video, audio support, 720p/1080p, fast inference. Pruna optimizes models for speed without quality loss. Triggers: pruna video, p-video, pruna ai video, fast video generation, optimized video, wan t2v, wan i2v, economic video generation, cheap video generation, pruna text to video, pruna image to video

NeverSight/learn-skills.dev

Render videos from React/Remotion component code via inference.sh. Pass TSX code, get MP4. Supports all Remotion APIs: useCurrentFrame, useVideoConfig, spring, interpolate, AbsoluteFill, Sequence. Configurable resolution, FPS, duration, codec. Use for: programmatic video generation, animated graphics, motion design, data-driven videos, React animations to video. Triggers: remotion, render video from code, tsx to video, react video, programmatic video, remotion render, code to video, animated video, motion graphics code, react animation video

NeverSight/learn-skills.dev

Video ad creation with exact platform-specific specs for TikTok, Instagram, YouTube, Facebook, LinkedIn. Covers dimensions, duration limits, AIDA framework, and caption requirements. Use for: video ads, social media ads, paid media creative, video marketing, ad production. Triggers: video ad, social media ad, tiktok ad, instagram ad, youtube ad, facebook ad, linkedin ad, video creative, ad specs, paid media, video marketing, ad production, reels ad, stories ad, pre roll, bumper ad

NeverSight/learn-skills.dev

Best practices and techniques for writing effective AI video generation prompts. Covers: Veo, Seedance, Wan, Grok, Kling, Runway, Pika, Sora prompting strategies. Learn: shot types, camera movements, lighting, pacing, style keywords, negative prompts. Use for: improving video quality, getting consistent results, professional video prompts. Triggers: video prompt, how to prompt video, veo prompts, video generation tips, better ai video, video prompt engineering, video prompt guide, video prompt template, ai video tips, video prompt best practices, video prompt examples, cinematography prompts

NeverSight/learn-skills.dev

YouTube thumbnail design with specific dimensions, contrast rules, and mobile preview optimization. Covers safe zones, text placement, face expression psychology, and A/B testing. Use for: YouTube thumbnails, video cover images, click-through optimization. Triggers: youtube thumbnail, thumbnail design, video thumbnail, click through rate, ctr optimization, youtube cover, video cover image, thumbnail maker, thumbnail tips, youtube design, video preview image

NeverSight/learn-skills.dev

Landing page conversion optimization with layout rules, hero section design, and CTA psychology. Covers above-the-fold formula, social proof placement, mobile design, and F-pattern reading. Use for: startup landing pages, product pages, SaaS marketing, conversion optimization. Triggers: landing page, hero section, above the fold, conversion optimization, landing page design, cta button, hero image, landing page layout, saas landing page, product page design, conversion rate, landing page best practices

NeverSight/learn-skills.dev

Configure and use the hosted YouTube Data MCP end-to-end with minimal user input. Use when users want the agent to verify Node.js and `npx`, configure MCP server config (Windows/macOS, Cursor/Codex/OpenClaw/OpenCode), request API key at setup time, run post-install capability discovery (`tools/list` and `get_patch_notes`), and then strongly recommend helper skill and Python setup for full local document and spreadsheet workflows.

NeverSight/learn-skills.dev

Creates 120fps GPU-accelerated animations with Motion.dev (Framer Motion successor) for React, Next.js, Svelte, and Astro projects. Use when user requests animation, motion, scroll effects, parallax, hero animations, gestures, drag interactions, spring physics, whileHover effects, whileInView animations, animated UI, micro-interactions, page transitions, or layout animations. Generates production TypeScript/JSX code with accessibility (prefers-reduced-motion) and performance validation (≥60fps). Supports entrance animations, gesture interactions (hover/tap/drag), scroll-based reveals, and layout transitions using spring physics and natural timing. Do NOT use for CSS-only transitions (use native CSS), static sites without JavaScript, Vue animations (use motion-v variant instead), or SVG/Canvas complex animations (GSAP better suited).

NeverSight/learn-skills.dev

Static artifact craft skill for self-contained HTML/CSS/JS documents: docs, sheets, dashboards, explainers, slides, tools, and landing pages. Use when the user asks for a durable, openable, shareable web deliverable they'll keep or hand off — a report, a dashboard, a slide deck, a data table, a page. Local folder first, temporary public link via tunnel (localhost.run), optional durable publish to Surge, GitHub Pages, or Cloudflare. Not for quick look renders, inline snippets, or throwaway scratch. Not for SPA frameworks, backend APIs, database apps, or production product UI.

NeverSight/learn-skills.dev

FFmpeg commands for video/audio conversion, trimming, compression, and processing. Use when user mentions "ffmpeg", "convert video", "compress video", "extract audio", "trim video", "gif from video", "video codec", "transcode", "screen recording", "merge videos", "video to mp4", "reduce file size", or any media processing task.

NeverSight/learn-skills.dev

Vim keybindings, motions, text objects, and operators for efficient text editing. Use when user asks about "vim commands", "vim motions", "text objects", "vim keybindings", "vim cheat sheet", "learn vim", "vim in VS Code", or any Vim editing tasks.

NeverSight/learn-skills.dev

Grok Build ONLY. Turn a 2D character still into smooth animation sprites via image_gen/image_edit base → image_to_video (6s/10s run-in-place) → ffmpeg frames → magenta chroma-key → dense sampled sprites (strip/grid/GIF). Use when the user wants video-to-sprite, motion capture from generated video, smoother run/walk cycles from dense frames, or runs /video2dsprite. Do NOT use on Codex/Claude — only Grok Build has image_to_video. Prefer generate2dsprite for crisp pixel sheets without video.

相關技能