Communitygithub.com

Alemoterani/auto-edit-hyperframes

用于HyperFrames合成中的推拉镜头、缩放、重新构图、Ken Burns效果、摄像机运动、视觉匹配/甩镜头过渡,以及其他安全可寻的2D/3D关键帧动画;也支持GSAP、CSS关键帧、Anime.js、WAAPI、FLIP、路径、蒙版、SVG变形/绘制、文字轨迹、3D景深,或`hyperframes keyframes`诊断。不用于宏观场景策略、品牌设计、素材来源、字幕或通用视频规划。

auto-edit-hyperframes 是什么?

此技能专为HyperFrames框架设计,专注于创作安全可寻的2D/3D关键帧动画,涵盖推拉、缩放、Ken Burns、摄像机移动、视觉匹配/甩镜头过渡等效果,同时支持GSAP、CSS关键帧、Anime.js、WAAPI、FLIP等现代动画库,以及路径、蒙版、SVG变形、文字轨迹、3D景深等高级特性。它遵循明确的责任边界:关键帧仅控制视觉运动,不涉及剪辑组装、时间线修剪或音频处理——这些分别由`/hyperframes-core`和`/hyperframes-audio`负责。使用此技能时,必须识别动画主体和可见状态,选择最小的实现机制(必要时参考`references/keyframe-patterns.md`),在声明的运行时间内创作关键帧,并通过`hyperframes check`、`hyperframes keyframes`等诊断命令进行验证。可用于任何支持HyperFrames的平台(如Web应用、视频编辑工具等),提供严谨的逐帧级运动控制,而非自动语义重构或面部追踪。

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

在你喜欢的 AI 中提问

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

文档

插件安装: 在执行 setup 或 freshness 命令之前,如果此技能位于 HyperFrames 插件内,请遵循插件执行规则。独立安装请保留下面的更新说明。

HyperFrames 关键帧

关键帧是一种姿态约定:可见状态、连续主题身份、寻道安全运行时、已验证像素。

使用 hyperframes-animation 处理广泛的场景配方。使用 hyperframes-cli 获取完整命令文档。仅在选择实现机制(而非视觉风格)时使用 references/keyframe-patterns.md。

创作者编辑边界

关键帧负责视觉运动,而非剪辑组装。源范围硬切、修剪、拼接和重新排序属于 /hyperframes-core:为每个保留范围创作一个媒体元素,使用 data-start 和 data-duration 放置,并使用 data-media-start 选择其源偏移。相邻范围构成硬切。交叉淡入淡出使用不同轨道上的重叠剪辑加上视觉不透明度关键帧;声音淡入淡出使用 /hyperframes-audio。

创作者请求真实机制
推入/推出在剪辑内部的非计时视觉/裁剪包装器上,使用带有 x/y 或百分比平移的关键帧 scale。对于硬推入使用 set/short tween,对于平滑移动使用 tween。
平滑多状态缩放或重新取景保持一个主题包装器存活,并将多个缩放/重新取景状态编写为带有逐段缓动的姿态阶梯。
平移、重新取景或肯·伯恩斯摄像机移动动画化包装器平移及缩放。几何是创作的;这不是面部追踪或自动语义重新取景。
链式摄像机移动在一个已注册的寻道安全时间线上链接标记的变换节拍。
匹配剪辑或甩镜头/hyperframes-animation 负责视觉交接;/hyperframes-registry 提供基元;关键帧保留创作的几何、方向和速度。没有自动匹配帧发现。
裁剪和遮罩重新取景在内部视觉包装器上插值 clip-path 或遮罩以裁剪/重新取景,而不更改源时间。多边形关键帧可以形成多边形/遮罩过渡。
定向划切或虹膜/揭示切割在重叠的视觉剪辑上动画化遮罩/剪辑边界;/hyperframes-animation 负责交接编排。
分屏交接由 core 放置两个视觉剪辑,然后关键帧化它们内部的裁剪/遮罩包装器和分隔线几何。
恒定源重定时/hyperframes-core 拥有标准化的 data-playback-rate(0.1..10),用于渲染安全的图像和保音高的声音。它对于整个媒体元素是恒定的。
源速度斜坡<video>/<audio> 上的 data-automation 中的 rate 通道(t 以剪辑秒为单位,v 0.1..10,对数插值);它覆盖恒定速率。
冻结/保持视觉姿态、最终源帧或完成的子合成可以保持。不支持任意中间源冻结;预处理一个静止/派生片段,将其放置为自己的剪辑,然后使用另一个源范围恢复。

