Communitygithub.com

DansiDanutz/Video-Editor

搜尋、安裝並將 registry 中的區塊與元件,整合至 HyperFrames 合成畫面中。在徒手建立任何具名視覺效果前使用——只要簡報、使用者或分鏡腳本提及某種外觀、特效、處理方式或轉場,例如 CRT 掃描線、故障效果、色差、底片顆粒、閃爍掃光、圖表、程式碼或終端機視窗、地圖,或彩花爆發——因為約 400 個已收錄項目已涵蓋多數需求,且搜尋功能在無任何安裝、專案或帳號的情況下,即可對所有項目進行排序。此外,在執行 `hyperframes add` 或 `hyperframes catalog`、安裝單一項目或與某標籤相符的所有區塊、將已安裝項目接入 `index.html`,或處理 `hyperframes.json` 時也請使用。涵蓋探索、安裝路徑、區塊子合成接入、元件片段合併,以及編寫新的區塊或元件以向上游貢獻(構想 → 建立原型 → 驗證 → PR)。

Video-Editor 是什麼?

此 AI 技能專為 HyperFrames 使用者設計,可透過 CLI 探索、安裝及整合位於遠端 registry 的區塊(獨立子合成)與元件(特效片段)。其核心優勢在於提供約 400 個預先建置的視覺與 UI 元素,避免重複造輪;搜尋引擎支援以關鍵字或語意(需下載本機模型)排序,結果會自動移除目前 registry 無法提供的項目。成功安裝後,技能會輸出 HTML/樣式/腳本片段,詳細說明如何將區塊以 `data-composition-src` 接入主合成,或將元件程式碼合併至現有合成中。此外,該技能還包含完整的未命中回報機制:當搜尋結果不符合需求時,自動產生 `report_gap` 指令以便向上游提供需求訊號。最後,技能也提供從構想到 PR 的貢獻工作流程,使其同時適合一般使用者與進階貢獻者。

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

在你喜歡的 AI 中提問

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

說明文件

Plugin installs: Before setup or freshness commands, follow plugin execution rules when this skill is inside a HyperFrames plugin. Standalone installs keep the update instructions below.

HyperFrames Registry

Registry 提供可重複使用的區塊與元件,可透過 hyperframes add <name> 安裝。

  • Blocks (區塊) — 獨立的子合成(自有尺寸、時間長度與時間軸)。在主合成中透過 data-composition-src 引入。
  • Components (元件) — 特效片段(無自有尺寸)。直接貼入主合成的 HTML 中。

快速參考

hyperframes add data-chart              # 安裝一個區塊
hyperframes add grain-overlay           # 安裝一個元件
hyperframes add captions                # 安裝所有標記為 captions 的區塊
hyperframes add shimmer-sweep --dir .   # 指定目標專案
hyperframes add data-chart --json       # 輸出機器可讀格式
hyperframes add data-chart --no-clipboard  # 跳過剪貼簿 (CI/無頭模式)

安裝後,CLI 會列出寫入了哪些檔案,以及一個可供貼入主合成的程式碼片段。該片段為起點——接入區塊時,您需要自行加入 data-composition-id(必須與區塊內部的合成 ID 相符)、data-start 與 data-track-index 屬性。

位置參數會先以精確項目名稱解析。若無相符項目且該值為標籤,則指令會安裝所有帶有該標籤的區塊。安裝所要求的項目前,會先安裝其 registry 依賴。hyperframes add 僅適用於區塊與元件;如需範例,請改用 hyperframes init <dir> --example <name>。

安裝路徑

區塊預設安裝至 compositions/<name>.html。元件預設安裝至 compositions/components/<name>.html。

這些路徑可在 hyperframes.json 中設定:

{
  "registry": "https://raw.githubusercontent.com/heygen-com/hyperframes/main/registry",
  "paths": {
    "blocks": "compositions",
    "components": "compositions/components",
    "assets": "assets"
  }
}

完整細節請參閱 install-locations.md。

接入區塊

區塊為獨立合成——請在您的宿主 index.html 中透過 data-composition-src 引入:

<div
  data-composition-id="data-chart"
  data-composition-src="compositions/data-chart.html"
  data-start="2"
  data-duration="15"
  data-track-index="1"
  data-width="1920"
  data-height="1080"
></div>

關鍵屬性:

  • data-composition-src — 區塊 HTML 檔案的路徑
  • data-composition-id — 必須與區塊內部的 ID 相符
  • data-start — 區塊在宿主時間軸中出現的時間(秒)
  • data-duration — 區塊播放的長度
  • data-width / data-height — 區塊畫布尺寸
  • data-track-index — 圖層排序(數值越高越上層)

完整細節請參閱 wiring-blocks.md。

接入元件

元件為程式碼片段——將其 HTML 貼入合成標記、CSS 貼入樣式區塊、JS 貼入腳本區塊(如有):

  1. 讀取已安裝的檔案(例如 compositions/components/grain-overlay.html)
  2. 將 HTML 元素複製到合成的 <div data-composition-id="..."> 中
  3. 將 <style> 區塊複製到合成的樣式中
  4. 將任何 <script> 內容複製到合成的腳本中(放在時間軸程式碼之前)
  5. 若元件有暴露 GSAP 時間軸整合(請參閱片段中的註解區塊),將那些呼叫加入時間軸

完整細節請參閱 wiring-components.md。

探索

