Communitygithub.com

Alemoterani/auto-edit-hyperframes

GATEWAY — 在创作任何 HyperFrames 动画或视频前,必须先加载此技能。它定义了使多场景视频感觉像一次连续相机运动而非独立动画幻灯片堆叠的高级运动法则。涵盖向量法则、电影流、载体元素、因果运动、接缝门控、禁止空闲晃动、高潮前静止以及持续运动路线。这些规则优先于通用/上游运动指南。

auto-edit-hyperframes 是什么?

Motion Doctrine (Gateway) 是一个针对 AI 代理(如 Claude Code、Cursor、Codex)的高级运动设计指南技能,用于创建连续性极强的多场景动画。它强制要求用户在设计每个场景前,先创建**向量账本**(`ledger.json`),确保不同场景间的转换遵循统一的“连续相机运动”法则。该技能定义了严格的向量法则(包括 Z 轴缩放符号规则)、电影流(当前方向)、载体元素、因果运动链等技术细节。它提供的核心工具是**接缝门控**机制(通过 `scripts/seam-stamp.mjs` 和 `scripts/seam-gate.mjs` 脚本实现),能够静态验证动画接缝是否满足连续性要求,包括方向匹配、速度匹配、零重叠和中途切入等。该技能同时禁止了无意义的空闲晃动,强制要求每个场景帧都必须承载有意义的信息或动作,并通过多种持续运动路线(如分阶段揭示、有意图的相机移动、顺序 UI 生命周期、动画序列和光标引导动作)来维持观众兴趣。它还提供了常见的反模式清单,帮助用户避免典型的动画设计错误。

兼容平台~Claude Code~Codex CLI✓Cursor
npx skills add https://github.com/Alemoterani/auto-edit-hyperframes/tree/HEAD/vendor/hyperframes/.agents/skills/motion-doctrine

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

运动法则(网关)

在创作任何动画之前,请先阅读本文。它决定了每个接缝处发生什么,以及每个场景如何表演;技术技能(technique skills)负责执行这些规则。这些规则取代通用/上游的运动指导。本技能旨在避免以下失败:单独创作的多个场景 —— 眼睛的动量在每次剪辑处中断,场景在进入和退出之间原地晃动。

路线图

决策(本技能)执行技能(implementation skill)
接缝过渡选择 + 参数 + 代码cut-the-curve §1–5(目录)
文本/元素进入级联cut-the-curve §6(瀑布进入)
场景内组重新定位(无剪辑)cut-the-curve §7(微调曲线)
光标引导的动作/场景启动/变形触发oversized-cursor
接缝渲染机制/白色闪光防护seam-craft
产品发布/解说/字幕工作在上游技能之上叠加 text-beat-economics、brand-faithful、captions-overlay

创作顺序:向量账本(ledger.json)→ 从中盖章主接缝(scripts/seam-stamp.mjs --ledger ledger.json --write index.html)→ 每个阶段的持续运动路线 → 载体和原因 → 构建组件 → 验证(scripts/seam-gate.mjs)。 仅手动创建 A 级变形/匹配剪辑;盖章的接缝通过构造即通过门控。


第 1 部分 — 接缝法则

向量法则

场景 A 如何退出决定了场景 B 如何进入:相同的轴,相同的方向,匹配的速度,双方都在运动中途进行剪辑。

  1. 轴(Axis) — x 保持 x,y 保持 y,Z 保持 Z。绝不能在剪辑时交换轴。
  2. 方向(Direction) — 绝不能镜像。在 Z 轴上,方向 = 缩放改变的正负号:变大 = 推进(相机向前),变小 = 拉回(相机向后)。一个缩小的退出被一个从小变大的进入所回应,这就是镜像向量——最常见的违规,因为从小变大是元素进入的默认方式。
  3. 速度(Speed) — 进入的初始速度 ≈ 退出的最终速度,通过镜像缓动实现(退出使用 power4.in + 进入使用 power4.out,距离和持续时间相同;进入侧在概念路径上达到 ≥50% 时才被拾取)。具体机制见 cut-the-curve。
  4. 相位(Phase) — 剪辑在双方都落在运动中途。在剪辑前静止下来,或在剪辑后从静止开始,都属于死节拍。