在同时编辑画面和声音时,加载 /hyperframes-core、此技能(用于视觉运动)和 /hyperframes-audio(用于已放置轨道上的淡入淡出、交叉淡入淡出、音量自动化、闪避/雕刻或效果)。

视觉过渡或裁剪处理不是时间上的源修剪或拼接。/hyperframes-core 拥有时间线、剪辑时序和源范围;关键帧仅在这些剪辑内的包装器上动画化可见的交接或裁剪。对于可复制的组合画面/声音配方,请使用 /hyperframes-core → references/creator-editing-recipes.md。

步骤

  1. 识别动画主题、可见状态、最终状态和运行时。
  2. 选择能证明提示的最小机制。仅在机制不明确时阅读 references/keyframe-patterns.md。
  3. 在声明的运行时内创作寻道安全关键帧。仅在构建完成后注册运行时实例;在 document.fonts.ready 内构建是可以的。
  4. 使用 hyperframes check(运行 lint)、hyperframes keyframes、一个聚焦的 --shot 以及在证明时间点的快照进行验证。
  5. 如果证明失败,在渲染前修复源关键帧并重新运行最小的失败诊断。

约定

  • 命名移动主题。
  • 命名证明预期运动所需的姿态,包括最终状态。
  • 关键帧化可见通道,而非隐藏辅助状态。
  • 在连续性重要时保留对象身份。
  • 仅在预期运动是替换或溶解时使用交叉淡入淡出。
  • 保持可读或语义状态足够长时间以便看清。
  • 最终帧是动画的一部分,而非清理。
  • 除非请求,否则不要重置为静止状态。
  • 除非请求,否则不要以黑色结束。
  • 如果编辑起始场景,除非要求重新设计,否则保留布局、副本、资产、颜色和最终状态。

运行时规则

GSAP:

  • 在页面加载时或 document.fonts.ready 内构建,并仅在构建完成后注册
  • 使用 gsap.timeline({ paused: true })
  • 注册为 window.__timelines[compositionId]
  • 注册键必须匹配 data-composition-id
  • 不要调用 tl.play() 进行渲染关键运动
  • 保持重复有限

CSS 关键帧:

  • 有限持续时间和迭代次数
  • 确定性的延迟
  • animation-fill-mode: both
  • 当时序属于剪辑时使用 data-start

Anime.js:

  • 同步创建
  • autoplay: false
  • 有限持续时间和循环
  • 将每个实例推送到 window.__hfAnime

WAAPI:

  • 有限 duration
  • fill: "both"
  • 确定性的构建
  • 文本表面不列出 WAAPI;使用 --shot(它会寻道 WAAPI)和快照验证

切勿用于渲染关键运动:

  • Date.now()
  • performance.now()
  • 未播种的 Math.random()
  • 悬停/滚动触发器
  • 定时器
  • 在其异步构建完成之前注册的时间线
  • 未注册的 requestAnimationFrame
  • 无限循环

GSAP 骨架

const root = document.querySelector("[data-composition-id]");
const compositionId = root.dataset.compositionId;
const tl = gsap.timeline({ paused: true });

tl.addLabel("state-a", 0);
tl.to(".subject", {
  keyframes: [
    { x: 0, opacity: 1, duration: 0.2 },
    { x: 120, opacity: 1, duration: 0.4, ease: "power2.out" },
    { x: 100, opacity: 1, duration: 0.2, ease: "power2.inOut" },
  ],
  ease: "none",
});

window.__timelines = window.__timelines || {};
window.__timelines[compositionId] = tl;

使用标签表示语义状态。使用位置参数而不是链式延迟。对于后来接触同一属性的 from()/fromTo() 补间,使用 immediateRender: false。

关键帧形式

  • 数组关键帧:带逐步持续时间和缓动的姿态阶梯。
  • 百分比关键帧:一个补间内的精确时序。
  • 属性数组:紧凑的多停点变化。
  • 当每个停点携带自己的缓动时,父级使用 ease: "none"。
  • 当每个片段共享相同感觉时使用 easeEach。

不要从示例中复制数值距离或时序。从实际合成几何和持续时间中推导它们。

对于一个主题在两个盒子之间移动,更倾向于一个连续变换补间或 FLIP。仅当观看者应感受到不同节拍时才将 x/y/scale 拆分为多个缓动关键帧;每个片段都会改变速度,并可能被解读为顿挫。

