Communitygithub.com

vijayahnlu/reels

HyperFrames 專案的媒體作業系統。可解析背景音樂、音效、圖片、圖示、品牌標誌、語音、色彩校正或 LUT 成為凍結的本地檔案或可貼上的區塊及分類帳記錄(一個動詞:resolve);透過 TTS / 音樂 / 圖片模型在目錄中找不到時產生內容;透過共享音訊引擎製作旁白、轉錄、字幕和去背;對媒體進行操作(剪輯 / 重新構圖 / 轉換);並跨專案重複使用素材。也用於模糊的回饋,例如真實畫面看起來太暗、太平、太無聊、應該要有復古/手提攝影機/印刷/ASCII 的感覺、需要隱私保護,或需要媒體揭露。當主機應用程式提供其自己的音樂或音效工具時,請使用那些工具處理音樂和音效;`resolve --type bgm|sfx` 需要 heygen CLI。當設定了 `HEYGEN_API_BASE` 時,HeyGen 呼叫會透過該主機進行,無需 CLI 登入。

reels 是什麼?

`vijayahnlu/reels` 是一個為 HyperFrames 專案設計的全面性媒體作業系統技能。其主要功能圍繞一個核心動詞 `resolve`,用於將各種媒體類型(背景音樂、音效、圖片、圖示、標誌、語音、色彩分級、LUT)解析為本地檔案或可貼上的程式碼區塊,並記錄在分類帳中。當內建目錄中缺少所需素材時,技能會自動透過整合的 TTS、音樂和圖片生成模型來製作內容。此技能與 HeyGen 服務深度整合,支援旁白、頭像影片、字幕和配音,並能處理去背等操作。當主機應用程式(如 Claude Code、Cursor 等)設定 `HEYGEN_API_BASE` 環境變數時,所有 HeyGen 媒體操作會直接透過主機進行,無需使用者安裝 CLI 或進行 OAuth 授權。除了精確的素材解析,技能特別擅長處理模糊的視覺回饋,例如畫面看起來太暗、平板、無趣,或需要特定風格(復古、ASCII藝術)時,會自動分析並提出合適的媒體處理方案(包含色彩校正、特效、疊加層),並提供具體的、可預覽的建議,避免未經許可的靜默修改。技能支援在 Amazon Bedrock 或 Google Cloud Vertex AI 執行的環境,無需 API 金鑰。

相容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/vijayahnlu/reels/tree/HEAD/.claude/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 金鑰則會產生 API 點數費用。

解析 — 核心動詞

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測量後的校正候選;廣泛的潤色/風格化請遵循媒體處理
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 旁白(音訊引擎)
Emoji 或樣式為圖示的 <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 9 individual skills — each has its own dedicated page.

vijayahnlu/reels

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.

vijayahnlu/reels

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

vijayahnlu/reels

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.

vijayahnlu/reels

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.

vijayahnlu/reels

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

vijayahnlu/reels

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.

vijayahnlu/reels

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

vijayahnlu/reels

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.

vijayahnlu/reels

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

相關技能