Communitygithub.com

DansiDanutz/Video-Editor

HyperFrames 影片編輯器:從文字、網頁、Figma 設計或既有素材建立、編輯、動畫化與渲染影片、動畫與動態圖形。

Video-Editor 是什麼?

這是 HyperFrames 的核心入口技能,負責處理所有影片製作、編輯、動畫與渲染請求。它支援多種輸入格式(網址、GitHub PR、Figma 設計、文字腳本、既有影像或音樂),並自動決定使用哪個工作流程(如產品發表影片、無臉解說、音樂節拍同步等)。該技能會從專案狀態恢復、記錄意圖、安裝對應工作流程,並在完成後將控制權移交給 `BRIEF.md`。它特別強調以 HTML 為基礎的影片渲染(HyperFrames 框架),除非使用者明確指定其他框架。此外,它還包含自動升級專案 CLI 版本並進行驗證的機制,確保渲染結果可重現。對於既有專案,它會繞過意圖層,直接執行診斷、預覽或批次渲染等操作。

相容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/DansiDanutz/Video-Editor/tree/HEAD/.claude/skills/hyperframes

在你喜歡的 AI 中提問

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

說明文件

外掛安裝: 在執行設定或更新指令前,請先遵循外掛執行規則(當此技能位於 HyperFrames 外掛內時)。獨立安裝則保留下方的更新說明。

HyperFrames 入口點

HyperFrames 從 HTML 渲染影片 — 一個合成就是一個 HTML 檔案,其 DOM 透過 data-* 屬性宣告時間,其動畫執行環境可被搜尋,且其媒體播放由框架掌管。完整的創作合約位於 /hyperframes-core;請在撰寫合成 HTML 前閱讀。腳本、分鏡、審查、製作、調度與影格工作者合約位於此技能的 references/ 目錄中。

1. 從專案狀態開始

套用第一個符合的列;不要評估較低優先級的狀態列:

狀態動作
明確將現有 Remotion 原始碼移植到 HyperFrames閱讀 references/routes/remotion-to-hyperframes.md,然後直接導向該工作流程。跳過意圖層。
對現有 HyperFrames 專案的特定操作:檢查、診斷、驗證、預覽、渲染、發布或批次渲染僅執行該操作。跳過意圖和工作流程路由;載入 /hyperframes-cli 和任何必要的領域技能。
對現有專案的特定編輯進行編輯。不要執行意圖層。若要了解專案時間軸上的內容(軌道、片段、開始、結束、播放內容),請執行 npx hyperframes timeline [--json],而不是閱讀 index.html 和每個子合成檔案。
BRIEF.md 存在讀取 workflow 和 flow。執行該工作流程;flow: companion 始終在 /general-video 中執行。不詢問腳本問題。
沒有腳本,但 hyperframes.json 或 STORYBOARD.md 存在從專案檔案和記錄的偏好恢復。從現有工件推斷所屬工作流程。如果無法唯一確定,請提出一個僅供路由的問題;不要執行意圖訪談。
全新創作執行意圖層 — references/intent-interview.md — 然後使用 § 2 的表格進行一次路由。

當你編輯現有專案時,請用專案歷史紀錄(/hyperframes-cli,你的回合中的專案歷史)將你的編輯包起來。

如果一個新請求未指明主體或輸入,請在路由前詢問影片內容。在詢問任何問題之前,先檢查偏好和配方(references/intent-interview.md,步驟 1)。figma.com 輸入或命名配方會改變接收方式,而非路由 — 訪談中的「適應正交輸入」部分會處理這兩者。

保持專案的 CLI 為最新

一個搭建好的專案會在其 package.json 腳本中固定 hyperframes@<version>,以使渲染結果可重現;此固定版本不會自行升級,且使用較舊 CLI 的固定版本執行時不會發出警告。當恢復一個腳本帶有固定版本的專案時,在第一次影響渲染的指令之前探查一次:

npx hyperframes@latest upgrade --project . --check

