Communitygithub.com

Army161/OpenMontage

为 HyperFrames 提供完整的动画知识体系:原子运动规则、多阶段场景蓝图、场景过渡、泛运动设计技巧,以及七个运行时适配器(默认 GSAP 以及 Lottie、Three.js、Anime.js、CSS 关键帧、Web Animations API、TypeGPU)。适用于任何动效或动画任务:选择 2-4 条规则组合、加载蓝图、或查询特定运行时的 API(如 GSAP 缓动 / Lottie 播放器 / Three.js 混合器)。HyperFrames 原生:单条暂停时间线、可安全查找、确定性。

OpenMontage 是什么?

该技能为 HyperFrames 动画系统提供了全面的知识库和实用参考,涵盖了从原子级运动规则、多阶段场景蓝图、场景过渡到泛运动设计技巧的各个方面,并集成了七个运行时适配器(GSAP、Lottie、Three.js、Anime.js、CSS 关键帧、Web Animations API 和 TypeGPU/WebGPU)。它旨在帮助开发者和 AI 代理高效地在 HyperFrames 中创建动画:可以通过组合 2-4 条原子规则快速构建动画,也可以在需要复杂编排时加载预制蓝图,还能方便地查询各运行时的具体 API 文档(例如 GSAP 的缓动函数、Lottie 播放器配置或 Three.js 动画混合器)。技能支持的系统基于单条暂停时间线,确保动画的确定性、可安全查找和可重复播放。它提供了详细的索引文件和路由表,方便用户根据需求(如按触发条件查找规则、加载场景模板、编写场景过渡、选择运行时)直接跳转到对应文档,并包含用于审计动画编排的脚本工具。

兼容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/Army161/OpenMontage/tree/HEAD/.agents/skills/hyperframes-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
分析现有组合的动画映射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
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 内部构建时间线)。此处不再重复。

在核心契约基础之上的动画创作补充:

  • 预计算的布局常量 — 永远不要在补间时间从 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。用于在创作后审计编排(死区、交错一致性、生命周期警告)。

参见

  • hyperframes-core — 组合结构、数据属性、子组合、确定性渲染契约
  • hyperframes-creative — 调色板、排版、叙事、节拍规划(非动画创意方向)
  • hyperframes-cli — npx hyperframes lint / validate / inspect / preview / render

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

Army161/OpenMontage

Generate AI videos from text prompts using multiple provider gateways. Use when: (1) Generating videos from text descriptions, (2) Creating AI-generated video clips for content production, (3) Image-to-video generation with a reference image, (4) Choosing between video generation providers (VEO, Kling, Sora, Runway, Seedance, MiniMax). Supports two gateways: HeyGen API and fal.ai API.

Army161/OpenMontage

Create AI avatar videos with precise control over avatars, voices, scripts, scenes, and backgrounds using HeyGen's v2 API. Use when: (1) Choosing a specific avatar and voice for a video, (2) Writing exact scripts for an avatar to speak, (3) Building multi-scene videos with different backgrounds per scene, (4) Creating transparent WebM videos for compositing, (5) Using talking photos as video presenters, (6) Integrating HeyGen avatars with Remotion, (7) Batch video generation with exact specs, (8) Brand-consistent production videos with precise control.

Army161/OpenMontage

Use p5.js/canvas for local procedural character effects: particles, weather, squash/stretch, walk cycles, and environmental motion.

Army161/OpenMontage

Review local character animation with schema checks, Playwright browser previews, frame sampling, and FFmpeg/ffprobe final output checks.

Army161/OpenMontage

Create videos from a text prompt using HeyGen's Video Agent. Use when: (1) Creating a video from a description or idea, (2) Generating explainer, demo, or marketing videos from a prompt, (3) Making a video without specifying exact avatars, voices, or scenes, (4) Quick video prototyping or drafts, (5) One-shot prompt-to-video generation, (6) User says "make me a video" or "create a video about X".

Army161/OpenMontage

Generate Mandarin and multilingual narration with Volcengine Doubao Speech 2.0. Use when creating Chinese voiceovers, when the user prefers Doubao/Volcengine/火山引擎/豆包 TTS, or when narration needs character-level timestamp metadata for subtitles.

Army161/OpenMontage

Video and audio processing with FFmpeg. Use for format conversion, resizing, compression, audio extraction, and preparing assets for Remotion. Triggers include converting GIF to MP4, resizing video, extracting audio, compressing files, or any media transformation task.

