Communitygithub.com

TerminalSkills/skills

HTML、CSS、メディア、シーク可能なアニメーションから決定論的なMP4動画を生成するためのスキルです。HeyGenのHyperFramesフレームワークを使用し、「HTMLを動画にレンダリング」「HyperFramesで動画を作成」「プログラムによる動画生成」などのリクエストに対応します。

skills とは?

このスキルは、HeyGenが提供するオープンソース(Apache-2.0)のフレームワーク「HyperFrames」を活用して、HTML、CSS、メディアファイル、アニメーションから決定論的なMP4動画を生成するためのものです。同じ入力からは常に同じ出力が得られるため、自動化パイプラインやエージェント駆動のワークフローに最適です。 具体的には、`data-*`タイミング属性で注釈されたHTMLを解析し、ヘッドレスChromeで各フレームをシーク&キャプチャ、FFmpegでエンコードします。ビルド工程やReactは不要で、レンダリングごとに課金されることもありません。CLIは非インタラクティブで、CI/CDパイプラインに簡単に組み込めます。 サポート対象のアニメーションアダプターにはGSAP、CSSアニメーション、Lottie、Three.js、Anime.js、Web Animations APIなどがあり、シーク可能でフレーム精度の高いアニメーションなら何でも使えます。また、コンポーネントカタログからトランジションやオーバーレイ、チャートなどの既製ブロックを追加することも可能です。 主なコマンドは`init`(プロジェクトスキャフォールディング)、`preview`(ライブリロード付きプレビュー)、`render`(MP4レンダリング)、`lint`(検証)、`inspect`(メタデータ確認)です。エージェント向けのセットアップも簡単で、`npx skills add heygen-com/hyperframes`でインストールできます。

対応~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/TerminalSkills/skills/tree/HEAD/skills/hyperframes

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

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

プレビュー

スキル README より

ドキュメント

HyperFrames

概要

HyperFramesは、HeyGenが提供するオープンソース(Apache-2.0)のフレームワークで、HTML、CSS、メディア、アニメーションから決定論的なMP4動画を生成します。同じ入力からは常に同じ出力が得られます。data-*タイミング属性で注釈されたHTMLを解析し、ヘッドレスChromeで各フレームをシーク&キャプチャ、FFmpegでエンコードします。ビルド工程もReactも不要で、レンダリングごとの課金もありません。エージェントフレンドリーに設計されており、CLIはデフォルトで非インタラクティブなので、自動化されたコンテンツパイプラインに簡単に組み込めます。

このスキルを使用して、プロジェクトのスキャフォールディング、HTMLコンポジションの作成、ライブリロード付きプレビュー、そしてGSAP、CSS、Lottie、Three.js、Anime.js、Web Animations APIなどによるアニメーションを含むフレーム精度の動画レンダリングまで行えます。

手順

前提条件

作業を始める前に、環境を確認してください:

  • Node.js 22以上(node --version)
  • FFmpegがPATHに含まれていること(ffmpeg -version)
  • ヘッドレスChrome/Chromiumは初回実行時にエンジンが自動的にダウンロードします。

プロジェクトのスキャフォールディング

npx hyperframes init my-video    # プロジェクトをスキャフォールディング(index.html + package.jsonを作成)
cd my-video

AIエージェントのワークスペース内でスキルをセットアップする場合は、npx skills add heygen-com/hyperframesでインストールできます。

コンポジションの作成

コンポジションはプレーンなindex.htmlファイルです。ルートのステージ要素がキャンバスとコンポジションIDを宣言し、子要素がdata-*属性を使って出現タイミングと継続時間を指定します。時間値は秒単位です。

属性目的
data-composition-idコンポジションに名前を付ける(レンダリング/インスペクトのターゲット)
data-start要素がタイムラインに現れるタイミング(秒)
data-duration要素がタイムライン上に留まる時間(秒)
data-width / data-heightキャンバスのサイズ(ピクセル、ステージ要素に指定)
data-track-index重なり合うオーディオやビデオのレイヤー/トラック順序
data-volumeオーディオレベル、0.0〜1.0

プレビューとレンダリング

npx hyperframes preview          # ライブリロード付きのブラウザプレビュー(作成中に使用)
npx hyperframes render           # ヘッドレスChromeですべてのフレームをシークし、FFmpegでMP4にエンコード
npx hyperframes lint             # レンダリング前にコンポジション構造を検証
npx hyperframes inspect          # コンポジションのメタデータ(時間、トラック、サイズ)を表示

解像度はステージ要素のdata-width/data-heightから取得します。フレームレート、出力パス、コーデックはレンダリングパラメータです(インストールされたバージョンの正確なフラグはnpx hyperframes render --helpで確認してください。フラグ名は進化するため)。出力は決定論的なので、変更のない入力を再レンダリングしても安全にキャッシュできます。

コンポーネントカタログの使用