請將 CLI 作為主要的探索介面。先依意圖搜尋,而非瀏覽清單: registry 收錄的項目遠超過眼睛可逐一掃描的數量,因此列出清單並以名稱或標籤匹配是較慢的路徑,而且當作者用語與您不同時就會失敗。

# 對整個目錄進行排序,找出符合該段效果需求的項目
npx hyperframes catalog --query "reveal a headline one line at a time"
npx hyperframes add caption-clip-wipe

搜尋為本機處理,不會傳送任何資料。預設會根據與項目名稱、標題及描述共用的詞彙進行排序,因此只會找到重複您用詞的項目;加上 --on-device 則會根據語意排序(需一次性下載模型)。搭配 --json 時,信封會指示是哪個層級回應,請檢查此欄位而非假設排序已發生。

無論影片使用何種語言,請一律以英文查詢。 目錄本身是英文撰寫,且兩個層級皆以此方式索引(本機模型也僅支援英文)。以其他文字查詢將不會產生可搜尋的詞彙,因此什麼也找不到。在日文或中文專案中很容易犯此錯誤——簡報、字幕與旁白皆為該語言,查詢自然會跟隨:請用英文描述 動作,然後再用影片所需的語言撰寫畫面上的文字。若查詢返回 No searchable words in query,表示違反此規則,而非缺少元件,也不需要回報缺口。

可安裝性是排序後才套用,而非排序前:向量所攜帶但此 registry 無法提供的名稱會從結果中移除,並計入 dropped,因此非零的 dropped 表示兩者屬於不同世代。請參閱 /hyperframes-cli 了解離線層級、同意關卡,以及如何更新過期的索引。

若要瀏覽或篩選而非搜尋:

npx hyperframes catalog
npx hyperframes catalog --type block
npx hyperframes catalog --type component
npx hyperframes catalog --type block --tag social
npx hyperframes catalog --json
npx hyperframes catalog --human-friendly

一般表格與 --json 模式僅列出符合項目;可使用 hyperframes add <name> 安裝選中的名稱。--human-friendly 會開啟互動式選擇器,並立即安裝所選項目。在 CI 或代理工作流程中,建議使用 --json 搭配明確的 add 指令。

回報目錄缺少的項目

當搜尋結果中沒有任何項目符合需求時,請在徒手製作該效果前先說明:

npx hyperframes feedback --search-miss "<您執行的查詢>" --wanted "<您需要的效果>" --tier on-device

catalog --query 會自動為您印出此行(已預先填好),而 --json 會將其作為 report_gap 攜帶——因此當您決定沒有項目適用時,此資訊已準備就緒。

無論在哪個層級,只要結果中沒有項目符合需求,請一律回報。 無需等待 on-device 層級回答:它需要經同意下載 33 MB 的模型,因此代理執行若未明確選擇 on-device,則為 words 層級;將回報條件設為 on-device 會使幾乎所有回報都石沉大海。--tier 數值會附帶在內,以便日後區分詞彙失誤與語意失誤。請描述您想要的效果,而非想像中的項目名稱:傳回的是一份值得建構的效果清單,而回報一個不存在的項目名稱則毫無意義。這是唯一會將查詢送出到任何地方的路徑,正因如此,它是一個獨立、有意的指令,而非搜尋自動執行的動作。它不帶有任何評分,也永遠不會進入評分指標。

這是目錄需求的完整訊號。跳過它意味著您遇到的缺口只能透過安裝次數來猜測,而這無法看出根本無法安裝的效果。

若 CLI 無法連線到設定的 registry,可將原始 manifest 做為備用:

curl -s https://raw.githubusercontent.com/heygen-com/hyperframes/main/registry/registry.json

CLI 無法連線的 registry 不會讓探索的目錄變成空白:只要重新驗證失敗,之前取得的 manifest 仍會持續提供服務(超過 24 小時更新視窗),因此 catalog 和 catalog --query 仍會根據磁碟上的最後一份副本進行列表與排序。

add 仍然需要網路,即使是昨天才安裝過的項目。 僅有 manifest 會被快取;項目的實際檔案每次安裝時都會重新讀取。因此離線時您可以搜尋,也可以查看項目的內容,但安裝會在讀取檔案階段失敗。請勿向使用者承諾離線安裝。

每個項目的 registry-item.json 包含:名稱、類型、標題、描述、標籤、尺寸(僅區塊)、時間長度(僅區塊)以及檔案清單。

有關依類型和標籤篩選的詳細資訊,請參閱 discovery.md。

貢獻新的區塊或元件

若要編寫一個全新的 registry 項目(字幕樣式、VFX 區塊、轉場、下三分之一、或可重複使用的元件)並以 upstream PR 的形式提交,而非安裝既有項目,請遵循 contributing.md 中完整的構想 → 建立原型 → 建置 → 驗證 → 預覽 → 提交工作流程。可複製貼上的入門模板(字幕 / VFX / 元件 / registry-item.json)位於 templates.md。

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

Mandatory entry point: read this first for any request to make, create, edit, animate, or render a video, animation, or motion graphic, including a promo, explainer, captioned clip, title card, overlay, slideshow or interactive deck, Remotion port, or any HyperFrames HTML composition. Also use it to inspect, diagnose, validate, preview, publish, or batch-render an existing HyperFrames project. Inputs may be a website URL, GitHub PR, Figma design or URL, text or brief, existing footage, or music. It resumes project state, captures intent when applicable, selects and installs the owning workflow, and routes domain capabilities. HyperFrames is the default output framework unless the user explicitly chooses another framework for the deliverable or asks only to record a browser session.

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.

相關技能