Communitygithub.com

Aseel1600/Edit01

HyperFrames CLI 開發循環。用於執行 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 或 remove-background 等命令,或對 HyperFrames 建置/渲染環境進行故障排除。也是 AWS Lambda 雲端渲染(`hyperframes lambda deploy / render / progress / destroy / policies`)的入口點。

Edit01 是什麼?

HyperFrames CLI 技能為開發者提供了一套完整的指令列工具,用於管理、建置、檢查、預覽、渲染和發布以 HyperFrames 框架為基礎的影片專案。它整合了從專案初始化、HTML 合成撰寫、靜態與視覺檢查(包含 lint、validate 和 inspect 等指令)、到利用 AWS Lambda 進行本地或雲端渲染的完整工作流程。此技能支援 Node.js >= 22 和 FFmpeg,並透過 `npx hyperframes` 運行。其關鍵功能包括:透過 `init` 進行專案 scaffolding、使用 `lint` 與 `validate` 進行靜態閘道檢查、使用 `inspect` 與 `snapshot` 進行視覺煙霧測試(特別適用於子合成專案),以及提供本地草稿渲染與雲端 Lambda 渲染兩種模式。該 CLI 專為非互動式 CI/CD 環境設計,支援 `--json` 輸出(render、preview、play 除外),並內建 `doctor` 環境診斷功能。總體而言,此技能可大幅簡化多步驟的影片製作流程,提高開發效率與渲染可靠性。

相容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/Aseel1600/Edit01/tree/HEAD/.agents/skills/hyperframes-cli

在你喜歡的 AI 中提問

開啟一個已預先載入此 Agent Skill 的新對話。

說明文件

HyperFrames CLI

所有操作都透過 npx hyperframes 執行,除非專案說明指定使用本地包裝器。必須完全遵循本地包裝器的指示。需要 Node.js >= 22 和 FFmpeg。

工作流程

  1. Scaffold — npx hyperframes init my-video(或從 URL 進行 capture)。init 也會檢查已安裝的技能是否與 GitHub 上的最新版本一致,並在必要時更新全球技能集。--skip-skills 旗標目前被停用(這是暫時的,因為 skills.sh 註冊表仍在追趕),因此每次 init 都會執行此檢查並取得我們的最新技能,無論如何。
  2. 撰寫 — 編寫 HTML 合成(請參閱 hyperframes-core 技能)
  3. Lint — npx hyperframes lint
  4. Validate — npx hyperframes validate(執行時期錯誤 + 對比度)
  5. 視覺檢查 — npx hyperframes inspect
  6. 預覽 — npx hyperframes preview 會開啟 Studio,這是一個時間軸編輯器,使用者可以在其中手動編輯任何內容(不僅是觀看)。在那裡審查,然後再要求渲染。
  7. 渲染 — 選擇變體:
    • 迭代:npx hyperframes render --quality draft
    • 交付:npx hyperframes render --quality high --output out.mp4
    • CI / 跨主機重現:npx hyperframes render --docker --strict --output out.mp4
    • 雲端(長/大):npx hyperframes lambda render ./my-project --width 1920 --height 1080 --wait(請參閱下方的 Lambda)

在預覽之前,先執行 lint、validate 和 inspect。lint 能捕捉遺失的 data-composition-id、重疊的軌道和未註冊的時間軸。validate 會在無頭 Chrome 中載入合成,並報告執行時期控制台錯誤以及 WCAG 對比度問題。inspect 會搜尋時間軸,並報告從氣泡/容器中溢出或超出畫布的文字——而且,當存在 *.motion.json 側車檔案時,它會根據相同的搜尋時間軸驗證動作意圖(在搜尋下觸發的進入、交錯順序、畫面內、活潑性)。

對於動作密集的工作,建議採用快照驅動的迭代和 *.motion.json 側車檔案——請參閱 references/lint-validate-inspect.md 以了解規範和動作驗證規格。

代理人慣例

