Communitygithub.com

Alemoterani/auto-edit-hyperframes

用于与用户在 HyperFrames Studio 中协作:首先判断消息是否需要修改;针对新影片遵循计划、故事板和构建顺序;按规范(一条字幕轨道、一种元素类型一个轨道、每个场景一个子合成)布置时间线,并处理安全区域。不处理如何执行单个编辑(如分割、修剪、调速等)。

auto-edit-hyperframes 是什么?

该技能(SKILL.md 文档)定义了一套 AI 代理在 HyperFrames Studio 项目中与人类协作者交互时的完整规则和约定。核心逻辑分为两层:第一层是“先沟通再构建”,通过决策矩阵判断用户消息是要求修改、提问、提出想法还是请求新影片,并给出相应的回复模式(执行修改、仅回答、规划变更或启动新项目),避免因错误理解导致不必要的操作。第二层针对时间线布局强制执行结构性约定,包括:每个场景必须是独立的子合成文件(`data-composition-src`)、所有字幕集中在一条标记为 `data-track-kind="captions"` 的轨道、每种元素类型(视频、图形、字幕、音频)各自独占一个轨道索引,以及所有可见内容必须保持在动作安全框(90%)和标题安全框(80%)内。此外,该技能还为启动新影片提供了完整的五步工作流(简报、方向、故事板、构建、反馈),并特别设计了“启动影片”的额外规范(如必须使用真实产品录制、保持同一世界、光标与滚动内容处理)。该技能适用于 HyperFrames Studio 或任何遵循 HyperFrames 框架的 AI Agent 环境,旨在通过强制结构性约束和清晰的沟通协议,使项目时间线变得简洁、可编辑且易于协作。

兼容平台~Claude Code~Codex CLI✓Cursor
npx skills add https://github.com/Alemoterani/auto-edit-hyperframes/tree/HEAD/vendor/hyperframes/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-index),标记为 data-track-kind="captions",按顺序承载所有字幕组。
  • 绝不为每个字幕组单独一行,也绝不将字幕与其他类型混在同一条轨道上。
  • 单词计时规则不变:参见 /embedded-captions 和 caption_* 检查规则。

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.

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.

相关技能