Army161/OpenMontage

Use when implementing Disney's 12 animation principles with Framer Motion in React applications

Army161/OpenMontage

HyperFrames CLI dev loop. Use when running npx hyperframes init, add, catalog, capture, lint, validate, inspect, layout, snapshot, preview, play, render, publish, lambda, doctor, browser, info, upgrade, skills, compositions, docs, benchmark, telemetry, transcribe, tts, or remove-background, or when troubleshooting the HyperFrames build/render environment. Entry point for AWS Lambda cloud rendering (`hyperframes lambda deploy / render / progress / destroy / policies`).

Army161/OpenMontage

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.

Army161/OpenMontage

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

Army161/OpenMontage

Audio and media assets for HyperFrames compositions, produced by one shared audio engine (`scripts/audio.mjs`) — multi-provider TTS (HeyGen / ElevenLabs / Kokoro local), background music + sound effects (HeyGen audio-library retrieval by default, with local Lyria / MusicGen BGM generation and a bundled SFX library as the no-credential fallback), Whisper transcription, background removal, and caption authoring. Use for voiceover / TTS, BGM, SFX / sound effects, transcription, captions / subtitles / lyrics / karaoke / per-word styling, voice + provider selection, and music-mood prompting.

Army161/OpenMontage

Install and wire registry blocks and components into HyperFrames compositions. Use when running hyperframes add, installing a block or component, wiring an installed item into index.html, or working with hyperframes.json. Covers the add command, install locations, block sub-composition wiring, component snippet merging, registry discovery, and authoring a new block or component to contribute upstream (idea → scaffold → validate → PR).

Army161/OpenMontage

Use when the user wants a short, design-led motion graphic where motion is the message: kinetic typography, stat or number count-up, chart/data-viz hit, logo sting, brand lockup, lower-third, callout, social overlay, animated headline/tweet/news item, motion poster, or quick captured-page highlight. Usually under 10s and up to ~30s, with no narration arc, voice-over, or live-action subject. Can render to MP4 or transparent overlay. Not for longer, multi-scene, narrated, or brand-reel pieces (use general-video), narrated website videos (website-to-video), topic explainers (faceless-explainer), product promos (product-launch-video), PR videos (pr-to-video), or captions on existing footage (embedded-captions). When unsure whether it's a quick motion-first piece or a longer / narrated treatment, see /hyperframes.

Army161/OpenMontage

Use when the user has a music track (an audio file, or a video to pull audio from) and wants a beat-synced HyperFrames video, calm to hard-hitting. The music drives everything: one analyzer reads it once, the orchestrator lays out the frames and fills a per-frame plan, and one sub-agent builds each frame. Typography and templates are the floor — a complete video needs zero assets — but any images or videos the user supplies are cut into the frames on the same beat grid (beat-cut / ken-burns). The genre (lyric video, slideshow, kinetic promo) falls out of the per-frame choices; the pipeline never branches on it.

Army161/OpenMontage

Best practices for Remotion - Video creation in React

Army161/OpenMontage

Toolkit-specific Remotion patterns — custom transitions, shared components, and project conventions. For core Remotion framework knowledge (hooks, animations, rendering, etc.), see the `remotion-official` skill.

Army161/OpenMontage

Port an existing Remotion (React) composition to HyperFrames HTML. Use ONLY when the user explicitly asks to port/convert/migrate/translate a Remotion source. Do NOT use: (a) authoring a new HyperFrames composition; (b) Remotion mentioned in passing; (c) Remotion code shared as reference only; (d) "same video as my Remotion one" without explicit migrate request — treat as fresh build. Doubt → `/general-video`. One-way, Remotion-only: no reverse export (HyperFrames→Remotion or any framework), no non-Remotion source (After Effects, Framer Motion, plain React/CSS) → out of scope, re-create via `/general-video`. Flags unsupported patterns (useState, useEffect, async calculateMetadata, third-party React libs, `@remotion/lambda`) and recommends runtime interop over lossy translation. Unsure whether to port vs. build fresh, or only a passing Remotion mention? → /hyperframes.

Army161/OpenMontage

Animate SVG character rigs with GSAP, CSS transforms, Remotion frame control, and HyperFrames-compatible browser previews.

Army161/OpenMontage

Three.js animation - keyframe animation, skeletal animation, morph targets, animation mixing. Use when animating objects, playing GLTF animations, creating procedural motion, or blending animations.

相关技能