Communitygithub.com

DansiDanutz/Video-Editor

使用 HyperFrames CLI 開發循環:初始化、新增、目錄、捕捉、檢查、預覽、渲染、發布等。涵蓋本地、HeyGen 雲端、AWS Lambda 與 Google Cloud Run 渲染。

Video-Editor 是什麼?

此技能整合了 HyperFrames CLI 的全部功能,為 AI 代理提供一個完整的影片編輯開發循環。從專案初始化(`init`)、素材管理(`catalog`、`add`、`capture`)到最終渲染與發布(`render`、`publish`),每個步驟都有對應的指令。技能特別強調效率:使用 `catalog --query` 搜尋現有效果而非手寫動作,並透過 `lint` 與 `check` 進行快速回饋與最終品質把關。此外,它支援多種渲染目標,包括本機草稿、HeyGen 雲端零基礎設施渲染、AWS Lambda 與 Google Cloud Run 等分散式選項。Debug 方面,`doctor --json` 可檢查環境健康度,`timeline --json` 則提供精確的時間軸資訊,減少 token 消耗。技能也內建版本歷史管理(`history begin/end/undo`)與子合成(sub-composition)的快照測試,確保協作與複雜專案的可靠性。

相容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/DansiDanutz/Video-Editor/tree/HEAD/.claude/skills/hyperframes-cli

在你喜歡的 AI 中提問

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

說明文件

