Communitygithub.com

sandeshrajbhandari/hyperframes-instruct

用於 HyperFrames 專案的媒體作業系統單一技能。透過一個 `resolve` 動詞即可處理 BGM、音效、圖片、圖示、品牌標誌、語音、色彩校正或 LUT,將其解析為本地靜態檔案與帳本記錄;當目錄中缺少素材時,透過 TTS / 音樂 / 影像模型生成;並透過共享音訊引擎製作配音、轉錄、字幕與去背;也支援對素材進行剪輯、重構或轉換操作。還可處理模糊回饋,如真實畫面看起來太暗、平淡、無趣、需要復古/攝影機/印刷/ASCII 風格、需要隱私保護或需要媒體展示。

hyperframes-instruct 是什么?

此技能為 HyperFrames 專案提供一個統一的媒體作業系統,讓 AI 代理能透過一個核心動詞 `resolve` 來處理所有常見的媒體類型(背景音樂、音效、圖片、圖示、品牌標誌、語音、色彩校正 LUT),並將其解析為本地靜態檔案與帳本記錄。當目錄中缺少所需素材時,它會自動透過 HeyGen 或本地模型(如 Kokoro)等供應商生成音樂、語音或影像。此外,該技能還整合了一個共享音訊引擎以處理配音、轉錄、字幕與去背,並支援對現有媒體進行剪輯、重構或轉換。針對視覺效果,它引入「Media Treatments」機制,能根據文字描述或模糊需求(如畫面太暗、需要復古風格)執行漸進式色彩校正、風格化、隱私遮蔽與動畫展示,並避免無根據的猜測。此技能支援 Claude Code、Cursor 與 Codex 等代理平台,其工作原理是透過命令列工具 `npx hyperframes media-use` 執行操作,且所有參考文件(如解析、音訊或色彩校正的詳細規則)都存放在 `references/` 目錄下,代理應僅根據當前任務讀取對應的參考文件。

兼容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/sandeshrajbhandari/hyperframes-instruct/tree/HEAD/.agents/skills/media-use

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

外掛程式安裝: 在執行 Setup 或 Freshness 命令前,如果此技能位於 HyperFrames 外掛程式內,請遵循外掛程式執行規則。獨立安裝則保留下方的更新說明。

media-use

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

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

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

Resolve — 核心動詞

npx hyperframes media-use resolve --type <type> --intent "<description>" --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 配音(音訊引擎)
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、音樂、音效、字幕、轉錄(音訊引擎)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 11 individual skills — each has its own dedicated page.

sandeshrajbhandari/hyperframes-instruct

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.

sandeshrajbhandari/hyperframes-instruct

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.

sandeshrajbhandari/hyperframes-instruct

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

sandeshrajbhandari/hyperframes-instruct

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.

sandeshrajbhandari/hyperframes-instruct

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.

sandeshrajbhandari/hyperframes-instruct

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

sandeshrajbhandari/hyperframes-instruct

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.

sandeshrajbhandari/hyperframes-instruct

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

sandeshrajbhandari/hyperframes-instruct

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.

sandeshrajbhandari/hyperframes-instruct

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

sandeshrajbhandari/hyperframes-instruct

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.

相关技能