Communitygithub.com

HyperFrames CLI

HyperFrames CLIツール — hyperframes init, lint, inspect, preview, render, transcribe, tts, doctor, browser, info, upgrade, compositions, docs, benchmark。プロジェクトのスキャフォールディング、リント、検証、コンポジションのビジュアルレイアウト検査、スタジオでのプレビュー、動画レンダリング、音声文字起こし、TTS生成、HyperFrames環境のトラブルシューティングに使用します。

HyperFrames CLI とは?

HyperFrames CLIは、動画制作ワークフロー全体をカバーするコマンドラインツールです。プロジェクトのスキャフォールディング、HTMLコンポジションのリント、ビジュアルインスペクション、スタジオプレビュー、動画レンダリング、音声文字起こし、テキスト読み上げ(TTS)などの機能を提供します。Node.js >= 22とFFmpegが必要で、すべての操作は `npx hyperframes` を介して実行します。リントは `data-composition-id` の欠落やトラックの重複などを検出し、インスペクションはレンダリング結果をヘッドレスChromeで解析してテキストのはみ出しやキャンバス外への逸脱を報告します。レンダリングはMP4やWebM形式に対応し、品質やフレームレート、ワーカー数などを細かく指定可能です。トラブルシューティング用の `doctor` コマンドで環境チェックも行えます。CLIエージェントやCIパイプラインとの統合に最適化されており、JSON出力による機械可読な結果も提供します。

対応~Claude Code✓Codex CLI~Cursor
npx skills add https://github.com/libz-renlab-ai/TeamBrain/tree/HEAD/.pi/skills/hyperframes-cli

お気に入りのAIに質問する

このエージェントスキルを事前に読み込んだ状態で新しいチャットを開きます。

ドキュメント

HyperFrames CLI は何をしますか?

すべての操作は npx hyperframes を介して実行します。Node.js >= 22 と FFmpeg が必要です。

ワークフロー

  1. スキャフォールド — npx hyperframes init my-video
  2. 作成 — HTMLコンポジションを作成します(hyperframes スキルを参照)
  3. リント — npx hyperframes lint
  4. ビジュアルインスペクション — npx hyperframes inspect
  5. プレビュー — npx hyperframes preview
  6. レンダリング — npx hyperframes render

プレビュー前には必ずリントとインスペクションを実行してください。lint は data-composition-id の欠落、トラックの重複、未登録のタイムラインを検出します。inspect はレンダリングされたコンポジションをヘッドレスChromeで開き、タイムラインをスキャンして、バブルやコンテナからはみ出したテキストやキャンバス外のテキストを報告します。

スキャフォールディング

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 --example blank --tailwind # Tailwind v4ブラウザランタイム使用
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コーディングスキルをインストールします。手動でファイルを作成する代わりにこれを使用してください。

--tailwind を使用する場合は、クラスやテーマトークンを編集する前に tailwind スキルを呼び出してください。スキャフォールドはスタジオのTailwind v3セットアップではなく、ブラウザランタイム経由でTailwind v4.2を使用します。

リント

npx hyperframes lint                  # カレントディレクトリ
npx hyperframes lint ./my-project     # 特定のプロジェクト
npx hyperframes lint --verbose        # 情報レベルの結果も表示
npx hyperframes lint --json           # 機械可読な出力

index.html と compositions/ 内のすべてのファイルをリントします。エラー(修正必須)、警告(修正推奨)、および情報(--verbose 付きで表示)を報告します。

ビジュアルインスペクション

npx hyperframes inspect                 # タイムライン全体のレンダリングレイアウトを検査
npx hyperframes inspect ./my-project    # 特定のプロジェクト
npx hyperframes inspect --json          # エージェント可読な結果
npx hyperframes inspect --samples 15    # より細かいタイムラインスキャン
npx hyperframes inspect --at 1.5,4,7.25 # 明示的なヒーローフレームのタイムスタンプ

