Communitygithub.com

samyakiasonline-ctrl/hyperframe

一個簡短、以設計為主的動態圖形作品,利用動作本身傳達訊息 — 包含動態文字、數據計數、圖表/數據視覺化、標誌揭示/品牌鎖定、下方標題/呼籲/社交疊加、動態地圖、動態推文/新聞文章/標題、網頁/UI 動畫,或將真實影像的幾何形狀融合到圖表中。通常少於 10 秒(最多約 30 秒),無旁白或真人主角;輸出為 MP4 或透明疊加。較長/有旁白/多場景 → 請見 /general-video。不確定 → 請見 /hyperframes。

hyperframe 是什麼?

這個技能專門用於建立簡短、以設計為主、無旁白的動態圖形,核心概念是「動作即訊息」。它涵蓋多種類別,從純代碼/文字形式(如動態文字、數據計數、圖表)到需要搜尋素材的類型(如網頁動畫、新聞揭示、推文卡片)。此技能採用資產優先的工作流程:先決定資產策略並取得實際素材,再圍繞素材設計鏡頭,最後透過重複使用目錄功能進行組合。它支援 HyperFrames 外掛和獨立安裝,並在 macOS Apple Silicon 或 Linux x64 上運作,需要 Node.js 和 ffmpeg。整個流程從初始化、規劃、素材來源、設計、構建、驗證到最終的預覽與渲染,高度自動化,僅在使用者確認後才進行渲染。

相容平台~Claude Code~Codex CLI✓Cursor✓Gemini CLI
npx skills add https://github.com/samyakiasonline-ctrl/hyperframe/tree/HEAD/.claude/skills/motion-graphics

在你喜歡的 AI 中提問

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

說明文件

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

首先,保持此技能為最新 — 請在使用前與使用者確認: npx hyperframes skills update motion-graphics。若一切為最新,則快速執行無操作;否則,它會在使用前更新此技能及其依賴的核心領域技能。

figma 來源:如果要從 figma.com URL 構建標誌/素材/動畫,請先執行 /figma — 素材匯出、品牌代幣,以及若圖形是 Figma Motion 匯入,則執行 Motion→GSAP 轉換 — 然後從其輸出構建。請勿直接透過原始 MCP 工具驅動 Figma:這會跳過 SVG 清理、.media/manifest.jsonl 來源追蹤,以及品牌代幣 var() 繫結,因此後續的品牌變更無法在不完全重新匯入的情況下傳播。

motion-graphics — 調度入口

前門是 /hyperframes。 此技能負責製作簡短、以設計為主、無旁白的動態圖形(動作即訊息;約少於 10 秒,無畫外音)。任何較長、有旁白或多場景的內容 — 或不確定 → 請先閱讀 /hyperframes:意圖層負責所有路由決策。

此工作流程設計為自主執行 — 最多一個釐清問題(agents/director.md),然後在無需中間審查的情況下構建至驗證。意圖層(/hyperframes → references/intent-interview.md)會直接路由至此,無需執行形狀問題;故事板和輔助會話對這麼短的片段幫助不大。渲染仍由使用者控制:在檢查和證明快照通過後,開啟 Studio 預覽並從 ../hyperframes/references/brief-contract.md 詢問標準的「立即渲染,還是做什麼更改?」問題。當存在 BRIEF.md 時,請在導演問題之前閱讀它。

一個簡短、以設計為主的動態圖形。資產優先:在設計鏡頭之前,先決定資產策略並取得實際素材,然後圍繞你所擁有的素材設計鏡頭,最後透過重複使用目錄功能進行組合。所有成品都放入 PROJECT_DIR = videos/<project-name>/(在第 0 步建立);以下所有路徑都是相對於它。

階段執行主要成品詳細流程
initBashhyperframes.json第 0 步
plan子代理 — 決定搜尋? + 分類 + 資產策略shot-plan.json(草稿:類別、asset_needs 查詢、簡報)agents/director.md(第 1 部分)
source ◇Bash — media-use 解析(如 asset_needs 為空則跳過)assets/ + assets/index.mdphases/source/guide.md
design子代理 — 圍繞已解析素材的鏡頭設計shot-plan.json(最終版:區塊 + 佈局 + 動作 + 位置)agents/director.md(第 2 部分)
build子代理 — 優先重複使用組合compositions/index.htmlagents/builder.md
verifyBash — lint、check、證明快照;失敗時修復snapshots/contact-sheet.jpg第 5 步
approve開啟預覽;詢問渲染或更改;等待回答明確的渲染批准第 6 步
renderBash — hyperframes render(MP4,或使用 --format webm/mov 用於疊加)renders/video.mp4 或透明疊加第 6 步

◇ source 僅在選定的類別宣告有資產時執行。純代碼/文字類別(例如 kinetic-type、大多數 charts/stat)的 asset_needs: [],並會從規劃直接跳到設計。

類別 — 由搜尋決定分割

