Communitygithub.com

AlessandroFare/fluxychat

HyperFrames 动画知识全集:原子运动规则、多阶段场景蓝图、场景过渡、运动设计技术,以及七种运行时适配器(默认 GSAP,以及 Lottie、Three.js、Anime.js、CSS 关键帧、Web Animations API、TypeGPU)。用于处理任何动画任务:选择 2-4 条规则组合,加载蓝图,或查询运行时特定的 API。

fluxychat 是什么?

该技能封装了 HyperFrames 系统所需的全部动画知识,帮助开发者和 AI 智能体快速完成动画编排。它提供了原子运动规则(原子配方)、多阶段场景蓝图(复用现成的分阶段模板)、场景过渡方案以及更广泛的运动设计模式。同时,它涵盖七种运行时适配器:默认的 GSAP(涵盖 95% 的动画需求)以及 Lottie、Three.js、Anime.js、CSS 关键帧、Web Animations API 和 TypeGPU/WebGPU,支持在同一个合成中混合使用多种运行时。该技能包含一个动画映射审计脚本(animation-map.mjs),用于分析现有合成的编排效果。此外,还定义了核心约束,要求使用单一暂停的时间线、预计算布局常量、禁止在补间时进行 DOM 测量,并严格限制使用 GSAP 变换别名(x、y、scale、rotation)。它独立于 hyperframes-core,但需要在核心框架的确定性渲染约定之上才能正确工作。

兼容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/AlessandroFare/fluxychat/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 内部构建时间线)。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=<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.

AlessandroFare/fluxychat

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.\n

AlessandroFare/fluxychat

Use when audio already placed in a HyperFrames composition needs to be mixed: a music bed that fights a voiceover (voiceover carve), effects on a track (EQ, compressor, limiter, gate, saturation, delay, reverb, chorus, phaser, bitcrush), or automation envelopes drawn on a track's volume or any effect parameter. 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`.\n

AlessandroFare/fluxychat

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

AlessandroFare/fluxychat

Install, discover, and wire registry blocks and components into HyperFrames compositions. 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).

AlessandroFare/fluxychat

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.\n

AlessandroFare/fluxychat

Overlay doctrine for the embedded-captions workflow — the caption MODEL (drop / rail / embed) and the rule that captions are an OVERLAY composited on top of the film, never a reserved bottom band you shift content up to avoid. Load when adding captions/subtitles to a talking-head or launch video, when deciding whether a phrase should be dropped, ride the verbatim rail, or be promoted to a scarce embedded climax, when laying out a composition that will carry captions (do NOT reserve a keep-out band), or when centering a composition on the true frame center under captions. Quotes the rail+embed model from embedded-captions and constraint #13 (captions overlay, keep-out band retired) from the product-launch-video scene agent. Applies ON TOP of embedded-captions.

AlessandroFare/fluxychat

Turn a weekly changelog .md into a finished branded changelog video (square 1080, ~45-60s, Annie VO, animated brand background, mock-UI visualizations, lowkey captions). Use when the user provides a changelog/digest markdown and wants the weekly video, or says "changelog video". Self-contained — fonts, background, lexicon, and scripts ship in this skill.

AlessandroFare/fluxychat

Audit and fix animation performance issues including layout thrashing, compositor properties, scroll-linked motion, and blur effects. Use when animations stutter, transitions jank, or reviewing CSS/JS animation performance.

AlessandroFare/fluxychat

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.

AlessandroFare/fluxychat

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. Also covers Tailwind projects and the STORYBOARD.md / SCRIPT.md plan formats. Read before writing composition HTML.

AlessandroFare/fluxychat

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

AlessandroFare/fluxychat

Use when a HyperFrames composition needs seek-safe 2D/3D keyframes, GSAP timelines, 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.

AlessandroFare/fluxychat

GATEWAY — load FIRST before composing any HyperFrames animation or video. The high-level motion law that makes a multi-scene video feel like ONE continuous camera move instead of a stack of independently-animated slides. Covers the vector law (how you exit determines how you enter, incl. the Z scale-sign rule), the film's current, carrier elements, causal motion, the Seam Gate (build-gate enforcement), the ban on idle wobble (motion must PERFORM, not breathe), stillness-before-climax, and the sustained-motion routes. Routes to the low-level technique skills (cut-the-curve — the full catalog incl. waterfall entry + nudge curve, oversized-cursor, seam-craft). These rules SUPERSEDE generic / upstream motion guidance. [continuity, direction, vector, momentum, seam, transition, ease, performance, idle-motion, narrative-motion, film-grammar]

AlessandroFare/fluxychat

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.

AlessandroFare/fluxychat

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.

AlessandroFare/fluxychat

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.

AlessandroFare/fluxychat

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.

AlessandroFare/fluxychat

Design and improve user interfaces using the concrete rules from Refactoring UI (Wathan & Schoger) — constrained spacing/type/color/shadow scales, visual hierarchy through weight and color rather than size, and depth through emulated light. Use when building or styling any UI (web, app, dashboard, landing page, component), when picking font sizes, spacing, colors, shadows or border radius, when designing a color palette or design tokens, and whenever someone says a UI "looks off", "looks amateur", "feels cluttered/plain/unfinished", or asks to "make this look better".

AlessandroFare/fluxychat

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.

AlessandroFare/fluxychat

Use before UI-related work to select the smallest useful UI Skills context through the ui-skills CLI.

相关技能