Communitygithub.com

Alemoterani/auto-edit-hyperframes

將每週的更新日誌 .md 轉換為完整的品牌化更新日誌影片(1080 正方形,約 45-60 秒,Annie 配音,動畫品牌背景,模擬 UI 視覺化,低調字幕)。當使用者提供更新日誌/摘要 markdown 或說「更新日誌影片」時使用。

auto-edit-hyperframes 是什麼?

這個技能(Auto-edit Hyperframes)專門將每週的更新日誌 Markdown 檔案自動轉換成一支完整的品牌化影片。它提供了一套從解析、視覺化腳本撰寫、兩層式字幕配音、到最終建置與驗證的完整管道。核心原則是「視覺化,不要列舉」:每個主題都必須透過模擬 UI 或真實類比動畫來展示變化,而非文字條列。技能內建了完整的品牌資產(字型、背景、音樂、配色),確保每次輸出的影片風格一致。支援 Claude Code、Coder、Codex 等平台,並透過 HeyGen TTS 生成 Annie 配音與精確的逐字時間戳,提供高品質的影片產出。

相容平台✓Claude Code✓Codex CLI✓Cursor
npx skills add https://github.com/Alemoterani/auto-edit-hyperframes/tree/HEAD/vendor/hyperframes/.agents/skills/changelog-video

在你喜歡的 AI 中提問

開啟一個已預先載入此 Agent Skill 的新對話。

說明文件

更新日誌 → 品牌化影片

輸入:一份更新日誌 .md(主題 + 項目,類似每週 HyperFrames 摘要)。 輸出:在 projects/active/weekly-changelog-<range>/ 下生成的一個 lint 乾淨、seam-gate-green 的 HyperFrames 專案。僅在要求時才進行渲染。

一定要先載入,沒得商量: motion-doctrine(+ cut-the-curve、oversized-cursor(如果出現游標)、seam-craft)和 captions-overlay。這個技能提供更新日誌專用的管道;原則提供動作規則。

首要原則:視覺化,不要列舉

每個主題都必須透過模擬實際 UI 或一個忠實的類比動畫來展示體驗上的變化,而不是文字條列。在撰寫腳本之前,每個主題/項目都必須先查閱 references/visualization-registry.md;此註冊表決定是 ui-recreate(UI 重現)/ ui-analog(UI 類比)/ terminal(終端機)/ checklist(檢查清單)。文字檢查清單是最後的手段,僅保留給真正無法視覺化的項目(例如可靠性修復列表)。

管道

0 · 從這個技能的資產啟動專案 — 沒得商量

在撰寫任何構圖 HTML 之前,一定要先做這個。跳過它總是會產生一個看起來像你之前建置過的相似專案的影片,而不是這個技能的品牌 — 這是這個技能偏離品牌最常見的單一原因。 技能的資產、字型和骨架就是技能本身;SKILL.md 提示只是一個路由器。

