Communitygithub.com

Alemoterani/auto-edit-hyperframes

所有關於 HyperFrames 的動畫知識——原子運動規則、多階段場景藍圖、場景轉場、更廣泛的動態設計技巧,以及七種執行時期適配器(預設 GSAP,加上 Lottie、Three.js、Anime.js、CSS 關鍵影格、Web Animations API、TypeGPU)。適用於任何動作或動畫任務:選取 2-4 條規則組合、載入藍圖,或查詢特定執行時期 API(例如 GSAP 緩動函數 / Lottie 播放器 / Three.js 混合器)。也涵蓋審核現有構圖的編舞(動畫圖譜)與 24 種具名文字動畫效果。HyperFrames 原生特性:單一暫停時間軸、支援 Seek、確定性。

auto-edit-hyperframes 是什麼?

此技能彙整所有 HyperFrames 動畫相關知識,提供模組化、可重複使用的建構基礎。核心包含四種動畫建構方法:原子規則(可組合的 GSAP 配方)、多階段場景藍圖(用於品牌揭露等複雜編排)、場景轉場(CSS 驅動),以及通用動態設計技巧。技能也完整收錄七種執行時期適配器的 API 文件(GSAP、Lottie、Three.js、Anime.js、CSS 關鍵影格、Web Animations API 以及 TypeGPU / WebGPU),讓開發者能根據效能或資產特性選擇最合適的工具。執行方式為從規則索引或藍圖索引中選取模組,將其組合成單一暫停的 GSAP 時間軸,以確保確定性與 Seek 安全性。此外,技能也提供動畫圖譜審核腳本(animation-map.mjs),用於分析既有構圖的編排、識別死角與生命週期警告。支援平台包括 Cursor、Claude Code、Codex 等支援自訂技能的自然語言編輯器。

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

在你喜歡的 AI 中提問

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

說明文件

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

HyperFrames 動畫

所有動畫知識集中於此技能:規則(原子配方)、藍圖(多階段場景範本)、轉場(場景到場景)、技巧(更廣泛的動態設計模式),以及適配器(各執行時期 API)。

關於構圖合約(data attributes、子構圖、確定性),請參閱 hyperframes-core。

預設:組合原子規則

從 rules-index.md 中選取 2-4 條規則,將它們與一個單一暫停的 GSAP 時間軸結合,完成。這比從藍圖開始更快,產生的程式碼也更少。

載入藍圖的時機

  • 場景符合現有的預先設計多階段範本(品牌揭露、社交證明等),且重複使用其階段管線能節省實際創作時間
  • 您需要一個可執行的真實程式碼來實現複雜的 4-5 階段編排

藍圖位於 blueprints-index.md。每個條目指向 blueprints/<id>.md(配方)。非必要時請勿預先讀取;只有在您已決定需要場景層級編排時才載入。

路由

想要…請閱讀
依觸發條件/標籤選取原子運動模式rules-index.md
讀取某個規則的完整 HTML / CSS / GSAP 配方rules/<name>.md
選取多階段場景範本blueprints-index.md
讀取某個藍圖的完整配方blueprints/<id>.md
建立場景轉場(CSS 驅動,在兩個片段之間)transitions/overview.md、transitions/catalog.md
查詢更廣泛的動態設計技巧techniques.md
動作模糊——元素上的快門殘影,以及不應使用的情況references/motion-blur.md
分析既有構圖的動畫圖譜scripts/animation-map.mjs
GSAP API——時間軸 / 補間動畫 / 位置參數adapters/gsap.md
GSAP——可直接套用的效果配方rules/gsap-effects.md
GSAP——變形 / 效能adapters/gsap-transforms-and-perf.md
GSAP——緩動函數 / 錯開adapters/gsap-easing-and-stagger.md
GSAP——時間軸 / 標籤adapters/gsap-timeline-and-labels.md
Lottie / dotLottie(After Effects 匯出、window.__hfLottie)adapters/lottie.md
角色動畫(走路循環、吉祥物、骨架木偶、手勢)adapters/lottie.md → 角色部分
Three.js / WebGL(3D 場景、AnimationMixer、hf-seek)adapters/three.md
Anime.js(window.__hfAnime)adapters/animejs.md
CSS 關鍵影格(animation-delay / play-state / fill-mode)adapters/css-animations.md
Web Animations API(element.animate()、currentTime seek)adapters/waapi.md
TypeGPU / WebGPU(navigator.gpu、WGSL、計算管線)adapters/typegpu.md
HTML 作為紋理 + WebGL/GLSL 後處理特效(透過 drawElementImage 捕捉即時 DOM)adapters/html-in-canvas-patterns.md
具名文字動畫效果(24 個 ID,透過外部 animate-text 技能)adapters/animate-text.md

