Communitygithub.com

DansiDanutz/视频编辑器

包含 HyperFrames 所有动画知识——原子运动规则、多阶段场景蓝图、场景过渡、更广泛的动效设计技术,以及七种运行时适配器(默认 GSAP,外加 Lottie、Three.js、Anime.js、CSS 关键帧、Web Animations API、TypeGPU)。适用于任何动效或动画任务:选取 2-4 条规则进行组合,或加载蓝图,或查询特定运行时的 API(例如 GSAP 缓动 / Lottie 播放器 / Three.js 混合器)。还涵盖审查现有动画的编排图(animation map)和 24 种命名的文字动画效果。HyperFrames 原生:单一暂停时间线,可安全定位,确定性。

视频编辑器 是什么?

这是一个为 HyperFrames 平台设计的全面动画技能,它整合了所有动效创作所需的原子级知识。该技能的核心在于提供五种主要资源:原子运动规则、多阶段场景蓝图、场景过渡效果、通用动效设计技术以及七种运行时适配器。它默认使用 GSAP 作为主要动画引擎,但也支持 Lottie、Three.js、Anime.js、CSS 关键帧、Web Animations API 和 TypeGPU 等运行时,允许开发者在同一合成中混合使用多种技术。该技能提供了一套系统的方法来生成动画:对于简单动画,直接从规则索引中选择 2-4 条规则进行组合;对于复杂场景,可以加载预设计的蓝图模板。此外,它还包含一个动画图审计脚本,用于分析现有动画的编排逻辑,以及 24 种预定义的文本动画效果。该技能强制遵循 HyperFrames 核心的确定性渲染合同,例如使用单一暂停时间线、使用预计算布局常量而非运行时 DOM 测量,并严格禁止使用 Math.random() 等随机性来源,以确保动画行为的一致性和可重复性。

兼容平台~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 <组件目录> \
  --out <组件目录>/.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.

相关技能