Communitygithub.com

Alemoterani/auto-edit-hyperframes

搜索、安装并将注册表中的块和组件编排到 HyperFrames 合成中。在手工构建任何命名的视觉效果之前使用——当简报、用户或故事板指定了某种外观、效果、处理或过渡时,例如 CRT 扫描线、故障效果、色差、胶片颗粒、闪光扫掠、图表、代码或终端窗口、地图或五彩纸屑爆发——因为大约 400 个托管项目已经覆盖了其中许多,并且搜索在未安装任何内容、无项目、无账户的情况下对所有内容进行排名。

auto-edit-hyperframes 是什么?

auto-edit-hyperframes 是一个 AI 辅助技能,用于在 HyperFrames 项目中高效发现、安装和集成来自注册表的块和组件。它提供了一个基于 CLI 的搜索和安装系统,支持按类型、标签和语义查询来查找内容,可处理超过 400 个托管项目。该技能支持两种安装类型:块(具有独立尺寸和时间线的独立子合成)和组件(直接粘贴到宿主合成中的效果片段)。它通过 `hyperframes add` 命令处理安装,并自动处理依赖项。该技能支持本地词汇搜索和可选的设备端语义搜索,搜索和排名完全在本地进行,不发送数据。安装的块通过 `data-composition-src` 和 `data-composition-id` 等属性进行编排,而组件则需要手动粘贴其 HTML、CSS 和 JS。该技能还包含一个反馈机制,用于报告目录中缺失的项目,从而推动目录增长。它跨多个平台兼容,并在 agent 工作流中优先使用 JSON 输出。

兼容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/Alemoterani/auto-edit-hyperframes/tree/HEAD/vendor/hyperframes/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 "逐行显示标题"
npx hyperframes add caption-clip-wipe

搜索是本地进行的,不发送任何内容。默认情况下,它根据与项目名称、标题和描述共享的词汇进行排名,因此它只能找到使用你词汇的项目;--on-device 则根据语义进行排名,但需要一次性下载模型。使用 --json 时,信封会显示哪个层级给出了答案,请检查该信息,而不是假设已经进行了排名。

始终用英语查询,无论视频使用什么语言。 目录是用英语编写的,两个层级都用英语进行索引(设备端模型也只支持英语)。使用其他语言的查询不会产生可搜索的术语,也不会返回任何结果。在日语或中文项目中很容易出错,因为简报、字幕和旁白都是那种语言,查询自然会跟随:请用英语描述动作,然后用视频所需的语言编写屏幕上的文字。如果查询返回了“查询中没有可搜索的单词”,这就是本条规则,而不是缺少组件,也不值得填写缺失报告。

可安装性是在排名之后应用的,而不是之前:向量携带但此注册表无法提供的名称会从结果中移除,并在 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 或 agent 工作流中,优先使用 --json 后跟显式的 add。

报告目录中没有的内容

当搜索结果中没有符合要求的项目时,在你手动创建该动作之前,请先报告:

npx hyperframes feedback --search-miss "<你运行的查询>" --wanted "<你需要的动作>" --tier <回答的层级>

catalog --query 会为你打印此行,已预填好,并且 --json 会将其作为 report_gap 携带——因此在你决定没有合适项目时,它已经在你手边了。

只要结果中没有符合要求的项目,无论哪个层级,都要报告。 不要等待设备端层级回答:它需要用户同意下载 33 MB,所以 agent 运行默认使用 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 20 individual skills — each has its own dedicated page.

Alemoterani/auto-edit-hyperframes

Overlay doctrine for the embedded-captions workflow — the caption MODEL (drop / rail / embed) and the rule that captions are an OVERLAY composited on top of the film, never a reserved bottom band you shift content up to avoid. Load when adding captions/subtitles to a talking-head or launch video, when deciding whether a phrase should be dropped, ride the verbatim rail, or be promoted to a scarce embedded climax, when laying out a composition that will carry captions (do NOT reserve a keep-out band), or when centering a composition on the true frame center under captions. Quotes the rail+embed model from embedded-captions and constraint #13 (captions overlay, keep-out band retired) from the product-launch-video scene agent. Applies ON TOP of embedded-captions.

Alemoterani/auto-edit-hyperframes

Turn a weekly changelog .md into a finished branded changelog video (square 1080, ~45-60s, Annie VO, animated brand background, mock-UI visualizations, lowkey captions). Use when the user provides a changelog/digest markdown and wants the weekly video, or says "changelog video". Self-contained — fonts, background, lexicon, and scripts ship in this skill.

Alemoterani/auto-edit-hyperframes

