Communitygithub.com

Aseel1600/Edit01

HyperFrames 动画的全部知识——原子运动规则、多阶段场景蓝图、场景过渡、更广泛的运动设计技术,以及七个运行时适配器(GSAP 默认,外加 Lottie、Three.js、Anime.js、CSS 关键帧、Web Animations API、TypeGPU)。适用于任何运动或动画任务:选择 2-4 条规则并组合,或加载蓝图,或查询特定运行时的 API(例如 GSAP 缓动 / Lottie 播放器 / Three.js 混合器)。HyperFrames 原生:单条暂停时间线,支持定位,确定性。

Edit01 是什么?

该技能整合了 HyperFrames 动画系统的全部知识,将运动设计分解为原子化的规则、多阶段场景蓝图、场景过渡、更广泛的运动技术,以及针对七种不同运行时的适配器(GSAP、Lottie、Three.js、Anime.js、CSS 动画、Web Animations API 和 TypeGPU)。对于任何动画任务,开发者可以组合 2-4 条原子规则以快速创建轻量动画,也可以加载预设计的蓝图来编排复杂的多阶段场景(如品牌展示或社交证明)。该技能遵循 HyperFrames 核心规范,确保所有动画基于单条暂停时间线、确定性定位、禁用随机性和无限循环,从而实现一致的可重现行为。技能文档提供了详细的路由表,涵盖规则索引、蓝图配方以及面向特定运行时的 API 参考,并包括一个用于审计动画编制的脚本(animation-map.mjs)。当您需要基于 GSAP 快速原型开发、将 After Effects 资产作为 Lottie 集成、构建 3D Three.js 场景,或利用 TypeGPU 实现 GPU 加速效果时,该技能尤其有价值。

兼容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/Aseel1600/Edit01/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
命名的文本动画效果(通过外部 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 内部的时间线构造)。此处不再重复。

在核心合约基础上增加的动画制作要点:

  • 预计算的布局常量——决不要在补间时从 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.

Aseel1600/Edit01

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, Gemini Omni). Supports gateways: HeyGen API, fal.ai API, Kling official direct API, and the Gemini API (Gemini Omni Flash).

Aseel1600/Edit01

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.

Aseel1600/Edit01

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

Aseel1600/Edit01

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

Aseel1600/Edit01

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

Aseel1600/Edit01

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.

Aseel1600/Edit01

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.

Aseel1600/Edit01

Generate expressive, multilingual narration with fish.audio (S1 / S2-generation models) and reuse cloned voices via reference_id. Use when the user prefers fish.audio/Fish Audio TTS, wants a specific playground voice model, or needs high-emotion voice-clone narration.

Aseel1600/Edit01

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

Aseel1600/Edit01

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

Aseel1600/Edit01

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.

Aseel1600/Edit01

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

Aseel1600/Edit01

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.

Aseel1600/Edit01

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

Aseel1600/Edit01

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.

Aseel1600/Edit01

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.

Aseel1600/Edit01

Best practices for Remotion - Video creation in React

Aseel1600/Edit01

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.

Aseel1600/Edit01

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.

Aseel1600/Edit01

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

相关技能