Communitygithub.com

Alemoterani/auto-edit-hyperframes

一个以设计为主导的短动态图形工作流——运动本身就是信息。包括动态排版、数据统计动画、图表/数据可视化、Logo演绎、字幕条/社交覆盖、动画地图、动画推文/新闻/标题、网页/UI动画,或融合真实图像几何结构到图表中。通常10秒以内(最多约30秒),无旁白或真人出镜;输出为MP4或透明叠加层。

auto-edit-hyperframes 是什么?

该技能是一个完全自主的短动态图形制作工作流,适用于HyperFrames框架。它采用“资产优先”的设计策略:先决策资产来源(用户提供或搜索获取),然后围绕实际资产设计镜头,最后通过复用目录能力组合输出。核心工作流分为初始化、规划(搜索决策+类别选择)、素材获取、设计、构建、验证(含截图检查)、审批和渲染八个阶段。支持六大形式类别(动态排版、统计数据、图表、Logo演绎、字幕条/地图)和四个搜索驱动类别(网页、新闻、推文、资产融合)。渲染前会进行lint检查、核对和截图验证,确保质量。支持多种输出格式(MP4、透明WebM/MOV)。该技能强调高效自主:最多一个澄清问题,然后直接从规划到构建,无需中间评审。

兼容平台~Claude Code~Codex CLI✓Cursor✓Gemini CLI
npx skills add https://github.com/Alemoterani/auto-edit-hyperframes/tree/HEAD/vendor/hyperframes/skills/motion-graphics

在你喜欢的 AI 中提问

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

文档

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

首先,保持此技能最新——运行前请与用户确认: npx hyperframes skills update motion-graphics。如果一切已是最新,则快速无操作;否则,它会刷新此技能及其依赖的核心领域技能,然后再使用它们。

figma 源: 如果要从 figma.com URL 构建 Logo/资源/动画,请先运行 /figma——资产导出、品牌令牌,以及如果图形是 Figma Motion 导入则进行 Motion→GSAP 转换——然后根据其输出进行构建。不要直接通过原始 MCP 工具驱动 Figma:那会跳过 SVG 清理、.media/manifest.jsonl 溯源和品牌令牌 var() 绑定,因此后续品牌更改无法传播,除非完全重新导入。

motion-graphics — 调度入口

前门是 /hyperframes。 此技能制作短小、设计驱动、无旁白的动态图形(运动本身就是信息;约10秒以内,无画外音)。任何更长、有旁白或多场景的内容——或任何不确定性 → 首先阅读 /hyperframes:意图层负责所有路由决策。

此工作流自主设计——最多一个澄清问题(agents/director.md),然后直接构建到验证,无需中间评审。意图层(/hyperframes → references/intent-interview.md)直接路由到这里,无需询问运行形状问题;对于如此短小的片段,故事板和伴随会话几乎没有帮助。渲染仍然由用户控制:检查并通过验证截图后,打开 Studio 预览并询问规范的“现在渲染,还是做什么修改?”问题(来自 ../hyperframes/references/brief-contract.md)。当存在 BRIEF.md 时,在导演提问之前阅读它。

一个短小、设计驱动的动态图形。资产优先:在 设计镜头之前 决定资产策略并获取真实素材,然后根据已有资源设计镜头,最后通过复用目录能力进行组合。所有产物都放在 PROJECT_DIR = videos/<项目名称>/(在第0步创建);以下所有路径都相对于它。

阶段执行方式主要产物详细流程
初始化Bashhyperframes.json第0步
规划子代理 — 决定是否需要搜索? + 分类 + 资产策略shot-plan.json(草稿:类别、asset_needs 查询、简报)agents/director.md(第1部分)
素材获取 ◇Bash — 媒体使用解析(如果 asset_needs 为空则跳过)assets/ + assets/index.mdphases/source/guide.md
设计子代理 — 围绕已解析资产进行镜头设计shot-plan.json(最终版:区块 + 布局 + 运动 + 位置)agents/director.md(第2部分)
构建子代理 — 优先复用组合compositions/index.htmlagents/builder.md
验证Bash — lint、check、验证截图;失败时修复snapshots/contact-sheet.jpg第5步
审批打开预览;询问渲染或修改;等待答案明确的渲染批准第6步
渲染Bash — hyperframes render(MP4,或 --format webm/mov 用于叠加层)renders/video.mp4 或透明叠加层第6步

