Communitygithub.com

remotion-physics-explainer

物理学(力学、電磁気学、熱力学、波動・光学、量子力学、相対性理論)の概念を、1画面で完結する没入型のRemotion解説動画に変換します。単一の法則に焦点を当てたスポットライト表示、全画面アニメーション、ミリ秒精度のキャプション、1080p MP4レンダリングを提供します。

remotion-physics-explainer とは?

このスキルは、AIエージェント(Claude Code、Cursor、Codexなど)がユーザーの依頼に応じて、物理学の概念や法則を説明するプロフェッショナルな動画を自動生成するためのものです。Log2Base2スタジオ形式を採用し、画面を分割せず一貫した単一ステージ上で、式のスポットライト表示、リアルタイム物理シミュレーション(SVGアニメーション)、ワードバイワードのカラオケ字幕を同期させます。対応分野は力学、電磁気学、熱力学、波動・光学、量子力学、相対性理論と幅広く、ユーザーが「/remotion physics [トピック]」のように依頼した際に自動的に起動します。内部では、Remotionフレームワークを使用した動画生成、edge-ttsによる自然な音声合成、そしてCLIツールによるプロジェクトのスキャフォールディングとレンダリングを自動化しており、最終的に1080p 30fpsのMP4ファイルを出力します。

対応✓Claude Code~Codex CLI~Cursor✓Gemini CLI
npx skills add https://github.com/uzowurumauritius-rgb/remotion-stage/tree/main/skills/remotion-physics-explainer

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

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

ドキュメント

Remotion Physics Explainer (remotion-physics-explainer)

概要

あらゆる物理学の概念、法則、問題を、フレーム同期された没入型の1920×1080 30fps MP4 Remotion解説動画に変換します。形式はシングルペイン Log2Base2 スタジオ形式を採用します。

画面を競合するサイドバイサイドのペインや積み重なったテキストカードの壁に分割することは絶対にしません。すべての動画は1つの統合されたビジュアルステージ(<SinglePaneStage>)を使用します:

  1. 最小限のトップバー(44px、SinglePaneStageに内蔵):
    • 左側にトピックタイトル+アクティブセクションピル。右側に控えめなステップカウンター+細いプログレスバー。
  2. 1つの統合Log2Base2ステージ(SinglePaneStage — 幅100%):
    • フォーカスされた1行スポットライトヘッダー: アクティブな発話中の物理記号(F、m、a、E、B、λ、Ψ、ΔS)をアクティブな方程式行でborderBottom: "2px solid #FACC15"でハイライトします(水平パディングは絶対に追加しないでください)。さらに、triggerFrameで1つのコンパクトなアクティブコールアウトピル(記号 → 物理的意味 + SI単位)を表示します。
    • 全幅没入型SVGキャンバス(viewBox="0 0 1600 680"): 広々としたリアルタイム物理シミュレーション—振り子、放物線軌道、磁場中で曲がる荷電粒子、干渉する波面、エネルギーバーの転送、ライブベクトルオーバーレイ—を同じオープンキャンバス上で直接アニメーション化します。
  3. 最小限の下部キャプションバー(VoiceoverCaptionBar — 68px):
    • 正確なTTS WordBoundaryタイムスタンプによって駆動される、クリーンで中央揃えのワードバイワードハイライト字幕。

依存関係

  • remotion-best-practices(~/.gemini/skills/remotion/SKILL.md): すべてのRemotionアニメーションルール(useCurrentFrame()、interpolate()、spring()、<Sequence premountFor>、<Audio>、@remotion/google-fonts、CSSトランジション禁止)について従う必要があります。
  • uv(~/.gemini/config/plugins/science/skills/uv/SKILL.md): uv run --with edge-ttsを実行するために必要です。

クイックスタート

# 1. Remotion物理解説プロジェクトをスキャフォールディング
uv run python3 \
  ~/.gemini/config/skills/remotion-physics-explainer/scripts/explainer_cli.py \
  scaffold \
  --project-dir "/path/to/project" \
  --output "/path/to/project/scaffold-status.json"

