Communitygithub.com

Alemoterani/auto-edit-hyperframes

将每周 changelog .md 文件自动生成完整的品牌化 changelog 视频(正方形 1080p,时长约 45-60 秒,Annie 旁白,动画品牌背景,模拟 UI 可视化,低调字幕)。在用户提供 changelog 摘要并希望生成每周视频,或用户说“changelog 视频”时使用。该技能是自包含的——字体、背景、词汇表和脚本均内置于此技能中。

auto-edit-hyperframes 是什么?

此技能旨在将 Markdown 格式的 weekly changelog(如 HyperFrames 周报)自动转换为一个完整的、品牌化的正方形 1080p 视频(时长约 45-60 秒)。它由一位名为 Annie 的 HeyGen AI 虚拟主播进行旁白,并搭配动画品牌背景、模拟用户界面 (UI) 的可视化演示和低调的字幕。该技能的核心原则是“可视化而非罗列”,它会为每个技术主题创建动态的 UI 交互模拟或忠实比喻来展现变更,而不是用文本要点。支持的平台包括基于 Web 的合成引擎(如 motion-canvas),并依赖“motion-doctrine”(运动教条)库来确保动画的一致性和专业感。技能工作流程严格而完整:从技能资源中复制专用字体、背景和骨架 HTML;解析 changelog 并编辑内容以控制在 14 个口头要点内;通过可视化注册表为每个主题匹配合适的模拟视图;生成包含“口语”发音和“显示”拼写的双层字幕脚本;通过 HeyGen 生成旁白音频并提取单词级时间戳;最后将这些时间戳与显示层字幕对齐。最终输出是一个带有时间轴注释的 HTML 文档,可以被渲染为 MP4 视频。所有内容均需通过严格的质量检查,包括字幕可见性、画面切割和对比度验证,确保输出视频符合品牌标准且无错误。

兼容平台✓Claude Code✓Codex CLI✓Cursor
npx skills add https://github.com/Alemoterani/auto-edit-hyperframes/tree/HEAD/vendor/hyperframes/.agents/skills/changelog-video

在你喜欢的 AI 中提问

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

文档

Changelog → 品牌化视频

输入:一个 changelog 的 .md 文件(主题 + 条目,类似每周的 HyperFrames 摘要)。 输出:一个经过 lint 清理、无缝衔接的 HyperFrames 项目,位于 projects/active/weekly-changelog-<range>/。仅在用户要求时进行渲染。

首先加载,不可协商: motion-doctrine(+ cut-the-curve、oversized-cursor(如果出现光标)、seam-craft)以及 captions-overlay。此技能提供 changelog 专属的流水线;doctrine 提供运动法则。

首要指令:可视化,而非罗列

每个主题必须通过实际 UI 的动画模拟或一个忠实的比喻来展示变更的体验——绝不能使用文本要点。在编写脚本之前,先将每个主题/条目路由到 references/visualization-registry.md;注册表决定使用 ui-recreate / ui-analog / terminal / checklist。文本 checklists 是最后的手段,仅保留给真正无法视觉化的条目(如可靠性修复列表)。

流程

0 · 从此技能的资源中引导项目——不可协商

在编写任何组合 HTML 之前执行此操作。跳过此步骤通常会导致生成的视频看起来像是你之前构建的类似项目,而不是此技能的品牌——这是此技能偏离品牌最常见的原因。 技能的资源、字体和脚手架就是技能本身;SKILL.md 的提示只是一个路由器。

