Communitygithub.com

vijayahnlu/reels

用于在 HyperFrames Studio 中与人协作项目时的规则:首先判断消息是否需要修改;对于新影片,遵循计划、分镜和构建顺序;以及如何布局时间线使其清晰易读。

reels 是什么?

该技能定义了在 HyperFrames Studio 中协作处理视频项目时应遵循的一系列约定和规则。它帮助 AI 代理判断用户消息的意图——是请求修改、提问、提供想法还是要求创建新影片——并据此决定是执行修改、生成计划还是仅提供回答。技能详细说明了时间线的布局规范:每个场景必须作为子合成(sub-composition)独立文件,所有字幕归集到一条轨道,每种元素类型使用独立的轨道,以及内容必须保持在安全框内。对于新影片的创建,技能提供了从简报、方向、分镜到构建的完整工作流,并特别强调了在产品发布类影片中应使用真实素材、保持场景连贯性以及正确处理光标和滚动内容。支持的平台包括 HyperFrames Studio 和任何通过插件集成该技能的编辑器。

兼容平台~Claude Code~Codex CLI✓Cursor
npx skills add https://github.com/vijayahnlu/reels/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 记录。
提出问题但未指定修改(“为什么标题会跳?”)回答问题。不修改任何内容。
说不修改任何内容、暂停、“只是想想”、“我们聊聊”不修改任何文件,即使你注意到一个 bug。仅用语言提出建议。
针对本影片提出想法但没有具体修改(“我希望结尾更有冲击力”)提出修改方案并添加到计划中(见下方)。不修改合成文件。
要求拍摄新影片制定计划(§ 5)。
批准一个计划(“开始构建”、“去做吧”)构建批准的方案。

一条既提问又提出修改的消息,应同时提供回答和修改。只有在你无法判断是否要求任何内容时,才进行对话:一个错误的回答耗费一条消息;一次错误的构建耗费长时间运行和一整轮的反馈。

对话回复:

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

将计划保留在项目中,而不仅仅是对话记录中:下一条消息可能来自一个看不到当前会话的新会话。将计划添加到 STORYBOARD.md 中,方式与 /hyperframes-creative references/storyboard-recipe.md § 4 记录一轮反馈相同;切勿覆盖已锁定的帧。如果用户要求不修改任何内容,则什么都不写:将计划放在回复中,并提供保存它的选项。

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

根合成只包含定时容器、媒体和音频。任何具有嵌套结构(包含子元素的 div、带副标题的主标题、图表)的场景都应作为单独的文件,使用 data-composition-src 加载,连接方式参考 /hyperframes-core 的 references/sub-compositions.md。

留在根合成内的嵌套标记不会成为单独的行。它会隐藏在一行不透明的行中,无法逐个部分地修剪或移动。

编写时假设存在一个结构性 lint 工具会拒绝任何违规。

2. 一条字幕轨道

  • 所有字幕都位于一条轨道上:一个子合成容器(一个 data-track-index),标记为 data-track-kind="captions",按顺序承载所有字幕组。
  • 切勿为每个字幕组创建一行,也切勿将字幕与其他类型的元素混合放在同一轨道上。
  • 单词时序规则不变:请参考 /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 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

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

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

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.

相关技能