# 2. 自然なニューラルボイスオーバーと正確なWordBoundaryタイムスタンプを合成
uv run --with edge-tts python3 \
  ~/.gemini/config/skills/remotion-physics-explainer/scripts/explainer_cli.py \
  synthesize-voiceover \
  --project-dir "/path/to/project" \
  --beats-json "/path/to/project/beats.json" \
  --voice "en-US-AndrewNeural" \
  --rate "+2%" \
  --pause-sec 0.40 \
  --output "/path/to/project/public/voiceover/manifest.json"

# 3. 最終的な1080p 30fps MP4をレンダリング
uv run python3 \
  ~/.gemini/config/skills/remotion-physics-explainer/scripts/explainer_cli.py \
  render-mp4 \
  --project-dir "/path/to/project" \
  --composition-id "PhysicsExplainer" \
  --out-name "PhysicsExplainer.mp4" \
  --concurrency 8 \
  --output "/path/to/project/render-report.json"

没入型ストーリーテリングとワークフロー

  1. snippetは2~4行に集中させ、<SinglePaneStage>が一度に1つのアクティブな方程式と1つのアクティブな記号コールアウトピルをスポットライトできるようにします。
  2. 連続的な物理動作(振り子、波動、場、粒子)があるビートには"motionStepFrames": 2を設定します。
  3. 説明するよりも見せる: 力、場、エネルギー交換、ライブモーショングラフを、別々の分割画面ボックスではなく、同じ全幅1600×680 SVGキャンバス内(移動するプロット/波には<clipPath>を使用)で一緒にアニメーション化します。
  4. 常にnpm run lintを実行し、npx remotion stillで代表的な静止フレームをread_fileで検査し、最終的な.mp4をout/ディレクトリ、プロジェクトルート、およびワークスペースルートに保存します。

Individual skills in this repo

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

remotion-code-explainer

Creates synchronized, immersive single-pane Remotion visual explainer videos for source code (Mobile/Web UI, Backend, AI/ML, Algorithms) in a pure Log2Base2 single-stage format—with a focused single-line code spotlight, full-screen animated memory boxes, pointer arrows, data packets, and live execution state on one canvas, WordBoundary karaoke captions, and fast 1080p MP4 rendering. Use whenever the user asks to explain code with /remotion, build a code walkthrough video, or turn a voiceover script into an MP4 explainer.

remotion-electronic-explainer

Creates synchronized, immersive single-pane Remotion visual explainer videos for Electronic Engineering (Semiconductors, PN Junctions, Diodes, BJTs, MOSFETs, CMOS Logic, Op-Amp IC Stages, ADC/DAC, PCB Signal Integrity) in a pure Log2Base2 single-stage format—with a focused single-line device equation spotlight, full-screen animated carrier/channel diagrams and live I-V curves on one canvas, WordBoundary karaoke captions, and fast 1080p MP4 rendering. Use whenever the user asks to explain electronic engineering, semiconductors, transistors, or analog/digital ICs with /remotion.

remotion-math-explainer

Creates synchronized, immersive single-pane Remotion visual explainer videos for Mathematics (Calculus, Linear Algebra, Differential Equations, Probability, Proofs) in a pure Log2Base2 single-stage format—with a focused single-line equation spotlight, full-screen 3Blue1Brown x Log2Base2 animated geometric/data motion graphics, WordBoundary karaoke captions, and fast 1080p MP4 rendering. Use whenever the user asks to explain math with /remotion, animate a derivation or theorem, or turn a math script into an MP4 explainer.

remotion-software-explainer

Creates synchronized, immersive single-pane Remotion visual explainer videos for Software Engineering (System Design, Distributed Systems, Microservices, Kubernetes/Docker, Design Patterns, Database Internals, CI/CD, Networking) in a pure Log2Base2 single-stage format—with a focused single-line contract/YAML spotlight, full-screen animated architecture flows with traveling request packets and live trace timelines on one canvas, WordBoundary karaoke captions, and fast 1080p MP4 rendering. Use whenever the user asks to explain software engineering, system design, or architecture with /remotion.

関連スキル