Communitygithub.com

samyakiasonline-ctrl/hyperframe

用于在Studio中处理HyperFrames项目时,首先判断用户消息是否要求修改;为新电影提供规划、故事板和构建顺序;以及指导时间线布局(一条字幕轨道、每种元素类型一条轨道、每个场景为子合成)和安全区域。

hyperframe 是什么?

该技能定义了在HyperFrames Studio协作时的行为准则,核心原则是“先沟通再构建”。它要求AI助手在打开任何文件前先理解用户意图:判断消息是要求修改(如“让标题更大”)、提问(回答但不修改)、还是讨论新想法。对于新电影,它提供了从Brief、Direction、Storyboard到Build和Notes的完整工作流,参考了`/hyperframes-launches`项目的实际流程。在构建质量方面,技能强制要求时间线应清晰可读:每个场景必须作为独立子合成加载(`data-composition-src`),所有字幕集中在一条轨道(`data-track-kind="captions"`),每种元素(视频、图形、字幕、音频)独占一条轨道,并使用CSS控制层级而非`data-track-index`。它还规定了安全区域(动作安全90%、字幕安全80%),以及产品发布电影应遵循的规范(使用真实产品录像、保持同一世界、光标和滚动内容通过边缘退出等)。该技能适用于Claude Code、Cursor、Codex等AI编码代理,旨在通过结构化的约定减少沟通错误和构建返工。

兼容平台~Claude Code~Codex CLI✓Cursor
npx skills add https://github.com/samyakiasonline-ctrl/hyperframe/tree/HEAD/.claude/skills/hyperframes-studio

在你喜欢的 AI 中提问

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

文档

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

HyperFrames Studio 约定

Studio 在时间线上为每个顶级元素绘制一行。遵循以下规则的项目会以简短、可读的时间线打开;不遵循规则的项目则会显示为一大片无法编辑的未标记行。这些是构建时应遵循的约定。关于如何修改剪辑,请遵循 /hyperframes-core 中的 references/creator-editing-recipes.md,切勿发明相同编辑的不同形式。

0. 先沟通,再构建

在打开文件之前阅读用户消息。判断消息要求什么:

用户您
提出修改请求,无论是否礼貌(如“把标题放大一点”、“你能删掉第三个场景吗?”)执行修改。
对已完成的影片给出感觉上的反馈(如“开头感觉有点突兀”、“时长不够长”)找到原因,修改可测量的参数,说明反馈的含义和修改了什么,并根据 /hyperframes-creative 中的 references/storyboard-recipe.md § 4 记录。
提问且未指明修改(如“为什么标题会跳?”)回答问题。不修改任何内容。
说不要改动任何东西、暂停、只是想想、聊聊不修改任何文件,即使是你注意到的错误也不改。以文字形式提供建议。
为这部影片提出一个想法但没有具体的修改(如“我希望结局更宏大”)提出修改建议并将其添加到计划中(见下文)。不修改任何合成文件。
要求制作一部新电影进行规划(§ 5)。
批准计划(如“开始构建”、“执行”)按照批准的内容进行构建。

既提问又要求修改的消息,需要同时给出答案和修改。只有当你无法判断是否要求任何内容时,才将其视为对话:错误的答案只浪费一条消息;错误的构建则会浪费一次长时间运行和多轮反馈。

对话回复:

  • 首先用简单的几句话直接回答问题。
  • 只询问那些答案会改变影片的问题,并为每个问题提供推荐答案及其权衡(如“30秒适合信息流;60秒为演示留出空间”)。
  • 当需要形成某个想法时:对于新电影,提供方向(参考 /hyperframes 中的 references/pitch-round.md);对于关于当前影片的想法,针对所指部分提供两到三个选项。推荐其中一个。
  • 以下一步行动和启动词结束(如“说‘开始构建’,我就开始”)。

