Communitygithub.com

Aseel1600/Edit01

工具包專用的 Remotion 模式——自訂轉場、共用元件與專案慣例。關於核心 Remotion 框架知識(鉤子、動畫、渲染等),請參閱 `remotion-official` 技能。

Edit01 是什麼?

此技能定義了 Remotion 影片專案的「工具包專用」模式,涵蓋自訂轉場與可重用元件,超出了官方 Remotion 框架的範圍。它提供了一系列現成的 UI 元件(如 AnimatedBackground、SlideTransition、Label)以及獨特的轉場效果(如 glitch、lightLeak、clockWipe),這些轉場效果位於 `lib/transitions/` 目錄中,可與官方的 `TransitionSeries` API 無縫整合。該技能還強制執行專案慣例,例如基於幀的動畫、30 fps 的標準幀率,以及使用 `OffthreadVideo` 和 `delayRender` 等函式庫實現高效能渲染。開發者可以使用這些工具快速建立具有一致視覺風格的動態影片,並可透過展示畫廊預覽所有轉場效果。

相容平台✓Claude Code~Codex CLI~Cursor
npx skills add https://github.com/Aseel1600/Edit01/tree/HEAD/.agents/skills/remotion

在你喜歡的 AI 中提問

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

說明文件

Remotion — 工具包擴充功能

核心 Remotion 知識位於 .claude/skills/remotion-official/(從官方 remotion-dev/skills 儲存庫同步)。此檔案僅涵蓋工具包專用的模式。

共用元件

位於 lib/components/ 的可重複使用影片元件。在範本中透過以下方式匯入:

import { AnimatedBackground, SlideTransition, Label } from '../../../../lib/components';
元件用途
AnimatedBackground浮動形狀背景(變體:細緻、科技、溫暖、暗色)
SlideTransition場景轉場(淡入淡出、縮放、向上滑入、模糊淡入)
Label浮動標籤徽章,可選用 JIRA 參考
Vignette電影感邊緣暗化疊層
LogoWatermark角落標誌品牌
SplitScreen並排影片比較
NarratorPiP子母畫面簡報者疊層
Envelope帶有開口蓋動畫的 3D 信封
PointingHand帶有滑入和脈衝動畫的手勢表情符號
MazeDecoration角落的動畫等距網格裝飾

自訂轉場

此工具包包含位於 lib/transitions/ 的轉場函式庫,用於提供超越官方 @remotion/transitions 套件的場景間效果。

使用 TransitionSeries

import { TransitionSeries, linearTiming } from '@remotion/transitions';
// 從 lib 匯入自訂轉場(根據專案位置調整路徑)
import { glitch, lightLeak, clockWipe, checkerboard } from '../../../../lib/transitions';
// 或從 @remotion/transitions 匯入官方轉場
import { slide, fade } from '@remotion/transitions/slide';

<TransitionSeries>
  <TransitionSeries.Sequence durationInFrames={90}>
    <TitleSlide />
  </TransitionSeries.Sequence>
  <TransitionSeries.Transition
    presentation={glitch({ intensity: 0.8 })}
    timing={linearTiming({ durationInFrames: 30 })}
  />
  <TransitionSeries.Sequence durationInFrames={120}>
    <ContentSlide />
  </TransitionSeries.Sequence>
</TransitionSeries>

可用的自訂轉場

轉場選項最適用於
glitch()intensity, slices, rgbShift科技示範、前衛揭示、賽博龐克
rgbSplit()direction, displacement現代科技、充滿活力的轉場
zoomBlur()direction, blurAmount行動呼籲、高能量時刻、衝擊效果
lightLeak()temperature, direction慶祝活動、電影美學、溫馨時刻
clockWipe()startAngle, direction, segments時間相關內容、俏皮揭示
pixelate()maxBlockSize, gridSize, scanlines, glitchArtifacts, randomness復古/遊戲、數位轉變
checkerboard()gridSize, pattern, stagger, squareAnimation俏皮揭示、結構化轉場

棋盤格模式: sequential, random, diagonal, alternating, spiral, rows, columns, center-out, corners-in

轉場範例

// 科技/賽博龐克風格
glitch({ intensity: 0.8, slices: 8, rgbShift: true })

// 溫暖慶祝
lightLeak({ temperature: 'warm', direction: 'right' })

// 高能量縮放
zoomBlur({ direction: 'in', blurAmount: 20 })

// 色差效果
rgbSplit({ direction: 'diagonal', displacement: 30 })

// 時鐘掃描揭示
clockWipe({ direction: 'clockwise', startAngle: 0 })

// 復古像素化
pixelate({ maxBlockSize: 50, glitchArtifacts: true })

// 棋盤格模式
checkerboard({ pattern: 'diagonal', gridSize: 8 })
checkerboard({ pattern: 'spiral', gridSize: 10 })
checkerboard({ pattern: 'center-out', squareAnimation: 'scale' })

轉場時長指南