电影流(The Current)

每部电影选择一个主导方向(家庭默认:左)。每个普通接缝都使用这个方向。其他向量是保留的——使用其中一个意味着什么:

向量意义
当前方向(左)“下一个节拍”——中性的前进进度
向上提升——结论或揭示超越了之前的内容
Z 向前(缩放穿入)深入同一个想法
Z 向后(反向缩放)抵达——某种更大的东西着陆了
缩放爆发(向外爆开)离开一个世界——一个表面从相机前炸开
  • 绝不要连续运行相反方向的接缝——乒乓效应被认为是一个错误。
  • 方向改变需要一个可见的原因(点击/弹跳/撞击)或一个章节边界。

向量账本

在创作任何主时间线之前,先编写它——作为项目根目录下的 ledger.json(模式:references/seam-gate.md)。每个接缝一行:剪辑时间、退出和进入向量(轴 + 有符号方向;Z 轴行携带缩放符号)、选择器、技术。退出和进入必须匹配;如果某一行不匹配,修复计划,而不是缓动。验证程序在任何运行时采样之前,静态检查行的连贯性。

载体(Carriers)

眼睛跟随物体,而不是抽象概念。最强的接缝会在匹配的位置和速度上,将一个具体载体穿过剪辑传递:一个放在路径中间的鼠标光标,一个折叠/停靠到下一个布局中的容器,一个飞入精确卡槽的标记,一个瀑布切割的词组。如果没有自然载体,场景的主角(heroes)将承担传递(部分移动 + 早期淡入,中途进入)。绝不要使用交叉淡入淡出——它根本没有载体。

因果运动(Causal Motion)

链接运动,使每个动作都能被前一个动作明显触发:点击 → 压缩 → 释放弹簧 → 飞行 → 撞击 → 回弹 → 揭示。

  • 效果在触发帧上开始——相同的时间线位置,从不是“稍后”。
  • 反应与隐含质量成比例:大元素回弹较慢,小元素则快。
  • 力是改变方向的许可证;没有原因的翻转就是乒乓效应。

接缝门控(构建门控——运行验证器,退出码为 0 或接缝未完成)

node <SKILL_DIR>/scripts/seam-stamp.mjs --ledger ledger.json --write index.html  # 生成
node <SKILL_DIR>/scripts/seam-gate.mjs  verify --ledger ledger.json --project .  # 验证

该脚本(用法 + 账本模式:references/seam-gate.md)对每个接缝进行数值强制执行:账本行连贯性、退出时仍在运动、进入时中途飞行(绝不自静止开始)、测量方向 = 账本方向、进入/退出速度匹配(WARN)、零重叠(每帧只显示一侧——剪辑不是溶解)、Z 符号规则(d(scale)/dt 两侧符号相同;检查进入场景自身入口是否存在符号冲突),以及包含祖先缩放的载体矩形连续性。在编写账本时,使用 seam-gate.mjs probe --t <cut> 来找到每个接缝的真实载体选择器。

脚本无法检查的规则——仍然是你的责任:

  1. 编辑会重新打开接缝。 对场景首尾约 1 秒内所做的任何更改(包括为新的画外音重新计时)将使该边界的审计无效——重新运行验证器。
  2. 音频是时钟。 根据画外音的真实单词时间戳对场景进行重新计时;绝不要为了适应某个时间槽而匆忙读完一段文字。重新生成画外音会重新打开其接缝。
  3. 剪辑门控陷阱(零重叠失败最常见的起因): 如果一个剪辑的 data-start 在其进入补间(enter tween)之前,它会在初始透明度下被取消隐藏——请设置初始的 autoAlpha: 0并且 data-start 等于剪辑时间,绝不要更早。

第 2 部分 — 表演(场景持续表演)

禁止空闲晃动

空闲的正弦循环(呼吸、漂浮、漂移、辉光脉冲)作为持续运动被禁止——它们看起来像是“视频在等待”。一个完成进入后还有好几秒空闲的场景是一个规划错误:增加故事,而不是晃动。进入和退出之间的每个阶段都由以下路线之一支配(在计划中为该路线命名):

