Communitygithub.com

sandeshrajbhandari/hyperframes-instruct

搜索、安装并将注册中心的块和组件接入 HyperFrames 合成。在手动构建任何命名的视觉效果之前使用——只要有简介、用户或故事板提到了某种外观、效果、处理或过渡(如 CRT 扫描线、毛刺、色差、胶片颗粒、闪光扫描、图表、代码或终端窗口、地图或五彩纸屑爆发)——因为大约 400 个托管的项目已经覆盖了其中很多,并且搜索会排好所有项目,无需安装、无需项目、无需账户。也在运行 `hyperframes add` 或 `hyperframes catalog`、安装单个项目或匹配标签的所有块、将安装的项目接入 index.html、或处理 hyperframes.json 时使用。涵盖发现、安装位置、块子合成接入、组件片段合并,以及创作新块或组件向上游贡献(构思 → 脚手架 → 验证 → PR)。

hyperframes-instruct 是什么?

此技能是 HyperFrames 生态系统的注册中心交互界面,允许用户通过 CLI 发现、安装和接入可复用的块(独立子合成)和组件(效果片段)。它提供了基于意图的搜索功能,以排名的形式展示匹配结果,并且优先采用词汇匹配,当用户明确选择后可使用本地设备上的模型进行语义匹配。安装过程会处理依赖关系,配置路径,并输出可直接粘贴到宿主合成中的代码片段。最重要的是,该技能鼓励用户在搜索无果时主动报告缺失的视觉效果,以帮助完善注册中心目录,从而避免在项目中因找不到合适组件而被迫手动从头构建视觉效果的场景。

兼容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/sandeshrajbhandari/hyperframes-instruct/tree/HEAD/.agents/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 11 individual skills — each has its own dedicated page.

sandeshrajbhandari/hyperframes-instruct

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.

sandeshrajbhandari/hyperframes-instruct

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.

sandeshrajbhandari/hyperframes-instruct

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

sandeshrajbhandari/hyperframes-instruct

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.

sandeshrajbhandari/hyperframes-instruct

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.

sandeshrajbhandari/hyperframes-instruct

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

sandeshrajbhandari/hyperframes-instruct

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.

sandeshrajbhandari/hyperframes-instruct

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.

sandeshrajbhandari/hyperframes-instruct

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

sandeshrajbhandari/hyperframes-instruct

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.

sandeshrajbhandari/hyperframes-instruct

A short, design-led motion graphic where motion is the message — kinetic typography, stat count-up, chart/data-viz hit, logo sting / brand lockup, lower-third / callout / social overlay, animated map (highlight regions, connect places, zoom to a location), animated tweet / news-article / headline, webpage / UI animation (scroll, cursor, callouts), or fusing a real image's geometry into a chart. Usually under 10s (up to ~30s), no narration or live-action subject; renders to MP4 or transparent overlay. Longer / narrated / multi-scene → /general-video. Unclear → /hyperframes.

相关技能