類型幀數說明
快速切換15-20快速、有力
標準30-45最常見
戲劇性50-60緩慢揭示
干擾效果20-30應感覺突然
漏光效果45-60需要時間掃描

預覽轉場

執行展示畫廊以查看所有轉場:

cd showcase/transitions && npm run studio

工具包最佳實踐

  1. 僅使用基於幀的動畫 — 避免 CSS 過渡/動畫;它們會在渲染期間導致閃爍
  2. 使用 useVideoConfig() 中的 fps — 使動畫與幀率無關
  3. 限制插值範圍 — 使用 extrapolateRight: 'clamp' 以防止值超出範圍
  4. 使用 OffthreadVideo — 對於複雜組合,效能優於 <Video>
  5. 使用 delayRender 處理非同步 — 始終在資料準備好之前封鎖渲染
  6. 使用 staticFile 處理資產 — 正確引用 public/ 資料夾中的檔案
  7. 所有專案都使用 30fps — 時間計算:幀數 = 秒數 × 30
  8. playbackRate 必須恆定 — 對於可變/極端速度,請先使用 FFmpeg 預處理

專案時間慣例

場景類型時長說明
標題3-5 秒 (90-150 幀)標誌 + 標題
概述10-20 秒3-5 個要點
示範10-30 秒調整 playbackRate 以符合時間
統計8-12 秒3-4 個統計卡片
致謝5-10 秒快速淡出

節奏: 旁白約每分鐘 150 字。旁白決定時間。

進階 API

有關所有鉤子、元件、渲染器、Lambda 和 Player API 的詳細文件,請參閱 reference.md。

授權說明

Remotion 具有特殊的授權條款。公司可能需要取得授權才能進行商業使用。請查閱 https://remotion.dev/license


意見回饋與貢獻

如果此技能缺少資訊或可以改進:

  • 缺少某個模式? 請說明您需要的內容
  • 發現錯誤? 請告知錯誤所在
  • 想要貢獻? 我可以協助您:
    1. 使用改進內容更新此技能
    2. 建立一個 PR 到 github.com/digitalsamba/claude-code-video-toolkit

只需說「改進此技能」,我將引導您更新 .claude/skills/remotion/SKILL.md。

Individual skills in this repo

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

Aseel1600/Edit01

Generate AI videos from text prompts using multiple provider gateways. Use when: (1) Generating videos from text descriptions, (2) Creating AI-generated video clips for content production, (3) Image-to-video generation with a reference image, (4) Choosing between video generation providers (VEO, Kling, Sora, Runway, Seedance, MiniMax, Gemini Omni). Supports gateways: HeyGen API, fal.ai API, Kling official direct API, and the Gemini API (Gemini Omni Flash).

Aseel1600/Edit01

Create AI avatar videos with precise control over avatars, voices, scripts, scenes, and backgrounds using HeyGen's v2 API. Use when: (1) Choosing a specific avatar and voice for a video, (2) Writing exact scripts for an avatar to speak, (3) Building multi-scene videos with different backgrounds per scene, (4) Creating transparent WebM videos for compositing, (5) Using talking photos as video presenters, (6) Integrating HeyGen avatars with Remotion, (7) Batch video generation with exact specs, (8) Brand-consistent production videos with precise control.

Aseel1600/Edit01

Use p5.js/canvas for local procedural character effects: particles, weather, squash/stretch, walk cycles, and environmental motion.

Aseel1600/Edit01

Review local character animation with schema checks, Playwright browser previews, frame sampling, and FFmpeg/ffprobe final output checks.

Aseel1600/Edit01

Create videos from a text prompt using HeyGen's Video Agent. Use when: (1) Creating a video from a description or idea, (2) Generating explainer, demo, or marketing videos from a prompt, (3) Making a video without specifying exact avatars, voices, or scenes, (4) Quick video prototyping or drafts, (5) One-shot prompt-to-video generation, (6) User says "make me a video" or "create a video about X".

Aseel1600/Edit01

Generate Mandarin and multilingual narration with Volcengine Doubao Speech 2.0. Use when creating Chinese voiceovers, when the user prefers Doubao/Volcengine/火山引擎/豆包 TTS, or when narration needs character-level timestamp metadata for subtitles.

Aseel1600/Edit01

Video and audio processing with FFmpeg. Use for format conversion, resizing, compression, audio extraction, and preparing assets for Remotion. Triggers include converting GIF to MP4, resizing video, extracting audio, compressing files, or any media transformation task.

Aseel1600/Edit01

Generate expressive, multilingual narration with fish.audio (S1 / S2-generation models) and reuse cloned voices via reference_id. Use when the user prefers fish.audio/Fish Audio TTS, wants a specific playground voice model, or needs high-emotion voice-clone narration.

Aseel1600/Edit01

Use when implementing Disney's 12 animation principles with Framer Motion in React applications

Aseel1600/Edit01