mkdir -p project/assets/fonts
cp <SKILL_DIR>/assets/fonts/*.woff2 project/assets/fonts/
cp <SKILL_DIR>/assets/bgm.mp3 project/bgm.mp3
ffmpeg -y -stream_loop 15 -i <SKILL_DIR>/assets/bg-pattern.mp4 -t <TOTAL> \
  -vf "scale=1080:1080,fps=30,eq=saturation=0.72,[email protected]:t=fill" \
  -an -c:v libx264 -crf 20 -pix_fmt yuv420p project/assets/bg-pattern-<TOTAL>s.mp4
cp <SKILL_DIR>/examples/master-skeleton.html project/index.html

然后从头到尾阅读(而非略读)references/build-spec.md——它定义了品牌标记(TT Norms Pro + ABC Solar Display + TT Norms Mono,奶油色 #f5f6f4,限量绿色 #5ef17c,带绿色镶边的玻璃卡片,kicker/sec-chip 药丸形状,位于 top: 990 的 32px 字幕条),每个场景都继承自脚手架。

只有在那之后,才能开始下面的步骤 1-6。步骤 1-4(解析、路由、脚本、旁白)规划脚手架中的内容;步骤 5 将占位符(<RANGE>、<TOTAL>、<CUT_N>、<DUR_N>、场景主体)填充到已复制的 project/index.html 中——你不应该重写脚手架的 Chrome、字体、调色板或布局外壳。

如果你发现自己正要从先前视频的 index.html 中进行 cp,或者编写自己的 @font-face 声明,或者设计 WebGL 着色器背景而不是使用上面编码的 bg-pattern MP4:停止。删除当前的 index.html,并从复制主骨架脚手架开始重新操作。在正确的脚手架之上重建场景内容,比在错误的脚手架上改造品牌要省时。

1 · 解析和编辑裁剪

  • 提取:周范围、标题统计信息(发布、提交)、主题、条目。
  • 预算:总计 45-60 秒。 标题 ≤2 秒,片尾 ≤3.5 秒,4 个主题每个约 9-12 秒。
  • 每个主题保留一个主可视化 + 最多 3 个口头条目。其余所有内容仅作为片尾的“完整摘要”指针存在。裁剪是关键工作:一个包含 30 个条目的 changelog 仍应产出 ≤14 个口头节拍。
  • 按故事线排列主题:主打功能 → 产品表面 → 性能 → 可靠性(摘要通常已经按此顺序排列)。

2 · 可视化路由

对于每个主题,从 references/visualization-registry.md 中选择一个界面,并写一行:theme → surface → 模拟执行的 2-4 个序列化动作,每个动作绑定一个脚本短语。如果没有合适的注册表界面且不存在忠实的比喻,则将其设置为 checklist 场景——不要为我们无法诚实呈现的内容发明虚假的 UI。

3 · 双层脚本(口语 vs 显示)

根据 references/script-voice.md 将脚本编写为令牌行:使用会话式语调,每个技术术语在 references/lexicon.json 中都有一个 spoken 语音形式,同时 display 保持标准拼写。字幕显示 display;旁白朗读 spoken。任何不在词汇表中的术语:停止并向用户询问其发音,然后将其添加到词汇表中。 保存为项目中的 script-tokens.json。

4 · 旁白 — Annie(HeyGen,已固定)

# 仅口语层文本;words JSON = 口语文本的真实时间戳
# 仓库本地路径:changelog-video 技能从 hyperframes 仓库根目录运行,
# 因此它直接使用被跟踪的 hyperframes-media TTS 助手(无需 `npx hyperframes skills` 安装步骤)。
# 如果你已将此技能复制到另一个仓库,请将路径替换为你自己的 media-use / hyperframes-media heygen-tts.mjs。
node skills/hyperframes-media/scripts/heygen-tts.mjs ./vo-spoken.txt \
  -o voiceover.mp3 --words vo-words.json \
  --voice 330290724a1b470fb63153f34d4c0183   # Annie — 逼真(请勿替换)

需要安装并认证了 heygen CLI ≥0.3.0(heygen auth login --oauth)。 然后将口语时间戳对齐到显示令牌:

node <SKILL_DIR>/scripts/align-captions.mjs \
  --tokens script-tokens.json --words vo-words.json --out captions.json

captions.json 是字幕条的输入(显示层拼写,口语时间戳)。对齐器会打印 MISMATCH 警告——在构建之前解决每一个(通常是词汇表中 TTS 渲染为多个单词的拼写)。音频是时钟:所有节拍时间都来自 vo-words.json;重新生成旁白会重新打开每个衔接点。

单词时间戳是一个硬性门控。 在继续步骤 5 之前,验证 vo-words.json 非空,并且包含一个带有 start/end 的 words: [...] 数组。如果它为空(0 字节)或缺少该数组——这是已知的故障模式,当 TTS 提供商返回音频但未返回时间戳负载时出现——在没有时间戳的情况下不要继续。回退方案:使用本地 whisper 对生成的音频与显示脚本进行强制对齐:

uvx --from openai-whisper whisper voiceover.mp3 \
  --model base.en --language en --word_timestamps True \
  --output_format json --output_dir .
# 然后使用 --words voiceover.json(形状相同)运行 align-captions.mjs

Whisper 可能会误听 TTS 的渲染(如 "gee-sap" → "gsap", "heyjen" → "hey Jen" 等)——字幕仍使用 script-tokens.json 中的显示拼写;whisper 仅提供时间戳。align-captions.mjs 处理合并。此回退方案是区分能否输出带字幕的视频与无声无字幕视频的关键。

5 · 构建

严格按照 references/build-spec.md 执行:品牌标记 + 字体(打包在 <SKILL_DIR>/assets/ 中)、动画背景编码、场景脚手架、Chrome、字幕条、每个场景一个受限的绿色时刻。然后遵循 doctrine 顺序:ledger.json(所有常规衔接点 cut-the-curve LEFT)→ seam-stamp → 根据 VO 单词调整内部节拍 → seam-gate 验证。

字幕是非可选的。 主骨架内置了一个读取 LINES 数组的字幕条 IIFE——将该数组留空是一个已发布的错误,而不是风格选择。在继续步骤 6 之前,从 captions.json 填充它:

// 替换字幕条 IIFE 中的 "const LINES = /* … */ []":
const LINES = /* captions.json 的内容 */ [
  { id: 0, end: 2.74, w: [["This", 0.0], ["week,", 0.30], …] },
  …
];

