Communitygithub.com

laviedezidane/hyperframes-skill

搜尋、安裝並將註冊表區塊與元件接入 HyperFrames 合成檔案。在親手建立任何具名視覺效果前使用——無論是簡報、使用者或腳本中提到的外觀、特效、處理或轉場(如 CRT 掃描線、故障效果、色差、底片顆粒、微光掃掠、圖表、程式碼或終端機視窗、地圖、或五彩紙屑爆裂),因為約 400 個託管項目已涵蓋多數需求,且搜尋功能無需安裝任何項目、無需專案或帳號即可排序所有項目。同樣適用於執行 `hyperframes add` 或 `hyperframes catalog`、安裝單一項目或符合標籤的所有區塊、將已安裝項目接入 `index.html`,或處理 `hyperframes.json`。涵蓋探索、安裝位置、區塊子合成接入、元件片段合併,以及編寫新區塊或元件以向上游貢獻(構想 → 原型 → 驗證 → PR)。

hyperframes-skill 是什麼?

此 AI 技能專為 HyperFrames 生態系設計,主要用於探索、安裝並配置其註冊表中的區塊(獨立子合成)與元件(特效片段)。技能的核心價值在於大幅減少從零建構常見視覺效果(如 CRT 掃描線、故障特效、圖表動畫等)的需求,開發者可透過自然語言或關鍵字查詢,直接從近 400 個預製項目中找到合適的素材。支援的作業包括透過 `hyperframes add` 安裝項目、使用 `hyperframes catalog` 進行智慧搜尋,以及將已安裝的區塊或元件透過 `data-composition-src` 屬性或直接複製 HTML/CSS/JS 片段,無縫接入使用者的 HyperFrames 合成專案。技能特別強調本地端搜尋(無資料外洩),並提供 `feedback` 指令來回報目錄中缺少的視覺效果,作為目錄更新的需求訊號。此外,技能也引導使用者遵循完整的貢獻流程,將自製的區塊或元件提交至上游倉庫。

相容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/laviedezidane/hyperframes-skill/tree/HEAD/.agents/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 時,信封層會指出是哪個層級回應,請檢查此資訊而非假設已進行排序。

無論影片使用何種語言,請一律使用英文查詢。 目錄以英文編寫,且兩個層級皆以英文索引(裝置端模型也僅支援英文)。使用其他語言的查詢無法產生可搜尋的詞彙,且不會傳回任何結果。在日本或中文專案中容易犯此錯誤,因為簡報、字幕和旁白均使用該語言,查詢自然會跟隨:請用英文描述動作,再將螢幕上的文字以影片所需的語言撰寫。若查詢傳回 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 或 AI 代理工作流程中,建議優先使用 --json 後接明確的 add。

回報目錄中缺少的項目

當搜尋結果中沒有任何項目符合需求時,請在親手製作該動作前先提出回報:

npx hyperframes feedback --search-miss "<您執行的查詢>" --wanted "<您需要的動作>" --tier <回應的層級>

catalog --query 會預先填入此指令行,而 --json 則會將其作為 report_gap 攜帶——因此在您決定沒有任何結果符合需求時,這些資訊已經在手。

當無論是哪個層級,結果中都沒有符合需求的項目時,請務必回報。 無需等待裝置端層級回應:它需要經過同意的 33 MB 下載,因此 AI 代理執行若未明確選擇加入,則預設使用 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.

laviedezidane/hyperframes-skill

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.

laviedezidane/hyperframes-skill

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.

laviedezidane/hyperframes-skill

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.

laviedezidane/hyperframes-skill

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.

laviedezidane/hyperframes-skill

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.

laviedezidane/hyperframes-skill

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

laviedezidane/hyperframes-skill

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.

laviedezidane/hyperframes-skill

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.

laviedezidane/hyperframes-skill

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

laviedezidane/hyperframes-skill

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.

laviedezidane/hyperframes-skill

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.

laviedezidane/hyperframes-skill

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

laviedezidane/hyperframes-skill

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.

laviedezidane/hyperframes-skill

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.

laviedezidane/hyperframes-skill

Turn a music track (an audio file, a video to pull audio from, or a track generated from a mood brief) into a beat-synced video — lyric video, slideshow, or kinetic promo. The music drives all pacing; any user-supplied images/videos are cut onto the same beat grid, and a complete video needs zero assets. Narrated pieces → the input-matched workflow (see /hyperframes). Unclear → /hyperframes.

laviedezidane/hyperframes-skill

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.

laviedezidane/hyperframes-skill

Turn a GitHub pull request (a PR URL, owner/repo#N, or 'this PR' in a checked-out repo) into a code-change explainer video — changelog, feature reveal, fix, or refactor walkthrough built from the diff, commits, and files: the input is a code change, not a website. Not a product promo (/product-launch-video) or a no-PR topic explainer (/faceless-explainer). Unclear → /hyperframes.

laviedezidane/hyperframes-skill

Port an existing Remotion (React) composition''s source to HyperFrames HTML. Use ONLY on an explicit ask to port/convert/migrate/translate a Remotion source — one-way, Remotion-only. A passing Remotion mention, reference-only code, or "make something like my Remotion video" is a fresh build (/general-video). Unclear → /hyperframes.

laviedezidane/hyperframes-skill

Author a HyperFrames slideshow — a presentation, pitch deck, or interactive deck with discrete slides, fragment reveals, branching, hotspot navigation, and built-in presenter mode with speaker notes; also converts an existing page into a deck. Output is a navigable deck, not a rendered MP4. If the user didn't explicitly ask for a slideshow, confirm before authoring. Unclear → /hyperframes.

laviedezidane/hyperframes-skill

Package an existing talking-head / interview / podcast video with timed, designed GRAPHIC OVERLAY cards — kinetic titles, lower-thirds, data callouts, quotes, side panels, picture-in-picture — synced to the transcript, on a 16:9 / 9:16 / 4:5 canvas of your choice; the clip plays untouched underneath. Trigger on "graphic overlays", "on-screen graphics", "package / dress up my video". Not plain subtitles (/embedded-captions). Unclear → /hyperframes.

相關技能