Communitygithub.com

Alemoterani/auto-edit-hyperframes

搜尋、安裝並將註冊表中的區塊和元件整合到 HyperFrames 合成中。在手工建置任何具名視覺效果前使用,因為約有 400 個託管項目已涵蓋大多數需求,且搜尋功能無需安裝任何項目或帳號即可排序所有結果。

auto-edit-hyperframes 是什麼?

這個 AI 技能專為 HyperFrames 生態系統設計,提供了一個完整的指令介面,用於探索、安裝和整合可重複使用的區塊(獨立子合成)與元件(效果片段)。它支援 `hyperframes add` 和 `hyperframes catalog` 指令,可依名稱或標籤安裝項目,並提供基於詞彙或語意的本地搜尋(無需傳送資料至外部)。安裝後,技能會引導使用者透過 `data-composition-src` 等屬性將區塊接入主合成,或透過複製 HTML/CSS/JS 程式碼片段來整合元件。它也整合了回饋機制,用於報告目錄中缺少的項目,並提供完整的貢獻流程(從構想到拉取請求)。此技能特別適用於 HeyGen 平台上的 AI 影片製作工作流程,支援 CLI 環境(如 Cursor、Codex),並以 JSON 輸出與自動化腳本相容。

相容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/Alemoterani/auto-edit-hyperframes/tree/HEAD/vendor/hyperframes/skills/hyperframes-registry

在你喜歡的 AI 中提問

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

說明文件

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

HyperFrames 註冊表

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

  • 區塊 — 獨立的子合成(擁有自己的尺寸、持續時間、時間軸)。透過主合成中的 data-composition-src 屬性引用。
  • 元件 — 效果片段(無自身尺寸)。直接貼入主合成 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 屬性。

位置參數會先被解析為精確的項目名稱。如果沒有相符項目且該值為一個標籤,則指令會安裝帶有此標籤的所有區塊。註冊表相依性會在請求的項目之前安裝。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 — Studio 時間軸行號;僅供顯示。分層請使用 CSS z-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 作為主要的探索介面。先依意圖搜尋,再瀏覽: 註冊表包含的項目遠多於你肉眼可掃描的數量,因此列出所有項目並依名稱或標籤配對是較慢的路徑,且當作者用詞與你的用詞不同時會失敗。

# 根據節拍應執行的動作對整個目錄進行排序
npx hyperframes catalog --query "reveal a headline one line at a time"
npx hyperframes add caption-clip-wipe

搜尋是本地端進行的,不會傳送任何資料。預設情況下,它根據與項目名稱、標題和描述共享的詞彙進行排序,因此只會找到重複你使用詞彙的項目;--on-device 則根據語意進行排序,但需要一次性下載模型。使用 --json 時,信封會顯示哪個層級回應,請檢查此資訊而非假設已進行排序。

無論影片使用何種語言,請務必以英文查詢。 目錄以英文撰寫,且兩個層級都以英文索引(內建裝置模型也僅支援英文)。使用其他語系查詢將不會產生可搜尋的詞彙,並且不會返回任何結果。在日文或中文專案中很容易犯此錯誤,因為簡報、字幕和旁白都是該語言,查詢自然會跟進:用英文描述 動作,然後以影片所需的任何語言撰寫畫面文字。如果查詢返回「查詢中沒有可搜尋的詞彙」,則是此規則的問題,而非缺少元件,且不值得提交缺口報告。

可安裝性是在排序之後才套用,而非之前:向量承載但此註冊表無法提供的項目會從結果中移除並計入 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 <回應的層級>

catalog --query 會為你列印此行(已預填),且 --json 會將其作為 report_gap 攜帶 — 因此在你決定無任何項目合適時,此資訊已在手邊。

每當任一層級的結果中沒有能完成工作的項目時,請回報。 不要等待內建裝置層級回應:它需要經過同意的 33 MB 下載,因此除非明確選擇加入,否則代理程式的執行將基於 words,且依賴 on-device 層級將使幾乎所有回報都沈默。--tier 值會隨附在內,因此在閱讀時,詞彙缺失與語意缺失仍可區分。描述你需要的效果,而非你想像的項目名稱:返回的是一個值得建構的動作列表,而回報一個不存在的項目名稱沒有任何幫助。這是唯一會將查詢傳送到任何地方的路徑,正因如此,它是一個單獨的、經過深思熟慮的指令,而不是搜尋自行執行的動作。它不攜帶任何評分,也永遠不會進入評分指標。