此探查為唯讀操作,會將固定版本與最新版本進行比較;請保留明確的 . — 在較舊的 CLI 版本中,單純的 --project 後接另一個旗標會將該旗標當作目錄值使用。當它報告專案落後時 — 或任何 CLI 輸出已顯示(stderr 通知 This project pins hyperframes@… (latest …),或固定版本腳本輸出的 --json 結果中出現 _meta.updateAvailable: true)— 請使用 npx hyperframes@latest upgrade --project . 進行升級,然後使用 npx hyperframes check 驗證。通過檢查確認專案的合成在新版本上仍然有效 — 而非渲染輸出與舊的固定版本影格一致 — 因此成功的升級絕非無聲無息:請在執行摘要中註明新舊版本。還沒有任何合成的專案不需要驗證。如果檢查失敗,請復原 package.json 的變更,繼續使用固定的版本,並報告專案停留在哪個版本以及原因。根據信號採取行動,而不是將其轉達給使用者;切勿讓未經驗證的固定版本升級留存。

2. 全新創作路由

使用第一個符合的列。比對請求的交付物,而非順帶提及的詞彙或檔案類型。

優先順序請求工作流程
1明確移植現有 Remotion 原始碼/remotion-to-hyperframes
2創作簡報、提案簡報或可導航的互動式簡報/slideshow
3為現有的談話頭影片加入純字幕或副標題,且不改變影片內容/embedded-captions
4為現有的談話頭、訪談或 Podcast 影片加入設計好的圖形疊加層,且不改變影片內容/talking-head-recut
5從音樂曲目建立節拍同步影片,無旁白或網頁捕捉/music-to-video
6建立明確簡短、無旁白、以動作為主的單元,通常少於 10 秒/motion-graphics
7從 PR 參考解釋 GitHub 拉取請求或程式碼變更/pr-to-video
8從 URL 或特定網站腳本行銷或展示網站、產品網站、應用程式或公司/product-launch-video
9用自創視覺解釋主題、文章或筆記,不涉及產品或網站捕捉/faceless-explainer
10任何其他自訂影片或合成/general-video

在最終確定路由前,請閱讀 references/routes/<workflow>.md — 每個路由一個小檔案:包含標準的輸入/輸出/觸發合約(在延遲安裝的工作流程技能可用之前)以及該路由的訪談條目。如果候選路由不符合其合約,請繼續路由,而不是強行匹配。僅讀取匹配路由的檔案。

解決常見歧義

  • 簡短的動畫標題、標誌短動畫、統計數字動畫、圖表動畫、地圖動畫或獨立的下三分之一,如果無旁白且動畫本身就是訊息,則屬於 /motion-graphics。靜態標題卡、有旁白的序列、較長的蒙太奇或自訂循環則屬於 /general-video。
  • 明確簡短的動態圖形可以使用 URL、推文、文章或螢幕截圖作為素材。一般的「從這個網站製作影片」請求屬於 /product-launch-video。
  • 帶有字幕的既有影片歸類為 /embedded-captions;帶有設計資訊卡的影片歸類為 /talking-head-recut。重新調整時間、重新排序、重新著色、重新構圖或重新混音影片屬於自訂編輯,會落入 /general-video。
  • 音樂檔案僅在節拍網格驅動作品時才選擇 /music-to-video。用作背景音樂的配樂不會覆蓋主題匹配的路由。
  • 「我想要一個分鏡腳本」會改變審查流程,而非工作流程。如果沒有其他路由信號,請使用 /general-video。一個已確認的草稿 storyboard.html 本身可能就是所請求的交付物;審查循環定義了那個停止點。
  • 專門的敘事工作流程最多支援約 3 分鐘,在 30–90 秒時效果最佳。將明顯較長的作品路由到 /general-video。長度永遠不會覆蓋明確的移植、簡報、字幕、疊加層或音樂驅動的交付物。

3. 路由一次,然後離開

