1实现原理 · 为什么它能做到
核心前提是「无素材可抓」:刻意不做 capture、不建 asset-descriptions.md、不 populate capture/assets/,画面全部在下游被发明(排版/抽象图形/图表/数据可视化)。
Do **not** run `npx hyperframes capture` (there is no URL). Do not create `asset-descriptions.md` or populate `capture/assets/` — faceless visuals are invented in Steps 4-5, not captured.
设计系统不靠手写调色:选定一个 shipped frame preset 后,由 build-frame.mjs 把 preset 的 FRAME.md 重映射成项目 frame.md 并生成 caption skin;无品牌色时保留 preset 自身完整配色。
A faceless explainer usually has **no brand colors/fonts** (`tokens.json` colors/fonts empty) → the script keeps the preset's own palette, a complete shippable design.
故事顺序来自叙事设计而非输入文本的段落顺序:明确要求重排/合并/省略/压缩,并按「角色→蓝图」菜单给每个 beat 选候选镜头形状,但禁止为了套形状而造 beat。
The video's sequence comes from **narrative design, not the input text's paragraph order** — reorder, merge, omit, compress.
配音与音乐走媒体侧脚本:可指定 voice/provider,默认声线写死在流程里(HeyGen Marcia / Kokoro am_michael),并定义「完全静音」的规范标记组合。
The pipeline default is otherwise **Marcia (female)** on HeyGen / `am_michael` on Kokoro — so a request like "a male voice" is silently ignored unless you pass the flag.
构建期一帧一个子代理:packet 构建器把「该帧的 storyboard 块 + blueprint 正文 + 所有引用规则」内联成有界 packet,再拼出完整 worker 角色文件 _role.md,worker 只读这两份文档。
Workers read only their packet and `frame.md`; they never open `STORYBOARD.md` or the skill documents (the packet inlines what was selected upstream). Each worker writes only `compositions/frames/NN-*.html`. Workers must never edit `STORYBOARD.md`.
收尾门禁 + 一个被显式登记的已知假阳性:check 可能在 caption 词上报 1–4px 的 text_box_overflow,skill 要求不要追它、也不要用放大 line-height 的坏办法掩盖。
**Known false-positive — do not chase it.** `check` may report a handful of `text_box_overflow` findings of ~1–4px on the **caption** highlight words (selector `#caption-word-*` / `.caption-line`).
审核与渲染门禁:先 inject/verify 转场、lint、check、snapshot 接触表,再暂停给用户看 Studio 预览,最后才渲染 MP4;渲染后不再重跑 lint/check/snapshot。
**Gate:** `lint` and `check` passed and the snapshots were inspected before render; user approved at the review pause (autonomous: checks passed and the delivery includes the contact sheet); `renders/video.mp4` exists. Final reply states MP4 path and final duration.
2核心能力
3外部依赖
| Kind | Dependency / Endpoint |
|---|---|
| cli | hyperframes CLI(init / lint / check / snapshot / preview / render / skills update;注意本 skill 不调用 capture) |
| api | HeyGen(TTS 与音乐库检索;凭证 ~/.heygen,由媒体侧脚本使用) |
| api | 本地离线 TTS(Kokoro)作为无登录态降级路径 |
| cli | ffprobe / ffmpeg(装配期音频探测与补齐,由 assemble-index.mjs 调用) |
| network | GSAP CDN(写进装配产物 HTML,带 SRI 完整性校验) |
| cli | media-use 侧脚本(prefs.mjs 记偏好、recipe.mjs 应用配方、heygen-tts.mjs 列语音) |
| package | 兄弟 skill 依赖(/hyperframes 路由、/hyperframes-core、/hyperframes-creative 的 frame-presets、/hyperframes-animation 的 blueprints+rules、/media-use) |
4管控建议与判定依据
- scripts/: 执行本地脚本或命令: node scripts/build-frame.mjs --preset <name> --hyperframes .(step 2 设计系统,落
- 网络端点: 声明外部网络访问: HeyGen Audio API(TTS 语音与音乐库检索;经 media-use 侧脚本/CLI,凭证 ~/.heygen)
- 本地工作目录: 文件读写与工件输出: videos/<project>/hyperframes.json、BRIEF.md、capture/extracted/visible-text.t
5第二遍独立确认
- [ok] 『无抓取、无视觉 key』这一关键差异是否属实 — 整目录 grep GEMINI/GOOGLE_API_KEY/OpenRouter → 0 命中;SKILL.md 明确 'Do **not** run `npx hyperframes capture` (there is no URL).';URL 扫描仅 2 处(同一 gsap CDN 字符串出现在 assemble-index.mjs 与 captions.mjs)。差异成立。
- [discrepancy] 是否与 product-launch-video 真正共享脚本(第一遍的资产描述是否正确) — 第一遍初稿把本 skill 写成『无 build-frame』——复核发现**错误**:Step 2 原文就是 `node <SKILL_DIR>/scripts/build-frame.mjs --preset <name> --hyperframes .`,scripts/ 下确有 build-frame.mjs。真实差异是:本 skill 无 capture(Step 1 改为手造输入包)、无 stage-assets(SKILL.md 写明 'There is **no asset-staging step**'),而 build-frame / audio / captions / transitions / frame-packets / assemble-index 六个脚本两家都有。已按源码更正 analysis 与 internal_assets 的表述。
- [ok] 『外部资源』逐条回查调用点 — hyperframes init/lint/check/snapshot/preview/render 均在 SKILL.md 出现;HeyGen 与 ~/.heygen 在 Step 3.1 原文;Kokoro 离线降级与 am_/bm_ 前缀在 Step 3.1 原文;prefs.mjs/recipe.mjs 在 Step 0 原文并定义了 <MEDIA_DIR>;ffprobe/ffmpeg 在 assemble-index.mjs 的 spawnSync 可验。
- [ok] 静音标记的实现语义是否与文档一致 — SKILL.md 规定 `music: none` + 无 SCRIPT.md = 全静音,且『audio.mjs recognizes it and generates nothing (it removes any stale audio_meta.json; an absent audio_meta.json is what assemble treats as silent)』;Step 5 的 sync-durations / fetch-sfx 在静音时跳过。语义自洽(以「文件不存在」作为静音的真值载体)。
- [unlocatable] 正文自述的已知假阳性是否真实存在于工具链 — SKILL.md 声称 `check` 会在 caption 高亮词上报 1–4px 的 text_box_overflow(选择器 `#caption-word-*` / `.caption-line`),且该 pill 的 snug line-height 由 scripts/captions.mjs 设定。caption pill 的 line-height 设定可在本 skill 的 captions.mjs 中定位,但『该假阳性确实会出现』这一行为需要实际跑 `npx hyperframes check` 才能证实——本任务为只读侦查,未执行构建/渲染(亦被任务书禁止)。故记为无法在源码内定位,不做进一步断言。
6结论
2b565aaa0ac76062…