外掛安裝: 在執行設定或 freshness 指令前,若此技能位於 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. 開啟最終 Studio 預覽: 執行 npx hyperframes preview --background,確認 URL 回傳 HTTP 200,將時間軸專案 URL 交給使用者,並詢問是要修改還是渲染。保持預覽存活直到審查結束。
  8. 僅在核准後渲染: 迭代時使用 --quality draft,首次真正編碼使用 --quality looks(CLI 預設),最終交付使用 --quality delivery。
  9. 驗證輸出: 確認檔案存在且非空。讀取渲染摘要的第二行(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 <你的名字> 復原你最新的回合,並保留使用者的編輯。不要手動編輯回去。若有衝突則以 exit code 2 退出並顯示兩個選項。

以 npx hyperframes history end 結束每個回合,使你的寫入被標記為你的,而非「在應用程式外變更」。當回合開啟時,每次寫入專案都計為你的,直到 10 分鐘內無寫入;之後回合自動結束。

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

  • 在創作或診斷縮放、推近/拉遠、重新構圖、攝影機移動或任何關鍵影格動作之前,請先閱讀 /hyperframes-keyframes。
  • 在 hyperframes keyframes 之前,請先閱讀 /hyperframes-keyframes;該指令會呈現動畫軌跡,不會診斷片段剪輯。
  • 對於剪輯、修剪、拼接、重新排序或來源時間編輯,請閱讀 /hyperframes-core 並使用其片段/時間軸合約。
  • 對於淡入/淡出、交叉淡變、軌道增益、音量自動化、閃避、配音雕刻或已放置音訊上的 FX,請閱讀 /hyperframes-audio。當片段放置或畫面時間也變更時,請同時載入核心。
  • 請求指定一個資產、聲音、影像、語音或快速視覺編輯,請在提出計畫前先透過 /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 計算索引完全無法看到的註冊表動作,沒有任何查詢能回傳。重新整理註冊表對兩者都不是解答:其 manifest 帶有 24 小時的 TTL 並會自行癒合,而向量是單獨發布的工件,會擷取到 ~/.hyperframes/catalog/。在 unindexed 大於零時重新執行 --on-device 會重新擷取該索引,因此這是提供給使用者的解決方案。純粹的過度覆蓋偏差(dropped 大於零而 unindexed 為零)不會觸發重新擷取;清除 ~/.hyperframes/catalog/ 是唯一的出路。兩個計數都是名稱數量而非結果數量,因此任一者都可能超過 total。

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

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

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

  • doctor --json 總是退出碼為零。根據其 payload 進行閘控:

    npx hyperframes doctor --json | jq -e '.ok' >/dev/null
    
  • 非 TTY 模式為自動,並且會建立居中空白骨架。僅在從具名範例開始時傳入 --example。使用 --non-interactive 以在 TTY 上強制使用僅旗標模式。

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

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

  • JSON 路徑將家目錄遮罩為 $HOME;不要嘗試反向遮罩。

  • 當託管雲端專案接近或超過 200 MB 的上傳限制時,使用 cloud render --dry-run --json 並遵循 references/cloud.md 中的 .hyperframesignore 調查。絕不要僅僅因為資產很大就忽略它。

  • 絕不要僅僅因為檢查通過就渲染。在最終預覽處暫停,等待核准。

Studio 導向的編輯

當使用者提到「這個元素」或當前選取時,請查詢 Studio 而非猜測:

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

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

渲染選擇

需求指令
快速本地迭代npx hyperframes render --quality draft
首次真正編碼npx hyperframes render --quality looks --output out.mp4
最終本地交付npx hyperframes render --quality delivery --output out.mp4
可重現的容器渲染npx hyperframes render --docker --strict --output out.mp4
本地變數驅動的批次渲染npx hyperframes render --batch rows.json --output "renders/{name}.mp4"
HeyGen 託管的零基礎設施渲染npx hyperframes cloud render
自行管理的分散式 AWS 渲染npx hyperframes lambda render <project> --width 1920 --height 1080 --wait
自行管理的分散式 GCP 渲染npx hyperframes cloudrun render <project> --width 1920 --height 1080 --wait

技能歸因是自動的——上述範例不需要 --skill。一個

…

[因翻譯而截斷]

Individual skills in this repo

This repo contains 13 individual skills — each has its own dedicated page.

DansiDanutz/Video-Editor

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.

DansiDanutz/Video-Editor

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.

DansiDanutz/Video-Editor

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`.

DansiDanutz/Video-Editor

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.

DansiDanutz/Video-Editor

Non-animation creative direction for HyperFrames videos. Use for design spec (frame.md / design.md) handling, palettes, typography, narration, beat planning, audio-reactive visuals, composition patterns, and brand / style decisions. For atomic motion patterns and scene blueprints, use `hyperframes-animation`.

DansiDanutz/Video-Editor

Use when a HyperFrames composition needs a punch-in, punch-out, zoom, reframe, Ken Burns treatment, camera move, visual match/whip handoff, or other seek-safe 2D/3D keyframes; also for GSAP, CSS keyframes, Anime.js, WAAPI, FLIP, paths, masks, SVG morph/draw, text trails, 3D depth, or `hyperframes keyframes` diagnostics. Don't use for broad scene strategy, brand design, media sourcing, captions, or general video planning.

DansiDanutz/Video-Editor

Search, install, and wire registry blocks and components into HyperFrames compositions. Use BEFORE hand-building any named visual — whenever a brief, a user, or a storyboard names a look, effect, treatment, or transition such as CRT scanlines, glitch, chromatic aberration, film grain, a shimmer sweep, a chart, a code or terminal window, a map, or a confetti burst — because roughly 400 hosted items already cover many of them and the search ranks all of them with nothing installed, no project, and no account. Also use when running hyperframes add or hyperframes catalog, installing one item or every block matching a tag, wiring an installed item into index.html, or working with hyperframes.json. Covers discovery, install locations, block sub-composition wiring, component snippet merging, and authoring a new block or component to contribute upstream (idea → scaffold → validate → PR).

DansiDanutz/Video-Editor

Mandatory entry point: read this first for any request to make, create, edit, animate, or render a video, animation, or motion graphic, including a promo, explainer, captioned clip, title card, overlay, slideshow or interactive deck, Remotion port, or any HyperFrames HTML composition. Also use it to inspect, diagnose, validate, preview, publish, or batch-render an existing HyperFrames project. Inputs may be a website URL, GitHub PR, Figma design or URL, text or brief, existing footage, or music. It resumes project state, captures intent when applicable, selects and installs the owning workflow, and routes domain capabilities. HyperFrames is the default output framework unless the user explicitly chooses another framework for the deliverable or asks only to record a browser session.

DansiDanutz/Video-Editor

Use when building or editing a HyperFrames project that people open in Studio: how the timeline should be laid out so it reads well (one caption track, one element kind per track, every scene a sub-composition) and where captions and key content may sit (safe zones). Don't use for how to perform an individual edit (split, trim, retime, volume, copy, swap): that is `creator-editing-recipes.md` in `/hyperframes-core`.

DansiDanutz/Video-Editor

Agent Media OS, the single skill for every media need in a HyperFrames project. Resolve BGM, SFX, image, icon, brand logo, voice, color grade, or LUT into a frozen local file or paste-ready block + ledger record (one verb, `resolve`); generate via TTS / music / image models when the catalog misses; produce voiceover, transcription, captions, and background removal through one shared audio engine; operate on media (cut / reframe / transform); and reuse assets across projects. Also use for vague feedback that real footage looks dark, flat, boring, should feel retro/camcorder/print/ASCII, needs privacy, or needs a media reveal.

DansiDanutz/Video-Editor

Turn a product or marketing URL, pasted script, or brief into a product launch / promo video — SaaS promos, feature reveals, product demos, app and company launches. Use when the user wants to market, launch, promote, or reveal a product; the default for any commercial URL. Site tours / showcases of a website route here too — the brief carries the show-it-as-is intent. Unclear → /hyperframes.

DansiDanutz/Video-Editor

Divide a finished story/script into filmable scenes with per-scene image and animation prompts. Use when building a scene outline or shot list, deciding scene boundaries, durations, or what each visual must show.

DansiDanutz/Video-Editor

AI-assisted video editing workflows for cutting, structuring, and augmenting real footage. Covers the full pipeline from raw capture through FFmpeg, Remotion, ElevenLabs, fal.ai, and final polish in Descript or CapCut. Use when the user wants to edit video, cut footage, create vlogs, or build video content.

相關技能