Communitygithub.com

samyakiasonline-ctrl/hyperframe

Agent Media OS,HyperFrames 專案的單一媒體技能。透過一個 `resolve` 動詞,就能處理 BGM、SFX、圖片、圖示、品牌標誌、語音、調色或 LUT,將其轉為本地檔案或可直接貼上的區塊,並附上分類帳記錄;當目錄中找不到時,可透過 TTS / 音樂 / 圖片模型生成;透過共享音訊引擎製作旁白、轉錄、字幕及去背;對媒體進行裁剪、重構或變形等操作;並可在不同專案間重複使用素材。也適用於模糊的回饋,例如實拍畫面太暗、平淡、無趣、應呈現復古/手提攝影機/印刷/ASCII 風格、需要保護隱私,或需要媒體展示。

hyperframe 是什麼?

此為 HyperFrames 專案設計的單一媒體作業系統技能,將所有媒體相關需求集中到一個技能中處理,減少上下文切換的干擾。其核心操作為一個 `resolve` 動詞,可透過 CLI 命令解析並取得 BGM、SFX、圖片、圖示、品牌標誌、語音、調色或 LUT 等各種媒體類型,並會回傳已解析資源的本機路徑與中繼資料。除了從目錄解析既有素材,技能還能利用 HeyGen 平台(含免費用量)或本機 Kokoro 模型進行 TTS 語音生成,並可透過 HeyGen 目錄搜尋圖片與音樂。對於更複雜的視覺回饋,技能提供 Media Treatments 功能,能根據使用者描述(如太暗、平淡、需復古風格等)自動提議並套用校正、風格化或特效處理,並支援裁剪、重構、變形等媒體操作。此技能支援多個平台,並透過詳細的參考文件(如 resolve.md、grading.md、audio.md)引導 LLM 代理精確執行任務,同時內建主動提案機制,可在建構或審查專案時,基於具體信號(如長時間無背景音樂、缺旁白、使用佔位圖等)一次性向使用者提出改善建議,避免過度干擾。

相容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/samyakiasonline-ctrl/hyperframe/tree/HEAD/.claude/skills/media-use

在你喜歡的 AI 中提問

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

說明文件

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

媒體使用

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

首次執行:安裝並登入 heygen CLI(使用免費用量路徑),然後使用 npx hyperframes media-use resolve --doctor 進行驗證。設定與提供者:references/setup-providers.md。

在生成旁白或虛擬角色影片前,請告知使用者:透過 OAuth 登入 heygen CLI(heygen auth login --oauth)可獲得 TTS 旁白和虛擬角色影片的免費額度,而使用 API 金鑰則會計入 API 費用。

解析 — 核心動詞

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

回傳一行結果:resolved <id> → <path> (<type>, <metadata>)。所有搜尋記錄保留在磁碟上,不輸出多餘資訊。

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

在重新解析前,可使用 --candidates 列出可重複使用的候選項目,並自行判斷是否合適 — 重複使用規則、所有旗標、匯入(--from)和採用方式,請參閱 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.

samyakiasonline-ctrl/hyperframe

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.

samyakiasonline-ctrl/hyperframe

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.

samyakiasonline-ctrl/hyperframe

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.

samyakiasonline-ctrl/hyperframe

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.

samyakiasonline-ctrl/hyperframe

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.

samyakiasonline-ctrl/hyperframe

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

samyakiasonline-ctrl/hyperframe

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.

samyakiasonline-ctrl/hyperframe

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.

samyakiasonline-ctrl/hyperframe

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

samyakiasonline-ctrl/hyperframe

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.

samyakiasonline-ctrl/hyperframe

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

samyakiasonline-ctrl/hyperframe

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.

samyakiasonline-ctrl/hyperframe

Use when working with a person on a HyperFrames project in Studio: first, whether their message asks for a change at all (questions, loose ideas and "don't change anything" get an answer and a plan, not an edit); for a new film, the plan, storyboard and build order that the HyperFrames launch films follow; and 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`.

samyakiasonline-ctrl/hyperframe

A short, design-led motion graphic where motion is the message — kinetic typography, stat count-up, chart/data-viz hit, logo sting / brand lockup, lower-third / callout / social overlay, animated map (highlight regions, connect places, zoom to a location), animated tweet / news-article / headline, webpage / UI animation (scroll, cursor, callouts), or fusing a real image's geometry into a chart. Usually under 10s (up to ~30s), no narration or live-action subject; renders to MP4 or transparent overlay. Longer / narrated / multi-scene → /general-video. Unclear → /hyperframes.

samyakiasonline-ctrl/hyperframe

Turn a music track (an audio file, a video to pull audio from, or a track generated from a mood brief) into a beat-synced video — lyric video, slideshow, or kinetic promo. The music drives all pacing; any user-supplied images/videos are cut onto the same beat grid, and a complete video needs zero assets. Narrated pieces → the input-matched workflow (see /hyperframes). Unclear → /hyperframes.

samyakiasonline-ctrl/hyperframe

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.

samyakiasonline-ctrl/hyperframe

Turn a GitHub pull request (a PR URL, owner/repo#N, or 'this PR' in a checked-out repo) into a code-change explainer video — changelog, feature reveal, fix, or refactor walkthrough built from the diff, commits, and files: the input is a code change, not a website. Not a product promo (/product-launch-video) or a no-PR topic explainer (/faceless-explainer). Unclear → /hyperframes.

samyakiasonline-ctrl/hyperframe

Port an existing Remotion (React) composition''s source to HyperFrames HTML. Use ONLY on an explicit ask to port/convert/migrate/translate a Remotion source — one-way, Remotion-only. A passing Remotion mention, reference-only code, or "make something like my Remotion video" is a fresh build (/general-video). Unclear → /hyperframes.

samyakiasonline-ctrl/hyperframe

Author a HyperFrames slideshow — a presentation, pitch deck, or interactive deck with discrete slides, fragment reveals, branching, hotspot navigation, and built-in presenter mode with speaker notes; also converts an existing page into a deck. Output is a navigable deck, not a rendered MP4. If the user didn't explicitly ask for a slideshow, confirm before authoring. Unclear → /hyperframes.

samyakiasonline-ctrl/hyperframe

Package an existing talking-head / interview / podcast video with timed, designed GRAPHIC OVERLAY cards — kinetic titles, lower-thirds, data callouts, quotes, side panels, picture-in-picture — synced to the transcript, on a 16:9 / 9:16 / 4:5 canvas of your choice; the clip plays untouched underneath. Trigger on "graphic overlays", "on-screen graphics", "package / dress up my video". Not plain subtitles (/embedded-captions). Unclear → /hyperframes.

相關技能