Communitygithub.com

vijayahnlu/reels

HyperFrames项目的Agent媒体操作系统。用于解析BGM、SFX、图像、图标、品牌标志、语音、色彩分级或LUT为本地文件或可粘贴块+账本记录;通过TTS/音乐/图像模型生成缺失内容;通过共享音频引擎制作旁白、转录、字幕和背景移除;操作媒体(剪辑/重新构图/转换);以及跨项目复用资产。

reels 是什么?

这个技能为HyperFrames项目提供了一个统一的媒体操作系统,将媒体处理的所有复杂性封装到一个单一的`resolve`命令中。它支持解析和生成多种媒体类型,包括背景音乐(BGM)、音效(SFX)、图像、图标、品牌标志、语音、色彩分级和LUT文件。当本地目录无法找到所需资产时,技能会自动通过TTS(文本转语音)、音乐生成或图像生成模型进行补充。技能还包含一个共享的音频引擎,用于制作旁白、转录、字幕和背景移除。对于视觉反馈(如画面偏暗、平淡、需要复古/摄像机/打印/ASCII效果、隐私保护或媒体揭示),它提供了智能的媒体处理方案,并能够读取媒体文件并提供具体的调整建议。该技能支持在HeyGen或主机应用提供的工具之间智能切换,并附有详细的参考文档指导各种操作。

兼容平台~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 积分。

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可衡量的校正候选;广泛的润色/风格化遵循媒体处理规则
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 时才使用它。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
安装 + 认证、提供商表、内存阶梯、--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`.

相关技能