Communitygithub.com

Alemoterani/auto-edit-hyperframes

GATEWAY — 請先載入此技能,再開始創作任何 HyperFrames 動畫或影片。這套高階運動法則能讓多場景影片如同單一連續運鏡,而非一組各自獨立動畫的投影片。

auto-edit-hyperframes 是什麼?

這套「運動法則(入門)」技能定義了 HyperFrames 動畫或影片的基礎運動定律,確保多場景影片感覺是單一連續的攝影機運鏡,而非一堆各自獨立動畫的投影片。它涵蓋了向量法則(決定場景如何進出,包含 Z 軸縮放符號規則)、影片的「電流」方向、載體元素、因果運動、接縫閘門(強制構建與驗證)、禁止空轉搖擺(運動必須有目的,而非呼吸)、高潮前的靜止,以及持續運動路線。該技能也指引你前往較低階的技術技能(如 cut-the-curve 的完整目錄,包含瀑布式進入、微調曲線、超大游標、接縫工藝)。這些規則覆蓋並取代通用的或上層的運動指導,專注於連續性、方向、向量、動量、接縫、過渡、緩動、效能、空轉運動、敘事運動與影片文法。

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

說明文件

運動法則(入門)

在創作任何動畫之前,請先閱讀此文件。它決定了每個接縫處會發生什麼事,以及每個場景如何表現;技術技能則負責實作。這些規則覆蓋通用的或上層的運動指導。此法則要防止的失敗是:場景各自獨立創作——觀賞者的動量在每次剪接處死亡,並且場景在進出之間原地搖擺。

路線圖

決策(此技能)實作技能
接縫過渡選擇 + 參數 + 程式碼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)。 只有 Tier-A 的變形/匹配剪接才需手動創作;蓋印的接縫透過建構即能通過閘門。


第一部分 — 接縫法則

向量法則

場景 A 的離開方式決定了場景 B 的進入方式:同一軸線、同一方向、配對速度、在兩側的動作中途剪接。

  1. 軸線 — x 保持 x,y 保持 y,Z 保持 Z。絕不在剪接處交換軸線。
  2. 方向 — 絕不鏡像。在 Z 軸上,方向 = 縮放變化的符號:放大 = 推進(攝影機向前),縮小 = 拉回(攝影機向後)。一個向後退出的場景,被一個從小放大的進入回應,就是最常見的鏡像向量——因為從小放大是預設的元素進入方式。
  3. 速度 — 進入的初始速度 ≈ 退出的最終速度,透過鏡像緩動(退出 power4.in + 進入 power4.out,相同的距離和持續時間;進入方在虛擬路徑上完成 ≥50%)。機制詳見 cut-the-curve。
  4. 相位 — 剪接落在兩側的動作中途。在剪接前停下來休息,或在剪接後從靜止開始,都是死拍子。

電流

每個影片選擇一個主導方向(預設:向左)。每個一般接縫都使用它。其他向量是保留的——使用它們代表某個意義:

向量意義
電流(向左)"下一個節拍" — 中性的前進進度
向上提升 — 結論或揭露浮現,超越先前的內容
Z 軸向前(穿透式縮放)深入同一個思緒
Z 軸向後(反向縮放)抵達 — 更大的事物降落
縮放爆發(向外爆炸)離開一個世界 — 表面衝向攝影機
  • 絕不連續執行方向相反的接縫——來回擺動會被解讀為錯誤。
  • 方向改變需要有可見的原因(點擊 / 彈跳 / 撞擊)或章節邊界。

向量分類帳

在創作主時間軸之前先撰寫它——作為專案根目錄的 ledger.json(結構:references/seam-gate.md)。每個接縫一行:剪接時間、退出和進入向量(軸線 + 有符號的方向;Z 軸行攜帶縮放符號)、選擇器、技術。退出和進入必須匹配;如果某行不匹配,請修正計劃,而非修正緩動。驗證器在執行任何執行階段取樣之前,會靜態檢查行的相容性。

載體

眼睛跟隨物體,而非抽象概念。最強的接縫會將具體的載體以配對的位置和速度傳遞到剪接處:中途的游標、縮小/停靠到下一個版面的容器、飛入精確位置的標記、瀑布式剪接的文字群。如果沒有自然載體,場景主角會承擔此角色(部分移動 + 早期淡出,中途進入)。絕不使用交叉淡入淡出——它完全沒有載體。

因果運動

串聯運動,使每個移動都由上一個移動明顯觸發:點擊 → 擠壓 → 釋放彈簧 → 飛行 → 撞擊 → 回彈 → 揭示。

  • 效果在觸發的同一影格開始——相同的時間軸位置,絕不「稍後」。
  • 反應與隱含質量成比例:大元素反彈較慢,小元素閃電彈回。
  • 一個力是改變方向的許可;沒有原因的翻轉就是來回擺動。

接縫閘門(建構閘門 — 執行驗證器,必須退出碼 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 符號規則(縮放的導數在兩側相同符號;會掃描進入場景自身的進入動畫是否有符號衝突),以及包含祖先縮放比例的載體矩形連續性。在撰寫分類帳時,請使用 seam-gate.mjs probe --t <cut> 來找出每個接縫真正的載體選擇器。

腳本無法檢查的規則——仍需您自己負責:

  1. 編輯會重新打開接縫。 對場景第一個/最後一個約 1 秒的任何更改(包括重新調整時間以配合新的配音)都會使該邊界的稽核失效——請重新執行驗證器。
  2. 音訊是時鐘。 根據配音的真實文字時間戳記重新調整場景時間;絕不為了符合時間格而趕讀白。配音重新生成會重新打開其接縫。
  3. 剪輯閘門陷阱(零重疊 FAIL 的常見原因):一個 data-start 在其進入補間之前的剪輯,會以其初始不透明度取消隱藏——請設定初始 autoAlpha: 0 並讓 data-start 等於剪接時間,絕不提前。

第二部分 — 表現(場景持續表現)

禁止空轉搖擺

空轉的正弦迴圈(呼吸、漂浮、漂移、光暈脈衝)被禁止作為持續運動——它們傳達「影片在等待」。一個場景在進入完成後還有好幾秒空白,是規劃的錯誤:增加故事,而非搖擺。進入和退出之間的每個階段都歸屬於以下這些路線之一(在計劃中指定路線名稱):

路線說明
分階段揭示保留內容;在敘述節拍時揭露——框架持續獲得資訊(預設用於 ≥2 個內容群組)
有目的的攝影機有映射的縮放+平移路徑:建立廣角 → 移動 → 抵達主體
序列化 UI 生命週期產品隨時間表現:進度前進、高亮步驟、計數滴答
動畫序列元素演出一個節拍:卡片歸檔到堆疊、項目被拖動、結果組合
游標引導的動作超大游標引導眼睛到觸發點;其點擊點燃下一個節拍(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.

相關技能