Communitygithub.com

Asymmetric-al/core

Remotion(React で動画を作成)におけるベストプラクティス集

core とは?

このスキルは、Reactベースの動画作成フレームワーク「Remotion」を扱う際に、プロジェクト固有の知識を提供します。字幕、FFmpegを使用した動画処理、オーディオ可視化など、よく使われる機能ごとに専用のルールファイルが用意されており、AIエージェントはそれらを参照して適切なコードを生成できます。対応するプラットフォームとしては、Claude CodeやCursor、CodexなどのAIエージェントが想定されています。各ルールファイルは3Dコンテンツ(Three.js / React Three Fiber)、アニメーション、アセット管理、オーディオ操作、チャート、フォント、トランジション、トリミング、透明度付き動画出力など、Remotion開発に必要なあらゆるトピックをカバーしており、AIエージェントがベストプラクティスに沿ったコードを提供するための基盤となります。

対応~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/Asymmetric-al/core/tree/HEAD/.agents/skills/remotion-best-practices

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

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

ドキュメント

使用すべきタイミング

Remotion のコードを扱うときは、このスキルを使用してドメイン固有の知識を得てください。

字幕

字幕またはサブタイトルを扱う場合は、./rules/subtitles.md ファイルを読み込んで詳細情報を参照してください。

FFmpeg の使用

動画のトリミングや無音検出など、一部の動画操作では FFmpeg を使用する必要があります。詳しくは ./rules/ffmpeg.md ファイルを読み込んでください。

オーディオ可視化

オーディオを可視化する必要がある場合(スペクトラムバー、波形、低音反応エフェクトなど)は、./rules/audio-visualization.md ファイルを読み込んで詳細を参照してください。

使い方

個々のルールファイルを読み、詳しい説明とコード例を確認してください。

  • rules/3d.md - Three.js と React Three Fiber を用いた Remotion の3Dコンテンツ
  • rules/animations.md - Remotion の基本的なアニメーションスキル
  • rules/assets.md - Remotion への画像、動画、音声、フォントのインポート
  • rules/audio.md - Remotion におけるオーディオとサウンドの使用:インポート、トリミング、音量、速度、ピッチ
  • rules/calculate-metadata.md - コンポジションの長さ、サイズ、プロパティを動的に設定する
  • rules/can-decode.md - Mediabunny を使ってブラウザが動画をデコードできるか確認する
  • rules/charts.md - Remotion 向けのチャートおよびデータ可視化パターン(棒グラフ、円グラフ、折れ線グラフ、株価チャート)
  • rules/compositions.md - コンポジション、スチル、フォルダ、デフォルトプロパティ、動的メタデータの定義
  • rules/extract-frames.md - Mediabunny を使って動画から特定のタイムスタンプのフレームを抽出する
  • rules/fonts.md - Remotion で Google Fonts およびローカルフォントを読み込む
  • rules/get-audio-duration.md - Mediabunny を使って音声ファイルの長さ(秒)を取得する
  • rules/get-video-dimensions.md - Mediabunny を使って動画の幅と高さを取得する
  • rules/get-video-duration.md - Mediabunny を使って動画ファイルの長さ(秒)を取得する
  • rules/gifs.md - Remotion のタイムラインに同期して GIF を表示する
  • rules/images.md - Img コンポーネントを使って Remotion に画像を埋め込む
  • rules/light-leaks.md - @remotion/light-leaks を使用したライトリークオーバーレイエフェクト
  • rules/lottie.md - Remotion に Lottie アニメーションを埋め込む
  • rules/measuring-dom-nodes.md - Remotion で DOM 要素のサイズを測定する
  • rules/measuring-text.md - テキストのサイズ測定、コンテナへのテキスト適合、オーバーフローの確認
  • rules/sequencing.md - Remotion のシーケンスパターン:遅延、トリミング、アイテムの長さ制限
  • rules/tailwind.md - Remotion で TailwindCSS を使用する
  • rules/text-animations.md - Remotion 向けのタイポグラフィとテキストアニメーションパターン
  • rules/timing.md - Remotion の補間カーブ:リニア、イージング、スプリングアニメーション
  • rules/transitions.md - Remotion のシーントランジションパターン
  • rules/transparent-videos.md - 透明度を持つ動画をレンダリングする
  • rules/trimming.md - Remotion のトリミングパターン:アニメーションの先頭または末尾をカットする
  • rules/videos.md - Remotion に動画を埋め込む:トリミング、音量、速度、ループ、ピッチ
  • rules/parameters.md - Zod スキーマを追加して動画をパラメータ化可能にする
  • rules/maps.md - Mapbox を使って地図を追加しアニメーションさせる
  • rules/voiceover.md - ElevenLabs TTS を使用して AI 生成のナレーションを Remotion コンポジションに追加する

Individual skills in this repo

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

Asymmetric-al/core

Build animations for Expo and React Native only, using Reanimated, Gesture Handler, Expo Router, and expo-haptics. Use when the target runtime is an Expo or React Native app. Do not use it for Core Next.js web motion; use `animate` for web. Only runs when explicitly invoked; it does not trigger on its own.

Asymmetric-al/core

Build an animation from scratch, making the decisions in the order that determines whether it feels right — should it animate at all, what purpose, which tool, which properties, which curve and duration, how it interrupts, how it exits. Writes the implementation. Use when asked to animate something, add motion, make a component feel alive, or build a transition. For critiquing existing motion use review-animations; for auditing a whole codebase use improve-animations. Only runs when explicitly invoked; it does not trigger on its own.

Asymmetric-al/core

Reverse-lookup glossary that turns a vague description of a web animation or motion effect into its exact term ("the bouncy thing when a popover opens" → Pop in; "the iOS rubber-band scroll" → Rubber-banding). Use when the user asks "what's it called when…", or describes a motion effect without knowing its name and wants the right word to prompt an AI or designer with. For naming an effect, not designing or building one.

Asymmetric-al/core

Inspect a Core UI or code surface for a small number of justified motion opportunities and explicitly identify what should remain static. Use when asked what should animate, where motion would improve feedback or comprehension, how to make an interface feel more alive without over-animating it, or whether a proposed animation is worth adding. Read-only; do not use to review or fix existing motion code or to implement animations.

Asymmetric-al/core

Survey a codebase's animation and motion code as a senior motion advisor, then produce a prioritized audit and self-contained implementation plans for other agents (or cheaper models) to execute. Read-only on source code — it plans improvements, it does not apply them. Use when the user asks to "improve the animations", "audit the motion", "make this app feel better", or wants a roadmap of animation fixes rather than a review of a single diff.

Asymmetric-al/core

Implement smooth, accessible animations with motion/react (Framer Motion) in React. Use when adding animations, gestures, or layout transitions with motion, AnimatePresence, useScroll, and related APIs. Requires a 'use client' boundary; not for strictly server-rendered components or when no animation is needed.

Asymmetric-al/core

Reviews animation and motion code against a high craft bar derived from Emil Kowalski's design engineering philosophy. Default to flagging; approval is earned.

関連スキル