hyperframes-cli
它能做什么
这项技能涵盖用于制作视频的 HyperFrames 命令行工具。适合制作 HyperFrames 视频,并希望正确执行每一步的人。
适用场景
- ✓当你新建 HyperFrames 项目,或为项目抓取网站内容时。
- ✓当你想在预览或渲染之前检查视频是否有错误时。
- ✓当你在排查构建或渲染问题时。
技能链接
https://github.com/calesthio/OpenMontage/blob/main/.agents/skills/hyperframes-cli/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请帮我新建一个 HyperFrames 项目,检查其中的错误,并渲染一个草稿预览。”
每周 5 个新技能,1 分钟读完。
工作原理
智能体会按顺序执行各个步骤:创建项目、编写场景、用 lint 和 validate 检查、在编辑器中预览,最后渲染成品文件。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
HyperFrames CLI
Everything runs through npx hyperframes unless project instructions specify a local wrapper. Obey the local wrapper exactly. Requires Node.js >= 22 and FFmpeg.
Workflow
- Scaffold —
npx hyperframes init my-video(orcapturefrom a URL).initalso checks the installed skills against the latest on GitHub and updates the global set if any are out of date. The--skip-skillsflag is currently neutered (temporary, while the skills.sh registry catches up), so everyinitruns this check and pulls our latest skills regardless. - Write — author HTML composition (see the
hyperframes-coreskill) - Lint —
npx hyperframes lint - Validate —
npx hyperframes validate(runtime errors + contrast) - Visual inspect —
npx hyperframes inspect - Preview —
npx hyperframes previewopens Studio, the timeline editor where the user can manually edit anything (not just watch). Review there, then ask before rendering. - Render — pick the variant:
- Iterate:
npx hyperframes render --quality draft - Deliver:
npx hyperframes render --quality high --output out.mp4 - CI / cross-host repro:
npx hyperframes render --docker --strict --output out.mp4 - Cloud (long / large):
npx hyperframes lambda render ./my-project --width 1920 --height 1080 --wait(see Lambda below)
- Iterate:
Run lint, validate, and inspect before preview. lint catches missing data-composition-id, overlapping tracks, and unregistered timelines. validate loads the composition in headless Chrome and reports runtime console errors plus WCAG contrast issues. inspect seeks through the timeline and reports text spilling out of bubbles/containers or off the canvas — and, when a *.motion.json sidecar is present, verifies motion intent (entrances firing under seek, stagger order, in-frame, liveness) against that same seeked timeline.
For motion-heavy work, prefer snapshot-driven iteration and a *.motion.json sidecar — see references/lint-validate-inspect.md for the discipline and motion-verification spec.
Agent Conventions
Cross-cutting rules that hold for every command:
--jsonis available on every command exceptrender,preview, andplay. Use it for any agent / CI invocation of the supported commands; output includes a_metaenvelope (cli version, latest available, update advice).renderreports status via stdout + exit code only — verify success with the post-render check below;preview/playare servers, no JSON.doctor --jsonalways exits 0, even when the environment is broken. Gate on the payload'sokfield:npx hyperframes doctor --json | jq -e '.ok' > /dev/null. This insulates pipelines from CLI release churn.- Non-TTY mode is auto-detected. When
stdoutis not a TTY (CI, agents, piped output) the CLI auto-switches to non-interactive;initthen requires--example. Pass--non-interactiveto force this mode even on a TTY. - CI gating on render:
--strictfails on lint errors,--strict-allfails on warnings too,--strict-variablesfails on undeclared--variableskeys. - Paths in
--jsonare redacted —$HOMEbecomes the literal$HOMEso output is safe to paste into bug reports and agent contexts. - Render is user-gated. Never auto-render once the checks pass. Pause at
preview, tell the user the video is editable in Studio, and render only after they approve. - Post-render verification. After
renderreturns exit 0, confirm the output file exists and has plausible size before reporting success:[ -s "$OUTPUT" ] || echo "render produced no output". The CLI prints◇ <path>on success; for long renders also sanity-check duration withffprobe -i "$OUTPUT" -show_format -v error.
Routing
| Want to… | Read |
|---|---|
Scaffold a project (init, capture, skills) |
references/init-and-scaffold.md |
Check correctness (lint, validate, inspect, snapshot) |
references/lint-validate-inspect.md |
Preview or render (preview, play, render, publish) |
`re |
常见问题
我需要安装哪些软件?
你需要 Node.js 22 或更高版本,以及 FFmpeg。
应该先渲染还是先预览?
应该先预览。这项技能建议先预览并征求你的同意,然后再渲染,方便你先检查作品。
渲染质量设置有什么作用?
草稿设置用于快速检查,高质量设置用于最终交付的文件。
详情
作者的原始描述
HyperFrames CLI dev loop. Use when running npx hyperframes init, add, catalog, capture, lint, validate, inspect, layout, snapshot, preview, play, render, publish, lambda, doctor, browser, info, upgrade, skills, compositions, docs, benchmark, telemetry, transcribe, tts, or remove-background, or when troubleshooting the HyperFrames build/render environment. Entry point for AWS Lambda cloud rendering (`hyperframes lambda deploy / render / progress / destroy / policies`).
repo: calesthio/OpenMontage
热度
- GitHub 星标
- 75k
- 排名
- #2662
- 许可证
- AGPL-3.0
- 更新时间
- 2026/10/28
评论
- …