将计划保存在项目内而不仅仅是聊天中:下一条消息可能启动一个看不到本次会话的新会话。按照 /hyperframes-creative 中 references/storyboard-recipe.md § 4 记录轮次的方式将计划添加到 STORYBOARD.md;切勿覆盖已锁定的帧。如果用户要求你什么都不改,则不要写入任何内容:将计划放在回复中并提供保存选项。

1. 每个场景都是一个子合成

根合成仅包含时间轴宿主、媒体和音频。任何具有嵌套结构的场景(包含子元素的 div、带有副标题的标题、图表)都必须是独立的文件,使用 data-composition-src 加载,接线方式参考 /hyperframes-core 中的 references/sub-compositions.md。

留在根元素内的嵌套标记不会成为独立的一行。它会隐藏在一个无法逐段修剪或移动的不透明行内。

编写代码时,应假设有一个结构检查工具会拒绝任何违反此规则的情况。

2. 一条字幕轨道

  • 所有字幕位于一条轨道上:一个标记为 data-track-kind="captions" 的独立子合成宿主(一个 data-track-index),按顺序承载所有字幕组。
  • 切勿为每个字幕组使用一行轨道,也切勿将字幕与其他类型的元素混在同一轨道上。
  • 单词时间规则不变:请参考 /embedded-captions 和 caption_* lint 规则。

3. 每种元素类型一条轨道

按类型分组,以便每行都是一个用户可以作为整体选择、静音或拖动的对象。

类型data-track-kind
基础视频 / A-rollvideo(来自标签)
场景、覆盖层、图形graphics
字幕captions
音频(旁白、音乐、音效)audio(来自标签)

在子合成宿主上放置 data-track-kind。视频和音频类型来自标签,因此 <video> 和 <audio> 不需要额外属性。为每种类型指定独立的 data-track-index;该数字仅用于显示,不会改变元素的渲染层级。使用 CSS 控制图层叠加。

4. 安全区域

任何标尺或安全框覆盖层都应在预览窗格内,绝不在合成内部,因此不要在 HTML 中添加引导元素。 两种画面比例(宽屏和竖屏)使用相同的两个安全框,即 Premiere 的默认值。预览切换会在每个边的中点绘制一个刻度标记绘制它们。参考源:packages/studio/src/utils/previewSafeMargins.ts 中的 ACTION_SAFE_PERCENT 和 TITLE_SAFE_PERCENT。

框占画面比例每条边的内边距
动作安全90%5%
字幕安全80%10%
  • 安全边距:所有可见内容保持在动作安全框(90%)内,字幕和关键内容保持在字幕安全框(80%)内。
  • 双画面和 50/50 布局需保持每一半的内容都在字幕安全框内。

5. 新电影:规划、故事板、构建

hyperframes-launches 中的影片按以下顺序制作。每个步骤都有负责人;请遵循此顺序,无需在此重复说明。

步骤负责文件 / 规则
1. 简报/hyperframes 中的 references/intent-interview.md。在现有项目中,仅保留同一影片的后续工作:新版本或精简版,相同工作流程和宽高比。询问其必要问题,跳过 hyperframes init,绝不覆盖 BRIEF.md 或 STORYBOARD.md,在每个文件中添加新的带日期章节,并在回复中说明。具有不同工作流程或宽高比的影片应开始一个新项目,并在回复中说明。
2. 方向/hyperframes 中的 references/pitch-round.md
3. 故事板/hyperframes-creative 中的 references/storyboard-recipe.md
4. 构建简报所路由到的工作流程(/hyperframes § 2)及其自身的参考文件
5. 反馈/hyperframes 中的 references/review-loop.md

