Communitygithub.com

Elis3omndz/Claude_Skills

所有 HyperFrames 的動畫知識:原子運動規則、多階段場景藍圖、場景轉場、更廣泛的動態設計技術,以及七個執行階段轉接器(預設 GSAP,外加 Lottie、Three.js、Anime.js、CSS 關鍵影格、Web Animations API、TypeGPU)。適用於任何動作或動畫任務。

Claude_Skills 是什麼?

此技能提供一個完整的 HyperFrames 動畫知識庫,涵蓋原子層級的運動規則、多階段場景藍圖、場景轉場設計,以及七種不同的執行階段轉接器(包含 GSAP、Lottie、Three.js、Anime.js、CSS 關鍵影格、Web Animations API 和 TypeGPU)。開發者可以從規則索引中挑選 2-4 個原子規則,並將其組合成單一暫停的 GSAP 時間軸;或者,對於複雜的多階段(4-5 階段)場景,載入預先設計好的藍圖。此技能也支援分析現有動畫構圖的編排(透過產出動畫地圖)、應用 24 種命名文字動畫效果,以及使用特定執行階段的 API(如 GSAP 的緩動函數、Lottie 播放器或 Three.js 的混合器)。它的設計完全符合 HyperFrames 的核心契約:強制使用單一暫停時間軸、基於 data-duration 的確定性長度,且禁止使用 Math.random 或 getBoundingClientRect 等非確定性元素。這使得它非常適合需要精確、可預測且高效動畫的瀏覽器或 WebGL 環境。

相容平台✓Claude Code~Codex CLI~Cursor
npx skills add https://github.com/Elis3omndz/Claude_Skills/tree/HEAD/.claude/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 會先從當前專案解析輔助套件,然後可以引導啟動 bundled 的 HyperFrames 套件版本。僅在技能於 bundled 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 11 individual skills — each has its own dedicated page.

Elis3omndz/Claude_Skills

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.

Elis3omndz/Claude_Skills

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.

Elis3omndz/Claude_Skills

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

Elis3omndz/Claude_Skills

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.

Elis3omndz/Claude_Skills

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

Elis3omndz/Claude_Skills

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.

Elis3omndz/Claude_Skills

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

Elis3omndz/Claude_Skills

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.

Elis3omndz/Claude_Skills

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.

Elis3omndz/Claude_Skills

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.

Elis3omndz/Claude_Skills

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.

相關技能