plan 的第一個決定是:這需要搜尋嗎? 這個分叉將類別分成兩組;然後選出具體類別 — 對於搜尋驅動的類別,是根據搜尋返回的內容類型來決定。每個類別都是一個 categories/<id>/module.md(其規劃 + 構建規則);共享的動作詞彙存在於 references/motion-vocabulary.md(→ hyperframes-animation 規則/藍圖 + 註冊表區塊)。

形式類別 — 無需搜尋;由使用者提供內容:

類別意圖依賴於
kinetic-type有力的一行/引文/標題,以動作為主的文字caption-* 區塊 + 動畫規則
stat單一英雄數字/計數 + 環apple-money-count / rules/{counting-dynamic-scale, stat-bars-and-fills}
charts來自數據的長條圖/折線圖/圓餅圖/競賽圖/百分比data-chart 區塊
logo-reveal標誌揭示/品牌鎖定(使用者標誌)logo-outro / rules/svg-path-draw
lower-thirds姓名/職稱列、呼籲、社交疊加caption-* + 註冊表疊加區塊
maps地理動作 — 突顯區域、連接地點、縮放到某個位置(向量圖層或烘焙底圖圖層)us-map / world-map 系列 + bake-basemap.mjs

搜尋驅動的類別 — 先搜尋,然後根據內容類型進行動畫處理(RWA 路徑):

返回的內容類別動畫
網頁/連結webpage網頁/UI 動畫(滾動、揭示、游標、呼籲)
新聞文章news標題揭示 + 來源卡片 + 關鍵事實呼籲
推文tweet動態推文卡片
圖片/實體asset-fusion素材的幾何形狀_變成_圖表(RWA 內嵌融合)

構建順序:一次一個,優先覆蓋(粗糙也可以)。kinetic-type 從原型移植;其餘類別依此類推。

先決條件

macOS Apple Silicon 或 Linux x64。系統工具:brew install node ffmpeg。執行一次 npx hyperframes doctor。macOS GPU 渲染:export PRODUCER_BROWSER_GPU_MODE=hardware。

可選金鑰(若未設定則使用本地回退)— 僅由透過 media-use 來源/生成素材的類別需要:

金鑰用途回退
GEMINI_API_KEY / GOOGLE_API_KEY圖片生成(media-use 解析)跳過生成 / 僅搜尋
(asset_scout / 搜尋提供者)webpage/news/tweet + asset-fusion 真實素材搜尋類別降級為無素材版本

流程

第 0 步 — 初始化

目前工作目錄是代理工作區根目錄;將所有成品寫入 PROJECT_DIR = videos/<project-name>/。<project-name>:使用使用者提供的目錄名稱,否則從意圖取一個短小的 kebab-case 名稱(<subject>-motion)。不要使用工作區的基本名稱或時間戳。

僅當 $PROJECT_DIR/hyperframes.json 不存在時:

PROJECT_DIR="${MOTION_GRAPHICS_DIR:-videos/<project-name>}"
mkdir -p "$(dirname "$PROJECT_DIR")"
npx hyperframes init "$PROJECT_DIR" --non-interactive --example=blank --skill=motion-graphics

init 會檢查已安裝的技能是否與 GitHub 上的最新版本一致,並在必要時更新全域集合。

約束: 絕對不要在 workspace 根目錄執行 hyperframes init;絕對不要在 PROJECT_DIR 內嵌套另一個 hyperframes/;每個 Bash 命令(主代理 + 子代理)都是一個 (cd "$PROJECT_DIR" && ...) 子 shell — 絕不使用裸 cd。

第 1 步 — 規劃(子代理:導演第 1 部分)

調度一個子代理。提示 = 完整的 agents/director.md + ## Dispatch context(SKILL_DIR / PROJECT_DIR / 使用者請求 / Schema: <SKILL_DIR>/references/shot-plan-ir.md)。它必須:

  1. 決定:這需要搜尋嗎?(第一個分叉)
    • 否 → 選擇一個形式類別(kinetic-type / stat / charts / logo-reveal / lower-thirds / maps);內容由使用者提供;asset_needs: []。
    • 是 → 將搜尋計畫發射到 asset_needs[](新聞 / 網頁 / 推文 / 圖片;兩極查詢)。具體的搜尋驅動類別(webpage / news / tweet / asset-fusion)將由第 2 步返回的內容類型確認,並在第 3 步最終確定。
  2. 撰寫草稿 shot-plan.json(信封 + 選定的形式類別 或 搜尋意圖 + asset_needs + 一段鏡頭簡報)。架構:references/shot-plan-ir.md。

驗證:[ -s "$PROJECT_DIR/shot-plan.json" ] && echo ok || echo missing。

第 2 步 — 素材來源 ◇(Bash:media-use,條件性)

如果 shot-plan.json.asset_needs 非空,則解析素材(搜尋/生成/擷取 → 凍結的專案本地路徑 + 分類帳)。請參閱 phases/source/guide.md(包裝了 media-use resolve;搜尋驅動類別使用新聞/網頁/推文/圖片搜尋)。如果 asset_needs 為空,則跳到第 3 步。

優雅降級:如果搜尋/提供者不可用,則類別回退到無素材版本(在 context.log 中記錄)。