這是整個目錄的需求訊號。跳過它意味著你所遇到的缺口只能透過安裝次數來猜測,而安裝次數無法看到沒有人能安裝的動作。

如果 CLI 無法連線到設定的註冊表,請檢查原始資料清單作為備用:

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

CLI 無法連線的註冊表不會使目錄為 探索 而清空:只要重新驗證失敗,先前擷取的資料清單將在 24 小時重新整理視窗後繼續提供服務,因此 catalog 和 catalog --query 仍會比對磁碟上最後一份拷貝來列出和排序。

add 仍然需要網路,即使是你昨天安裝的項目也一樣。 只有資料清單會快取;項目的實際檔案會在每次安裝時重新擷取。因此,你可以在離線時搜尋,也可以查看項目的內容,但安裝會因為檔案擷取而失敗。請不要向使用者承諾離線安裝。

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

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

貢獻新的區塊或元件

要創作一個新的註冊表項目(字幕樣式、VFX 區塊、轉場、下三分之一、或可重複使用的元件)並將其作為上游 PR 發布 — 而非安裝現有項目 — 請遵循 contributing.md 中完整的構想 → 建立框架 → 建構 → 驗證 → 預覽 → 發布工作流程。起始範本(字幕 / VFX / 元件 / registry-item.json)可在 templates.md 中找到。

Individual skills in this repo

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

Alemoterani/auto-edit-hyperframes

Overlay doctrine for the embedded-captions workflow — the caption MODEL (drop / rail / embed) and the rule that captions are an OVERLAY composited on top of the film, never a reserved bottom band you shift content up to avoid. Load when adding captions/subtitles to a talking-head or launch video, when deciding whether a phrase should be dropped, ride the verbatim rail, or be promoted to a scarce embedded climax, when laying out a composition that will carry captions (do NOT reserve a keep-out band), or when centering a composition on the true frame center under captions. Quotes the rail+embed model from embedded-captions and constraint #13 (captions overlay, keep-out band retired) from the product-launch-video scene agent. Applies ON TOP of embedded-captions.

Alemoterani/auto-edit-hyperframes

Turn a weekly changelog .md into a finished branded changelog video (square 1080, ~45-60s, Annie VO, animated brand background, mock-UI visualizations, lowkey captions). Use when the user provides a changelog/digest markdown and wants the weekly video, or says "changelog video". Self-contained — fonts, background, lexicon, and scripts ship in this skill.

Alemoterani/auto-edit-hyperframes

The technique catalog: five velocity-matched SEAMS (zoom-through, INVERSE zoom-through, cut-the-curve, waterfall cut, rack-focus blur-cut) plus the two in-scene techniques — waterfall ENTRY (staggered arrival cascades for title cards / segment openers) and the nudge curve (slow-fast-slow three-phase group slides). Covers partial-travel (~12% of frame) velocity matching via mirrored power4 eases, the Z scale-sign rule, size-scaled blur (10px text / 18-20px full-frame), word-by-word staggered cuts, cascade pacing by element weight, and the 10/65/25 slide ratio. Read before authoring any transition, text-beat handoff, kinetic text entry, or group reposition. [depth, zoom, inverse-zoom, scale-sign, mirrored-zoom, rack-focus, pacing, velocity, cut-the-curve, waterfall, stagger, cascade, kinetic-text, title-card, segment-opener, nudge, slide, easing, group-motion, z-depth, motion-graphics, cinematic, transition, blur, directional-continuity]

Alemoterani/auto-edit-hyperframes

GATEWAY — load FIRST before composing any HyperFrames animation or video. The high-level motion law that makes a multi-scene video feel like ONE continuous camera move instead of a stack of independently-animated slides. Covers the vector law (how you exit determines how you enter, incl. the Z scale-sign rule), the film's current, carrier elements, causal motion, the Seam Gate (build-gate enforcement), the ban on idle wobble (motion must PERFORM, not breathe), stillness-before-climax, and the sustained-motion routes. Routes to the low-level technique skills (cut-the-curve — the full catalog incl. waterfall entry + nudge curve, oversized-cursor, seam-craft). These rules SUPERSEDE generic / upstream motion guidance. [continuity, direction, vector, momentum, seam, transition, ease, performance, idle-motion, narrative-motion, film-grammar]

