Communitygithub.com

Alemoterani/auto-edit-hyperframes

用於 HyperFrames 組合的放大/縮小、搖攝、重新構圖、Ken Burns 效果、相機移動、視覺匹配/鏡頭交接,以及其他適合 seek-safe 的 2D/3D 關鍵影格;也適用於 GSAP、CSS 關鍵影格、Anime.js、WAAPI、FLIP、路徑、遮罩、SVG 變形/繪製、文字軌跡、3D 深度或 `hyperframes keyframes` 診斷。請勿用於廣泛場景策略、品牌設計、媒體來源、字幕或一般影片規劃。

auto-edit-hyperframes 是什麼?

此技能專門處理 HyperFrames 生態系統中所有基於關鍵影格的視覺動畫,重點在於實現 seek-safe(可安全搜尋)且像素驗證的姿態合約。它涵蓋廣泛的技術,從傳統的相機動作(如推近、拉遠、Ken Burns 效果)到進階的網頁動畫庫(GSAP、CSS 關鍵影格、Anime.js、WAAPI)和視覺效果(遮罩、SVG 變形繪製、FLIP 動畫)。此技能明確定義編輯邊界:它僅管理視覺運動,而不處理時間軸片段組裝、裁剪或音訊——這些由 `/hyperframes-core` 和 `/hyperframes-audio` 等專門技能負責。它適用於 HyperFrames 作為外掛或獨立工具的使用場景。此技能的工作原理是:使用者需識別動畫主題和目標狀態,選擇最小的實現機制(例如,盒子移動用 FLIP,路徑移動用 path travel),並在宣告的持續時間內撰寫 seek-safe 關鍵影格,最後透過 `hyperframes check` 和 `hyperframes keyframes` CLI 命令驗證。它對每個支援的庫都有明確的執行時期規則,例如 GSAP 必須使用 `paused: true` 時間軸並正確註冊,且禁止使用 `Date.now()` 或 `Math.random()` 等非確定性元素。

相容平台~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 的新對話。

說明文件

外掛安裝: 在執行設定或更新命令前,若此技能位於 HyperFrames 外掛內,請遵循外掛執行規則。獨立安裝則保留下方的更新說明。

HyperFrames 關鍵影格

關鍵影格是一種姿態合約:可見的狀態、連續的主體識別、seek-safe 執行時間、已驗證的像素。

使用 hyperframes-animation 處理廣泛場景配方。使用 hyperframes-cli 查閱完整命令文件。僅在選擇實現機制而非視覺風格時,才使用 references/keyframe-patterns.md。

創作者編輯邊界

關鍵影格負責視覺運動,而非片段組裝。來源範圍的硬切、修剪、拼接和重新排序屬於 /hyperframes-core:每個保留範圍創建一個媒體元素,使用 data-start 和 data-duration 放置它,並使用 data-media-start 選擇其來源偏移。相鄰範圍形成硬切。交叉淡出則使用不同軌道上的重疊片段加上視覺不透明度關鍵影格;聲音淡出使用 /hyperframes-audio。

創作者需求真實機制
推近 / 拉遠在片段內的非計時視覺/裁剪包裝器上,對 scale 加上 x/y 或百分比平移進行關鍵影格設定。使用一個 set/short tween 實現硬推近,使用一個 tween 實現平滑移動。
平滑多狀態縮放或重新構圖保持一個主體包裝器存活,並將多個縮放/重新構圖狀態作為一個姿態階梯進行關鍵影格設定,每個區段有自己的緩動。
搖攝、重新構圖或 Ken Burns 相機移動對包裝器的平移和縮放進行動畫。幾何形狀是作者定義的;這不是臉部追蹤或自動語意重新構圖。
鏈接相機移動在一個已註冊的 seek-safe 時間軸上,將帶標籤的轉換節拍鏈接起來。
匹配剪輯或甩鏡/hyperframes-animation 負責視覺交接;/hyperframes-registry 提供基本元素;關鍵影格保留作者定義的幾何形狀、方向和速度。沒有自動匹配影格發現。
裁剪和遮罩重新構圖在內部視覺包裝器上對 clip-path 或遮罩進行插值,以在不更改來源時間的情況下進行裁剪/重新構圖。多邊形關鍵影格可以形成多邊形/遮罩過渡。
方向性劃像剪輯或虹膜/揭示剪輯在重疊的視覺片段上對遮罩/裁剪邊界進行動畫;/hyperframes-animation 負責交接編排。
分割畫面交接由核心放置兩個視覺片段,然後對它們的內部裁剪/遮罩包裝器和分隔線幾何形狀進行關鍵影格設定。
恆定來源重定時/hyperframes-core 負責標準化的 data-playback-rate(0.1..10),以實現安全的圖片和音高保留的聲音。它對整個媒體元素是恆定的。
來源速度漸變data-automation 中 <video>/<audio> 上的 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. 在宣告的執行時間內撰寫 seek-safe 關鍵影格。僅在建置完成後註冊執行時間實例;在 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() tween 使用 immediateRender: false。