All animation knowledge for HyperFrames — atomic motion rules, multi-phase scene blueprints, scene transitions, broader motion-design techniques, AND the seven runtime adapters (GSAP default, plus Lottie, Three.js, Anime.js, CSS keyframes, Web Animations API, TypeGPU). Use for any motion or animation task: pick 2-4 rules and compose, or load a blueprint, or look up runtime-specific API (e.g. GSAP eases / Lottie player / Three.js mixer). HyperFrames-native: single paused timeline, seek-safe, deterministic.

Aseel1600/Edit01

HyperFrames CLI dev loop. Use when running npx hyperframes init, add, catalog, capture, lint, validate, inspect, layout, snapshot, preview, play, render, publish, lambda, doctor, browser, info, upgrade, skills, compositions, docs, benchmark, telemetry, transcribe, tts, or remove-background, or when troubleshooting the HyperFrames build/render environment. Entry point for AWS Lambda cloud rendering (`hyperframes lambda deploy / render / progress / destroy / policies`).

Aseel1600/Edit01

The HyperFrames composition contract — build one renderable project. Use for composition structure, the `data-*` timing attributes, `class="clip"`, tracks, sub-compositions, variables, framework-owned media playback, deterministic-render rules, and validation. Read before writing composition HTML.

Aseel1600/Edit01

Non-animation creative direction for HyperFrames videos. Use for design spec (frame.md / design.md) handling, palettes, typography, narration, beat planning, audio-reactive visuals, composition patterns, and brand / style decisions. For atomic motion patterns and scene blueprints, use `hyperframes-animation`.

Aseel1600/Edit01

Audio and media assets for HyperFrames compositions, produced by one shared audio engine (`scripts/audio.mjs`) — multi-provider TTS (HeyGen / ElevenLabs / Kokoro local), background music + sound effects (HeyGen audio-library retrieval by default, with local Lyria / MusicGen BGM generation and a bundled SFX library as the no-credential fallback), Whisper transcription, background removal, and caption authoring. Use for voiceover / TTS, BGM, SFX / sound effects, transcription, captions / subtitles / lyrics / karaoke / per-word styling, voice + provider selection, and music-mood prompting.

Aseel1600/Edit01

Install and wire registry blocks and components into HyperFrames compositions. Use when running hyperframes add, installing a block or component, wiring an installed item into index.html, or working with hyperframes.json. Covers the add command, install locations, block sub-composition wiring, component snippet merging, registry discovery, and authoring a new block or component to contribute upstream (idea → scaffold → validate → PR).

Aseel1600/Edit01

Use when the user wants a short, design-led motion graphic where motion is the message: kinetic typography, stat or number count-up, chart/data-viz hit, logo sting, brand lockup, lower-third, callout, social overlay, animated headline/tweet/news item, motion poster, or quick captured-page highlight. Usually under 10s and up to ~30s, with no narration arc, voice-over, or live-action subject. Can render to MP4 or transparent overlay. Not for longer, multi-scene, narrated, or brand-reel pieces (use general-video), narrated website videos (website-to-video), topic explainers (faceless-explainer), product promos (product-launch-video), PR videos (pr-to-video), or captions on existing footage (embedded-captions). When unsure whether it's a quick motion-first piece or a longer / narrated treatment, see /hyperframes.

Aseel1600/Edit01

Use when the user has a music track (an audio file, or a video to pull audio from) and wants a beat-synced HyperFrames video, calm to hard-hitting. The music drives everything: one analyzer reads it once, the orchestrator lays out the frames and fills a per-frame plan, and one sub-agent builds each frame. Typography and templates are the floor — a complete video needs zero assets — but any images or videos the user supplies are cut into the frames on the same beat grid (beat-cut / ken-burns). The genre (lyric video, slideshow, kinetic promo) falls out of the per-frame choices; the pipeline never branches on it.

Aseel1600/Edit01

Best practices for Remotion - Video creation in React

Aseel1600/Edit01

Port an existing Remotion (React) composition to HyperFrames HTML. Use ONLY when the user explicitly asks to port/convert/migrate/translate a Remotion source. Do NOT use: (a) authoring a new HyperFrames composition; (b) Remotion mentioned in passing; (c) Remotion code shared as reference only; (d) "same video as my Remotion one" without explicit migrate request — treat as fresh build. Doubt → `/general-video`. One-way, Remotion-only: no reverse export (HyperFrames→Remotion or any framework), no non-Remotion source (After Effects, Framer Motion, plain React/CSS) → out of scope, re-create via `/general-video`. Flags unsupported patterns (useState, useEffect, async calculateMetadata, third-party React libs, `@remotion/lambda`) and recommends runtime interop over lossy translation. Unsure whether to port vs. build fresh, or only a passing Remotion mention? → /hyperframes.

Aseel1600/Edit01

Animate SVG character rigs with GSAP, CSS transforms, Remotion frame control, and HyperFrames-compatible browser previews.

相關技能