◇ 素材获取 仅当所选类别声明了资产时才运行。纯代码/文本类别(例如 kinetic-type、大多数 charts/stat)的 asset_needs: [],直接从规划跳到设计。

类别 — 按搜索决策划分

规划 的第一个决策是:是否需要搜索? 这个分支将类别分为两组;然后选择具体类别——对于搜索驱动的,根据搜索返回的内容类型。每个类别是一个 categories/<id>/module.md(其规划 + 构建规则);共享的运动词汇表位于 references/motion-vocabulary.md(→ hyperframes-animation 规则/蓝图 + 注册表块)。

形式类别 — 无需搜索;用户提供内容:

类别意图依赖项
kinetic-type有冲击力的台词/引用/标题,运动优先的文本caption-* 块 + 动画规则
stat单个主角数字/计数+环形apple-money-count / rules/{counting-dynamic-scale, stat-bars-and-fills}
charts基于数据的条形/折线/饼图/竞赛/百分比data-chart 块
logo-revealLogo 演绎/品牌组合(用户提供的 Logo)logo-outro / rules/svg-path-draw
lower-thirds姓名/标题栏、标注、社交覆盖层caption-* + 注册表覆盖层
maps地理运动 — 高亮区域、连接地点、缩放到某位置(矢量图层或烘焙底图层)us-map / world-map 系列 + bake-basemap.mjs

搜索驱动类别 — 先搜索,然后按内容类型动画化(RWA 路径):

返回的内容类别动画
网页/链接webpage网页/UI 动画(滚动、揭示、光标、标注)
新闻文章news标题揭示 + 来源卡片 + 关键事实标注
推文tweet动画推文卡片
图片/实体asset-fusion资源的几何结构 变成 图表(RWA 叙事融合)

构建顺序:一次一个,覆盖优先(粗糙也可以)。kinetic-type 从原型移植而来;其余类似。

前置条件

macOS Apple Silicon 或 Linux x64。系统工具:brew install node ffmpeg。运行一次 npx hyperframes doctor。macOS GPU 渲染:export PRODUCER_BROWSER_GPU_MODE=hardware。

可选密钥(如未设置则使用本地回退)——仅对通过媒体使用获取/生成资源的类别需要:

密钥用途回退方案
GEMINI_API_KEY / GOOGLE_API_KEY图片生成(媒体使用解析)跳过生成 / 仅搜索
(资产搜索/搜索提供者)webpage/news/tweet + asset-fusion 真实资产搜索类别降级为无资产模式

流程

第0步 — 初始化

当前工作目录是代理工作区根目录;将所有产物写入 PROJECT_DIR = videos/<项目名称>/。<项目名称>:使用用户指定的目录,否则根据意图取一个短小连字符格式的名称(<主题>-motion)。不要使用工作区基本名称或时间戳。

仅当 $PROJECT_DIR/hyperframes.json 不存在时:

PROJECT_DIR="${MOTION_GRAPHICS_DIR:-videos/<项目名称>}"
mkdir -p "$(dirname "$PROJECT_DIR")"
npx hyperframes init "$PROJECT_DIR" --non-interactive --example=blank --skill=motion-graphics

init 会检查已安装技能与 GitHub 上最新版本的对比,如果任何技能过时则更新全局集合。

约束: 永远不要在工作区根目录执行 hyperframes init;永远不要在 PROJECT_DIR 内嵌套另一个 hyperframes/;每个 Bash 命令(主代理 + 子代理)都是一个 (cd "$PROJECT_DIR" && ...) 子shell——永远不要使用裸 cd。

第1步 — 规划(子代理:导演第1部分)