mkdir -p project/assets/fonts
cp <SKILL_DIR>/assets/fonts/*.woff2 project/assets/fonts/
cp <SKILL_DIR>/assets/bgm.mp3 project/bgm.mp3
ffmpeg -y -stream_loop 15 -i <SKILL_DIR>/assets/bg-pattern.mp4 -t <TOTAL> \
  -vf "scale=1080:1080,fps=30,eq=saturation=0.72,[email protected]:t=fill" \
  -an -c:v libx264 -crf 20 -pix_fmt yuv420p project/assets/bg-pattern-<TOTAL>s.mp4
cp <SKILL_DIR>/examples/master-skeleton.html project/index.html

然後從頭到尾閱讀 references/build-spec.md(不是略讀)— 它定義了品牌代碼(TT Norms Pro + ABC Solar Display + TT Norms Mono、奶油色 #f5f6f4、限量綠色 #5ef17c、帶有綠色邊框的玻璃卡片、kicker/sec-chip 藥丸形狀、位於 top: 990 的 32px 字幕軌道),每個場景都繼承自骨架。

只有在完成上述步驟後,才能開始下面的步驟 1-6。步驟 1-4(解析、路由、腳本、配音)規劃要放入骨架的內容;步驟 5 填寫已經複製好的 project/index.html 中的佔位符(<RANGE>、<TOTAL>、<CUT_N>、<DUR_N>、場景主體)— 你不要重寫骨架的 chrome、字型、調色板或佈局外殼。

如果你發現自己正在對先前影片的 index.html 執行 cp,或者自己撰寫 @font-face 宣告,或設計 WebGL 著色器背景而不是使用上面編碼的 bg-pattern MP4:請停止。刪除當前的 index.html,然後從複製 master-skeleton 骨架重新開始。在正確的骨架上重建場景內容,比將品牌改造到錯誤的骨架上要省力得多。

1 · 解析 + 編輯取捨

  • 提取:週數範圍、標題統計數據(發布次數、提交次數)、主題、項目。
  • 總時長預算:45-60 秒。 標題 ≤2 秒,片尾 ≤3.5 秒,4 個主題各約 9-12 秒。
  • 每個主題保留一個主角視覺化 + 最多 3 個口頭說明的項目。其他所有內容僅作為片尾的「完整摘要」指標存在。取捨是關鍵:一個有 30 個項目的更新日誌仍然只能產生 ≤14 個口頭提示的節拍。
  • 按照故事的邏輯排列主題:主打功能 → 產品表面 → 效能 → 可靠性(摘要通常已經按照這個順序排列)。

2 · 視覺化路由

對於每個主題,從 references/visualization-registry.md 中選擇一個表面,並寫一行:theme → surface → the 2-4 sequenced actions the mock performs, each tied to a script phrase。如果沒有註冊表中的表面符合,也沒有忠實的類比存在,那麼它就是一個檢查清單場景 — 不要為我們無法誠實表示的內容發明虛假的 UI。

3 · 兩層腳本(口頭 vs 顯示)

根據 references/script-voice.md 將腳本寫成標記行:對話式語氣,每個技術術語都攜帶來自 references/lexicon.json 的 spoken 語音形式,而 display 則保持標準拼寫。字幕顯示 display;配音朗讀 spoken。任何不在詞彙表中的術語:停止並詢問使用者該如何發音,然後將其添加到詞彙表中。將結果儲存為專案中的 script-tokens.json。

4 · 配音 — Annie(HeyGen,固定)

# 僅限口頭層文字;words JSON 是口頭文字的基準時間戳
# 儲存庫原生路徑:更新日誌影片技能從 hyperframes 儲存庫根目錄執行,
# 因此它直接使用受追蹤的 hyperframes-media TTS 助手(無需 `npx hyperframes skills` 安裝步驟)。
# 如果你已將此技能複製到另一個儲存庫中,請替換為你自己的
# 指向 media-use / hyperframes-media heygen-tts.mjs 的路徑。
nodeskil ls/hyperframes-media/scripts/heygen-tts.mjs ./vo-spoken.txt \
  -o voiceover.mp3 --words vo-words.json \
  --voice 330290724a1b470fb63153f34d4c0183   # Annie — 逼真(請勿替換)

需要已認證的 heygen CLI ≥0.3.0(heygen auth login --oauth)。 然後將口頭時間戳對齊回顯示標記:

node <SKILL_DIR>/scripts/align-captions.mjs \
  --tokens script-tokens.json --words vo-words.json --out captions.json

captions.json 是字幕軌道的輸入(顯示拼寫,口頭計時)。對齊器會列印 MISMATCH 警告 — 在建置之前解決每一個(通常是詞彙表中的拼寫被 TTS 渲染成多個單字)。音訊是時鐘:所有節拍時間都來自 vo-words.json;重新生成配音會重新打開每一個接縫。

逐字時間戳是一個硬性關卡。 在進行到步驟 5 之前,請驗證 vo-words.json 非空,並且包含一個帶有 start/end 的 words: [...] 陣列。如果它是空的(0 位元組)或缺少陣列 — 當 TTS 提供者返回音訊但沒有時間戳負載時,這是一個已知的故障模式 — 如果沒有它們,請不要繼續。備用方案:使用本地 whisper 將生成的音訊強制對齊到顯示腳本:

uvx --from openai-whisper whisper voiceover.mp3 \
  --model base.en --language en --word_timestamps True \
  --output_format json --output_dir .
# 然後使用 --words voiceover.json 執行 align-captions.mjs(形狀相同)

Whisper 會誤聽 TTS 的渲染("gee-sap" → "gsap", "heyjen" → "hey Jen" 等)— 字幕仍然使用 script-tokens.json 中的 DISPLAY 拼寫;whisper 只提供時間戳。align-captions.mjs 負責合併。這個備用方案決定了最終成品是有字幕的還是無字幕的。

5 · 建置

嚴格遵循 references/build-spec.md:品牌代碼 + 字型(打包在 <SKILL_DIR>/assets/ 中)、動畫背景編碼、場景骨架、chrome、字幕軌道、每個場景一個有限的綠色時刻。然後是原則順序:ledger.json(所有普通接縫 cut-the-curve 向左)→ 接縫戳記 → 配音單字上的內部節拍 → seam-gate 驗證。

字幕是不可選的。 master-skeleton 附帶一個讀取 LINES 陣列的字幕軌道 IIFE — 讓該陣列留空是一個已出貨的錯誤,而不是風格選擇。在進行到步驟 6 之前,從 captions.json 填入它:

// 貼上到字幕軌道 IIFE 中的 "const LINES = /* … */ []" 位置:
const LINES = /* captions.json 的內容 */ [
  { id: 0, end: 2.74, w: [["This", 0.0], ["week,", 0.30], …] },
  …
];