選取執行時期

  • GSAP 是 95% 動畫工作的預設選項——涵蓋時間軸編排、變形、緩動、錯開。此技能中的所有原子規則都以 GSAP 為基礎。
  • Lottie 適用於資產本身已有預先烘焙的時間軸(通常是 After Effects 匯出),包括會走路、比手勢或反應的角色。
  • Three.js 用於 3D 場景、相機運動、著色器驅動的視覺效果。
  • Anime.js 適用於輕量級補間動畫,當 GSAP 顯得大材小用時。
  • CSS 適用於簡單的重複主題、裝飾、閃爍效果——無需 JavaScript 動畫成本。
  • WAAPI 用於原生瀏覽器關鍵影格,無需依賴 GSAP。
  • TypeGPU / WebGPU 用於 GPU 渲染的畫布(粒子、液體玻璃、自訂著色器)。

一個構圖中可以同時存在多個執行時期。每個執行時期會將其實例註冊到特定於該執行時期的全域物件上,以便 HyperFrames 可以在一次傳遞中尋找所有實例。

關鍵限制

先決條件:hyperframes-core → 單一暫停時間軸 + 不可協商規則(單一暫停時間軸、data-duration 決定長度、不使用 Math.random / Date.now / performance.now、若無有限根 data-duration 則不使用 repeat: -1、不在頁面載入時對後續場景的片段執行 gsap.set、不進行 display 或原始 visibility 補間動畫,且僅在時間軸完全建置完成後才註冊時間軸,包括在建置在非同步回呼(例如 document.fonts.ready)內執行時)。核心允許使用 GSAP autoAlpha 以及在明確的時間軸邊界設定零持續時間的可見性。僅在非片段元素或片段內的包裝器上使用這些例外;框架擁有 .clip 的生命週期。請勿在此重述完整合約。

在核心合約基礎上增加的動畫工藝要求:

  • 預先計算的佈局常數——永遠不要在補間動畫執行時從 getBoundingClientRect() 推導位置。補間時的量測 DOM 會因為渲染器並行取樣而導致不同步;請在構圖設定時一次性計算座標並重複使用。
  • 空間運動僅使用 GSAP 變形別名(x、y、scale、rotation)。核心的允許清單也允許使用 opacity / color / backgroundColor / borderRadius 進行非空間屬性的補間動畫——但永遠不要使用 width / height / top / left 進行佈局變更。

腳本

node <SKILL_DIR>/scripts/animation-map.mjs <composition-dir> \
  --out <composition-dir>/.hyperframes/anim-map

讀取所有註冊在 window.__timelines 上的 GSAP 時間軸,列舉所有補間動畫、取樣邊界框、計算旗標,並輸出 animation-map.json。用於在創作後審核編排(死角、錯開一致性、生命週期警告)。

animation-map.mjs 會先從目前專案解析輔助套件,然後可以引導(bootstrap)捆綁的 HyperFrames 套件版本。僅在技能於捆綁的 CLI/技能安裝之外執行,且需要明確固定該引導版本時,才設定 HYPERFRAMES_SKILL_PKG_VERSION=<版本號>。

另請參閱

  • hyperframes-core——構圖結構、data attributes、子構圖、確定性渲染合約
  • hyperframes-creative——調色盤、字體排印、敘事、節拍規劃(非動畫的創意方向)
  • hyperframes-cli——npx hyperframes lint / check / snapshot / preview / render

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

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.

Alemoterani/auto-edit-hyperframes

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.

相關技能