適用於每個命令的跨領域規則:

  • --json 可用於除 render、preview 和 play 之外的所有命令。 對支援的命令進行任何代理人 / CI 調用時請使用它;輸出包含一個 _meta 信封(CLI 版本、最新可用版本、更新建議)。render 僅透過 stdout + exit code 報告狀態——請使用下方的渲染後檢查來驗證成功;preview / play 是伺服器,無 JSON。
  • doctor --json 總是返回 0,即使環境已損壞。請檢查 payload 的 ok 欄位:npx hyperframes doctor --json | jq -e '.ok' > /dev/null。這能使管道免受 CLI 版本更迭的影響。
  • 非 TTY 模式會自動檢測。 當 stdout 不是 TTY(CI、代理人、管道輸出)時,CLI 會自動切換到非互動模式;此時 init 需要 --example。傳遞 --non-interactive 可以強制在 TTY 上也使用此模式。
  • CI 閘道渲染:--strict 在 lint 錯誤時失敗,--strict-all 在警告時也失敗,--strict-variables 在未宣告的 --variables 鍵時失敗。
  • --json 中的路徑會被編輯——$HOME 會變成字面上的 $HOME,以便輸出可以安全地貼到錯誤報告和代理人上下文中。
  • 渲染需用戶授權。 永遠不要在檢查通過後自動渲染。在 preview 暫停,告訴用戶影片可在 Studio 中編輯,並在他們批准後才進行渲染。
  • 渲染後驗證。 在 render 返回 exit 0 後,確認輸出檔案存在且大小合理,再報告成功:[ -s "$OUTPUT" ] || echo "render produced no output"。CLI 會在成功時印出 ◇ <path>;對於長時間渲染,使用 ffprobe -i "$OUTPUT" -show_format -v error 進行合理性檢查。

路由

想要…請閱讀
Scaffold 專案(init、capture、skills)references/init-and-scaffold.md
檢查正確性(lint、validate、inspect、snapshot)references/lint-validate-inspect.md
預覽或渲染(preview、play、render、publish)references/preview-render.md
診斷環境(doctor、browser)references/doctor-browser.md
在 AWS Lambda 上進行雲端渲染(lambda deploy / sites / render / progress / destroy / policies)references/lambda.md
其他所有內容(info、upgrade、compositions、docs、benchmark、telemetry、資產預處理)references/upgrade-info-misc.md

跨技能移交

  • Tailwind 專案(init --tailwind)→ 在編輯類別或主題令牌之前,請使用 hyperframes-core(Tailwind 參考)。
  • 註冊表區塊/元件(hyperframes add、hyperframes catalog)→ 請使用 hyperframes-registry 以了解安裝路徑、子合成連接和程式碼片段合併。
  • 資產預處理(tts、transcribe、remove-background)→ 請使用 hyperframes-media 以了解語音選擇、Whisper 模型規則、字幕和 TTS 轉字幕鏈。
  • 參數化渲染(--variables)→ 透過 <html> 上的 data-composition-variables 宣告;請參閱 hyperframes-core 了解完整 schema。

Lambda(雲端渲染)

hyperframes lambda 將分散式渲染部署到 AWS Lambda,並從您的筆記型電腦或 CI 驅動渲染。端到端需要三個命令:

npx hyperframes lambda deploy                                             # 配置 SAM 堆疊(Lambda + Step Functions + S3)
npx hyperframes lambda render ./my-project --width 1920 --height 1080 --wait
npx hyperframes lambda destroy                                            # 拆除(S3 儲存桶會被保留)

當渲染對單一主機來說時間太長或檔案太大(多分鐘影片、4K、大型並行批次)且您已配置 AWS 憑證時,請使用 Lambda。對於開發循環迭代,請繼續使用本機 render。

請參閱 references/lambda.md 了解先決條件、所有 6 個子命令(deploy、sites create、render、progress、destroy、policies)、IAM 政策驗證、狀態檔案以及成本/清理規則。

最低完成閘道

靜態閘道

npx hyperframes lint
npx hyperframes validate

對於版面敏感的工件,請加上 inspect;在 CI 中加上 render --strict 可在 lint 錯誤時失敗。

視覺煙霧測試——當專案使用子合成時為必要