调度一个子代理。提示 = 完整的 agents/director.md + ## Dispatch context(SKILL_DIR / PROJECT_DIR / 用户请求 / Schema: <SKILL_DIR>/references/shot-plan-ir.md)。它必须:

  1. 决定:是否需要搜索?(第一个分支)
    • 否 → 选择一个形式类别(kinetic-type / stat / charts / logo-reveal / lower-thirds / maps);内容由用户提供;asset_needs: []。
    • 是 → 将一个搜索计划输出到 asset_needs[](新闻/网页/推文/图片;两极查询)。具体的搜索驱动类别(webpage / news / tweet / asset-fusion)由第2步返回的内容类型确认,并在第3步最终确定。
  2. 写入一个草稿 shot-plan.json(信封 + 所选形式类别 或 搜索意图 + asset_needs + 一段镜头简报)。模式:references/shot-plan-ir.md。

验证:[ -s "$PROJECT_DIR/shot-plan.json" ] && echo ok || echo missing。

第2步 — 素材获取 ◇(Bash:媒体使用,可选)

如果 shot-plan.json.asset_needs 非空,解析资产(搜索/生成/获取 → 冻结的项目本地路径 + 账本)。参见 phases/source/guide.md(封装了 media-use resolve;搜索驱动类别使用新闻/网页/推文/图片搜索)。如果 asset_needs 为空,则跳到第3步。

优雅降级:如果搜索/提供者不可用,类别回退到无资产模式(在 context.log 中注明)。

第3步 — 设计(子代理:导演第2部分)

调度一个子代理(提示 = agents/director.md 第2部分 + 调度上下文,包括已解析的 assets/index.md(如果第2步运行了)+ catalog-map.md)。它围绕可用的资产设计镜头:选择目录块 + hyperframes-animation 规则/蓝图、布局、运动、节拍,以及(对于 asset-fusion)element_positions + 吸管调色板。最终确定 shot-plan.json(content.block + content.customize + 每个类别的具体内容)。

第4步 — 构建(子代理:构建器,优先复用)

在构建器的调度上下文中包含共享的运动原则。对于 charts 和 stat,还包括运动中的数据。构建器在编写时间线之前阅读这些指南。

调度一个子代理。提示 = 完整的 agents/builder.md + 调度上下文(shot-plan.json、catalog-map.md、该类别的 module.md、references/motion-vocabulary.md、references/builder-contract.md)。优先复用:npx hyperframes add <block> + 原地定制;仅手动编写间隙 + 资产融合交互。输出 compositions/index.html,遵循 HF 契约(暂停的 GSAP 时间线在 window.__timelines 上、class="clip" + 稳定 ID、tl.seek(0)、确定性)。

第5步 — 验证(Bash → 失败时派修复子代理)

(cd "$PROJECT_DIR" && npx hyperframes check .)
(cd "$PROJECT_DIR" && npx hyperframes snapshot --at <验证时间点>)

选择能展示开场状态、标志性动作和最终保持的验证时间点。在继续之前检查生成的联系表或快照表。在 lint、check 或快照失败时,派修复子代理(agents/finalize.md)进行一次原地修复,然后重新运行失败的关卡。永远不要仅仅为了隐藏缺陷而更改固定时长。

第6步 — 审批和渲染(Bash)

打开 Studio,然后问一个问题:“现在渲染,还是做什么修改?” 在修改后,返回到同一关卡:

(cd "$PROJECT_DIR" && npx hyperframes preview --background)

仅在得到明确的渲染答复后渲染:

(cd "$PROJECT_DIR" && npx hyperframes render . --skill=motion-graphics -q high -o ./renders/video.mp4)
# 透明叠加层变体:--format webm(或 mov)

验证输出文件存在、非空且具有预期的时长。最终交接命名产物、实际时长、合成或帧 ID、验证时间点以及检查过的联系表或快照表。标志位位于 /hyperframes-cli → references/preview-render.md。

恢复表

状态从中继续
没有 shot-plan.json第1步(规划)
shot-plan.json 有 asset_needs,但没有 assets/第2步(素材获取)
shot-plan.json 已最终确定,但没有 compositions/index.html第3/4步(设计+构建)
compositions/index.html 存在,但验证截图缺失第5步(验证)
检查和验证截图通过,但没有批准的渲染第6步(审批)
批准的渲染已存在验证输出,然后报告

设计说明(维护者——执行时不读取此部分)

  • 资产优先 原则...

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.

相关技能