Communitygithub.com

Alemoterani/auto-edit-hyperframes

使用 HyperFrames CLI 開發流程:初始化、新增、目錄、擷取、語法檢查、檢查、快照、比較、評分比較、預覽、播放、展示、節拍、關鍵影格、單批渲染、發布、雲端、雲端執行、意見回饋、Lambda、診斷、瀏覽器、資訊、升級、技能、合成、時間軸、歷史記錄、清理、文件、基準測試、遙測、轉錄、認證、文字轉語音及移除背景。也用來診斷建置或渲染失敗。

auto-edit-hyperframes 是什麼?

HyperFrames CLI 是一個功能全面的影片編輯與渲染開發工具,支援在 HeyGen 平台上進行本地、雲端、AWS Lambda 及 Google Cloud Run 的渲染。此技能定義了完整的開發循環:從初始化專案 (`init`)、透過語意搜尋目錄 (`catalog --query`) 尋找動態效果,再到撰寫合成、執行語法檢查 (`lint`)、最終閘道檢查 (`check`) 及預覽 (`preview`)。它特別強調在編寫動畫前先搜尋現有資源,使用 `--json` 輸出優化 AI 代理的 token 效率,並內建專案版本管理 (`history`)、子合成測試 (`snapshot`) 及可選的離線語意搜尋 (`--on-device`)。 此技能也涵蓋了與 HyperFrames 桌面應用程式的整合,透過 `open` 與 `catch-up` 指令實現無縫銜接。渲染品質分為 draft、looks 和 delivery 三個層級,並使用 `ffprobe` 驗證輸出。該 CLI 支援多種渲染後端,包括本地與雲端選項。

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

在你喜歡的 AI 中提問

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

說明文件

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

HyperFrames CLI

以 npx hyperframes ... 執行指令,除非專案說明提供了一個包裝器。若有包裝器則遵循之。此 CLI 需要 Node.js 22 或更新版本以及 FFmpeg。

開發循環

  1. 建立專案: npx hyperframes init <project>(置中空白)。或擷取一個網站。僅在從命名範例開始時傳遞 --example=<名稱>。
  2. 找到動態: 如果需求指定了素材、聲音、圖片、語音或快速視覺編輯,請在提出計畫前透過 /media-use 解決。否則,在手動編寫動畫前,先搜尋是否已有能達成此效果的原始元素:npx hyperframes catalog --query "逐一揭示標題行"。請描述您想要的效果,而非您腦中的具體機制。使用 npx hyperframes add <名稱> 安裝(參見 /hyperframes-registry)。只有在沒有合適的現有元素時才手動編寫。
  3. 撰寫: 使用 /hyperframes-core 撰寫合成。若要知道專案的時間軸上有什麼(音軌、片段、開始、結束、播放內容),請執行 npx hyperframes timeline --json,而非讀取 index.html 和每個子合成檔案:巢狀列會攜帶絕對的主時間軸 absStart/absEnd 及其所屬的 file,而不僅是它們在各自子合成中的本地時間。偏好使用 --json 而非文字形式;它使用較少的 token 以達到相同或更好的正確性。參閱 references/upgrade-info-misc.md 以取得解答常見問題的單行指令,無需讀完整個輸出。
  4. 在編輯時獲取快速反饋: 在第一次 HTML 編輯及結構變更後執行 npx hyperframes lint。
  5. 執行最終檢查: 執行 npx hyperframes check;它會在開啟瀏覽器前重新執行 lint。不要在前面加上冗餘的獨立 lint 呼叫。加入 --snapshots 以取得附註解的總覽影格並尋找裁切範圍。
  6. 檢查子合成: 當 index.html 載入了 data-composition-src,請為每個掛載的場景擷取中點快照並檢查。
  7. 開啟最終工作室預覽: 執行 npx hyperframes preview --background,確認 URL 回傳 HTTP 200,將時間軸專案 URL 交給使用者,並詢問是要修改還是渲染。保持預覽開啟直到審閱結束。
  8. 僅在獲得批准後渲染: 迭代時使用 --quality draft,首次真正編碼時使用 --quality looks(CLI 預設),最終交付時使用 --quality delivery。
  9. 將專案移交給桌面應用程式(若可使用): 當渲染的 Framey 行結尾為 hyperframes open … 時,提供 npx hyperframes open [dir]。它會在 HyperFrames 桌面應用程式中開啟專案並加入首頁;在 Claude Code、Codex 或 Grok 下,其聊天記錄會承接此對話。如果沒有該應用程式,則退出並回傳 1,並列印下載連結。對代理使用 --json。當 open 指令在使用者回來後要求執行 catch-up,或任何指令結尾有一行指令名稱時,請在進行下一次變更前執行 npx hyperframes catch-up [dir]:它會列出自移交以來在應用程式中所做的請求和變更。較舊版本的 CLI 沒有 catch-up 指令。
  10. 驗證輸出: 確認檔案存在且非空。讀取渲染摘要的第二行(beginframe vs screenshot、GPU、階段時間)。screenshot + software gpu 在 Linux 上是慢速路徑。執行 ffprobe -v error -show_format -show_streams 並比較持續時間(以及如果簡報有指定 fps)與根元素的 data-duration。