lint / validate / inspect 單獨評估每個合成。它們從不載入 index.html 並透過 data-composition-src 掛載子合成,因此它們無法捕捉跨檔案掛載失敗(請參閱 hyperframes-core → references/sub-compositions.md,“常見陷阱”)。唯一能捕捉它們的閘道是實際載入 index.html 並搜尋時間軸的閘道。

請使用 hyperframes snapshot——它載入專案的方式與 render 相同(因此它會執行相同的掛載路徑),但只會捕捉您請求的時間點,因此只需幾秒鐘,而不是完整渲染:

# 在每個子合成的中點捕捉一個影格。
# 中點 = index.html 中每個主機插槽的 data-start + data-duration/2。
npx hyperframes snapshot --at <t1>,<t2>,<t3>,...

# 或者,如果您不需要針對每個場景,則可以採用均勻間隔的樣本:
npx hyperframes snapshot --frames 9

輸出會放到 snapshots/frame-NN-at-Xs.png。用肉眼檢查每個影格是否符合場景計劃。

每個影格的危險信號(每個都對應到靜態閘道遺漏的特定失敗模式):

您看到的內容根本原因
文字以極小 + 無樣式的方式出現在左上角<style> 區塊留在了 <head> 中的 <template> 外部(陷阱 1)——沒有 CSS 到達動態 DOM
SVG/圖示元素放大到畫布大小同上——沒有套用任何寬度/高度約束
場景的主角元素完全遺失;只看到背景 + 浮水印主機 id ≠ 範本 id(陷阱 2)——時間軸從未執行,影格在初始狀態捕捉
Snapshot 命令記錄 Sub-composition timelines not registered after 45000ms陷阱 2——直接確認

snapshots/ 可以在用肉眼檢查後刪除;面向使用者的最終渲染是使用 npx hyperframes render 進行的單獨傳遞。

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

Aseel1600/Edit01

Generate AI videos from text prompts using multiple provider gateways. Use when: (1) Generating videos from text descriptions, (2) Creating AI-generated video clips for content production, (3) Image-to-video generation with a reference image, (4) Choosing between video generation providers (VEO, Kling, Sora, Runway, Seedance, MiniMax, Gemini Omni). Supports gateways: HeyGen API, fal.ai API, Kling official direct API, and the Gemini API (Gemini Omni Flash).

Aseel1600/Edit01

Create AI avatar videos with precise control over avatars, voices, scripts, scenes, and backgrounds using HeyGen's v2 API. Use when: (1) Choosing a specific avatar and voice for a video, (2) Writing exact scripts for an avatar to speak, (3) Building multi-scene videos with different backgrounds per scene, (4) Creating transparent WebM videos for compositing, (5) Using talking photos as video presenters, (6) Integrating HeyGen avatars with Remotion, (7) Batch video generation with exact specs, (8) Brand-consistent production videos with precise control.

Aseel1600/Edit01

Use p5.js/canvas for local procedural character effects: particles, weather, squash/stretch, walk cycles, and environmental motion.

Aseel1600/Edit01

Review local character animation with schema checks, Playwright browser previews, frame sampling, and FFmpeg/ffprobe final output checks.

Aseel1600/Edit01

Create videos from a text prompt using HeyGen's Video Agent. Use when: (1) Creating a video from a description or idea, (2) Generating explainer, demo, or marketing videos from a prompt, (3) Making a video without specifying exact avatars, voices, or scenes, (4) Quick video prototyping or drafts, (5) One-shot prompt-to-video generation, (6) User says "make me a video" or "create a video about X".

Aseel1600/Edit01

Generate Mandarin and multilingual narration with Volcengine Doubao Speech 2.0. Use when creating Chinese voiceovers, when the user prefers Doubao/Volcengine/火山引擎/豆包 TTS, or when narration needs character-level timestamp metadata for subtitles.

Aseel1600/Edit01

Video and audio processing with FFmpeg. Use for format conversion, resizing, compression, audio extraction, and preparing assets for Remotion. Triggers include converting GIF to MP4, resizing video, extracting audio, compressing files, or any media transformation task.

Aseel1600/Edit01

Generate expressive, multilingual narration with fish.audio (S1 / S2-generation models) and reuse cloned voices via reference_id. Use when the user prefers fish.audio/Fish Audio TTS, wants a specific playground voice model, or needs high-emotion voice-clone narration.