lint と validate の後にこれを使用してください。特に吹き出し、カード、キャプション、タイトなタイポグラフィを含むコンポジションに有効です。以下を報告します:

  • テキストが最も近いビジュアルコンテナやバブルの外側にはみ出している
  • テキストが自身の固定幅/固定高さのボックスでクリップされている
  • テキストがコンポジションキャンバスの外側にはみ出している
  • 子要素がクリッピングコンテナから逃げ出している

エラーはレンダリング前に修正する必要があります。警告はエージェントによるレビューのために表示されます。--strict を追加すると警告でも失敗します。繰り返し発生する静的な問題はデフォルトでまとめられるため、LLMのコンテキストウィンドウ用にJSON出力がコンパクトに保たれます。オーバーフローが開始/終了アニメーションで意図的な場合は、要素またはその祖先に data-layout-allow-overflow をマークしてください。装飾要素が監査されるべきでない場合は、data-layout-ignore をマークしてください。

npx hyperframes layout も同じビジュアルインスペクションパスの互換性エイリアスとして利用可能です。

プレビュー

npx hyperframes preview                   # カレントディレクトリを提供
npx hyperframes preview --port 4567       # カスタムポート(デフォルトは3002)

ファイル変更時にホットリロードします。自動的にブラウザでスタジオを開きます。

プロジェクトをユーザーに戻すときは、ソースの index.html パスではなく、スタジオのプロジェクトURLを使用してください:

http://localhost:<port>/#project/<project-name>

プレビュー出力の実際のポートとプロジェクトディレクトリ名を使用してください。たとえば、codex-openai-video で npx hyperframes preview --port 3017 を実行した後、http://localhost:3017/#project/codex-openai-video と報告してください。

index.html はソースコードのコンテキストとしてのみ扱ってください。実装ファイルとしてリンクすることは問題ありませんが、プロジェクトやプレビュー画面としてラベル付けしないでください。

レンダリング

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/name_timestamp.mp4出力パス
--fps24, 30, 603060fpsはレンダリング時間が2倍に
--qualitydraft, standard, highstandarddraftはイテレーション用
--formatmp4, webmmp4WebMは透明度をサポート
--workers1-8 または autoautoそれぞれChromeを起動
--dockerフラグoff再現可能な出力
--gpuフラグoffGPU加速エンコーディング
--strictフラグoffリントエラーで失敗
--strict-allフラグoffエラーと警告で失敗

品質ガイダンス: イテレーション中は 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

テキスト読み上げ(TTS)

npx hyperframes tts "テキスト" --voice af_nova --output narration.wav
npx hyperframes tts script.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 5 individual skills — each has its own dedicated page.

libz-renlab-ai/TeamBrain

Asset preprocessing for HyperFrames compositions — text-to-speech narration (Kokoro), audio/video transcription (Whisper), and background removal for transparent overlays (u2net). Use when generating voiceover from text, transcribing speech for captions, removing the background from a video or image to use as a transparent overlay, choosing a TTS voice or whisper model, or chaining these (TTS → transcribe → captions). Each command downloads its own model on first run.

libz-renlab-ai/TeamBrain

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.

libz-renlab-ai/TeamBrain

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.

libz-renlab-ai/TeamBrain

Translate an existing Remotion (React-based) video composition into a HyperFrames HTML composition. Use ONLY when the user explicitly asks to port, convert, migrate, translate, or rewrite a Remotion composition as HyperFrames — for example "port my Remotion project to HyperFrames", "convert this Remotion code to HyperFrames", "migrate from Remotion", "translate this Remotion comp", or "rewrite this as HyperFrames HTML". Do NOT use when (a) the user is authoring a NEW HyperFrames composition, even if they have or are A/B-testing a similar Remotion video; (b) the user mentions Remotion in passing without asking for migration; (c) the user shares Remotion code as reference material rather than asking for a translation; (d) the user asks for "the same video as my Remotion one" without explicitly asking to migrate the source — treat that as a fresh HyperFrames build. When in doubt, default to authoring a native HyperFrames composition with the `hyperframes` skill instead. Skill detects unsupported patterns (use...

libz-renlab-ai/TeamBrain

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.

関連スキル