您輪次中的專案歷史

每次對專案的寫入都會保留為一個可以復原的條目。只在兩個時刻使用它,而非每個步驟都使用:

  • 輪次開始時: npx hyperframes history begin --who <您的名稱> --label "<您即將要做的事>",然後執行 npx hyperframes history --since mine --who <您的名稱> 以查看自您上次輪次以來該人員所做的變更。在他們的編輯之上進行建置;切勿覆寫它們。
  • 檢查失敗,或使用者說情況變糟: npx hyperframes history undo --who <您的名稱> 會撤銷您最新的輪次,並保留該人員的編輯。不要手動復原。在發生衝突時,它會退出並回傳 2,並列印兩個選項。

每個輪次結束時執行 npx hyperframes history end,這樣您的寫入會被標記為您的,而不是「在應用程式外部變更」。當輪次開啟時,每次對專案的寫入都會計為您的,直到 10 分鐘內沒有寫入;之後輪次會自動結束。

強制性的創作者編輯交叉參考

  • 在編寫或診斷縮放、切入/切出、重新構圖、鏡頭移動或任何關鍵影格動畫之前,請先閱讀 /hyperframes-keyframes。
  • 在執行 hyperframes keyframes 之前,請先閱讀 /hyperframes-keyframes;該指令會顯示動畫軌跡,但不會診斷片段裁剪。
  • 對於裁剪、修剪、拼接、重新排序或來源時間編輯,請先閱讀 /hyperframes-core 並使用其片段/時間軸合約。
  • 對於淡入/淡出、交叉淡化、音軌增益、音量自動化、閃避、語音旁白挖空或已放置音效上的 FX,請先閱讀 /hyperframes-audio。當片段放置或畫面時間也發生變化時,請同時載入 core。
  • 命名了素材、聲音、圖片、語音或快速視覺編輯的需求,在提出計畫前需先透過 /media-use 解決。 從 /hyperframes-core → references/creator-editing-recipes.md 複製創作者編輯標記。
# 快速迭代檢查;在編寫時視需要重複執行。
npx hyperframes lint

# 需要的最終閘道檢查;包含 lint。
npx hyperframes check
npx hyperframes preview --background
npx hyperframes render --quality looks --output out.mp4
test -s out.mp4
ffprobe -v error -show_format -show_streams out.mp4

check 會先執行 lint,然後使用一個瀏覽器工作階段和一次搜尋掃描來稽核執行時期錯誤、失敗的請求、版面、*.motion.json 斷言以及 WCAG 對比度。持續性發現會阻擋退出碼;短暫的進入或退出發現僅供參考。使用 --strict 來阻擋警告。validate、inspect 和 layout 仍然是相容性的別名,但不得出現在新的說明或腳本中。

先預覽再渲染