關鍵影格形式

  • 陣列關鍵影格:帶有每步持續時間/緩動的姿態階梯。
  • 百分比關鍵影格:一個 tween 內的確切時間。
  • 屬性陣列:緊湊的多站點更改。
  • 當每個停止點有自己的緩動時,在父級上設定 ease: "none"。
  • 當每個區段應共享相同感覺時使用 easeEach。

不要複製範例中的數值距離或時間。從實際的組合幾何形狀和持續時間推導它們。

對於在兩個框之間移動的一個主體,偏好一個連續的變換 tween 或 FLIP。僅當觀眾應該感受到不同的節拍時,才將 x/y/scale 拆分為多個帶緩動的關鍵影格;每個區段都會改變速度,可能被視為卡頓。

通道

偏好合成器/視覺通道:x/y/z、xPercent/yPercent、scale、rotationX/Y/Z、skew、transformOrigin、svgOrigin、opacity、autoAlpha、clip-path、遮罩、CSS 變數、SVG 路徑/虛線值、相機變換、著色器統一變數。

避免佈局/生命週期通道:top/left/right/bottom、width/height、margin/padding、display、visibility、後期 DOM 創建、執行主體運動的輔助覆蓋層。

對於可見性更改,在已註冊的可尋 GSAP 時間軸上使用 autoAlpha,或在明確邊界處使用零持續時間的 tl.set()。僅針對非片段元素或片段內部的包裝器;永遠不要針對 .clip 本身。永遠不要對原始 visibility 進行持續時間 tween,也永遠不要對 display 進行 tween。

機制選擇

選擇能證明提示的最小機制:

需求機制
相同主體更改盒子或層級共享元素 / FLIP
主體沿可見路徑移動路徑旅行
描邊增長或描繪描邊繪製
形狀變成另一個形狀形狀插值
揭示邊界是可見的裁剪、遮罩或著色器統一變數
許多項目按順序移動交錯 / 索引延遲
文字本身移動行、詞、字符或帶狀細分
表面彎曲、拉伸或裁剪父/子反向變換
UI 有狀態顯式狀態機
場景有深度DOM 3D、Three.js 或 WebGL 相機/物件關鍵影格

機制可以組合,但每個機制必須闡明其概念。裝飾不是證明。

時間

  • 僅在能闡明原因或方向時才使用預期。
  • 加速度離開靜止。
  • 峰值證明必須無誤地展示機制。
  • 跟隨動作傳達能量和方向。
  • 僅當主體感覺有彈性或觸感時才使用超調。
  • 恆定速度的路徑旅行通常需要 ease: "none"。
  • 離散的 UI 狀態通常需要銳利的 ease-out。
  • 重複元素需要有序的偏移,而不是相同的時間。
  • 最終鎖定需要比過渡姿態更長的保持。
  • 平滑意味著同一個主體上的連續速度。
  • 除非重疊是有意且經過驗證的,否則不要重疊寫入相同變換屬性的 tween。
  • 避免在主要英雄表面同時縮放或移動時,對大型 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.

相關技能