如果跳过了 align-captions.mjs 或者 LINES 是 [],步骤 6 中的帧检查将失败——不要通过从脚手架中移除 #cap-line 来掩盖它。

6 · 门控(全绿后方可呈现)

  1. node packages/cli/bin/hyperframes.mjs check --caption-zone "x0=0;y0=.90;x1=1;y1=1;severity=error;seek=.02,.06,.10,.14,.18,.22,.26,.30,.34,.38,.42,.46,.50,.54,.58,.62,.66,.70,.74,.78,.82,.86,.90,.94,.98"(或从仓库本地的 skills/hyperframes-cli/ 技能安装的 hyperframes CLI)—— 0 个错误(对比度:暗色文本 ≥ .66 alpha;场景内容保持在字幕条上方)。不要使用 npx hyperframes@latest;被跟踪的仓库本地 CLI 是此技能生成组合合约的真相来源。
  2. seam-gate.mjs verify — 0 失败。
  3. 重启预览服务器(它会缓存 bundle),通过原始组合页面上的 __player.seek 抽查 3-4 个节拍。
  4. 除非用户要求,否则不要渲染。在请求渲染后,从 MP4 中验证帧(ffmpeg -ss <t> … -frames:v 1):字幕存在,背景视频非黑色,无微小/冻结帧。
  5. 字幕存在性门控——硬性失败。 在旁白口语窗口内采样 3-4 个分散的帧(例如,对于 48 秒的旁白使用 t=3、t=15、t=30、t=42),并确认位于 top: 990 的字幕条在每个帧上都渲染了可见文本。如果在口语区间内的任何帧缺少字幕,则构建将输出无字幕的视频——将其视为红色门控并重新检查步骤 5 的 LINES 填充。这正是 Jul 13-20 v4 构建中出现的问题。

项目布局

projects/active/weekly-changelog-<range>/
├── index.html            # 单文档主文件(幻灯片形式的场景,带有印记的衔接点)
├── ledger.json           # 向量台账(seam-stamp 输入)
├── script-tokens.json    # 双层脚本(旁白和字幕的真相来源)
├── vo-spoken.txt         # 生成:口语层,一行
├── voiceover.mp3 + vo-words.json + captions.json
├── bgm.mp3               # 从 <SKILL_DIR>/assets/bgm.mp3 复制(主音轨),除非用户提供
└── assets/fonts/ + assets/bg-pattern-<dur>s.mp4

反模式

不要这么做应该这样做
为 UI 变更制作要点幻灯片模拟正在执行变更的界面
为不可表示的条目制作虚假 UI使用诚实的 checklist 场景
在 TTS 文本中使用纯文本 "JSON" / "CLI"使用词汇表口语形式;显示层保持标准拼写
在字幕中使用语音拼写字幕始终渲染显示层
猜测未知术语的发音询问用户,然后扩展词汇表
朗读 changelog 中的每个条目每个主题 ≤3 个;完整的摘要链接承载其余内容
到处使用绿色强调每个场景一个绿色时刻(#5ef17c)
从先前视频的 index.html 开始步骤 0 — 总是从本技能的 examples/master-skeleton.html 复制到 project/index.html
手工编写 @font-face / WebGL 着色器 / 自定义 BGM步骤 0 — 逐字复制本技能的 assets/;技能的资源就是品牌
交付时没有 CloudFront 失效在 S3 替换后,针对分发 E2BSLVSZ7FG3U0 执行 aws cloudfront create-invalidation,清理确切路径——否则 CDN 会缓存旧文件
交付时脚手架中的 LINES 数组为空步骤 4 必须生成填充好的 captions.json;步骤 5 必须将其粘贴到 IIFE 中;步骤 6 的门控 5 必须确认渲染帧上存在字幕。空的 LINES = 输出无字幕的视频 = 重新运行
没有 vo-words.json → 跳过字幕直接交付回退到对生成的音频使用 whisper 强制对齐;字幕是非可选的

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

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.

Alemoterani/auto-edit-hyperframes

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.

相关技能