Communitygithub.com

vijayahnlu/reels

搜索、安装并将注册表中的块和组件接入到HyperFrames合成中。在手动构建任何命名视觉效果之前使用,因为大约有400个已托管的项目已经覆盖了其中许多效果。

reels 是什么?

HyperFrames Registry 技能提供了一个强大的块和组件库,开发者可以通过 `hyperframes add <name>` 命令轻松安装和集成。块是独立的子合成,拥有自己的尺寸、持续时间和时间线,而组件则是无独立尺寸的效果片段,可直接粘贴到宿主合成中。该技能支持通过语义搜索或标签浏览来发现项目,并自动处理依赖安装。对于搜索结果不符合需求的情况,技能提供了 `feedback` 命令来报告缺口,从而为注册表提供需求信号。它适用于各种 HyperFrames 项目,包括但不限于 CRT 扫描线、故障效果、色差、胶片颗粒、闪烁扫描、图表、代码窗口或地图等视觉效果。

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

在你喜欢的 AI 中提问

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

文档

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

HyperFrames 注册表

注册表提供可复用的块和组件,可通过 hyperframes add <name> 安装。

  • 块 — 独立的子合成(拥有自己的尺寸、持续时间、时间线)。通过宿主合成中的 data-composition-src 引用。
  • 组件 — 效果片段(无自身尺寸)。直接粘贴到宿主合成的 HTML 中。

快速参考

hyperframes add data-chart              # 安装一个块
hyperframes add grain-overlay           # 安装一个组件
hyperframes add captions                # 安装所有标记为 captions 的块
hyperframes add shimmer-sweep --dir .   # 指定目标项目
hyperframes add data-chart --json       # 机器可读输出
hyperframes add data-chart --no-clipboard  # 跳过剪贴板(CI/无头模式)

安装后,CLI 会打印已写入的文件以及要粘贴到宿主合成中的代码片段。该片段只是一个起点——在接入块时,您需要添加 data-composition-id(必须与块的内部合成 ID 匹配)、data-start 和 data-track-index 属性。

位置参数首先尝试精确匹配项目名称。如果没有匹配的项目且该值是一个标签,则命令会安装该标签下的所有块。注册表依赖项会在请求的项目之前安装。hyperframes add 仅适用于块和组件;对于示例,请改用 hyperframes init <dir> --example <name>。

安装位置

默认情况下,块安装到 compositions/<name>.html。组件安装到 compositions/components/<name>.html。

这些路径可在 hyperframes.json 中配置:

{
  "registry": "https://raw.githubusercontent.com/heygen-com/hyperframes/main/registry",
  "paths": {
    "blocks": "compositions",
    "components": "compositions/components",
    "assets": "assets"
  }
}

有关详细信息,请参阅 install-locations.md。

接入块

块是独立的合成——通过宿主 index.html 中的 data-composition-src 引用它们:

<div
  data-composition-id="data-chart"
  data-composition-src="compositions/data-chart.html"
  data-start="2"
  data-duration="15"
  data-track-index="1"
  data-width="1920"
  data-height="1080"
></div>

关键属性:

  • data-composition-src — 块 HTML 文件的路径
  • data-composition-id — 必须与块的内部 ID 匹配
  • data-start — 块在宿主时间线中出现的时间(秒)
  • data-duration — 块播放的持续时间
  • data-width / data-height — 块画布尺寸
  • data-track-index — Studio 时间线行;仅供显示。使用 CSS z-index 进行图层叠放

有关详细信息,请参阅 wiring-blocks.md。

接入组件

组件是代码片段——将其 HTML 粘贴到您的合成标记中,CSS 粘贴到样式块中,JS 粘贴到脚本中(如果有):

  1. 读取安装的文件(例如 compositions/components/grain-overlay.html)
  2. 将 HTML 元素复制到您的合成的 <div data-composition-id="..."> 中
  3. 将 <style> 块复制到您的合成的样式中
  4. 将任何 <script> 内容复制到您的合成的脚本中(在时间线代码之前)
  5. 如果组件暴露了 GSAP 时间线集成(请参阅片段中的注释块),将这些调用添加到您的时间线中

有关详细信息,请参阅 wiring-components.md。

发现

使用 CLI 作为主要发现界面。先按意图搜索,再浏览: 注册表中的项目比您手动扫描的要多,因此列出所有项目并按名称或标签匹配是较慢的路径,并且当作者的措辞与您的不同时,它会失败。

