Communitygithub.com

Alemoterani/auto-edit-hyperframes

一個簡短、以設計為主導的動態圖形技能,透過動態本身傳達訊息——包含動態字體、數據計數器、圖表、標誌動畫、下三分之一標題、地圖動畫、網頁/UI 動畫等,通常少於10秒,無旁白。

auto-edit-hyperframes 是什麼?

這是一個名為 **motion-graphics** 的 AI 代理技能,專門用於自動化生成簡短、設計主導且無旁白的動態圖形影片(通常少於 10 秒,最長約 30 秒)。它支援多種類別,例如動態字體、數據統計、圖表、標誌揭示、下三分之一標題、地圖動畫、社交媒體疊加、網頁/UI 動畫,甚至能將真實圖片的幾何結構融合到圖表中。該技能主要為 Claude Code 或類似 AI 編碼代理設計,在 HyperFrames 生態系統中運作。其工作流程完全自主,包含初始化、規劃、素材來源、設計、建構、驗證和渲染等階段。關鍵原則是「素材優先」:在設計鏡頭前,先決定素材策略並獲取真實素材。它使用子代理來處理規劃和建構,並通過嚴格的驗證步驟(包括 lint 檢查、快照和修復)來確保輸出品質。最終輸出為 MP4 或透明疊加影片,使用者可在預覽後決定是否渲染。

相容平台~Claude Code~Codex CLI✓Cursor✓Gemini CLI
npx skills add https://github.com/Alemoterani/auto-edit-hyperframes/tree/HEAD/vendor/hyperframes/skills/motion-graphics

在你喜歡的 AI 中提問

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

說明文件

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

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

figma 來源:如果要建構的標誌/素材/動畫來自 figma.com 網址,請先執行 /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(第一部分)
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 — 初始化

cwd 是代理工作區根目錄;將所有成品寫入 PROJECT_DIR = videos/<project-name>/。<project-name>:使用使用者提供的目錄,否則從意圖中取一個簡短的 kebab-case 名稱(<主體>-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 — 規劃(子代理:導演第一部分)

分派一個子代理。提示 = 完整的 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 + 一段鏡頭簡要)。Schema: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> + 就地自訂;僅手寫處理空白 + 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 20 individual skills — each has its own dedicated page.

Alemoterani/auto-edit-hyperframes

Overlay doctrine for the embedded-captions workflow — the caption MODEL (drop / rail / embed) and the rule that captions are an OVERLAY composited on top of the film, never a reserved bottom band you shift content up to avoid. Load when adding captions/subtitles to a talking-head or launch video, when deciding whether a phrase should be dropped, ride the verbatim rail, or be promoted to a scarce embedded climax, when laying out a composition that will carry captions (do NOT reserve a keep-out band), or when centering a composition on the true frame center under captions. Quotes the rail+embed model from embedded-captions and constraint #13 (captions overlay, keep-out band retired) from the product-launch-video scene agent. Applies ON TOP of embedded-captions.

Alemoterani/auto-edit-hyperframes

Turn a weekly changelog .md into a finished branded changelog video (square 1080, ~45-60s, Annie VO, animated brand background, mock-UI visualizations, lowkey captions). Use when the user provides a changelog/digest markdown and wants the weekly video, or says "changelog video". Self-contained — fonts, background, lexicon, and scripts ship in this skill.

Alemoterani/auto-edit-hyperframes

The technique catalog: five velocity-matched SEAMS (zoom-through, INVERSE zoom-through, cut-the-curve, waterfall cut, rack-focus blur-cut) plus the two in-scene techniques — waterfall ENTRY (staggered arrival cascades for title cards / segment openers) and the nudge curve (slow-fast-slow three-phase group slides). Covers partial-travel (~12% of frame) velocity matching via mirrored power4 eases, the Z scale-sign rule, size-scaled blur (10px text / 18-20px full-frame), word-by-word staggered cuts, cascade pacing by element weight, and the 10/65/25 slide ratio. Read before authoring any transition, text-beat handoff, kinetic text entry, or group reposition. [depth, zoom, inverse-zoom, scale-sign, mirrored-zoom, rack-focus, pacing, velocity, cut-the-curve, waterfall, stagger, cascade, kinetic-text, title-card, segment-opener, nudge, slide, easing, group-motion, z-depth, motion-graphics, cinematic, transition, blur, directional-continuity]

