Communitygithub.com

sandeshrajbhandari/hyperframes-instruct

搜尋、安裝並將 registry 區塊與元件接入 HyperFrames 組合中。每當有簡報、使用者或故事板指定某種視覺效果(如 CRT 掃描線、故障效果、色像差、底片顆粒、閃爍掃光、圖表、程式碼或終端機視窗、地圖或五彩紙屑爆發)時,請在親手建構任何具名視覺效果前使用此技能,因為約有 400 個託管項目已涵蓋其中大部分,且搜尋會對所有項目進行排序,無需任何安裝、專案或帳號。亦可在執行 hyperframes add 或 hyperframes catalog、安裝單一項目或符合標籤的所有區塊、將已安裝項目接入 index.html,或操作 hyperframes.json 時使用。涵蓋探索、安裝位置、區塊子組合接入、元件程式碼片段合併,以及編寫新區塊或元件以貢獻上游(構想 → 建立模板 → 驗證 → PR)。

hyperframes-instruct 是什麼?

此技能是 HyperFrames 生態系統的核心,專為快速探索與安裝可重複使用的區塊與元件而設計。它提供了一個 CLI 工具,讓開發者能透過 `hyperframes add <name>` 安裝子組合與效果片段,大幅減少從零開始建構視覺效果的工作量。技能支援多種搜尋方式:你可以依據關鍵字排序整個目錄、依據類型(區塊或元件)或標籤篩選,甚至使用互動式選取器。當搜尋結果不符合需求時,系統會提示你提交反饋,以幫助改進目錄。安裝後的區塊需要透過 `data-composition-src` 等屬性接入主組合,而元件則需手動合併其 HTML、CSS 與 JavaScript 程式碼。此技能適用於 Claude Code、Cursor 及任何支援 CLI 命令的 AI 代理平台,旨在加速多媒體或動態組合的開發流程。

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

在你喜歡的 AI 中提問

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

說明文件

**外掛安裝:**在執行設定或 freshness 指令之前,若此技能位於 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 時,封套會包含是哪個層級回應的,請檢查此欄位,而非假設排序一定發生。

**無論影片使用何種語言,始終使用英文查詢。**目錄以英文撰寫,且兩個層級都據此建立索引(on-device 模型也是僅限英文)。使用其他文字系統的查詢不會產生可搜尋的詞彙,也不會返回任何結果。這在日文或中文專案中很容易出錯,因為簡報、字幕和旁白都是該語言,查詢自然會跟隨:用英文描述 動作,然後用影片所需的任何語言編寫螢幕上的文字。若查詢返回 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 <name> 安裝選取的名稱。--human-friendly 會開啟互動式選取器並立即安裝所選項目。在 CI 或代理工作流程中,建議使用 --json 後接明確的 add。

回報目錄中沒有的項目

當搜尋結果中沒有任何項目能完成工作時,請在親自編寫效果之前先這麼做:

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

catalog --query 會自動為你印出此行,且 --json 會將其攜帶為 report_gap——因此在你決定沒有任何項目符合時,它已經準備好了。

**當結果中沒有任何項目能完成工作時,請在任一層級上都進行回報。**不要等到 on-device 層級回應:它需要一個經同意的 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 11 individual skills — each has its own dedicated page.

sandeshrajbhandari/hyperframes-instruct

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.

sandeshrajbhandari/hyperframes-instruct

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.

sandeshrajbhandari/hyperframes-instruct

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

sandeshrajbhandari/hyperframes-instruct

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.

sandeshrajbhandari/hyperframes-instruct

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.

sandeshrajbhandari/hyperframes-instruct

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

sandeshrajbhandari/hyperframes-instruct

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.

sandeshrajbhandari/hyperframes-instruct

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.

sandeshrajbhandari/hyperframes-instruct

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

sandeshrajbhandari/hyperframes-instruct

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.

sandeshrajbhandari/hyperframes-instruct

A short, design-led motion graphic where motion is the message — kinetic typography, stat count-up, chart/data-viz hit, logo sting / brand lockup, lower-third / callout / social overlay, animated map (highlight regions, connect places, zoom to a location), animated tweet / news-article / headline, webpage / UI animation (scroll, cursor, callouts), or fusing a real image's geometry into a chart. Usually under 10s (up to ~30s), no narration or live-action subject; renders to MP4 or transparent overlay. Longer / narrated / multi-scene → /general-video. Unclear → /hyperframes.

相關技能