路线它是什么
分阶段揭示保留一些内容;在叙事节拍上呈现——帧持续获得信息(默认用于 ≥2 个内容组)
有意图的相机一个有映射的缩放+平移路径:建立全景 → 移动 → 到达主体
顺序 UI 生命周期产品随时间行为:进度推进、亮点步骤、计数递增
动画序列元素演绎一个节拍:一张卡折叠成一叠,一个项目被拖动,一个结果组装起来
光标引导动作一个超大光标将眼睛引导到触发器;其 CLICK 触发下一个节拍(oversized-cursor)

测试:在任意一秒暂停——必须有一个有意义的动作正在进行中(一个揭示正在落地,相机正在移动,UI 正在执行旁白所说的内容)。

高潮前静止

在主要动作及其结果之间安排 0.3–0.75 秒的停顿——戏剧性的逗号。一个从动作直接跳到结果的场景会丢失这种效果。

计时意图

  • 单个进入 ≤ ~800 毫秒;更长的构建 = 多元素交错的节奏,而不是一个慢速元素。
  • 退出 ≈ 进入时间的 75%。例外:cut-the-curve 反转了这一点(进入时间 ~127% 的退出时间)。
  • 总交错 ≤ 500 毫秒;对于 8 个或更多元素,收紧每个项目的延迟或仅交错前几个。
  • 禁止的缓动:bounce.out / elastic.out。进入过冲 back.out(1.4–1.7) 可以。
  • 相似的元素共享一个缓动+持续时间意图——绝不为每个元素设置独特的缓动对。

过渡词汇表

每部电影只使用 2–3 种场景间过渡并重复它们;默认边界是当前方向下的 cut-the-curve。手写的共享元素变形(intent: morph)不计入预算。


反模式

不要这样做应该这样做
孤立地创作每个场景的入口先编写向量账本
在场景之间使用交叉淡入淡出在当前方向下使用 cut-the-curve
退出完成,然后场景才改变双方都在运动中途进行剪辑
剪辑后从静止开始进入进入时,在概念路径上 ≥50% 处
反向缩放退出 → 从小变大进入(或推进 → 过大回缩)匹配缩放速度的符号(接缝门控第 7 条)
进入场景在 Z 轴接缝交接下使用自身的弹出式介绍将其开场帧保持为已构图状态,或匹配符号
空闲晃动 / 呼吸 / 浮动以填充时间指定一个持续运动路线;或增加故事
没有原因的方向翻转使用一个力,或者保持当前方向
将保留向量用作多样性默认使用当前方向;仅在表达意义时才使用保留向量
反应出现在其触发后的几帧在同一帧触发
动作直接跳到结果安排高潮前静止(0.3–0.75 秒)

Individual skills in this repo

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

Alemoterani/auto-edit-hyperframes

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.

Alemoterani/auto-edit-hyperframes

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.

Alemoterani/auto-edit-hyperframes

The technique catalog: five velocity-matched SEAMS (zoom-through, INVERSE zoom-through, cut-the-curve, waterfall cut, rack-focus blur-cut) plus the two in-scene techniques — waterfall ENTRY (staggered arrival cascades for title cards / segment openers) and the nudge curve (slow-fast-slow three-phase group slides). Covers partial-travel (~12% of frame) velocity matching via mirrored power4 eases, the Z scale-sign rule, size-scaled blur (10px text / 18-20px full-frame), word-by-word staggered cuts, cascade pacing by element weight, and the 10/65/25 slide ratio. Read before authoring any transition, text-beat handoff, kinetic text entry, or group reposition. [depth, zoom, inverse-zoom, scale-sign, mirrored-zoom, rack-focus, pacing, velocity, cut-the-curve, waterfall, stagger, cascade, kinetic-text, title-card, segment-opener, nudge, slide, easing, group-motion, z-depth, motion-graphics, cinematic, transition, blur, directional-continuity]

Alemoterani/auto-edit-hyperframes

