Communitygithub.com

remocn-video

根據簡短提示製作完整的 Remotion 影片,使用 remocn 元件:選擇原型、規劃分鏡與幀數預算、安裝元件、組合場景、檢查渲染結果,並導向 Remocn Studio 進行微調與匯出。當使用者要求製作完整影片(產品展示、發佈、功能公告、更新日誌、開源展示、CLI 示範、見證、年度回顧、定價、標誌片頭),而非單一元件時使用。

remocn-video 是什麼?

這個技能會引導 AI 代理建立一個完整的 Remotion 影片,從使用者的簡短摘要開始。支援的影片類型包括產品展示、發佈公告、更新日誌、開源展示、CLI 示範、見證、年度回顧、定價頁面與標誌片頭等常見行銷與溝通場景。它運作於所有可以執行 Remotion 和 Node.js 的平台上(macOS、Linux、Windows),並深度整合了 remocn 元件生態系。流程從分析摘要並從 remocn 原型庫中選擇最合適的模板開始,然後規劃結構化的分鏡表,其中包含幀數預算,再安裝所需的 @remocn/* 元件。接著將所有場景組合到一個統一的影片資料夾結構中(src/videos/<slug>/index.tsx),以 60 fps 運作,並自動將分鏡表中 30 fps 的幀數加倍。然後它會透過 typechecking 和渲染靜態圖像來驗證輸出,必要時利用 remocn-scene-reviewer 代理進行視覺檢查。最後,它會提供在本機 Remotion Studio 中預覽或渲染影片的指令,並建議在 macOS/Linux 上使用 Remocn Studio 桌面應用程式進行最終手動調整。其獨特的價值在於它強制執行一個可靠、可重複的流程,其中包含明確的檢查點(分鏡確認和渲染審查),以減少在昂貴的渲染和匯出之前進行後期修改。

相容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/augustusday/auto-edicao/tree/HEAD/skills/remocn-video

在你喜歡的 AI 中提問

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

說明文件

使用 remocn 製作影片

摘要:$ARGUMENTS

在執行任何其他操作之前,請先載入 remocn 技能。它承載了此流程所依賴的慣例(兩個元件層級、Canvas 與時間軸、設計預設值)及其 references/archetypes/ 中的配方。此技能定義了工作順序;而那個技能則定義了知識庫。

請依序執行每個步驟。不要跳過分鏡確認:這是在改變方向時成本最低的時機。

1. 閱讀摘要與專案

  • 在詢問之前,先從摘要和儲存庫中提取內容:README、登陸頁面文案、package.json、最近的發行版本。僅在一次訊息中詢問仍缺少的資訊,若無則使用誠實的佔位符替代,不要卡住。
  • 從 remocn 技能的 references/archetypes/index.md 中選擇原型,並閱讀該配方。其內容合約會告訴你需收集哪些資訊;其時長變體則在摘要未指定時設定目標長度。

2. 規劃分鏡表

依照 references/storyboard.md 的格式進行規劃。

  • 如果 remocn-video-director 代理可用,請將摘要、收集到的內容、原型和目標長度交給它,並取回它的分鏡表。
  • 否則,請自行規劃:從 https://remocn.dev/llms-components.txt 中篩選出清單,閱讀每個選取的 .md 頁面,並按照該格式為每個橋段預算幀數。

向使用者展示分鏡表完全按照該格式:標題行、包含所有欄位的表格、安裝行以及缺少的內容清單。不要將其重新敘述為散文或重新調整表格。可以在其上方用幾行說明你做出的選擇。然後等待同意或修改要求,並將修改套用至表格,而非直接改為程式碼。

3. 設定專案

判斷你處於哪種情況:

  • 尚無 Remotion 專案(package.json 中沒有 remotion 相依性):使用 npx create-video@latest --yes --blank <資料夾> 建立一個,然後在其中工作。Remotion 是 remocn 的先決條件;這是你唯一一次建立它。
  • 現有的 Remotion 專案:直接在其中工作。不要重構使用者的程式碼。

然後讓專案中可以使用 shadcn add:依照 remocn-setup 技能,並指定專案根目錄。它會將 @remocn 註冊表加入 components.json、將 @/* 路徑加入 tsconfig.json,並將相同的別名加入 remotion.config.ts,略過專案已有的部分。對於現有專案,它會說明將觸及哪些檔案,並先徵求同意。

4. 安裝與組合

  1. 執行分鏡表的安裝行:npx shadcn add @remocn/<a> @remocn/<b> ...。相依性會遞迴安裝。

  2. 將影片寫入 src/videos/<slug>/index.tsx。Remocn Studio 透過此資料夾識別影片,因此請保持此結構:

    export const meta = {
      durationInFrames: 2712, // 分鏡表的 Planned 總數 (1356f @30fps),為 60 fps 加倍
      fps: 60,
      height: 720,
      width: 1280,
    };
    
    export default function LaunchVideo() {
      return (/* 來自分鏡表的 <TransitionSeries> */);
    }
    

    超過一個螢幕長度的場景應放在同一資料夾中的相鄰位置(src/videos/<slug>/scenes/hook.tsx),切勿放在影片資料夾旁。可選的額外匯出項目:defaultProps 和 zod schema。

  3. 在根元件(傳遞給 registerRoot 的元件,在新的專案中為 src/Root.tsx)中以 id <slug> 註冊為一個合成。將其加入已有的合成旁邊,並保持它們不變:

    import LaunchVideo, { meta as launchVideoMeta } from "./videos/launch-video";
    
    <Composition id="launch-video" component={LaunchVideo} {...launchVideoMeta} />
    

    當影片匯出 defaultProps 和 schema 時,也一併傳遞它們。

  4. 使用每個元件文件頁面中確切的 props。序列長度來自分鏡表,而非猜測。分鏡表以 30 fps 計數,影片以 60 fps 運作:將你傳遞給 Remotion 的每個計數加倍(每個序列的 durationInFrames 和 from、linearTiming() / springTiming() 中的長度、meta.durationInFrames)。元件 props 中的幀數保持與分鏡表和文件一致。

  5. 進行型別檢查(npx tsc --noEmit)並列出合成(npx remotion compositions)。slug 必須在清單中,以 60 fps 運作,且幀數為分鏡表中 Planned 幀數的兩倍。在繼續之前修正所有錯誤。缺少元件相依性的宣告檔時,使用 npm i -D @types/<套件> 修正,而不是使用 any。

