Communitygithub.com

HyperFrames 注册表

搜索、安装并将注册表中的块和组件接入 HyperFrames 合成。在手动构建任何具名视觉效果之前使用——例如故障、色差、胶片颗粒等,因为数百个托管项目已覆盖了其中许多。

HyperFrames 注册表 是什么?

HyperFrames Registry 是一个可重用的块(独立子合成)和组件(效果片段)的集合,可通过 `hyperframes add <name>` CLI 命令搜索、安装并接入。它支持通过关键词、标签或语义搜索(本地,无需联网或用户账户)进行发现,并将结果排名。安装后,块通过 `data-composition-src` 属性包含在宿主合成中,以定义其尺寸、时长、时间轴位置和层级;组件则将其 HTML/CSS/JS 片段直接粘贴到宿主标记中。注册表还通过 `hyperframes add` 支持标签式批量安装,并在未找到匹配项时通过 `hyperframes feedback --search-miss` 报告缺失。它适用于 HyperFrames 平台,工作流程包括从现有资源中选择或通过 PR 贡献新项目。

兼容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/DansiDanutz/Video-Editor/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 — 图层顺序(数值越大越靠前)

详见 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 on-device

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 13 individual skills — each has its own dedicated page.

DansiDanutz/Video-Editor

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.

DansiDanutz/Video-Editor

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.

DansiDanutz/Video-Editor

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

DansiDanutz/Video-Editor

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

DansiDanutz/Video-Editor

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.

DansiDanutz/Video-Editor

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

DansiDanutz/Video-Editor

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.

DansiDanutz/Video-Editor

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.

DansiDanutz/Video-Editor

Use when building or editing a HyperFrames project that people open in Studio: 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`.

DansiDanutz/Video-Editor

Agent Media OS, the single skill for every media need in 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.

DansiDanutz/Video-Editor

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.

DansiDanutz/Video-Editor

Divide a finished story/script into filmable scenes with per-scene image and animation prompts. Use when building a scene outline or shot list, deciding scene boundaries, durations, or what each visual must show.

DansiDanutz/Video-Editor

AI-assisted video editing workflows for cutting, structuring, and augmenting real footage. Covers the full pipeline from raw capture through FFmpeg, Remotion, ElevenLabs, fal.ai, and final polish in Descript or CapCut. Use when the user wants to edit video, cut footage, create vlogs, or build video content.

相关技能