# 对整个目录进行排序,匹配节拍应该做的事情
npx hyperframes catalog --query "reveal a headline one line at a time"
npx hyperframes add caption-clip-wipe

搜索是本地进行的,不会发送任何数据。默认情况下,它根据与项目名称、标题和描述共享的词汇进行排序,因此它只能找到重用您词汇的项目;--on-device 则根据含义进行排序,但需要一次性模型下载。使用 --json 时,返回信封会指明哪个层级回答了,因此请检查这一点,而不是假设进行了排序。

无论视频使用什么语言,始终用英语查询。 目录是用英语编写的,两个层级都以此方式索引它(设备端模型也仅支持英语)。使用其他脚本的查询不会产生可搜索的术语,并且会返回空结果。这在日语或中文项目中很容易出错,因为其中的简报、字幕和旁白都是该语言,并且查询自然会随之而来:用英语描述动作,然后以视频所需的任何语言编写屏幕上的文字。如果查询返回 No searchable words in query,那就是这条规则,而不是缺少组件,并且不值得提交缺失报告。

可安装性是在排序之后应用的,而不是之前:向量携带但此注册表无法提供的名称会从结果中删除,并计入 dropped,因此非零的 dropped 意味着两者属于不同的版本。请参阅 /hyperframes-cli 了解离线层级、同意门以及如何刷新过期的索引。

要浏览或筛选,而不是搜索:

npx hyperframes catalog
npx hyperframes catalog --type block
npx hyperframes catalog --type component
npx hyperframes catalog --type block --tag social
npx hyperframes catalog --json
npx hyperframes catalog --human-friendly

普通表格和 --json 模式仅列出匹配项;使用 hyperframes add <name> 安装选中的名称。--human-friendly 会打开一个交互式选择器并立即安装所选项目。在 CI 或代理工作流中,推荐使用 --json 后跟显式的 add。

报告目录中缺少的内容

当搜索结果中没有合适的项目时,在手动创作该效果之前,请说明情况:

npx hyperframes feedback --search-miss "<您运行的查询>" --wanted "<您需要的效果>" --tier <回答的层级>

catalog --query 会为您打印此行,并预填充内容,而 --json 会将其作为 report_gap 携带——因此,在您确定没有任何匹配项的那一刻,它就已经可用。

每当结果中没有合适的项目时,请报告,无论哪个层级回答。 不要等待设备端层级回答:它需要用户同意下载 33 MB,因此除非显式选择加入,否则代理运行会使用 words,并且以 on-device 为条件会抑制几乎所有的报告。--tier 值会随之传递,以便在阅读这些报告时,词汇缺失与含义缺失的区别得以保持。描述您想要的效果,而不是您想象的项目名称:返回的是值得构建的效果列表,而报告一个不存在的项目不会提供任何信息。这是唯一一条将查询发送到某处的路径,这正是一个独立的、有意的命令,而不是搜索自动执行的操作。它不携带任何评分,也永远不会进入评级指标。

这是目录的整个需求信号。跳过它意味着您遇到的缺口只能通过安装数量来猜测,而安装数量无法看到没有人能安装的效果。

如果 CLI 无法访问配置的注册表,请检查原始清单作为后备:

curl -s https://raw.githubusercontent.com/heygen-com/hyperframes/main/registry/registry.json

CLI 无法访问的注册表不会将目录清空用于发现:只要重新验证失败,以前获取的清单会继续在其 24 小时刷新窗口之后提供服务,因此 catalog 和 catalog --query 仍然会列出并针对磁盘上的最后一个副本进行排序。

即使您昨天安装了一个项目,add 仍然需要网络。 只有清单被缓存;项目实际文件在每次安装时都会获取。因此,离线时您可以搜索,并查看项目的描述,但安装会在文件获取步骤失败。不要向用户承诺离线安装。

每个项目的 registry-item.json 包含:名称、类型、标题、描述、标签、尺寸(仅限块)、持续时间(仅限块)和文件列表。

有关按类型和标签筛选的详细信息,请参阅 discovery.md。

贡献新的块或组件

要创作一个新的注册表项(字幕样式、VFX 块、过渡、下部三分之一或可复用的组件)并将其作为上游 PR 提交——而不是安装现有的——请遵循 contributing.md 中完整的构思→脚手架→构建→验证→预览→发布工作流。启动模板(字幕 / VFX / 组件 / registry-item.json)的复制粘贴版本在 templates.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

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

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.

相关技能