對於全新創作,意圖層(references/intent-interview.md)會執行完整的對話 — 記憶、分類、提案回合、必備條件、執行形狀、交接 — 並以寫入 BRIEF.md 結束。腳本是工作流程讀取的唯一路由工件;後續任何步驟都不會重新開啟此技能或訪談。對後續任何「路由要求了什麼?」的疑問,都從 BRIEF.md 回答。

4. 安裝並進入工作流程

在閱讀所選工作流程之前,請安裝或更新它以及核心領域技能:

npx hyperframes skills update <workflow-name>

使用不帶 / 的裸名稱。如果指令失敗,請顯示錯誤;不要從記憶重構工作流程。關於安裝的其他所有內容 — 核心技能與延遲載入技能的區分、init 會更新什麼、診斷、CI 選擇退出、以及無 CLI 的備援方案 — 都位於 references/skill-lifecycle.md。

5. 按需載入領域技能

需求技能
合成結構、時間屬性、軌道、變數、確定性/hyperframes-core
運動規則、場景藍圖、轉場、執行時期配接器/hyperframes-animation
可搜尋安全的 GSAP、CSS、Anime.js、WAAPI、FLIP、路徑、遮罩、SVG、3D 關鍵影格,或 hyperframes keyframes 診斷/hyperframes-keyframes
設計規格、概念、調色盤、字體設計、旁白、節拍規劃/hyperframes-creative
圖片、圖示、標誌、音訊、字幕、調色、LUT、可重複使用的媒體/media-use
旁白切割、音效效果鏈、自動化封套,或跨多個軌道的單一鏈/推子(子混音匯流排)/hyperframes-audio
初始化、檢查、驗證、快照、比較、批次渲染、Studio、渲染、發布或診斷/hyperframes-cli
註冊表區塊與元件/hyperframes-registry
指定的外觀、效果、處理或轉場 — CRT 掃描線、故障效果、底片顆粒、閃光掃描、五彩紙屑爆發 — 在手工建立之前/hyperframes-registry
Figma 素材、令牌、元件或分鏡腳本影格作為重建的動畫/figma

創作者編輯短語是跨領域請求。載入匹配列中命名的每個技能:

創作者請求必要領域
“剪輯此素材”、硬切、修剪、拼接、重新排序或使用來源範圍/general-video + /hyperframes-core;核心掌管 data-start、data-duration、data-media-start 和軌道佈局。
在此處放大、推近/推遠、流暢的多狀態縮放或重新構圖、Ken Burns 效果或攝影機移動/general-video + /hyperframes-core + /hyperframes-keyframes;動畫化內部視覺/裁切包裝器,而非時間軸片段。
匹配剪輯或甩鏡攝影機轉場/general-video + /hyperframes-animation + /hyperframes-keyframes + /hyperframes-registry;搜尋/在…

Individual skills in this repo

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

DansiDanutz/Video-Editor

Author or edit a custom HyperFrames composition when no specialized workflow fits, or when BRIEF.md sets flow: companion. Use for longer or multi-scene pieces, brand and sizzle reels, montages, static loops, static title cards, footage remixes, and freeform builds. Use motion-graphics instead for a short unnarrated motion-first unit, including an animated title. Route fresh creation through hyperframes before using this skill.

DansiDanutz/Video-Editor

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). Also covers auditing an existing composition's choreography (animation map) and 24 named text-animation effects. HyperFrames-native: single paused timeline, seek-safe, deterministic.

DansiDanutz/Video-Editor

Use when audio already placed in a HyperFrames composition needs to be mixed: fade-in/fade-out, crossfade, track gain or volume, volume automation, ducking, a music bed that fights a voiceover (voiceover carve), effects on a track (EQ, compressor, limiter, gate, saturation, delay, reverb, chorus, phaser, bitcrush), automation envelopes drawn on a track's volume or any effect parameter, or one submix bus carrying a chain, a fader and an automation clock for several tracks at once (`<hf-audio-group>`). Don't use for sourcing or generating audio — finding BGM, SFX, or making a voiceover is `/media-use`. Don't use for clip timing or track layout, which is `/hyperframes-core`.

