Communitygithub.com

Alemoterani/auto-edit-hyperframes

技术目录:五种速度匹配的 SEAM(缩放穿越、反向缩放穿越、切曲线、瀑布切、焦段模糊切)以及两种场景内技术——瀑布入场(用于片头/段落开场)和微移曲线(慢-快-慢三阶段群组滑动)。涵盖部分移动(~12% 画幅)通过镜像 power4 缓动的速度匹配、Z 轴符号规则、按尺寸缩放的模糊(10px 文本/18-20px 全画幅)、逐词交错剪切、按元素权重级联节奏以及 10/65/25 滑动比例。在创作任何过渡、文本节拍交接、动态文本入场或群组重定位前阅读。

auto-edit-hyperframes 是什么?

该技能是《自动编辑超帧》技术目录,为 AI 智能体(如 Claude Code、Cursor、Codex)提供七种核心动态图形剪辑技术的详细参数与机制,包括五种速度匹配的 SEAM(场景间或场景内拆接手法)和两种场景内技术。技能覆盖从 Z 轴缩放穿越、XY 轴“切曲线”到逐词“瀑布切”等多种过渡类型,并附有完整 GSAP 代码模板。其核心原则是“在峰值速度处剪切,匹配剪切两侧的方向和速度”,确保视觉流动的连贯性。技能还提供了完整的技术选择矩阵、反模式列表以及严格的模糊、缓动和时序参数,帮助 AI 智能体在创作动态标题、文本节拍交接或群组重定位时做出精确的动画决策。

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

在你喜欢的 AI 中提问

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

文档

切曲线 — 技术目录

五种 SEAM 技术,一条原则:在峰值速度处剪切,匹配剪切两侧的方向和速度——外加两种场景内技术(§6 入场,§7 滑动)。SEAM 法则——矢量法则、电流、账本、SEAM 门——位于 motion-doctrine 中;请先阅读它。本技能是参数和机制。所有 GSAP 代码模板(worker + registry):examples/gsap-implementation.md。

目录

编号技术范围轴用途
1缩放穿越(正向)场景内文本交换Z,朝向观众深入同一想法时推进
2反向缩放穿越到达/高潮节拍Z,远离观众展示更重大的内容落下
3切曲线场景之间X / Y默认边界,影像的“电流”
4瀑布切文本到文本的接缝X,逐词大字幕节拍之间的逐词交接
5焦段模糊切同表面状态交换X / Y / Z你希望被看见的唯一剪切——DSLR 拉焦效果
6瀑布入场场景内到达(无接缝)Y,从下方片头卡、段落开场、列表介绍
7微移曲线场景内群组滑动(无接缝)X / Y重新定位编排好的群组以腾出空间

Z 方向是一个符号

“相同轴”在 Z 轴上还不够——d(scale)/dt 的符号必须在剪切两侧匹配:

Z 矢量退出缩放进入缩放变体
推(正向)增长 1 → 1.2增长 0.75 → 1缩放穿越
拉(反向)缩小 1 → 0.8缩小 1.25 → 1反向缩放穿越

禁止的镜像:退出的缩小被缩放入场响应(拉反转为了推——这是常见的,因为从小变大是默认的元素入场),以及退出的推进被过大的收缩响应。这约束了进入场景自身在接缝窗口内的入场(剪切 + ~0.5s),而不仅仅是包装器补间:保持进入帧编排好,或者创作其入场以匹配符号。每条 SEAM 门规则 7 验证。

模糊逻辑(所有 Z 变体)

对象峰值模糊原因
文本缩放(标题、词组)10px20px 使字母模糊——剪切读作故障而非速度
全画幅表面(窗口、卡片、截图)18–20px大表面上较浅的模糊读作渲染错误

在交换帧上,两侧的峰值模糊相同。模糊包装器,切勿模糊子元素。


1. 缩放穿越(正向)

Z 轴速度匹配剪切;两个文本绝不都可见。 一切增长:退出的文本加速朝向摄像机,在峰值模糊处进行硬交换,进入的文本继续增长进入焦平面。仅限标题和短短语。总计 ≈ 0.4s。

阶段缩放模糊不透明度缓动时长
退出1 → 1.20 → 10px1 → 0.15power3.in(不透明度:单独的 none 补间)0.2s
剪切(tl.set)进入:0.7510px退出:0 / 进入:0.15——
进入0.75 → 110 → 0px0.15 → 1expo.out0.5s

