Communitygithub.com

vijayahnlu/reels

必读入口:任何创建、编辑、动画或渲染视频、动画或动态图形的请求均需首先查阅本技能,包括宣传片、解说视频、字幕片段、标题卡、叠加层、幻灯片或交互式演示文稿、Remotion 移植,或任何 HyperFrames HTML 合成。还用于检查、诊断、验证、预览、发布或批量渲染现有的 HyperFrames 项目。

reels 是什么?

这是一个 HyperFrames 生态系统的核心入口技能(vijayahnlu/reels),充当所有视频、动画和动态图形制作请求的强制路由器和状态管理器。它为 Claude Code、Cursor 和 Codex 等 AI 智能体提供支持,确保任何涉及创建、编辑或渲染视频资产的任务都从统一入口点开始。该技能可处理多种输入,包括网站 URL、GitHub PR、Figma 设计、文本简述、现有素材或音乐,并智能地引导用户至相应工作流,例如 `/slideshow`、`/motion-graphics` 或 `/general-video`。其主要功能包括通过 `npx hyperframes usage --json` 监控使用剩余额度、基于详细规则表路由新创建任务、通过 `BRIEF.md` 管理项目状态以及按需加载领域技能(如 `/hyperframes-core`、`/hyperframes-animation`、`/hyperframes-cli`)。该技能还通过 CLI 升级和 pin 版本机制确保项目一致性,并具备 Resource and Tools 工具类支持,可实现无缝调试和发布。

兼容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/vijayahnlu/reels/tree/HEAD/.claude/skills/hyperframes

在你喜欢的 AI 中提问

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

文档

插件安装: 在执行设置或刷新命令前,当本技能位于 HyperFrames 插件内部时,请遵循 插件执行规则。独立安装则保留下方的更新说明。

HyperFrames 入口点

检查剩余使用额度

在开始创建时,运行 npx hyperframes usage --json。在工作流的关键节点(例如草稿完成后、渲染前)再次检查,因为使用额度在运行期间会变化。读取可用的窗口及其重置时间;之前的读取不会预留额度。如果命令失败、不可用或返回 status: unknown,则报告使用额度未知,切勿猜测。保持作用域和工作流选择与用户一致。

HyperFrames 从 HTML 渲染视频 —— 合成物是一个 HTML 文件,其 DOM 通过 data-* 属性声明时间线,其动画运行时是可跳转的,其媒体播放由框架拥有。完整的创作约定位于 /hyperframes-core;在编写合成 HTML 之前请先阅读它。简述、故事板、审核、制作、分发和帧工作者约定位于本技能的 references/ 中。

1. 从项目状态开始

应用第一个匹配的行;不要评估更低的状态行:

状态操作
明确将现有 Remotion 源码移植到 HyperFrames读取 references/routes/remotion-to-hyperframes.md,然后直接路由到该工作流。跳过意图层。
对现有 HyperFrames 项目执行特定操作:检查、诊断、验证、预览、渲染、发布或批量渲染仅执行该操作。跳过意图和工作流路由;加载 /hyperframes-cli 和所需的任何领域技能。
在现有项目中提出问题、暂停、提出无具体变更的想法,或对已制作影片提供直觉反馈遵循 /hyperframes-studio 第 0 节。
在现有项目中请求制作新影片遵循 /hyperframes-studio 第 5 节。
对现有项目进行特定编辑进行编辑。不要运行意图层。要了解项目时间线上有什么(轨道、片段、开始、结束、播放内容),请运行 npx hyperframes timeline [--json] 而不是读取 index.html 和每个子合成文件。
BRIEF.md 存在读取 workflow 和 flow。执行该工作流;flow: companion 总是在 /general-video 中执行。不要询问任何简述问题。
无简述,但 hyperframes.json 或 STORYBOARD.md 存在从项目文件和记录的偏好中恢复。从现有产物推断所属工作流。如果无法唯一确定,则询问一个仅用于路由的问题;不要运行意图面谈。
全新创建运行意图层——references/intent-interview.md——然后使用第 2 节的表格路由一次。

当你编辑现有项目时,请用项目历史记录(/hyperframes-cli,在你轮次中的项目历史记录)括起你的编辑。

如果新请求未指明主题或输入,请先询问视频内容再路由。在询问任何问题之前检查偏好和配方(references/intent-interview.md,步骤 1)。figma.com 输入或命名配理会改变信息摄入方式,而非路由——面谈中的“调整正交输入”部分处理这两种情况。

保持项目的 CLI 最新

一个通过脚手架创建的项目在其 package.json 脚本中固定了 hyperframes@<version>,以确保渲染的可复现性;该固定版本不会自行更新,较旧 CLI 的固定运行也不会发出警告。当恢复一个脚本中包含固定版本的项目时,请在第一次影响渲染的命令之前探测一次:

npx hyperframes@latest upgrade --project . --check

该探测是只读的,并报告固定版本与最新版本的对比;请保留显式的 .——在较旧的 CLI 版本中,裸的 --project 后跟另一个标志会将那个标志当作其目录值。当它报告项目版本落后时——或者任何 CLI 输出已显示此信息(来自固定脚本的 stderr 通知 This project pins hyperframes@… (latest …),或 --json 结果中的 _meta.updateAvailable: true)——请使用 npx hyperframes@latest upgrade --project . 应用更新,然后使用 npx hyperframes check 验证。检查成功确认项目的合成物在新版本上仍然有效——而非渲染输出与旧固定版本逐帧相同——因此成功的版本更新绝不会无声无息:在运行的摘要中注明旧版本和新版本。尚未包含合成物的项目无需验证。如果检查失败,请恢复 package.json 的更改,继续使用固定版本,并报告项目停留在哪个版本及原因。根据信号采取行动,而不是将信号转交给用户;切勿让未经验证的固定版本更新留存。