如果跳過了 align-captions.mjs 或者 LINES 是 [],步驟 6 的影格檢查將會失敗 — 不要通過從骨架中移除 #cap-line 來掩蓋它。

6 · 關卡(全部綠燈才能呈現)

  1. node packages/cli/bin/hyperframes.mjs check --caption-zone "x0=0;y0=.90;x1=1;y1=1;severity=error;seek=.02,.06,.10,.14,.18,.22,.26,.30,.34,.38,.42,.46,.50,.54,.58,.62,.66,.70,.74,.78,.82,.86,.90,.94,.98"(或來自儲存庫本地 skills/hyperframes-cli/ 技能的已安裝 hyperframes CLI)— 0 錯誤(對比度:昏暗文字 ≥ .66 透明度;場景內容保持在字幕軌道上方)。不要使用 npx hyperframes@latest;受追蹤的儲存庫本地 CLI 是此技能生成的構圖合約的真實來源。
  2. seam-gate.mjs verify — 0 失敗。
  3. 重新啟動預覽伺服器(它會快取組合),透過在原始組合頁面上的 __player.seek 抽查 3-4 個節拍。
  4. 除非使用者要求,否則不要渲染。在請求的渲染之後,驗證來自 MP4 的影格(ffmpeg -ss <t> … -frames:v 1):字幕存在,背景影片不是黑色,沒有微小/凍結的影格。
  5. 字幕存在關卡 — 硬性失敗。 在配音的口頭時間視窗內取樣 3-4 個分佈的影格(例如,對於 48 秒的配音,取 t=3、t=15、t=30、t=42),並確認位於 top: 990 的字幕軌道在每個影格上渲染了可見的文字。如果在口頭間隔內的任何影格缺少字幕,則建置出貨的版本將是無字幕的 — 將其視為紅色關卡,並重新檢查步驟 5 的 LINES 填入情況。這正是 Jul 13-20 v4 建置中出現的問題。

專案佈局

projects/active/weekly-changelog-<range>/
├── index.html            # 單一文檔主檔(場景作為幻燈片,帶有戳記的接縫)
├── ledger.json           # 向量總帳(接縫戳記輸入)
├── script-tokens.json    # 兩層腳本(配音 + 字幕的真實來源)
├── vo-spoken.txt         # 生成的:口頭層,每行一個
├── voiceover.mp3 + vo-words.json + captions.json
├── bgm.mp3               # 從 <SKILL_DIR>/assets/bgm.mp3 複製(主幹曲),除非使用者提供了自己的
└── assets/fonts/ + assets/bg-pattern-<dur>s.mp4

反模式

不要這樣做應該這樣做
為 UI 變更使用項目符號幻燈片模擬正在展示變化的表面
為無法表示的項目發明虛假 UI誠實的檢查清單場景
在 TTS 文字中使用純 "JSON"/"CLI"使用詞彙表中的口頭形式;顯示層保持標準
在字幕中使用語音拼寫字幕始終渲染顯示層
猜測未知術語的發音詢問,然後擴充詞彙表
朗讀每個更新日誌項目每個主題 ≤3 個;摘要連結承載其餘部分
到處使用綠色強調每個場景一個綠色時刻(#5ef17c)
從先前影片的 index.html 開始步驟 0 — 從此技能複製 examples/master-skeleton.html 到 project/index.html,始終如此
手寫 @font-face / WebGL 著色器 / 自訂 BGM步驟 0 — 逐字複製此技能的 assets/;技能的資產本身就是品牌
未執行 CloudFront 失效就交付在任何 S3 替換之後,對發行版 E2BSLVSZ7FG3U0 執行 aws cloudfront create-invalidation,指定確切路徑 — 否則 CDN 會快取舊檔案
出貨時骨架中的 LINES 陣列為空步驟 4 必須產生一個已填入內容的 captions.json;步驟 5 必須將其貼上到 IIFE 中;步驟 6 的關卡 5 必須確認渲染的影格上有字幕。空的 LINES = 無字幕出貨 = 重新執行整個流程
沒有 vo-words.json → 跳過字幕並直接出貨備用方案:對生成的音訊使用 whisper 強制對齊;字幕是不可選的

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

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.

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.

相關技能