退出不透明度必须是其自身的线性补间——power3.in 会使不透明度在接近 1 处保持过久。进入时,所有属性共享 expo.out。

2. 反向缩放穿越(反向)

拉回的镜像:退出的元素后退;进入的元素过大(仿佛就在摄像机后方)并缩回焦平面。一切缩小。用于到达/高潮节拍——一句高潮台词、巨幅回复、一个保持的最终状态——而不是普通边界。总计 ≈ 0.7s(30% 退出 / 70% 进入)。

阶段缩放模糊不透明度缓动时长
退出1 → 0.80 → 10px1 → 0.15power3.in(不透明度:单独的 none 补间)~0.2s
剪切(tl.set)进入:1.2510px退出:0 / 进入:0.15——
进入1.25 → 110 → 0px0.15 → 1expo.out~0.5s

模糊为 10px 文本缩放;仅当两侧均为满幅表面时使用 18–20px。

符号纪律: 进入场景以编排好的帧形式到达收缩的包装器内部——在接缝窗口内没有从小变大的引入。分阶段的入场在收缩稳定后发生,或者从 ≥1 开始并收缩。

3. 切曲线(默认场景边界)

X/Y 速度匹配剪切——所有场景到场景边界的默认方式,在影像的“电流”中,而非一种强调。退出的主角沿一个方向加速,剪切在运动中途落下,进入的主角继续相同方向并减速。总计 ≈ 0.6s;方向 左 / 右 / 上 / 下(默认左)。

部分移动: ~12% 画幅(在 1920 分辨率下约 230px)——绝不进行完全离屏移动。

方向退出进入起点 → 终点
向左x: 0 → −230x: +230 → 0
向右x: 0 → +230x: −230 → 0
向上y: 0 → −230y: +230 → 0
向下y: 0 → +230y: −230 → 0

机制:

  • 镜像缓动: 退出 power4.in + 进入 power4.out,相同距离和时长——一个 power4.inOut 的两半,因此速度在剪切处精确匹配。
  • 淡出技巧: 退出不透明度在其移动的 ~25–30% 处完成(淡出约 0.18–0.3s 对比移动 0.3–0.34s);进入在其路径中途以 ~0.35 不透明度点燃。计时使最后一个淡出元素恰好在剪切处消失——没有任何移动的间隙会读作死区。
  • 退出 0.2–0.4s;进入 ≥ 退出。可选模糊 8–10px。
  • 舞台背景: #root 必须是不透明的(background: var(--canvas-deep, var(--canvas, #000)))——中间窗口剪切会打开一个总和不透明度 < 1 的窗口,否则会闪烁白色(参见 seam-craft)。

push-slide 存在但违反部分移动和运动中途相位;优先使用切曲线。

4. 瀑布切(逐词切曲线)

逐词粒度的切曲线——文本到文本接缝中最强的向左剪切。退出的词语在各自的曲线上加速退出;进入的词语在半空中级联进入——一条眼睛跨越接缝的波浪。

范围: worker 在一个多节拍合成(堆叠全幅 .beat 层)内部创作,非注册器/注入器类型——它对词语跨度进行补间,而非剪辑包装器。进出文本节拍块的边界仍然获得正常的注册器过渡。不计入 2–3 过渡预算。

参数值原因
移动±230px(~12% 画幅)部分移动 + 速度 > 全画幅推送
退出0.34s power4.in加速本身就是剪切
退出淡出0.18s,与 x 同时开始词语在 ~25–30% 移动处消失——无拖影
退出交错阅读顺序 +0.022s一行被剥除,而非块状滑动
进入0.3s power4.out复合的后半部分——速度匹配
进入起点不透明度0.35中途点燃;二进制 0→1 会弹出
进入间隙0.05s × 0.84 衰减加速级联,最终编排完成

规则:

  • 每个链一个方向,沿电流前进。反向缩放穿越仅用于链的高潮节拍。
  • 在构建时预设所有词语为 x: +230, opacity: 0——仅有 immediateRender: false 会使未开始的词语在静止时可见。
  • 一个短的第一个节拍可以整行退出:其淡出在剪切前 ~0.02s 结束,因此当下一词语点燃时它仍在拖尾——无死间隙。
  • 仅变换/不透明度(安全寻位);应用不透明舞台背景。