启动影片为产品发布而增加的内容。当工作流程选择的叙事弧有不同规定时,以叙事弧为准。

  • 使用已发布产品的真实录像。 在简报中要求提供屏幕录制,除非工作流程本身能捕获(如通过 URL 捕获网站),并在收到之前用一个带标签的占位符保留其插槽。切勿近似模拟已发布产品的用户界面。作为上下文展示的第三方工具(如聊天应用、编辑器)应从捕获素材中忠实地重建。
  • 维持同一世界。 同一窗口或画布应跨越多个节拍连贯地继续。仔细检查每一个剪辑点:任何持续的元素都不能跳跃。
  • 光标和滚动内容。 光标或窗口本身滚出的内容,应从窗口或框架边缘移出,而不是在画面中间淡出。元素和文本的替换应遵循工作流程中的 cut-catalog.md(如果存在)。
  • 以命令或地址特写结束, 标志落在仍在运动的画面中。
  • 在每次版本迭代中声明运行时长。 运行超出目标时长是用户的决定,而不是你的。

检查你的工作

运行 hyperframes check(它会运行 lint 检查)并修复所有发现的问题。然后,在 Studio 中打开项目,检查时间线是否显示了一行基础行、每个场景宿主一行、一行字幕行以及音频行。

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

samyakiasonline-ctrl/hyperframe

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.

samyakiasonline-ctrl/hyperframe

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.

samyakiasonline-ctrl/hyperframe

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.

samyakiasonline-ctrl/hyperframe

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.

samyakiasonline-ctrl/hyperframe

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.

samyakiasonline-ctrl/hyperframe

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

samyakiasonline-ctrl/hyperframe

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.

samyakiasonline-ctrl/hyperframe

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.

samyakiasonline-ctrl/hyperframe

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

samyakiasonline-ctrl/hyperframe

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.

samyakiasonline-ctrl/hyperframe

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

samyakiasonline-ctrl/hyperframe

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.

samyakiasonline-ctrl/hyperframe

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.

samyakiasonline-ctrl/hyperframe

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.

samyakiasonline-ctrl/hyperframe

Turn a music track (an audio file, a video to pull audio from, or a track generated from a mood brief) into a beat-synced video — lyric video, slideshow, or kinetic promo. The music drives all pacing; any user-supplied images/videos are cut onto the same beat grid, and a complete video needs zero assets. Narrated pieces → the input-matched workflow (see /hyperframes). Unclear → /hyperframes.

samyakiasonline-ctrl/hyperframe

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.

samyakiasonline-ctrl/hyperframe

Turn a GitHub pull request (a PR URL, owner/repo#N, or 'this PR' in a checked-out repo) into a code-change explainer video — changelog, feature reveal, fix, or refactor walkthrough built from the diff, commits, and files: the input is a code change, not a website. Not a product promo (/product-launch-video) or a no-PR topic explainer (/faceless-explainer). Unclear → /hyperframes.

samyakiasonline-ctrl/hyperframe

Port an existing Remotion (React) composition''s source to HyperFrames HTML. Use ONLY on an explicit ask to port/convert/migrate/translate a Remotion source — one-way, Remotion-only. A passing Remotion mention, reference-only code, or "make something like my Remotion video" is a fresh build (/general-video). Unclear → /hyperframes.

samyakiasonline-ctrl/hyperframe

Author a HyperFrames slideshow — a presentation, pitch deck, or interactive deck with discrete slides, fragment reveals, branching, hotspot navigation, and built-in presenter mode with speaker notes; also converts an existing page into a deck. Output is a navigable deck, not a rendered MP4. If the user didn't explicitly ask for a slideshow, confirm before authoring. Unclear → /hyperframes.

samyakiasonline-ctrl/hyperframe

Package an existing talking-head / interview / podcast video with timed, designed GRAPHIC OVERLAY cards — kinetic titles, lower-thirds, data callouts, quotes, side panels, picture-in-picture — synced to the transcript, on a 16:9 / 9:16 / 4:5 canvas of your choice; the clip plays untouched underneath. Trigger on "graphic overlays", "on-screen graphics", "package / dress up my video". Not plain subtitles (/embedded-captions). Unclear → /hyperframes.

相关技能