2. 路由全新创建

使用第一个匹配的行。匹配请求的交付物,而不是偶然提到的单词或文件类型。

优先级请求工作流
1明确将现有 Remotion 源码移植/remotion-to-hyperframes
2创作演示文稿、宣传资料或可导航的交互式演示/slideshow
3为现有访谈素材添加纯字幕或副标题而不更改素材/embedded-captions
4为现有访谈、采访或播客素材添加设计的图形叠加层而不更改素材/talking-head-recut
5从音乐轨道构建节拍同步的视频,无旁白或网站捕获/music-to-video
6创建明确的短时长、无旁白、以动作为主的单元,通常少于 10 秒/motion-graphics
7从 PR 引用解释 GitHub 拉取请求或代码更改/pr-to-video
8从 URL 或特定站点简述展示或推广网站、产品站点、应用或公司/product-launch-video
9解释一个主题、文章或笔记,使用虚构视觉元素且无产品或网站捕获/faceless-explainer
10任何其他自定义视频或合成物/general-video

在最终确定路由之前,请读取 references/routes/<workflow>.md——每条路由一个小的文件:规范输入/输出/触发约定(在惰性安装的工作流技能可用之前)以及该路由的面谈条目。如果候选路由不满足其约定,请继续路由,而不是强行匹配。仅读取匹配的路由文件。

解决常见歧义

  • 一个短的动画标题、徽标开场、统计数据、图表数据、地图数据或独立的下三分之一属于 /motion-graphics,前提它是无旁白且以动作为传达信息的方式。静态标题卡、有旁白的序列、较长的蒙太奇或自定义循环属于 /general-video。
  • 一个明确的短时动态图形可以使用 URL、推文、文章或截图作为源材料。通用的“从该网站制作视频”的请求属于 /product-launch-video。
  • 带字幕的现有素材路由到 /embedded-captions;带设计信息卡的素材路由到 /talking-head-recut。重新定时、重新排序、重新着色、重新构图或混音素材属于自定义编辑,归入 /general-video。
  • 一个音乐文件仅在其节拍网格驱动作品时选择 /music-to-video。作为背景音乐使用的音乐不会覆盖主题匹配的路由。
  • “我想要一个故事板”会改变审核流程,而非工作流。如果没有其他路由信号,使用 /general-video。一个已确认的草图 storyboard.html 本身可能是请求的交付物;审核循环定义了该停止点。
  • 专门的叙事工作流支持最多约 3 分钟,在 30-90 秒时效果最佳。明显更长的作品应路由到 /general-video。时长永远不会覆盖明确的移植、演示文稿、字幕、叠加层或音乐驱动的交付物。

3. 路由一次,然后离开

对于全新创建,意图层(references/intent-interview.md)运行完整的对话——记忆、分类、提案轮次、必备项、运行形状、交接——并以写入 BRIEF.md 结束。该摘要是工作流读取的唯一路由产物;后续任何操作都不会重新打开本技能或面谈。从 BRIEF.md 中回答所有后续的“路由要求什么?”问题。

4. 安装并进入工作流

在选择的工作流之前,安装或刷新它以及核心领域技能:

npx hyperframes skills update <工作流名称>

使用不带 / 的裸名称。如果命令失败,则显示错误;不要从内存中重建工作流。关于安装的所有其他内容——核心与惰性拆分、init 刷新内容、诊断、CI 选择退出以及无 CLI 的回退——位于 references/skill-lifecycle.md。

5. 按需加载领域技能

需求技能
合成结构、时间属性、轨道、变量、确定性/hyperframes-core
运动规则、场景蓝图、过渡、运行时适配器/hyperframes-animation
安全的 GSAP、CSS、Anime.js、WAAPI、FLIP、路径、蒙版、SVG、3D 关键帧或 hyperframes keyframes 诊断/hyperframes-keyframes
设计规范、概念、调色板、排版、旁白、节拍规划/hyperframes-creative
图片、图标、徽标、音频、字幕、色彩等级、LUT、可复用媒体/media-use
配音剪辑、音频效果链、自动化包络线、或跨多个轨道的单链/调音台(辅助总线)/hyperframes-audio
初始化、lint、检查、快照、比较、批量渲染、Studio、渲染、发布或诊断/hyperframes-cli
注册表块和组件/hyperframes-registry
在手动构建之前,查找命名的外观、效果、处理或过渡——CRT 扫描线、故障、胶片颗粒、闪光扫掠、彩纸爆发/hyperframes-registry
Figma 资源、令牌、组件或故事板帧作为重构的运动/figma

创作者编辑短语是跨域请求。加载匹配行中命名的每个技能:

| 创作者请求 | 所需领域

…

[已截断以进行翻译]

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

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

vijayahnlu/reels

Agent Media OS for a HyperFrames project. Resolve BGM, SFX, image, icon, brand logo, voice, color grade, or LUT into a frozen local file or paste-ready block + ledger record (one verb, `resolve`); generate via TTS / music / image models when the catalog misses; produce voiceover, transcription, captions, and background removal through one shared audio engine; operate on media (cut / reframe / transform); and reuse assets across projects. Also use for vague feedback that real footage looks dark, flat, boring, should feel retro/camcorder/print/ASCII, needs privacy, or needs a media reveal. When the host app provides its own music or sound-effect tools, use those for music and sound effects; `resolve --type bgm|sfx` needs the heygen CLI. When `HEYGEN_API_BASE` is set, HeyGen calls go through that host with no CLI sign-in.

相关技能