通道

优先选择合成器/视觉通道:x/y/z、xPercent/yPercent、scale、rotationX/Y/Z、skew、transformOrigin、svgOrigin、opacity、autoAlpha、clip-path、遮罩、CSS 变量、SVG 路径/ dash 值、摄像机变换、着色器统一变量。

避免布局/生命周期通道:top/left/right/bottom、width/height、margin/padding、display、visibility、后期 DOM 创建、执行主题运动的辅助覆盖层。

对于可见性变化,在已注册的可寻道 GSAP 时间线上使用 autoAlpha,或在明确边界处使用零持续时间的 tl.set()。仅针对非剪辑元素或剪辑内的包装器;切勿针对 .clip 本身。切勿对原始 visibility 进行持续时间补间,也切勿对 display 进行补间。

机制选择

选择能证明提示的最小机制:

需求机制
同一主题更改框或层次结构共享元素 / FLIP
主题沿可见路径移动路径行进
描边增长或追踪描边绘制
形状变为另一个形状形状插值
揭示边界可见剪辑、遮罩或着色器统一变量
许多项目按顺序移动交错 / 索引延迟
文本本身移动行、词、字符或带状细分
表面弯曲、拉伸或裁剪父子反变换
UI 有状态显式状态机
场景有深度DOM 3D、Three.js 或 WebGL 摄像机/对象关键帧

机制可以组合,但每个机制必须阐明想法。装饰不是证明。

时序

  • 仅当它阐明原因或方向时使用预期。
  • 加速离开静止状态。
  • 峰值证明明确展现机制。
  • 后续动作体现能量和方向。
  • 仅当主题应感觉有弹性或触感时使用过度。
  • 恒速路径行进通常需要 ease: "none"。
  • 离散 UI 状态通常需要锐利的缓出。
  • 重复元素需要有序偏移,而非相同时序。
  • 最终锁定需要比过渡姿态更长的保持。
  • 平滑意味着同一主题上的连续速度。
  • 不要重叠写入相同变换属性的补间,除非重叠是有意且经过验证的。
  • 避免在主要英雄表面也在缩放或移动时动画化大的 clip-path/遮罩变化;在主要移动稳定后使用嵌套揭示。

文本

保留行框、词间距、可读性和最终适配。如果文本内部移动,移动字形或遮罩带,而不仅仅是文本周围的装饰。快照可读帧。

SVG

对于描边生长,首选 DrawSVGPlugin,然后是 stroke-dasharray/stroke-dashoffset。对于形状插值,首选 MorphSVGPlugin;必要时将基元转换为路径,并将复杂轮廓拆分为更简单的部分。

3D

单独的缩放是假深度。在稳定父级上使用透视、transform-style: preserve-3d、z 移动、旋转、摄像机/世界运动、遮挡和层顺序(当对象交叉时)。

使用一两个揭示深度关系的诊断角度。如果角度证明未显示深度交叉,则改进 z/摄像机/遮挡。

Canvas / WebGL

通过确定性状态对摄像机位置、摄像机目标、对象变换、材质不透明度、着色器统一变量和后处理强度进行关键帧化。从 HyperFrames 时间渲染。使用 --ghost,因为标记框无法看到内部画布运动。

CLI 证明

npx hyperframes check
npx hyperframes keyframes .
npx hyperframes keyframes . --json
npx hyperframes keyframes . --runtime all
npx hyperframes keyframes . --selector "<selector>" --shot "<file>" --samples <n>
npx hyperframes keyframes . --selector "<selector>" --shot "<file>" --layout strip --from <t0> --to <t1>
npx hyperframes keyframes . --shot "<file>" --ghost --angle <angle>
npx hyperframes snapshot . --at <times>

为真实动画主题选择 <selector>。为第一帧、证明姿态、最终减去保持和精确最终选择 <times>。仅在深度必须证明时选择 <angle>。

工具证明
keyframes目标、显式停止点、路径、轨迹、合成父子运动、CSS 停止点、Anime 注册
--shot重影、路线形状、时间间距、DOM 3D 投影、聚焦选择器证明
--layout strip原地运动、重叠、接触、微妙缩放/不透明度、文本波动
--ghost画布、WebGL、着色器运动、渲染的 3D
snapshot --at遮罩

…

[已截断以进行翻译]

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

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.

相关技能