Alemoterani/auto-edit-hyperframes

GATEWAY — load FIRST before composing any HyperFrames animation or video. The high-level motion law that makes a multi-scene video feel like ONE continuous camera move instead of a stack of independently-animated slides. Covers the vector law (how you exit determines how you enter, incl. the Z scale-sign rule), the film's current, carrier elements, causal motion, the Seam Gate (build-gate enforcement), the ban on idle wobble (motion must PERFORM, not breathe), stillness-before-climax, and the sustained-motion routes. Routes to the low-level technique skills (cut-the-curve — the full catalog incl. waterfall entry + nudge curve, oversized-cursor, seam-craft). These rules SUPERSEDE generic / upstream motion guidance. [continuity, direction, vector, momentum, seam, transition, ease, performance, idle-motion, narrative-motion, film-grammar]

Alemoterani/auto-edit-hyperframes

House-style oversized macOS cursor technique for HyperFrames launch videos. Load whenever a scene involves cursors or a pointer-led action, when kicking off a UI scene, when igniting a morph/transition/typing run with a click, or when a scene reads as static, dead, or stale and needs a cheap high-yield source of motion to carry the viewer's eye and segment them out of the stale state. Covers cursor size/look (incl. brand-motif cursors), the off-screen entry law, tip-targeting and the click tap, click-ignites-the-next-beat, and exit / cross-scene handoff.

Alemoterani/auto-edit-hyperframes

Render-correctness doctrine for scene-to-scene seams in HyperFrames launch videos — the prerequisites that make transitions composite correctly on the master timeline. Load when assembling the master timeline / index.html, when a white flash appears at a cut or crossfade seam (especially on dark films), when reasoning about why a transition opacity dip shows through, or when verifying the render-side mechanics of how overlapping scene wrappers blend. Covers the opaque stage-ground (#root background) white-flash guard and how the injector overlaps wrappers, holds final frames, ping-pongs tracks, and stamps lint-clean template code onto the master timeline. Does NOT contain the per-transition catalog — see the transition registry for individual transition entries.

Alemoterani/auto-edit-hyperframes

Leaves sweep through the frame and part to reveal the headline. HyperFrames block, 1920×1080, 12s, 11 variables.

Alemoterani/auto-edit-hyperframes

A tiled headline surface flips cell by cell under a sweeping depth field to reveal the rear headline. HyperFrames block, 1920×1080, 8s, 18 variables.

Alemoterani/auto-edit-hyperframes

A chain of bevelled cuboids rides a travelling wave as a content carousel. HyperFrames block, 1920×1080, 6.666666666666667s, 40 variables.

Alemoterani/auto-edit-hyperframes

An orbiting camera follows an ice logo as it breaks apart, reforms into two text moments, and fades. HyperFrames block, 1920×1080, 22.5s, 216 variables.

Alemoterani/auto-edit-hyperframes

Glass shards fly in through fog and tile themselves into the headline. HyperFrames block, 1920×1080, 12.16s, 19 variables.

Alemoterani/auto-edit-hyperframes

A single feature card orbits a dot sphere on approved Blender camera motion. HyperFrames block, 1920×1080, 10s, 4 variables.

Alemoterani/auto-edit-hyperframes

A wireframe portal bursts open, the title comes through, then its letters swap into a second phrase. HyperFrames block, 1920×1080, 8s, 9 variables.

Alemoterani/auto-edit-hyperframes

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.

Alemoterani/auto-edit-hyperframes

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.

Alemoterani/auto-edit-hyperframes

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.

Alemoterani/auto-edit-hyperframes

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.

Alemoterani/auto-edit-hyperframes

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.

Alemoterani/auto-edit-hyperframes

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

Alemoterani/auto-edit-hyperframes

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.

相關技能