DansiDanutz/Video-Editor

Use the HyperFrames CLI development loop: init, add, catalog, capture, lint, check, snapshot, compare, grade-compare, preview, play, present, beats, keyframes, single or batch render, publish, cloud, cloudrun, feedback, lambda, doctor, browser, info, upgrade, skills, compositions, timeline, history, docs, benchmark, telemetry, transcribe, auth, tts, and remove-background. Also use when diagnosing build or render failures. validate, inspect, and layout are deprecated aliases; use check. Covers local, HeyGen-hosted cloud, AWS Lambda, and Google Cloud Run rendering.

DansiDanutz/Video-Editor

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.

DansiDanutz/Video-Editor

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`.

DansiDanutz/Video-Editor

Use when a HyperFrames composition needs a punch-in, punch-out, zoom, reframe, Ken Burns treatment, camera move, visual match/whip handoff, or other seek-safe 2D/3D keyframes; also for GSAP, CSS keyframes, Anime.js, WAAPI, FLIP, paths, masks, SVG morph/draw, text trails, 3D depth, or `hyperframes keyframes` diagnostics. Don't use for broad scene strategy, brand design, media sourcing, captions, or general video planning.

DansiDanutz/Video-Editor

Search, install, and wire registry blocks and components into HyperFrames compositions. Use BEFORE hand-building any named visual — whenever a brief, a user, or a storyboard names a look, effect, treatment, or transition such as CRT scanlines, glitch, chromatic aberration, film grain, a shimmer sweep, a chart, a code or terminal window, a map, or a confetti burst — because roughly 400 hosted items already cover many of them and the search ranks all of them with nothing installed, no project, and no account. Also use when running hyperframes add or hyperframes catalog, installing one item or every block matching a tag, wiring an installed item into index.html, or working with hyperframes.json. Covers discovery, install locations, block sub-composition wiring, component snippet merging, and authoring a new block or component to contribute upstream (idea → scaffold → validate → PR).

DansiDanutz/Video-Editor

Use when building or editing a HyperFrames project that people open in Studio: how the timeline should be laid out so it reads well (one caption track, one element kind per track, every scene a sub-composition) and where captions and key content may sit (safe zones). Don't use for how to perform an individual edit (split, trim, retime, volume, copy, swap): that is `creator-editing-recipes.md` in `/hyperframes-core`.

DansiDanutz/Video-Editor

Agent Media OS, the single skill for every media need in a HyperFrames project. Resolve BGM, SFX, image, icon, brand logo, voice, color grade, or LUT into a frozen local file or paste-ready block + ledger record (one verb, `resolve`); generate via TTS / music / image models when the catalog misses; produce voiceover, transcription, captions, and background removal through one shared audio engine; operate on media (cut / reframe / transform); and reuse assets across projects. Also use for vague feedback that real footage looks dark, flat, boring, should feel retro/camcorder/print/ASCII, needs privacy, or needs a media reveal.

DansiDanutz/Video-Editor

Turn a product or marketing URL, pasted script, or brief into a product launch / promo video — SaaS promos, feature reveals, product demos, app and company launches. Use when the user wants to market, launch, promote, or reveal a product; the default for any commercial URL. Site tours / showcases of a website route here too — the brief carries the show-it-as-is intent. Unclear → /hyperframes.

DansiDanutz/Video-Editor

Divide a finished story/script into filmable scenes with per-scene image and animation prompts. Use when building a scene outline or shot list, deciding scene boundaries, durations, or what each visual must show.

DansiDanutz/Video-Editor

AI-assisted video editing workflows for cutting, structuring, and augmenting real footage. Covers the full pipeline from raw capture through FFmpeg, Remotion, ElevenLabs, fal.ai, and final polish in Descript or CapCut. Use when the user wants to edit video, cut footage, create vlogs, or build video content.

相關技能