トランジション、オーバーレイ、キャプション、アニメーションチャート、マップ、エフェクトなどの既製ブロックをプロジェクトにインストールできます:

npx hyperframes add flash-through-white   # トランジション
npx hyperframes add data-chart            # アニメーションチャートブロック
npx hyperframes add instagram-follow      # ソーシャルオーバーレイ

フルカタログはhyperframes.heygen.com/catalogで閲覧し、ブロック名を指定してaddします。

アニメーション

エンジンは各タイムライン位置を決定論的にシークし、リアルタイム録画は行わないため、シーク可能でフレーム精度の高いアニメーションであれば問題なく動作します。サポートされているアダプター:GSAP、CSSアニメーション、Lottie、Three.js、Anime.js、WAAPI、およびカスタムフレームアダプター。時間ベースのランダム性やDate.now()/壁時計駆動のモーションは避け、アニメーションの進行をコンポジションのタイムラインにバインドしてください。そうすればシークが再現可能になります。

エージェント / CI パイプライン

CLIは非インタラクティブなので、典型的な自動化フローは次のようになります:HTMLの生成/テンプレート化 → hyperframes lint → hyperframes render → MP4を収集。スケールアップには、@hyperframes/aws-lambdaパッケージを使用してLambda全体に分散レンダリングを実行できます。

例

例1:プロダクトローンチのコンポジションをレンダリング

index.html:

<div id="stage" data-composition-id="launch"
     data-start="0" data-width="1920" data-height="1080">
  <video data-start="0" data-duration="6" src="intro.mp4"></video>
  <h1 id="title" data-start="1" data-duration="4">Launch day</h1>
  <audio data-start="0" data-duration="6" data-volume="0.8" src="music.wav"></audio>
</div>
npx hyperframes inspect            # 確認:launch、6秒、1920x1080
npx hyperframes lint               # レンダリング前に検証
npx hyperframes render             # 1080pのMP4を生成

例2:シーク可能なGSAPタイトルアニメーション

<div id="stage" data-composition-id="title-card"
     data-start="0" data-width="1080" data-height="1080">
  <h1 id="headline" data-start="0" data-duration="3">Q3 Results</h1>
  <script src="https://cdn.jsdelivr.net/npm/gsap@3/dist/gsap.min.js"></script>
  <script>
    // 進行をタイムラインにバインド(エンジンがシークする一時停止トゥイーン)、実時間にはバインドしない
    const tl = gsap.timeline({ paused: true });
    tl.from("#headline", { y: 80, opacity: 0, duration: 1 })
      .to("#headline", { scale: 1.05, duration: 2 });
    window.__seek = (t) => tl.seek(t);   // エンジンがフレームごとに呼び出す
  </script>
</div>
npx hyperframes preview            # ライブで反復、その後:
npx hyperframes render

ガイドライン

  • 決定論を第一に。 すべてのモーションをコンポジションのタイムラインにバインドしてください。Math.random()、Date.now()、リアルタイムループ、レンダリング中のネットワーク呼び出しは避けてください。これらは再現性を損なわせます。
  • レンダリング前に必ず lint を。 hyperframes lintは構造/タイミングのミスを低コストで検出します。レンダリングは高コストなステップです。
  • キャンバスはステージに設定。 data-width/data-heightはルートのコンポジション要素に、子要素のタイミング(data-start/data-duration)は各要素に秒単位で指定します。
  • ツールチェーンを確認。 ほとんどの失敗はFFmpegの欠如、Node < 22、またはファイアウォールによるChromiumダウンロードのブロックが原因です。
  • 正確なフラグは --help で。 render/addのオプションはバージョンによって異なります。fps/出力/コーデックのフラグは、インストールされたCLIで確認してください。
  • カタログブロックを優先。 hyperframes addでメンテナンス済みでシーク可能なコンポーネントを取得し、トランジションやチャートを手作業で作成する代わりに使いましょう。
  • Lambdaでスケール。 バッチ/大規模ジョブには、長時間のローカルジョブではなく@hyperframes/aws-lambdaを使用してレンダリングしてください。
  • メディアはローカルに保管し、コミットする。 アセットは安定したパスで参照してください。レンダリング中のリモートフェッチは決定論と再現性を損なわせます。

Individual skills in this repo

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

TerminalSkills/skills

>- Run GitHub Actions locally with act. Use when a user asks to test GitHub Actions workflows locally, debug CI pipelines without pushing, or run workflows offline.

TerminalSkills/skills

>- You are an expert in AG2 (formerly AutoGen), the open-source multi-agent conversation framework. You help developers build systems where multiple AI agents collaborate through structured conversations — with tool use, human-in-the-loop, code execution, group chat orchestration, and nested conversations — for complex tasks like software development, research, and data analysis.

TerminalSkills/skills

>- Generate short-form videos with AI — script writing, text-to-speech narration, stock footage selection, subtitle generation, and video assembly. Use when: creating TikTok/YouTube Shorts/Reels content, automating video production, building content pipelines.

