Communitygithub.com

laviedezidane/hyperframes-skill

所有關於 HyperFrames 的動畫知識 — 原子動作規則、多階段場景藍圖、場景切換、廣義動態設計技術,以及七個執行階段轉接器。適用於任何動畫任務。

hyperframes-skill 是什麼?

此技能將所有 HyperFrames 動畫知識濃縮在一個技能中,涵蓋原子動作規則(規則索引)、多階段場景藍圖(藍圖索引)、場景切換(轉場概述與目錄)以及廣義動態設計技術。它還包含七個執行階段轉接器的完整 API 參考:GSAP(預設)、Lottie、Three.js、Anime.js、CSS 關鍵影格、Web Animations API 和 TypeGPU。使用時,您可以從規則索引中挑選 2-4 條規則並組合以快速建立動畫,或載入一個現有藍圖來重現複雜的編舞。此技能也支援審核現有合成的動畫映射,並提供 24 個命名的文字動畫效果。所有 HyperFrames 動畫均遵循「單一暫停時間軸、可安全搜尋、確定性」的核心合約。

相容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/laviedezidane/hyperframes-skill/tree/HEAD/.agents/skills/hyperframes-animation

在你喜歡的 AI 中提問

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

說明文件

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

HyperFrames 動畫

所有動畫知識集中於一個技能:規則(原子配方)、藍圖(多階段場景範本)、轉場(場景間切換)、技術(更廣泛的動態設計模式),以及轉接器(各執行階段的 API)。

關於合成合約(資料屬性、子合成、確定性),請參閱 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 搜尋)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、沒有 repeat: -1 而沒有有限的根 data-duration、不對後續場景的片段執行頁面載入時的 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 首先從當前專案解析輔助套件,然後可以引導捆綁的 HyperFrames 套件版本。僅在從捆綁的 CLI/技能安裝外部執行此技能時設定 HYPERFRAMES_SKILL_PKG_VERSION=<version>,並且需要明確鎖定該引導版本。

另請參閱

  • hyperframes-core — 合成結構、資料屬性、子合成、確定性渲染合約
  • 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.

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

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

A short, design-led motion graphic where motion is the message — kinetic typography, stat count-up, chart/data-viz hit, logo sting / brand lockup, lower-third / callout / social overlay, animated map (highlight regions, connect places, zoom to a location), animated tweet / news-article / headline, webpage / UI animation (scroll, cursor, callouts), or fusing a real image's geometry into a chart. Usually under 10s (up to ~30s), no narration or live-action subject; renders to MP4 or transparent overlay. Longer / narrated / multi-scene → /general-video. Unclear → /hyperframes.

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.

相關技能