The technique catalog: five velocity-matched SEAMS (zoom-through, INVERSE zoom-through, cut-the-curve, waterfall cut, rack-focus blur-cut) plus the two in-scene techniques — waterfall ENTRY (staggered arrival cascades for title cards / segment openers) and the nudge curve (slow-fast-slow three-phase group slides). Covers partial-travel (~12% of frame) velocity matching via mirrored power4 eases, the Z scale-sign rule, size-scaled blur (10px text / 18-20px full-frame), word-by-word staggered cuts, cascade pacing by element weight, and the 10/65/25 slide ratio. Read before authoring any transition, text-beat handoff, kinetic text entry, or group reposition. [depth, zoom, inverse-zoom, scale-sign, mirrored-zoom, rack-focus, pacing, velocity, cut-the-curve, waterfall, stagger, cascade, kinetic-text, title-card, segment-opener, nudge, slide, easing, group-motion, z-depth, motion-graphics, cinematic, transition, blur, directional-continuity]

Alemoterani/auto-edit-hyperframes

GATEWAY — load FIRST before composing any HyperFrames animation or video. The high-level motion law that makes a multi-scene video feel like ONE continuous camera move instead of a stack of independently-animated slides. Covers the vector law (how you exit determines how you enter, incl. the Z scale-sign rule), the film's current, carrier elements, causal motion, the Seam Gate (build-gate enforcement), the ban on idle wobble (motion must PERFORM, not breathe), stillness-before-climax, and the sustained-motion routes. Routes to the low-level technique skills (cut-the-curve — the full catalog incl. waterfall entry + nudge curve, oversized-cursor, seam-craft). These rules SUPERSEDE generic / upstream motion guidance. [continuity, direction, vector, momentum, seam, transition, ease, performance, idle-motion, narrative-motion, film-grammar]

Alemoterani/auto-edit-hyperframes

House-style oversized macOS cursor technique for HyperFrames launch videos. Load whenever a scene involves cursors or a pointer-led action, when kicking off a UI scene, when igniting a morph/transition/typing run with a click, or when a scene reads as static, dead, or stale and needs a cheap high-yield source of motion to carry the viewer's eye and segment them out of the stale state. Covers cursor size/look (incl. brand-motif cursors), the off-screen entry law, tip-targeting and the click tap, click-ignites-the-next-beat, and exit / cross-scene handoff.

Alemoterani/auto-edit-hyperframes

Render-correctness doctrine for scene-to-scene seams in HyperFrames launch videos — the prerequisites that make transitions composite correctly on the master timeline. Load when assembling the master timeline / index.html, when a white flash appears at a cut or crossfade seam (especially on dark films), when reasoning about why a transition opacity dip shows through, or when verifying the render-side mechanics of how overlapping scene wrappers blend. Covers the opaque stage-ground (#root background) white-flash guard and how the injector overlaps wrappers, holds final frames, ping-pongs tracks, and stamps lint-clean template code onto the master timeline. Does NOT contain the per-transition catalog — see the transition registry for individual transition entries.

Alemoterani/auto-edit-hyperframes

Leaves sweep through the frame and part to reveal the headline. HyperFrames block, 1920×1080, 12s, 11 variables.

Alemoterani/auto-edit-hyperframes

A tiled headline surface flips cell by cell under a sweeping depth field to reveal the rear headline. HyperFrames block, 1920×1080, 8s, 18 variables.

Alemoterani/auto-edit-hyperframes

A chain of bevelled cuboids rides a travelling wave as a content carousel. HyperFrames block, 1920×1080, 6.666666666666667s, 40 variables.

Alemoterani/auto-edit-hyperframes

An orbiting camera follows an ice logo as it breaks apart, reforms into two text moments, and fades. HyperFrames block, 1920×1080, 22.5s, 216 variables.

Alemoterani/auto-edit-hyperframes

Glass shards fly in through fog and tile themselves into the headline. HyperFrames block, 1920×1080, 12.16s, 19 variables.

Alemoterani/auto-edit-hyperframes

A single feature card orbits a dot sphere on approved Blender camera motion. HyperFrames block, 1920×1080, 10s, 4 variables.

Alemoterani/auto-edit-hyperframes

A wireframe portal bursts open, the title comes through, then its letters swap into a second phrase. HyperFrames block, 1920×1080, 8s, 9 variables.

Alemoterani/auto-edit-hyperframes

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.

Alemoterani/auto-edit-hyperframes

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.

Alemoterani/auto-edit-hyperframes

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.

Alemoterani/auto-edit-hyperframes

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.

Alemoterani/auto-edit-hyperframes

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.

Alemoterani/auto-edit-hyperframes

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

Alemoterani/auto-edit-hyperframes

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.

相关技能