TerminalSkills/skills

>- Animate 3D objects and characters in Blender with Python. Use when the user wants to keyframe properties, create armatures and rigs, set up IK/FK chains, animate shape keys for facial animation, edit F-Curves, use the NLA editor to blend actions, add drivers for expression-based animation, or script any animation workflow in Blender.

TerminalSkills/skills

>- Automate motion capture and tracking workflows in Blender with Python. Use when the user wants to import BVH or FBX mocap data, retarget motion to armatures, track camera or object motion from video, solve camera motion, clean up motion capture data, or script any tracking pipeline in Blender.

TerminalSkills/skills

>- You are an expert in Bolt.new by StackBlitz, the AI-powered full-stack development environment that runs entirely in the browser. You help developers go from idea to deployed app in minutes using natural language prompts — Bolt generates complete applications with frontend, backend, database, and deployment, all running in a WebContainer without local setup.

TerminalSkills/skills

>- Assists with using Bun as an all-in-one JavaScript/TypeScript runtime, package manager, bundler, and test runner. Use when building HTTP servers, managing packages, running tests, or migrating from Node.js. Trigger words: bun, bun serve, bun install, bun test, bun build, javascript runtime, bun runtime.

TerminalSkills/skills

>- Self-host customer support with Chatwoot. Use when a user asks to set up open-source customer support, add live chat without SaaS costs, build a multi-channel inbox, or deploy a free Intercom alternative.

TerminalSkills/skills

>- You are an expert in Chi, the lightweight, idiomatic Go HTTP router built on `net/http`. You help developers build composable HTTP services using Chi's middleware stack, route groups, URL parameters, sub-routers, and context-based request scoping — providing Express-like ergonomics while staying 100% compatible with Go's standard library.

TerminalSkills/skills

When the user wants to edit, review, or improve existing marketing copy. Also use when the user mentions 'edit this copy,' 'review my copy,' 'copy feedback,' 'proofread,' 'polish this,' 'make this better,' or 'copy sweep.' This skill provides a systematic approach to editing marketing copy through multiple focused passes.

TerminalSkills/skills

>- Add live chat and customer support with Crisp. Use when a user asks to add a chat widget, implement live customer support, set up a help desk, create a knowledge base, or add a chatbot to a website.

TerminalSkills/skills

>- Assists with building custom interactive data visualizations using D3.js. Use when creating charts, graphs, maps, force layouts, or hierarchical diagrams that require fine-grained control beyond what charting libraries provide. Trigger words: d3, data visualization, chart, svg, scales, force graph, treemap, choropleth.

TerminalSkills/skills

dbt (data build tool) transforms data in your warehouse using SQL SELECT statements. Learn project setup, models, tests, documentation, incremental materializations, and integration with data warehouses like PostgreSQL, BigQuery, and Snowflake.

TerminalSkills/skills

>- You are an expert in dlt, the open-source Python library for building data pipelines. You help developers load data from any API, file, or database into warehouses and lakes using simple Python decorators — with automatic schema inference, incremental loading, and built-in data contracts. dlt is the "requests library for data pipelines.

TerminalSkills/skills

Data Version Control for ML projects. Track large datasets and models alongside Git, build reproducible ML pipelines, and run experiments with metric comparison. Works with any storage backend including S3, GCS, Azure, and local filesystems.

TerminalSkills/skills

>- You are an expert in E2B, the cloud platform for running AI-generated code in secure sandboxes. You help developers give AI agents the ability to execute code, install packages, read/write files, and run long processes in isolated cloud environments — each sandbox is a lightweight VM that boots in ~150ms with full Linux, filesystem, and networking.

TerminalSkills/skills

>- Transcode, convert, edit, and process audio and video with FFmpeg. Use when a user asks to convert video formats (webm to mp4, mkv to mp4), extract audio from video, compress video files, trim or cut clips, concatenate videos, add subtitles, create thumbnails, apply filters, change resolution or bitrate, re-encode media, create GIFs from video, add watermarks, normalize audio, stream media, or build automated media processing pipelines.

TerminalSkills/skills

>- Create advanced animations with GSAP. Use when building complex timelines, scroll-driven animations, SVG morphing, text animations, or high-performance web animations beyond CSS capabilities.

TerminalSkills/skills

When the user wants to perform load testing, stress testing, or performance testing of APIs and websites using k6. Also use when the user mentions "k6," "load test," "performance test," "stress test," "spike test," "soak test," "thresholds," "virtual users," or "VUs." For browser-based testing, see selenium.

TerminalSkills/skills

>- Lovable (formerly GPT Engineer) is a browser-based AI app builder that turns a natural-language description into a working full-stack web app with a built-in backend, authentication, database and one-click publishing. Use when the user wants to prototype or ship a web app with Lovable, write effective Lovable prompts, connect Supabase or GitHub, review generated security rules, or move a Lovable project into their own editor.

関連スキル