Communitygithub.com

vijayahnlu/reels

搜尋、安裝並將註冊表(Registry)區塊與元件接入 HyperFrames 合成。在親手構建任何具名視覺效果前,應優先使用此技能。

reels 是什麼?

此技能為 HyperFrames 使用者提供了一個統一的註冊表介面,用於探索和安裝可重複使用的區塊(Block,獨立子合成)與元件(Component,效果片段)。主要功能包括:透過 `hyperframes add` 指令安裝項目、於 `index.html` 中接入區塊與元件、以及使用 `hyperframes catalog` 進行智慧搜尋。搜尋引擎支援英文字詞匹配及本機語意搜尋(需下載模型),確保快速找到所需效果。若目錄無符合項目,可透過 `hyperframes feedback` 報告需求缺口,作為開發回饋。貢獻者可遵循「構想→設計藍圖→建置→驗證→PR」流程來新增自訂區塊或元件,並透過內建指令自動化安裝與路徑配置。

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

在你喜歡的 AI 中提問

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

說明文件

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

HyperFrames 註冊表

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

  • 區塊(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 屬性。

位置參數首先解析為確切項目名稱。若無相符項目且該值為標籤,則指令會安裝所有帶有此標籤的區塊。註冊表依賴項會在請求的項目之前安裝。hyperframes add 僅適用於區塊與元件;若需範例,請改用 hyperframes init <目錄> --example <名稱>。

安裝位置

區塊預設安裝至 compositions/<名稱>.html。元件預設安裝至 compositions/components/<名稱>.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 "在一次中逐行揭示標題"
npx hyperframes add caption-clip-wipe

搜尋為本地端執行,不發送任何資料。預設情況下,它根據與項目名稱、標題及描述共享的詞彙進行排序,因此只會找到重複使用您詞彙的項目;--on-device 則根據語意進行排序(需一次性下載模型)。使用 --json 時,信封會標示回答的層級,請檢查該層級而非假設已進行排序。

無論影片語言為何,請務必使用英文查詢。 目錄是以英文撰寫,且兩個層級均據此建立索引(裝置端模型也僅支援英文)。使用其他語言的查詢不會產生可搜尋的詞彙,且不會回傳任何結果。在日文或中文專案中很容易犯此錯誤—簡報、字幕及旁白均為該語言,而查詢自然會跟隨:請用英文描述 動態,再用影片所需的語言撰寫螢幕文字。若查詢回傳 No searchable words in query,即為此規則所致,而非缺少元件,亦不值得提交缺口報告。

可安裝性是在排序後才套用,而非之前:向量所承載但此註冊表無法提供的名稱會從結果中移除,並計入 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 <名稱> 安裝選定的項目。--human-friendly 會開啟互動式選擇器並立即安裝所選項目。在 CI 或代理工作流程中,建議使用 --json 後再接顯式的 add。

回報目錄中缺少的項目

當搜尋結果中無任何項目符合需求時,請在親手製作效果前先提出:

npx hyperframes feedback --search-miss "<您執行的查詢>" --wanted "<您需要的效果>" --tier <回答的層級>

catalog --query 會為您預先填入此行,且 --json 會將其作為 report_gap 攜帶—因此在您決定無任何項目合適的當下,它已就緒。

無論結果中無任何項目符合需求時,請在任一層級上回報。 無需等待裝置端層級回答:它需要經同意後下載 33 MB,因此若未明確選擇加入,代理執行將基於 words 層級,而僅等待裝置端層級會使幾乎所有報告都保持靜默。--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 9 individual skills — each has its own dedicated page.

vijayahnlu/reels

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.

vijayahnlu/reels

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

vijayahnlu/reels

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.

vijayahnlu/reels

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.

vijayahnlu/reels

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

vijayahnlu/reels

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.

vijayahnlu/reels

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.

vijayahnlu/reels

Use when working with a person on a HyperFrames project in Studio: first, whether their message asks for a change at all (questions, loose ideas and "don't change anything" get an answer and a plan, not an edit); for a new film, the plan, storyboard and build order that the HyperFrames launch films follow; and 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`.

vijayahnlu/reels

Agent Media OS for 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. When the host app provides its own music or sound-effect tools, use those for music and sound effects; `resolve --type bgm|sfx` needs the heygen CLI. When `HEYGEN_API_BASE` is set, HeyGen calls go through that host with no CLI sign-in.

相關技能