5. 焦段模糊切(可见剪切)

唯一剪切被看见的变体:一个失焦模糊尖峰隐藏了单帧硬交换——手持 DSLR 拉焦效果。作为同一视觉主题内相同表面的状态交换的偶尔强调使用;绝不要作为默认边界。

与其他变体的区别:退出保持完全不透明直到剪切(模糊隐藏了交换——无早期淡出);缓动 power2.in / power2.out(柔和光学,非动量)。

规则:

  • 仅在叙事节拍时触发,每 ~8s 最多一次;绝不要在字幕中途或保持期间。
  • 在峰值模糊处剪切(≥6px;峰值 8–12px,最大 ≤16–18px)——在上升过程中交换会暴露剪切。
  • 微妙的缩放(~1.06 镜头呼吸)使其看起来像光学效果。
  • 两侧相同方向——矢量法则仍然适用。进入 ≥ 退出时长。
  • 模糊包装器;绝不要在单个元素的一个补间中同时进行模糊和不透明度操作(无头合成错误);绝不要直接模糊 <video>(包装它)。

6. 瀑布入场(场景内到达——非接缝)

交错的到达级联:词语/元素从下方(一个一致方向)快速进入,每个在前一个稳定前开始——一个加速的波浪最终形成编排好的布局。片头卡、段落开场、列表/功能介绍。接缝的兄弟是 §4;不要混淆它们的规则:

§6 入场(到达)§4 瀑布切(接缝)
不透明度通过 tl.set 在入场时二进制 0→1——从不淡入在 0.35 中途点燃——淡出就是速度技巧
默认轴Y,从下方X,沿电流前进
退出侧无词语在镜像 power4.in 上加速退出

编排:

  • 重叠,不要排队——下一个元素在前一个稳定后的 ±2 帧内开始;间隙在级联中缩小;最后一个元素快速到位。
  • 速度按重量变化——重/锚定元素移动更远更长;轻词/标点快速到位:
参数锚定/重普通词轻/标点
Y 偏移60–80px40–50px30–48px
时长0.16–0.20s0.13–0.16s0.10–0.13s
重叠0–2f 间隙1f 重叠1–2f 重叠
  • 缓动 power4.out(extra snap 使用 expo.out);绝不要在入场时使用 .inOut。
  • 每个级联一个方向。
  • 将最终词语拆分为片段以延长高潮;片段移动更远。
  • 稳定后,群组通常滑动以为下一个节拍腾出空间——那就是 §7。

7. 微移曲线(场景内群组滑动——非接缝)

慢-快-慢重新定位编排好的群组(词语行、卡片堆、列表)以揭示内容或腾出空间。没有一个内置缓动可以产生它——power4.inOut 会突然停止。在单个属性上链式使用三个补间:

阶段缓动距离时间感觉
1 斜坡进入power3.in~10%~20%几乎不动——运动被记录,无冲击
2 爆发none(线性)~65%~18%~2× 平均 px/帧——有目的
3 尾迹power4.out~25%~62%衰减爬行至静止——消除冲击

规则:

  • 尾迹在时间上 ≥ 斜坡进入的 3 倍。如果仍然有冲击:延长尾迹的时间(而非距离)或使用 power5.out。
  • 阶段 2 保持线性——缓动它会失去爆发对比。
  • 在阶段 2 期间揭示新内容——爆发掩盖了其出现。
  • 相同比例垂直方向;按比例缩放距离,保持时间比例。

选择变体

缩放穿越反向缩放穿越切曲线瀑布切
范围场景内文本交换到达/高潮节拍场景之间文本到文本接缝
Z 符号/轴增长(推)缩小(拉)X / YX,逐词
移动/缩放1→1.2,然后 0.75→11→0.8,然后 1.25→1±230px±230px
峰值模糊10px 文本 / 18–20 全幅10px 文本 / 18–20 全幅8–10px 可选无
缓动power3.in / expo.outpower3.in / expo.outpower4.in / power4.outpower4.in / power4.out
感觉正在深入正在到达被横向携带跨越接缝的波浪

反模式

| 不要做的事 | …

[由于原始内容被截断,翻译范围截止于此]

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

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]

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.

相关技能