Communitygithub.com

1999AZZAR/designer-mcp

HyperFrames 動畫知識全掌握——原子運動規則、多階段場景藍圖、場景轉場、進階動態設計技巧,以及七種執行期轉接器(GSAP 預設,外加 Lottie、Three.js、Anime.js、CSS 關鍵影格、Web Animations API、TypeGPU)。可用於任何動態或動畫任務:挑選 2-4 條規則進行組合、載入藍圖,或查詢特定執行期 API(例如 GSAP 緩動函數 / Lottie 播放器 / Three.js 混合器)。亦涵蓋審視現有編排的動畫映射,以及 24 種命名文字動畫效果。HyperFrames 原生:單一暫停時間軸、可搜尋、確定性。

designer-mcp 是什麼?

這是一個完整的 HyperFrames 動畫知識技能,涵蓋了從原子運動規則(atomic rules)到多階段場景藍圖(blueprints)、場景轉場(transitions)、以及進階動態設計技巧(techniques)的所有層面。它預設使用 GSAP 作為執行期轉接器,但也支援 Lottie、Three.js、Anime.js、CSS 關鍵影格動畫、Web Animations API(WAAPI)以及 TypeGPU/WebGPU,讓開發者能根據需求選擇最合適的工具。此技能的核心架構遵循 HyperFrames 的嚴格約束:單一暫停時間軸、確定性渲染、禁止使用 `Math.random` 或 `Date.now` 等非確定性來源,並確保所有動畫都能在 seek(時間搜尋)操作下保持一致。開發者可以透過 `rules-index.md` 和 `blueprints-index.md` 快速查找原子模式或場景模板,並利用 `animation-map.mjs` 腳本審查既有編排的空間時間關係。這項技能適用於 Claude Code、Codex 等支援 MCP 協定的 AI 代理,能大幅簡化 Web 動畫的設計與實作流程。

相容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/1999AZZAR/designer-mcp/tree/HEAD/skills/video/references/animation

在你喜歡的 AI 中提問

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

說明文件

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、禁止在頁面載入時對後續場景的剪輯執行 gsap.set、禁止 display 或原始 visibility 補間、禁止在 async / setTimeout / Promise 內部建構時間軸)。GSAP 的 autoAlpha 以及在明確時間軸邊界設定的零持續時間可見性,仍被核心允許。這些例外僅能用於非剪輯元素或剪輯內部的包裹器;框架擁有 .clip 的生命週期。請勿在此重述完整合約。

在核心合約基礎上新增的動畫工藝規則:

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

腳本

node skills/hyperframes-animation/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=<版本>。

另請參閱

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

1999AZZAR/designer-mcp

SOTA animation and physics heuristic guide using motion.dev

1999AZZAR/designer-mcp

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.

1999AZZAR/designer-mcp

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.

1999AZZAR/designer-mcp

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.

1999AZZAR/designer-mcp

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.

1999AZZAR/designer-mcp

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.

1999AZZAR/designer-mcp

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

1999AZZAR/designer-mcp

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

1999AZZAR/designer-mcp

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.

1999AZZAR/designer-mcp

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

1999AZZAR/designer-mcp

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.

1999AZZAR/designer-mcp

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

1999AZZAR/designer-mcp

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.

1999AZZAR/designer-mcp

Use when building or editing a HyperFrames project that people open in Studio: 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`.

1999AZZAR/designer-mcp

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.

1999AZZAR/designer-mcp

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.

1999AZZAR/designer-mcp

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.

1999AZZAR/designer-mcp

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.

1999AZZAR/designer-mcp

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.

1999AZZAR/designer-mcp

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.

相關技能