Communitygithub.com

laviedezidane/hyperframes-skill

面向 HyperFrames 项目的媒体操作系统。通过一个 `resolve` 命令解析 BGM、SFX、图片、图标、品牌标志、语音、色彩分级或 LUT 为本地冻结文件或可粘贴块 + 账本记录;当目录缺失时通过 TTS/音乐/图像模型生成;通过共享音频引擎制作配音、转录、字幕和背景移除;操作媒体(剪切/重构/变换);并在项目间复用资产。也适用于模糊反馈,如真实画面太暗、平淡、无聊,应呈现复古/摄像机/打印/ASCII 风格,需要隐私保护或媒体揭示。当宿主应用提供自己的音乐或音效工具时,优先使用它们;`resolve --type bgm|sfx` 需要 heygen CLI。当设置了 `HEYGEN_API_BASE` 时,HeyGen 调用将通过该宿主进行,无需 CLI 登录。

hyperframes-skill 是什么?

hyperframes/skill 是 HyperFrames 项目的核心媒体操作系统技能,旨在将各种媒体资产的解析、生成、操作和复用整合到一个统一的命令接口中。它支持通过 `resolve` 命令从 HeyGen 目录或本地库中快速获取背景音乐、音效、图片、图标、品牌标志、语音(TTS)、色彩分级方案(LUT)等。当目录中缺少所需资源时,该技能能自动调用 TTS、音乐或图像生成模型来创建。此外,它还集成了一个共享音频引擎,用于处理配音、转录、字幕生成和背景移除。该技能特别优化了对模糊或主观视觉反馈的处理(如“画面太暗”、“需要复古风格”),通过分析实际媒体文件,自动应用或建议合适的色彩分级、风格化处理或隐私保护效果。对于 HeyGen 服务,它支持两种模式:通过 `heygen` CLI 使用免费额度,或通过设置 `HEYGEN_API_BASE` 环境变量在宿主应用内使用付费密钥。该技能可作为独立的 Node.js CLI 工具使用,也完全兼容 Claude Code 等 AI 代理平台,通过结构化的 markdown 文档提供详细的配置、引用和操作指南。

兼容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/laviedezidane/hyperframes-skill/tree/HEAD/.agents/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 积分。

Resolve — 统一命令

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

返回一行:resolved <id> → <path> (<type>, <metadata>)。所有搜索噪音都保留在磁盘上。

类型单行意图
bgm背景音乐(通过 heygen CLI 访问 HeyGen 目录,10k+ 曲目)
sfx音效(捆绑的 19 文件库 + 通过 heygen CLI 访问目录)
image照片、背景(HeyGen 资产搜索,75k+ 矢量图)
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 配音(音频引擎)
表情符号或样式化为图标的 <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.

laviedezidane/hyperframes-skill

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.

laviedezidane/hyperframes-skill

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.

laviedezidane/hyperframes-skill

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.

laviedezidane/hyperframes-skill

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.

laviedezidane/hyperframes-skill

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.

laviedezidane/hyperframes-skill

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

laviedezidane/hyperframes-skill

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.

laviedezidane/hyperframes-skill

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.

laviedezidane/hyperframes-skill

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

laviedezidane/hyperframes-skill

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.

laviedezidane/hyperframes-skill

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

laviedezidane/hyperframes-skill

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.

laviedezidane/hyperframes-skill

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

laviedezidane/hyperframes-skill

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.

laviedezidane/hyperframes-skill

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.

laviedezidane/hyperframes-skill

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.

laviedezidane/hyperframes-skill

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.

laviedezidane/hyperframes-skill

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.

laviedezidane/hyperframes-skill

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.

laviedezidane/hyperframes-skill

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.

相关技能