Communitygithub.com

assafkip/claude-video-editor

HyperFrames CLI 工具 — 可用於初始化、程式碼檢查、預覽、渲染、轉錄、文字轉語音、診斷、瀏覽器管理、資訊查詢、升級、組合管理、文件查閱與效能基準測試。適合在建立專案架構、驗證組合、在工作室中預覽、渲染影片、轉錄音訊、生成 TTS 或排除 HyperFrames 環境問題時使用。

claude-video-editor 是什麼?

HyperFrames CLI 是一個專為影片編輯與生成設計的命令列工具,透過 `npx hyperframes` 即可執行,支援 Node.js >= 22 及 FFmpeg。此技能提供從專案初始化、撰寫 HTML 合成、程式碼檢查、預覽、渲染、音訊轉錄、文字轉語音到環境診斷等完整工作流程。開發者可使用 `init` 命令快速建立專案結構,並選擇多種預設範本;`lint` 命令能檢查常見錯誤如遺失 `data-composition-id`、重疊軌道或未註冊時間軸;`preview` 支援熱重載;`render` 提供多種品質與格式選項,包括 Docker 支援以獲得可重現輸出。此外,還包含 `transcribe`(Whisper 轉錄)、`tts`(文字轉語音)、`doctor`(環境診斷)等輔助功能,適用於 Claude Code、Cursor 等 AI 代理平台,能大幅提升影片製作與自動化效率。

相容平台✓Claude Code✓Codex CLI~Cursor
npx skills add https://github.com/assafkip/claude-video-editor/tree/HEAD/skills/hyperframes-cli

在你喜歡的 AI 中提問

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

說明文件

HyperFrames CLI

所有操作皆透過 npx hyperframes 執行。需 Node.js >= 22 及 FFmpeg。

工作流程

  1. 建立專案架構 — npx hyperframes init my-video
  2. 撰寫 — 編輯 HTML 合成(詳見 hyperframes 技能)
  3. 程式碼檢查 — npx hyperframes lint
  4. 預覽 — npx hyperframes preview
  5. 渲染 — npx hyperframes render

在預覽前先進行程式碼檢查 — 可捕捉遺失的 data-composition-id、重疊的軌道、未註冊的時間軸。

建立專案架構

npx hyperframes init my-video                        # 互動式精靈
npx hyperframes init my-video --example warm-grain   # 選擇範例
npx hyperframes init my-video --video clip.mp4        # 搭配影片檔案
npx hyperframes init my-video --audio track.mp3       # 搭配音訊檔案
npx hyperframes init my-video --non-interactive       # 跳過提示(CI/代理適用)

範本:blank、warm-grain、play-mode、swiss-grid、vignelli、decision-tree、kinetic-type、product-promo、nyt-graph。

init 會建立正確的檔案結構、複製媒體、使用 Whisper 轉錄音訊,並安裝 AI 編寫技能。請使用此命令,而非手動建立檔案。

程式碼檢查

npx hyperframes lint                  # 當前目錄
npx hyperframes lint ./my-project     # 特定專案
npx hyperframes lint --verbose        # 資訊層級發現
npx hyperframes lint --json           # 機器可讀

檢查 index.html 及 compositions/ 中的所有檔案。回報錯誤(必須修正)、警告(建議修正)及資訊(使用 --verbose)。

預覽

npx hyperframes preview                   # 提供當前目錄服務
npx hyperframes preview --port 4567       # 自訂連接埠(預設 3002)

檔案變更時自動熱重載。自動在瀏覽器中開啟工作室。

渲染

npx hyperframes render                                # 標準 MP4
npx hyperframes render --output final.mp4             # 指定輸出檔名
npx hyperframes render --quality draft                # 快速迭代
npx hyperframes render --fps 60 --quality high        # 最終輸出
npx hyperframes render --format webm                  # 透明 WebM
npx hyperframes render --docker                       # 位元組一致性
旗標選項預設值備註
--output路徑renders/名稱_時間戳.mp4輸出路徑
--fps24, 30, 603060fps 渲染時間加倍
--qualitydraft, standard, highstandarddraft 用於迭代
--formatmp4, webmmp4WebM 支援透明度
--workers1-8 或 autoauto每個 worker 啟動一個 Chrome
--docker旗標關閉可重現輸出
--gpu旗標關閉GPU 加速編碼
--strict旗標關閉程式碼檢查錯誤時停止
--strict-all旗標關閉程式碼檢查錯誤及警告時停止

品質建議: 迭代時使用 draft,審查時使用 standard,最終輸出時使用 high。

轉錄