Aseel1600/Edit01

Use when implementing Disney's 12 animation principles with Framer Motion in React applications

Aseel1600/Edit01

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). HyperFrames-native: single paused timeline, seek-safe, deterministic.

Aseel1600/Edit01

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.

Aseel1600/Edit01

Non-animation creative direction for HyperFrames videos. Use for design spec (frame.md / design.md) handling, palettes, typography, narration, beat planning, audio-reactive visuals, composition patterns, and brand / style decisions. For atomic motion patterns and scene blueprints, use `hyperframes-animation`.

Aseel1600/Edit01

Audio and media assets for HyperFrames compositions, produced by one shared audio engine (`scripts/audio.mjs`) — multi-provider TTS (HeyGen / ElevenLabs / Kokoro local), background music + sound effects (HeyGen audio-library retrieval by default, with local Lyria / MusicGen BGM generation and a bundled SFX library as the no-credential fallback), Whisper transcription, background removal, and caption authoring. Use for voiceover / TTS, BGM, SFX / sound effects, transcription, captions / subtitles / lyrics / karaoke / per-word styling, voice + provider selection, and music-mood prompting.

Aseel1600/Edit01

Install and wire registry blocks and components into HyperFrames compositions. Use when running hyperframes add, installing a block or component, wiring an installed item into index.html, or working with hyperframes.json. Covers the add command, install locations, block sub-composition wiring, component snippet merging, registry discovery, and authoring a new block or component to contribute upstream (idea → scaffold → validate → PR).

Aseel1600/Edit01

Use when the user wants a short, design-led motion graphic where motion is the message: kinetic typography, stat or number count-up, chart/data-viz hit, logo sting, brand lockup, lower-third, callout, social overlay, animated headline/tweet/news item, motion poster, or quick captured-page highlight. Usually under 10s and up to ~30s, with no narration arc, voice-over, or live-action subject. Can render to MP4 or transparent overlay. Not for longer, multi-scene, narrated, or brand-reel pieces (use general-video), narrated website videos (website-to-video), topic explainers (faceless-explainer), product promos (product-launch-video), PR videos (pr-to-video), or captions on existing footage (embedded-captions). When unsure whether it's a quick motion-first piece or a longer / narrated treatment, see /hyperframes.

Aseel1600/Edit01

Use when the user has a music track (an audio file, or a video to pull audio from) and wants a beat-synced HyperFrames video, calm to hard-hitting. The music drives everything: one analyzer reads it once, the orchestrator lays out the frames and fills a per-frame plan, and one sub-agent builds each frame. Typography and templates are the floor — a complete video needs zero assets — but any images or videos the user supplies are cut into the frames on the same beat grid (beat-cut / ken-burns). The genre (lyric video, slideshow, kinetic promo) falls out of the per-frame choices; the pipeline never branches on it.

Aseel1600/Edit01

Best practices for Remotion - Video creation in React

Aseel1600/Edit01

Toolkit-specific Remotion patterns — custom transitions, shared components, and project conventions. For core Remotion framework knowledge (hooks, animations, rendering, etc.), see the `remotion-official` skill.

Aseel1600/Edit01

Port an existing Remotion (React) composition to HyperFrames HTML. Use ONLY when the user explicitly asks to port/convert/migrate/translate a Remotion source. Do NOT use: (a) authoring a new HyperFrames composition; (b) Remotion mentioned in passing; (c) Remotion code shared as reference only; (d) "same video as my Remotion one" without explicit migrate request — treat as fresh build. Doubt → `/general-video`. One-way, Remotion-only: no reverse export (HyperFrames→Remotion or any framework), no non-Remotion source (After Effects, Framer Motion, plain React/CSS) → out of scope, re-create via `/general-video`. Flags unsupported patterns (useState, useEffect, async calculateMetadata, third-party React libs, `@remotion/lambda`) and recommends runtime interop over lossy translation. Unsure whether to port vs. build fresh, or only a passing Remotion mention? → /hyperframes.

Aseel1600/Edit01

Animate SVG character rigs with GSAP, CSS transforms, Remotion frame control, and HyperFrames-compatible browser previews.

相關技能