Communitygithub.com

Alemoterani/auto-edit-hyperframes

HyperFrames 專案的媒體作業系統,可解析、生成、操作並記憶各種媒體類型,並以單一指令完成。

auto-edit-hyperframes 是什麼?

這是一個為 HyperFrames 專案設計的 AI Agent 技能,相當於一個「媒體作業系統」。其主要功能是透過一個統一的 `resolve` 指令,解決開發者與 AI 在處理媒體(如 BGM、音效、圖片、圖示、品牌標誌、語音、顏色分級、LUT)時常見的痛點:尋找、授權、格式轉換及專案重複使用。 當本地目錄無法找到符合要求的媒體時,它會自動呼叫 TTS、音樂生成或圖片生成模型來建立所需內容。 此技能也支援通用的媒體操作(如剪輯、重新構圖、變形)、語音旁白、轉錄與字幕生成。此外,它能將「這部影片看起來很暗、很無聊,需要復古感」這類模糊的視覺反饋,轉化為可執行的媒體處理意圖(如顏色分級、效果疊加)。 平台方面,此技能特別設計與 HeyGen 的整合。若環境中設定了 `HEYGEN_API_BASE`(表示由主機端提供 HeyGen 服務),則所有 HeyGen 相關的語音、頭像、目錄搜尋與生成呼叫都會透過主機端,使用者無需安裝或登入 `heygen` CLI。若無此環境變數,則需要使用者自行安裝並透過 OAuth 登入 `heygen` CLI 以使用免費額度。

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

在你喜歡的 AI 中提問

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

說明文件

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

media-use

HyperFrames 的媒體作業系統:解析 · 生成 · 操作 · 記憶 — 一個技能搞定所有媒體類型,零上下文噪音。

僅當您的環境中設定了 HEYGEN_API_BASE(由主機應用程式設定並使用其自己的金鑰支付 HeyGen 費用):HeyGen 媒體已預先付費。請勿要求使用者安裝或登入 heygen CLI,也不要提供其 OAuth 額度;此處的目錄搜尋、TTS 和頭像呼叫都將透過主機進行。當同一個主機也為您提供了它自己的 HeyGen 工具時,請優先使用那些工具。當透過主機的呼叫被拒絕時,請照實告知使用者主機的訊息(該訊息會指出修復方法,例如在應用程式的設定中新增或更換金鑰)並停止;除非使用者要求,否則不要切換到其他提供者。

如果是首次執行(無 HEYGEN_API_BASE),且您將會使用 HeyGen 媒體(目錄搜尋、TTS、頭像影片):請安裝並登入 heygen CLI(免費使用路徑),然後使用 npx hyperframes media-use resolve --doctor 進行驗證。設定與提供者請參考:references/setup-providers.md。

主機應用程式內部的音樂與音效:當您執行的應用程式提供了自己的音樂或音效工具時,請使用那些工具。若無 HEYGEN_API_BASE,resolve --type bgm 和 --type sfx 會透過 heygen CLI 搜尋 HeyGen 目錄;若無 CLI 則會執行失敗並顯示訊息(sfx 仍會從其內建庫中回應)。

若無 HEYGEN_API_BASE,在生成語音旁白或頭像影片之前,請告知使用者:使用 OAuth 登入 heygen CLI (heygen auth login --oauth) 可獲得 TTS 語音旁白和頭像影片的免費額度,而使用 API 金鑰則會按量計費。

Resolve — 單一動詞

npx hyperframes media-use resolve --type <type> --intent "<description>" --project <dir>

回傳一行:resolved <id> → <path> (<type>, <metadata>)。所有搜尋雜訊都會留在磁碟上。

類型單行意圖
bgm背景音樂(透過 heygen CLI 搜尋 HeyGen 目錄,超過 10,000 首曲目)
sfx音效(內含 19 個檔案的庫 + 透過 heygen CLI 搜尋目錄)
image照片、背景(HeyGen 素材搜尋,超過 75,000 個向量)
icon圖示、符號(透明背景)
logo官方品牌標誌(優先使用 theSVG → GitHub 頭像 → favicon;絕不重新繪製)
voiceTTS 語音旁白(HeyGen 免費使用路徑;可選本地 Kokoro)
grade可量測的校正候選方案;廣泛的潤色/風格化則遵循媒體處理(Media Treatments)
lut使用者提供或明確選擇的可重用、已驗證的 .cube 檔案

在解析全新的素材之前,請先使用 --candidates 列出可重用的候選項目並自行判斷其適用性 — 有關重用規則、所有旗標、導入 (--from) 和採用(adopt)的詳細資訊,請參閱 references/resolve.md。