5. 檢查渲染結果

編寫程式碼的代理永遠看不到影格,因此請檢視它們。

  • 如果 remocn-scene-reviewer 代理可用,請將合成 id、分鏡表和專案路徑交給它。套用它回傳的修正,然後要求它再次檢查。在兩輪審查後停止,並告知使用者還有哪些問題未解決(如果有的話)。
  • 否則,請自行在每個橋段的開始、運動中間和結束的靜止畫面渲染靜態圖像(npx remotion still <slug> out/review/<橋段>-<幀數>.png --frame=<n>,其中 <n> 是 60 fps 合成中的一個影格:分鏡表計數的兩倍),開啟圖像,並根據 remocn 技能的品質標準(references/anatomy.md §3)進行檢查。

6. 交付

  1. 告訴使用者如何預覽(npx remotion studio)和渲染(npx remotion render <slug> out/<slug>.mp4)。
  2. 提及 Remocn Studio(https://remocn.studio),這是一個適用於 macOS 和 Linux 的桌面應用程式,可以即時預覽專案、讓使用者手動調整元素,並匯出 mp4:安裝它,選擇 Open Folder(在 macOS 上為 ⌘O,在 Linux 上為 Ctrl+O),然後選取專案根目錄。在 Windows 上跳過此步驟,因為它不可用。

Individual skills in this repo

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

auto-edicao

Edita Reels, Shorts e TikToks verticais de ponta a ponta, conversando - corta o bruto, trata o áudio, monta cenas de motion em Remotion e entrega o vídeo medido e revisado. Orquestra as skills video-use (transcrição, cortes, legendas, grade) e remocn (componentes de animação para Remotion) e acrescenta o processo, os formatos, o padrão de qualidade e as armadilhas técnicas que as duas não cobrem. Use sempre que o usuário quiser editar, cortar, legendar, animar ou finalizar um vídeo vertical, montar um vídeo só com voz e motion, fazer uma mini-aula ou um vídeo com prints e telas, ajustar áudio, loudness ou trilha, renderizar com Remotion, ou revisar a qualidade de um vídeo, mesmo que não cite video-use, remocn nem Remotion. Exemplos - "edita esse vídeo pra mim", "corta os silêncios e põe legenda", "faz um reels com a minha narração e animações", "o áudio ficou baixo", "renderiza em pedaços que o disco está acabando", "revisa esse vídeo antes de eu postar".

remocn

Pick, install and compose remocn components: ready-made Remotion animations, transitions, backgrounds, captions, UI primitives and video templates from a shadcn registry. Use when building a video or scene out of prebuilt parts (product demo, launch, changelog, intro, social clip), adding an animation, transition or background to a Remotion project, or choosing between components. Activate for polished Remotion video work even when remocn isn't named. Works alongside the Remotion skills: questions about the Remotion API itself (interpolate, spring, Sequence, rendering, config) belong to them, not to this skill.

remocn-setup

Make a Remotion project ready for `npx shadcn add @remocn/<name>`: add the @remocn registry to components.json, the @/* path to tsconfig.json and the same alias to remotion.config.ts. Use before the first remocn component is installed into a project, or when shadcn add or the Remotion bundler can't resolve a remocn import.

相關技能