Alemoterani/auto-edit-hyperframes

House-style oversized macOS cursor technique for HyperFrames launch videos. Load whenever a scene involves cursors or a pointer-led action, when kicking off a UI scene, when igniting a morph/transition/typing run with a click, or when a scene reads as static, dead, or stale and needs a cheap high-yield source of motion to carry the viewer's eye and segment them out of the stale state. Covers cursor size/look (incl. brand-motif cursors), the off-screen entry law, tip-targeting and the click tap, click-ignites-the-next-beat, and exit / cross-scene handoff.

Alemoterani/auto-edit-hyperframes

Render-correctness doctrine for scene-to-scene seams in HyperFrames launch videos — the prerequisites that make transitions composite correctly on the master timeline. Load when assembling the master timeline / index.html, when a white flash appears at a cut or crossfade seam (especially on dark films), when reasoning about why a transition opacity dip shows through, or when verifying the render-side mechanics of how overlapping scene wrappers blend. Covers the opaque stage-ground (#root background) white-flash guard and how the injector overlaps wrappers, holds final frames, ping-pongs tracks, and stamps lint-clean template code onto the master timeline. Does NOT contain the per-transition catalog — see the transition registry for individual transition entries.

Alemoterani/auto-edit-hyperframes

Leaves sweep through the frame and part to reveal the headline. HyperFrames block, 1920×1080, 12s, 11 variables.

Alemoterani/auto-edit-hyperframes

A tiled headline surface flips cell by cell under a sweeping depth field to reveal the rear headline. HyperFrames block, 1920×1080, 8s, 18 variables.

Alemoterani/auto-edit-hyperframes

A chain of bevelled cuboids rides a travelling wave as a content carousel. HyperFrames block, 1920×1080, 6.666666666666667s, 40 variables.

Alemoterani/auto-edit-hyperframes

An orbiting camera follows an ice logo as it breaks apart, reforms into two text moments, and fades. HyperFrames block, 1920×1080, 22.5s, 216 variables.

Alemoterani/auto-edit-hyperframes

Glass shards fly in through fog and tile themselves into the headline. HyperFrames block, 1920×1080, 12.16s, 19 variables.

Alemoterani/auto-edit-hyperframes

A single feature card orbits a dot sphere on approved Blender camera motion. HyperFrames block, 1920×1080, 10s, 4 variables.

Alemoterani/auto-edit-hyperframes

A wireframe portal bursts open, the title comes through, then its letters swap into a second phrase. HyperFrames block, 1920×1080, 8s, 9 variables.

Alemoterani/auto-edit-hyperframes

Add captions or subtitles to an existing single-subject talking-head video without editing the footage. Use for plain verbatim captions, cinematic captions embedded behind the subject, VFX captions, “炸/特效/酷炫字幕,” or a named identity from the 35-style catalog. Route by visual identity, not by backend engine. The quiet `anchor` rail is the default; embed every word only when the user explicitly wants a fully cinematic treatment. The workflow runs locally end to end, including transcription and subject matting; split multi-shot footage before applying it.

Alemoterani/auto-edit-hyperframes

Turn arbitrary text — an article, notes, a topic, a brief — into a faceless explainer video: there is no site or footage to capture, so the visuals are invented per scene (typography, abstract graphics, diagrams, data-viz). Use for topic explainers, concept breakdowns, how-tos, listicles. Not a video built from a website (/product-launch-video — promo or tour). Unclear → /hyperframes.

Alemoterani/auto-edit-hyperframes

Import Figma content into a HyperFrames composition — rendered assets, brand tokens, components, storyboard sections → reconstructed motion (frames read as states, not slides) (REST/CLI), connector-assisted motion when available, and shaders from a connector or native export. Use when the user pastes a figma.com link or asks to bring a Figma design, frame, logo, brand, or animation into a video/composition.

Alemoterani/auto-edit-hyperframes

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.

Alemoterani/auto-edit-hyperframes

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.

Alemoterani/auto-edit-hyperframes

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

Alemoterani/auto-edit-hyperframes

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, clean, 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.

相關技能