Communitygithub.com

sandeshrajbhandari/hyperframes-instruct

專為設計主導的簡短動態圖形而生,透過動畫傳達訊息——例如動態字體、數據統計動畫、商標動畫、地圖動畫、社群媒體疊加等,通常少於10秒,無旁白。

hyperframes-instruct 是什麼?

這是一個專門用於生成「設計主導、無旁白」的簡短動態圖形(motion graphic)的 AI Agent 技能,主要為 HyperFrames 平台設計。這類動畫的長度通常在10秒以內(最長約30秒),以動畫本身作為主要溝通媒介,涵蓋的類型包括動態字體(kinetic typography)、數字統計動畫(stat count-up)、圖表或資料視覺化(chart/data-viz hit)、商標動畫與品牌鎖定(logo sting/brand lockup)、下方三分之一字卡/社交媒體疊加(lower-third / social overlay)、動態地圖(highlight regions, connect places, zoom to a location)、動態推文或新聞頭條,以及網頁或 UI 動畫(如滾動、游標、標註)。此技能支援 macOS Apple Silicon 與 Linux x64 平台,並需要 Node.js 與 ffmpeg。其工作流程高度自動化:從初始化、規劃(包含資產策略與分類)、素材來源(條件性執行)、設計、建置、驗證(包含 lint、檢查與快照),到最後的渲染與輸出,全程由 AI 自主驅動,僅在使用者確認渲染時才會介入。對於較長、有旁白或多場景的專案,此技能會引導使用者至 `/general-video` 處理。

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

在你喜歡的 AI 中提問

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

說明文件

插件安裝: 在執行 setup 或 freshness 指令之前,如果此技能位於 HyperFrames 插件內,請遵循 插件執行規則。獨立安裝則保留底下的更新說明。

首先,保持此技能為最新版本 —— 請在使用者確認後執行: npx hyperframes skills update motion-graphics。如果一切已是最新,此指令會快速無操作;否則它會更新此技能以及它依賴的核心領域技能,然後再依賴它們。

figma 來源:如果要建置的商標/素材/動畫來自 figma.com 網址,請先執行 /figma —— 素材匯出、品牌 token、以及 Motion→GSAP 轉換(如果圖形是 Figma Motion 匯入),然後再根據其輸出進行建置。不要直接透過原始 MCP 工具驅動 Figma:這會跳過 SVG 清理、.media/manifest.jsonl 出處記錄、以及品牌 token 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 — 媒體使用解析(如果 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。

選用金鑰(如果未設定則使用本地備援)—— 僅被那些透過媒體使用來產生/取得素材的類別需要:

金鑰用途備援方式
GEMINI_API_KEY / GOOGLE_API_KEY圖片生成(媒體使用解析)跳過生成 / 僅搜尋
(asset_scout / 搜尋提供商)webpage/news/tweet + asset-fusion 真實素材搜尋類別降級為無素材版本

流程

第 0 步 — 初始化

cwd 是代理工作區根目錄;所有產出物都寫入 PROJECT_DIR = videos/<project-name>/。<project-name>:使用使用者提供的目錄名稱,否則從意圖中取一個簡短的 kebab-case 名稱(<subject>-motion)。不要使用工作區的 basename 或時間戳。

僅當 $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 上的最新版本是否一致,並在有任何技能過期時更新全域技能集。

限制: 永遠不要在 hyperframes init 在工作區根目錄下執行;永遠不要在 PROJECT_DIR 內嵌套另一個 hyperframes/ 目錄;每個 Bash 指令(主代理 + 子代理)都必須在 (cd "$PROJECT_DIR" && ...) 的子 shell 中執行 —— 永遠不要使用裸 cd。

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

調度一個子代理。提示詞 = 完整的 agents/director.md + ## 調度上下文(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:媒體使用,條件性)

如果 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> + 就地自訂;僅手寫補足缺口 + asset-fusion 的擴充功能。輸出 compositions/index.html,並遵循 HF 合約(暫停的 GSAP 時間軸在 window.__timelines 上、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 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

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

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.

相關技能