Communitygithub.com

laviedezidane/hyperframes-skill

製作簡短、設計主導的動態圖形,以動畫本身傳達訊息——包含動態字體、數據計數、圖表/資料視覺化、品牌標誌動畫、下三分之一/社交疊加、動態地圖、動畫推文/新聞/標題、網頁UI動畫等。通常少於10秒(最多約30秒),無旁白或真人演出;輸出為MP4或透明疊加格式。

hyperframes-skill 是什麼?

此技能屬於 HyperFrames 框架中的一個獨立工作流程,用於建立簡短、設計主導且無旁白的動態圖形(通常少於 10 秒)。它涵蓋多種視覺類別,包括動態字體、數據計數、圖表、品牌標誌動畫、下三分之一、動態地圖、網頁 UI 動畫以及獨特的「資產融合」類別(將真實影像的幾何結構轉換為圖表)。支援 macOS Apple Silicon 和 Linux x64 系統,並可選用 GPU 加速渲染。工作流程以資產優先為原則,透過子代理進行規劃、設計和建構,強調重複使用既有目錄區塊,並包含自動驗證和修復步驟。最終輸出為 MP4 或透明疊加格式(WebM/MOV)。所有決策由 `/hyperframes` 意圖層路由至此,確保工作流程的一致性。

相容平台~Claude Code~Codex CLI✓Cursor✓Gemini CLI
npx skills add https://github.com/laviedezidane/hyperframes-skill/tree/HEAD/.agents/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/<專案名稱>/(在第 0 步建立);以下所有路徑都是相對於此目錄。

階段執行主要成品詳細流程
initBashhyperframes.json第 0 步
plan子代理 — 決定是否搜尋? + 分類 + 資產策略shot-plan.json(草稿:類別、asset_needs 查詢、簡報)agents/director.md(第一部分)
source ◇Bash — media-use 解析(如果 asset_needs 為空則跳過)assets/ + assets/index.mdphases/source/guide.md
design子代理 — 根據解析後的資產設計鏡頭shot-plan.json(最終版:區塊 + 佈局 + 動畫 + 位置)agents/director.md(第二部分)
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/<專案名稱>/。<專案名稱>:使用使用者提供的目錄,否則從意圖中取一個簡短的 kebab-case 名稱(<主題>-motion)。不要使用工作區基礎名稱或時間戳。

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

PROJECT_DIR="${MOTION_GRAPHICS_DIR:-videos/<專案名稱>}"
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 步 ——規劃(子代理:導演第一部分)

調度一個子代理。提示 = 完整的 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 步 ——設計(子代理:導演第二部分)

調度一個子代理(提示 = agents/director.md 第二部分 + 調度上下文,包括解析後的 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 合約(暫停的 GSAP 時間線在 window.__timelines 上、class="clip" + 穩定的 ID、tl.seek(0)、確定性)。

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

(cd "$PROJECT_DIR" && npx hyperframes check .)
(cd "$PROJECT_DIR" && npx hyperframes snapshot --at <校驗時間>)

選擇能顯示開始狀態、標誌性動作和最終停留的校驗時間。在繼續之前檢查生成的聯絡表或快照表。在 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.

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

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

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

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.

相關技能