npx hyperframes transcribe audio.mp3
npx hyperframes transcribe video.mp4 --model medium.en --language en
npx hyperframes transcribe subtitles.srt   # 匯入現有字幕
npx hyperframes transcribe subtitles.vtt
npx hyperframes transcribe openai-response.json

文字轉語音

npx hyperframes tts "這裡的文字" --voice af_nova --output narration.wav
npx hyperframes tts 腳本.txt --voice bf_emma
npx hyperframes tts --list  # 顯示所有語音

疑難排解

npx hyperframes doctor       # 檢查環境(Chrome、FFmpeg、Node、記憶體)
npx hyperframes browser      # 管理內建 Chrome
npx hyperframes info         # 版本與環境詳細資訊
npx hyperframes upgrade      # 檢查更新

如果渲染失敗,請先執行 doctor。常見問題:缺少 FFmpeg、缺少 Chrome、記憶體不足。

其他

npx hyperframes compositions   # 列出專案中的合成
npx hyperframes docs           # 開啟文件
npx hyperframes benchmark .    # 基準測試渲染效能

Individual skills in this repo

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

assafkip/claude-video-editor

Build videos from stills when there is nothing to cut — narration first (ElevenLabs v3 with audio tags), then still keyframes from ANY source (AI image tools, screenshots, photos, HyperFrames-rendered HTML), animated deterministically with the animate-stills recipe (HyperFrames camera moves + GSAP atmosphere). Use when the user wants an explainer, documentary-style video, or any video built from generated or collected visuals instead of recorded footage.

assafkip/claude-video-editor

GSAP animation reference for HyperFrames. Covers gsap.to(), from(), fromTo(), easing, stagger, defaults, timelines (gsap.timeline(), position parameter, labels, nesting, playback), and performance (transforms, will-change, quickTo). Use when writing GSAP animations in HyperFrames compositions.

assafkip/claude-video-editor

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, and registry discovery.

assafkip/claude-video-editor

Create video compositions, animations, title cards, overlays, captions, voiceovers, audio-reactive visuals, and scene transitions in HyperFrames HTML. Use when asked to build any HTML-based video content, add captions or subtitles synced to audio, generate text-to-speech narration, create audio-reactive animation (beat sync, glow, pulse driven by music), add animated text highlighting (marker sweeps, hand-drawn circles, burst lines, scribble, sketchout), or add transitions between scenes (crossfades, wipes, reveals, shader transitions). Covers composition authoring, timing, media, and the full video production workflow. For CLI commands (init, lint, preview, render, transcribe, tts) see the hyperframes-cli skill.

assafkip/claude-video-editor

Beginner-friendly end-to-end video creator for HyperFrames. Use when the user says "make a video", "create a video", "new video", "build a video", "video from scratch", "I want to make a video", "help me create a video", or when someone who's never used HyperFrames before arrives with a concept, script, or rough idea and wants a finished MP4. Interviews the user in one pass, then builds the full video with mandatory preview and visual-verification gates.

assafkip/claude-video-editor

Build and iterate short-form vertical (9:16) videos in Hyperframes — TikTok/Reels/Shorts style. Use when Nate says "short-form video", "vertical video", "TikTok/Reels/Shorts", "make a short", "talking-head + motion graphics", or when the target is a 1080x1920 composition with face video + synced scene overlays + karaoke captions. Encodes the full May Shorts 19 playbook: face-mode choreography, audio-synced scene timing, karaoke captions, and the 10-rule quality checklist.

assafkip/claude-video-editor

Edit any video by conversation — the orchestrator for the bundled video pipeline. Use when the user wants to edit, cut, caption, grade, or add motion graphics to footage; drops a folder of clips and says "edit this"; or asks to make a promo/teaser/tutorial/short. Routes to video-use (the cut engine) and HyperFrames (motion-graphics overlays), with a motion-craft library for taste.

assafkip/claude-video-editor

Production pipeline for mathematical and technical animations using Manim Community Edition. Creates 3Blue1Brown-style explainer videos, algorithm visualizations, equation derivations, architecture diagrams, and data stories. Use when users request: animated explanations, math animations, concept visualizations, algorithm walkthroughs, technical explainers, 3Blue1Brown style videos, or any programmatic animation with geometric/mathematical content.

assafkip/claude-video-editor

Capture a website and create a HyperFrames video from it. Use when: (1) a user provides a URL and wants a video, (2) someone says "capture this site", "turn this into a video", "make a promo from my site", (3) the user wants a social ad, product tour, or any video based on an existing website, (4) the user shares a link and asks for any kind of video content. Even if the user just pastes a URL — this is the skill to use.

相關技能