House-style oversized macOS cursor technique for HyperFrames launch videos. Load whenever a scene involves cursors or a pointer-led action, when kicking off a UI scene, when igniting a morph/transition/typing run with a click, or when a scene reads as static, dead, or stale and needs a cheap high-yield source of motion to carry the viewer's eye and segment them out of the stale state. Covers cursor size/look (incl. brand-motif cursors), the off-screen entry law, tip-targeting and the click tap, click-ignites-the-next-beat, and exit / cross-scene handoff.

Alemoterani/auto-edit-hyperframes

Render-correctness doctrine for scene-to-scene seams in HyperFrames launch videos — the prerequisites that make transitions composite correctly on the master timeline. Load when assembling the master timeline / index.html, when a white flash appears at a cut or crossfade seam (especially on dark films), when reasoning about why a transition opacity dip shows through, or when verifying the render-side mechanics of how overlapping scene wrappers blend. Covers the opaque stage-ground (#root background) white-flash guard and how the injector overlaps wrappers, holds final frames, ping-pongs tracks, and stamps lint-clean template code onto the master timeline. Does NOT contain the per-transition catalog — see the transition registry for individual transition entries.

Alemoterani/auto-edit-hyperframes

Leaves sweep through the frame and part to reveal the headline. HyperFrames block, 1920×1080, 12s, 11 variables.

Alemoterani/auto-edit-hyperframes

A tiled headline surface flips cell by cell under a sweeping depth field to reveal the rear headline. HyperFrames block, 1920×1080, 8s, 18 variables.

Alemoterani/auto-edit-hyperframes

A chain of bevelled cuboids rides a travelling wave as a content carousel. HyperFrames block, 1920×1080, 6.666666666666667s, 40 variables.

Alemoterani/auto-edit-hyperframes

An orbiting camera follows an ice logo as it breaks apart, reforms into two text moments, and fades. HyperFrames block, 1920×1080, 22.5s, 216 variables.

Alemoterani/auto-edit-hyperframes

Glass shards fly in through fog and tile themselves into the headline. HyperFrames block, 1920×1080, 12.16s, 19 variables.

Alemoterani/auto-edit-hyperframes

A single feature card orbits a dot sphere on approved Blender camera motion. HyperFrames block, 1920×1080, 10s, 4 variables.

Alemoterani/auto-edit-hyperframes

A wireframe portal bursts open, the title comes through, then its letters swap into a second phrase. HyperFrames block, 1920×1080, 8s, 9 variables.

Alemoterani/auto-edit-hyperframes

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.

Alemoterani/auto-edit-hyperframes

Turn arbitrary text — an article, notes, a topic, a brief — into a faceless explainer video: there is no site or footage to capture, so the visuals are invented per scene (typography, abstract graphics, diagrams, data-viz). Use for topic explainers, concept breakdowns, how-tos, listicles. Not a video built from a website (/product-launch-video — promo or tour). Unclear → /hyperframes.

Alemoterani/auto-edit-hyperframes

Import Figma content into a HyperFrames composition — rendered assets, brand tokens, components, storyboard sections → reconstructed motion (frames read as states, not slides) (REST/CLI), connector-assisted motion when available, and shaders from a connector or native export. Use when the user pastes a figma.com link or asks to bring a Figma design, frame, logo, brand, or animation into a video/composition.

Alemoterani/auto-edit-hyperframes

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.

Alemoterani/auto-edit-hyperframes

All animation knowledge for HyperFrames — atomic motion rules, multi-phase scene blueprints, scene transitions, broader motion-design techniques, AND the seven runtime adapters (GSAP default, plus Lottie, Three.js, Anime.js, CSS keyframes, Web Animations API, TypeGPU). Use for any motion or animation task: pick 2-4 rules and compose, or load a blueprint, or look up runtime-specific API (e.g. GSAP eases / Lottie player / Three.js mixer). Also covers auditing an existing composition's choreography (animation map) and 24 named text-animation effects. HyperFrames-native: single paused timeline, seek-safe, deterministic.

Alemoterani/auto-edit-hyperframes

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

Alemoterani/auto-edit-hyperframes

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

Alemoterani/auto-edit-hyperframes

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.

相关技能