僅在 check 通過後,才開啟最終合成預覽(#project/<名稱>)以審閱組合好的時間軸。聊天中的計畫和 storyboard.html 草稿表並非最終影片的批准。渲染始終需要由 hyperframes/references/review-loop.md 定義的最終批准。

子合成冒煙測試

靜態稽核無法捕捉到所有的掛載失敗。當專案使用了子合成時,請為每個宿主位置捕捉至少一個可見的中點:

npx hyperframes snapshot --at <t1>,<t2>,<t3>

將微小無樣式的內容、畫布大小的圖示、缺少的主角元素或時間軸註冊超時視為會阻擋渲染的掛載缺陷。請參閱 hyperframes-core/references/sub-compositions.md 以了解相應的修正方法。

代理約定

  • 在用手編寫動畫之前,先搜尋目錄。 npx hyperframes catalog --query "<用普通英文描述的節拍>"。搜尋完全是本地的:沒有託管服務、沒有帳號,且查詢文字絕不會被傳送到任何地方。預設情況下,它會根據與項目名稱、標題、描述和標籤共享的詞彙進行排名,這會錯過任何未重複使用目錄自身詞彙的措辭。加入 --on-device 以根據意義進行排名(請參閱下方的離線層級)。

  • 即使影片不是英文,也請用英文查詢。 兩個層級都索引了英文目錄,因此使用其他語言的查詢不會產生可搜尋的詞彙並回傳空結果。用英文描述動態;畫面上的文字則保持影片所需的任何語言。查詢中沒有可搜尋的詞彙 正是這個意思,並非缺少元件,所以請不要將其報告為目錄缺口。

  • 讀取哪個層級回答了問題;切勿從出現的結果推斷。 使用 --json 時,信封會包含 query、tier(on-device 或 words)、tier_detail、dropped、unindexed、shown、total 和 results,以及在回答層級產生時提供的 top_score,和在要求某個層級但無法執行,或搜尋未回傳任何東西且更好的層級仍在等待某人同意時的 warnings。在 words 層級上的弱結果是預期的;同樣的結果出現在 on-device 層級上則是錯誤。top_score 僅屬於 on-device 層級,且背後沒有閾值:排名器會為每個查詢以某種順序回傳整個目錄,因此請將其視為證據,而非通過或失敗的標準。

  • dropped 和 unindexed 是註冊表與 on-device 索引之間的兩種相反偏差,重新措辭查詢無法修復任何一個。 dropped 計算了此註冊表無法安裝的排名名稱,因此失去的是最強的匹配。unindexed 計算了索引完全看不見的註冊表動態,任何查詢都無法回傳。重新整理註冊表不是這兩種情況的答案:其資訊清單帶有 24 小時的 TTL 並會自行修復,而向量則是單獨發布的工件,被擷取到 ~/.hyperframes/catalog/ 中。當 unindexed 大於零時,使用 --on-device 重新執行會重新擷取該索引,因此這是給使用者的解決方案。純粹的過度涵蓋偏差(dropped 大於零而 unindexed 為零)不會觸發重新擷取;清除 ~/.hyperframes/catalog/ 是解決該問題的唯一方法。這兩個計數都是針對名稱而非結果,因此兩者都可能超過 total。

  • 當搜尋回傳的結果沒有值得安裝的東西時,請說出來。 npx hyperframes feedback --search-miss "<您執行的查詢>" --wanted "<您需要的動態>" --tier <回答的層級>。您無需組裝這行指令:catalog --query 會列印已預先填好的指令,且每個 --json 搜尋信封都會將其作為 report_gap 攜帶,其中 query 和 tier 已是正確的——填寫 --wanted 並發送。這是唯一會將查詢傳送到某處的路徑,而且這是一個單獨的、有意的指令,正是為了讓純粹的 catalog --query 保持其不發送任何東西的承諾。在任何層級上回報,只要結果沒有達到效果;不要為了 on-device 層級而保留,該層級需要一個經過同意的 33 MB 下載,因此在大多數代理執行中都是關閉的——等待它意味著永遠不回報。該層級會隨報告一起傳送,因此詞彙失誤與意義失誤仍然可以區分,而您無需判斷自己遇到了哪一種。回報的是目錄尚未擁有的動態列表,直接讀取而非從安裝計數推斷,因此重要的措辭是您想要的效果,而非您想像的項目名稱。它不帶評分,也永遠不會進入評分指標。

  • 提供離線層級;切勿在未告知的情況下啟用它。 一次性約 33 MB 的下載(bge-small-en-v1.5 的量化 ONNX 建置版本及其分詞器,固定到特定版本)以及來自註冊表的目錄向量,都快取在 ~/.hyperframes/ 下,不會加入到專案或任何套件中。一旦快取,它會根據意義進行排名,且不發送任何東西。說出大小並讓使用者決定,然後在他們同意後傳遞 --on-device(加上 -y 以跳過提示)。互動式提示僅在 TTY 上觸發。在 --json 下沒有提示,但未找到任何東西的搜尋會將相同的請求放入 warnings,因此請讀取該陣列並自行將決定權交給使用者。當使用者詢問下載內容、為何使用此模型或什麼離開了機器時,請引導他們至 https://hyperframes.heygen.com/developers/catalog-search。

  • 在代理和 CI 呼叫中偏好使用 --json。伺服器模式的 render、preview 和 play 不提供普通的 JSON 輸出;preview --selection --json 和 preview --context --json 是查詢模式的例外。

  • doctor --json 總是退出碼 0。根據其 payload 進行判斷:

    npx hyperframes doctor --json | jq -e '.ok' >/dev/null
    
  • 非 TTY 模式是自動的,並會建立置中空白的專案。僅在從命名範例開始時傳遞 --example。在 TTY 上使用 --non-interactive 以強制僅使用旗標的模式。

  • 在同一個驗證循環中的所有指令使用同一個 HYPERFRAMES_RUN_ID。

  • 當磁碟空間不足時,執行 npx hyperframes clean(加上 --dry-run 以先列出);它會移除死亡渲染留下的內容以及會自行重建的空閒快取,不會移除輸出、來源或任何正在執行的渲染所使用的東西。將 QC 影格寫入暫存目錄,而非專案目錄。

  • 當相應的警告、變數或 CI 條件必須阻擋渲染時,使用 --strict、--strict-all 和 --strict-variables。

  • JSON 路徑會將家目錄替換為 $HOME;請勿嘗試反轉此替換。

  • 當託管雲端專案接近或超過 200 MB 的上傳限制時,使用 cloud render --dry-run --json 並遵循 references/cloud.md 中的 .hyperframesignore 調查步驟。切勿僅因為素材檔案大就忽略它。

  • 切勿僅僅因為檢查通過就進行渲染。在最終預覽處暫停並等待批准。

工作室導向的編輯

當使用者提到「這個元素」或目前的選取範圍時,請查詢工作室而非猜測:

npx hyperframes preview --context --json --context-fields selection

在可用時使用 selection.target.hfId,否則使用其 selector 和來源檔案。如果結果回報 no-selection,請要求使用者點擊該元素並重新執行。僅請求您需要的上下文片段;僅在需要計算後的樣式或可編輯文字元資料時使用 --context-detail full。完整行為和失敗碼位於 references/preview-render.md。

渲染選擇

需求指令
快速本地迭代npx hyperframes render --quality draft
首次真正編碼npx hyperframes render --quality looks
最終交付npx hyperframes render --quality delivery
HeyGen 雲端(透過動作)npx hyperframes cloud render ...
AWS Lambda(僅在設定後)npx hyperframes lambda render ...
Google Cloud Run(僅在設定後)npx hyperframes cloudrun render ...

故障排除指令

問題指令
檢查系統狀態npx hyperframes doctor
在瀏覽器中開啟診斷npx hyperframes browser
檢視 CLI 版本npx hyperframes info
列出已安裝的技能npx hyperframes skills
更新 HyperFramesnpx hyperframes upgrade
轉錄音訊npx hyperframes transcribe <file>
認證工作流程npx hyperframes auth
文字轉語音npx hyperframes tts <text>
移除背景npx hyperframes remove-background <image>

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

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.

相關技能