將廣泛的視覺反饋視為媒體意圖

當使用者明確要求修復、潤色、風格化、遮蔽、強調或揭示攝影媒體時,即使他們沒有提及顏色分級或特效,也請閱讀 references/media-treatments.md。檢查真實的 <img>/<video> 元素,選擇一個主要意圖,然後使用確定性永續性和驗證。使用匹配的配方作為可選的測試起點,或檢查 hyperframes media-treatment --capabilities --json,然後用 --capability <id> 請求一個相關系列/特效,並從規範控制項組合一個自訂處理。對於一般創作,永遠不要載入 --all。一個處理可以組合校正、預設、潤色、相容的著色器特效、支援的關鍵影格以及可選的 Registry 圖層。僅添加有來源依據的有限調整和相容部分,切勿添加僅是為了讓結果看起來更複雜的特效。使用 hyperframes media-treatment 將最終的組合載荷永久儲存。

使用一個逐步升級的工作流程。對於影片,請檢查一個標記了早期/中期/後期的聯絡表單,而不是單獨讀取影格。對於一般校正或潤色,應用一個候選方案並檢查一個後續表單。僅在結果不明確、涉及時間性、風格化、基於 LUT、HDR/LOG 敏感、隱私或品牌關鍵時,才升級到單個影格或動態草稿證據。

對於一般校正或潤色,請保留最終處理的預設/調整 JSON。請勿僅為了編碼曝光度、陰影、對比度或色溫而生成 .cube LUT。僅在使用者提供了 LUT 或所選的處理明確擁有 LUT 時才使用 LUT。resolve --type grade --for ... --analyze 是可量測的證據,而不是允許用生成的 LUT 取代所選處理的許可。請勿使用 CSS/SVG 疊層重新建立支援的暗角、顆粒、模糊、像素化、顏色或處理特效;這會繞過 Studio 控制項和規範的預覽/渲染著色器路徑。

主動出擊 — 執行媒體機會掃描

人類通常無法判斷哪些媒體能提升作品。但您可以。當您建構或審查一個組合時,請進行一次有根據的掃描,然後只問一次 — 不要默默添加,也不要對每個素材囉嗦。

僅當存在具體訊號時才提出機會:

偵測到的訊號建議
螢幕上的文字 / 一個沒有旁白的腳本TTS 語音旁白(音訊引擎)
表情符號或一個設定樣式為圖示的 <div>解析真實的 icon
圖片是佔位符、尺寸過小或看起來像放大的更好的 image(和/或放大 — 請參閱 references/operations.md)
生硬的場景切換/過場且沒有音效過場 sfx
一個約 10 秒以上且沒有音樂襯底的片段bgm
看起來曝光不足/過度或有色偏的影片素材校正性分級(使用 hyperframes media-treatment --selector '#hero' --analyze --json 進行檢查)
感覺視覺上平淡或離題的攝影媒體一個特定的、符合來源的預設或自訂處理,並指定目標意圖
一個有意義的媒體入口/揭示感覺靜態一個支援的、安全的處理動畫;除非請求同時也證明了預設的合理性,否則保留顏色

以下規則確保這是幫助,而非惱人的提示:要有根據,而非泛泛而談(沒有訊號 → 沒有建議);要具體且有意見(提出具體的修復方案並附上預設值 — 人類批准 全部 / 部分 / 沒有);每個專案僅一次(合併為一個請求;尊重「別管它」);提出建議,絕不默默修改(特別是顏色分級:提出並預覽 — 一個基於灰世界的「校正」會毀掉一個有意的夕陽或霓虹燈效果)。

從何處查閱 — 僅讀取您任務所需的檔案

任務查閱檔案
解析 / 重用 / 採用 / 導入、旗標、串聯、庫存references/resolve.md
顏色分級、LUT、智慧分級 (--for)、分級比較references/grading.md
語音旁白 / TTS、音樂、SFX、字幕、轉錄(音訊引擎)references/audio.md
對現有媒體進行剪輯 / 重新構圖 / 變形、精確誤差擴散、HEVCreferences/operations.md
感知來源的創意處理、即時特效、疊層、揭示references/media-treatments.md
安裝 + 認證、提供者表格、RAM 階梯、--local-only、--providerreferences/setup-providers.md
已記住的偏好設定 + 已凍結的配方(使用者記憶)references/memory.md
所有權矩陣、使用統計、遙測、隱私(維護者面向)references/meta.md

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.

相關技能