第 3 步 — 設計(子代理:導演第 2 部分)

調度一個子代理(提示 = agents/director.md 第 2 部分 + 調度上下文,包括已解析的 assets/index.md(如果第 2 步已執行)+ catalog-map.md)。它設計鏡頭圍繞可用的素材:選擇目錄區塊 + hyperframes-animation 規則/藍圖、佈局、動作、節拍,以及(對於 asset-fusion)element_positions + 滴管調色板。最終確定 shot-plan.json(content.block + content.customize + 每個類別的內容)。

第 4 步 — 構建(子代理:建構者,優先重複使用)

將共享的動作原理包含在建構者的調度上下文中。對於 charts 和 stat,也包含數據動態。建構者在撰寫時間軸之前閱讀這些指南。

調度一個子代理。提示 = 完整的 agents/builder.md + 調度上下文(shot-plan.json、catalog-map.md、類別的 module.md、references/motion-vocabulary.md、references/builder-contract.md)。優先重複使用:npx hyperframes add <block> + 就地自訂;僅手寫差距 + 素材融合功能。輸出 compositions/index.html,遵守 HF 合約(window.__timelines 上的暫停 GSAP 時間軸、class="clip" + 穩定 ID、tl.seek(0)、確定性)。

第 5 步 — 驗證(Bash → 失敗時修復子代理)

(cd "$PROJECT_DIR" && npx hyperframes check .)
(cd "$PROJECT_DIR" && npx hyperframes snapshot --at <proof-times>)

選擇能顯示初始狀態、招牌動作和最終停留狀態的證明時間點。在繼續之前檢查生成的聯絡表或快照表。在 lint、check 或快照失敗時,調度修復子代理(agents/finalize.md)進行一次就地修復,然後重新執行失敗的關卡。切勿為了隱藏缺陷而更改固定時長。

第 6 步 — 批准和渲染(Bash)

開啟 Studio,然後問一個問題:「立即渲染,還是做什麼更改?」在修改後,返回同一個關卡:

(cd "$PROJECT_DIR" && npx hyperframes preview --background)

僅在收到明確的渲染回答後才進行渲染:

(cd "$PROJECT_DIR" && npx hyperframes render . --skill=motion-graphics -q high -o ./renders/video.mp4)
# 透明疊加變體:--format webm(或 mov)

驗證輸出是否存在、非空且具有預期時長。最終交接時需命名成品、實際時長、合成或影格 ID、證明時間點,以及已檢查的聯絡表或快照表。標誌位存在於 /hyperframes-cli → references/preview-render.md。

恢復表

狀態從何處繼續
沒有 shot-plan.json第 1 步(規劃)
shot-plan.json 有 asset_needs,但沒有 assets/第 2 步(素材來源)
shot-plan.json 已最終確定,但沒有 compositions/index.html第 3/4 步(設計+構建)
compositions/index.html 存在,但證明快照不存在第 5 步(驗證)
檢查和證明快照通過,但沒有批准的渲染第 6 步(批准)
已批准的渲染存在驗證輸出,然後報告

設計備註(維護者 — 執行時不閱讀此處)

  • 資產優先原則

…(其餘內容因原文截斷而省略)

Individual skills in this repo

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

samyakiasonline-ctrl/hyperframe

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.

samyakiasonline-ctrl/hyperframe

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.

samyakiasonline-ctrl/hyperframe

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.

samyakiasonline-ctrl/hyperframe

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.

samyakiasonline-ctrl/hyperframe

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.

samyakiasonline-ctrl/hyperframe

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

samyakiasonline-ctrl/hyperframe

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.

samyakiasonline-ctrl/hyperframe

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.

samyakiasonline-ctrl/hyperframe

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

samyakiasonline-ctrl/hyperframe

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.

samyakiasonline-ctrl/hyperframe

Search, install, and wire registry blocks and components into HyperFrames compositions. Use BEFORE hand-building any named visual — whenever a brief, a user, or a storyboard names a look, effect, treatment, or transition such as CRT scanlines, glitch, chromatic aberration, film grain, a shimmer sweep, a chart, a code or terminal window, a map, or a confetti burst — because roughly 400 hosted items already cover many of them and the search ranks all of them with nothing installed, no project, and no account. Also use when running hyperframes add or hyperframes catalog, installing one item or every block matching a tag, wiring an installed item into index.html, or working with hyperframes.json. Covers discovery, install locations, block sub-composition wiring, component snippet merging, and authoring a new block or component to contribute upstream (idea → scaffold → validate → PR).

samyakiasonline-ctrl/hyperframe

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.

samyakiasonline-ctrl/hyperframe

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

samyakiasonline-ctrl/hyperframe

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.

samyakiasonline-ctrl/hyperframe

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.

samyakiasonline-ctrl/hyperframe

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.

samyakiasonline-ctrl/hyperframe

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.

samyakiasonline-ctrl/hyperframe

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.

samyakiasonline-ctrl/hyperframe

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.

samyakiasonline-ctrl/hyperframe

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.

相關技能