Communitygithub.com

DansiDanutz/Video-Editor

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

Video-Editor 是什麼?

此技能提供 HyperFrames 動畫系統的完整知識庫,包含原子運動規則、多階段場景藍圖、場景轉場、廣泛的動態設計技術,以及七個執行時期轉接器:GSAP(預設)、Lottie、Three.js、Anime.js、CSS 關鍵影格、Web Animations API 和 TypeGPU。開發者可以選取 2-4 條規則並組合為單一暫停的 GSAP 時間軸,或載入預先設計的多階段模板(如品牌揭曉、社會證明),或查詢特定執行時期的 API(例如 GSAP 的 easing、Lottie 播放器、Three.js 的 AnimationMixer)。技能也涵蓋分析現有組合的編舞(動畫地圖)和 24 種命名文字動畫效果。核心設計是 HyperFrames 原生:單一暫停時間軸、尋找安全、確定性。技能透過 plugins 目錄下的 rules 子目錄、blueprints 子目錄、transitions 子目錄、references 子目錄、adapters 子目錄和 scripts 子目錄組織文件,開發者可透過路由表快速找到需要的資訊。

相容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/DansiDanutz/Video-Editor/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
命名文字動畫效果(透過外部 animate-text 技能的 24 個 ID)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 13 individual skills — each has its own dedicated page.

DansiDanutz/Video-Editor

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.

DansiDanutz/Video-Editor

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

DansiDanutz/Video-Editor

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

DansiDanutz/Video-Editor

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.

DansiDanutz/Video-Editor

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

DansiDanutz/Video-Editor

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.

DansiDanutz/Video-Editor

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

DansiDanutz/Video-Editor

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.

DansiDanutz/Video-Editor

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

DansiDanutz/Video-Editor

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.

DansiDanutz/Video-Editor

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.

DansiDanutz/Video-Editor

Divide a finished story/script into filmable scenes with per-scene image and animation prompts. Use when building a scene outline or shot list, deciding scene boundaries, durations, or what each visual must show.

DansiDanutz/Video-Editor

AI-assisted video editing workflows for cutting, structuring, and augmenting real footage. Covers the full pipeline from raw capture through FFmpeg, Remotion, ElevenLabs, fal.ai, and final polish in Descript or CapCut. Use when the user wants to edit video, cut footage, create vlogs, or build video content.

相關技能