Communitygithub.com

JantonioFC/skillsbank

RemotionでReactマークアップを記述するためのベストプラクティスです。

skillsbank とは?

このスキルは、Remotionを使用してReactベースの動画を生成する際のマークアップのベストプラクティスを提供します。主なルールとして、アニメーションには`useCurrentFrame()`と`interpolate()`を使用し、`spring()`よりも`interpolate()`を優先します。CSSトランジションやアニメーション、Tailwindのアニメーションクラスは使用禁止で、代わりにRemotionの関数を利用します。また、アセットは`public/`フォルダに配置し、`staticFile()`で参照するのが推奨されます。さらに、シーケンスの遅延や長さの制御には`<Sequence>`を使用し、マップ、音声、エフェクト、3Dコンテンツなどの高度な機能については、関連するドキュメントファイルへのリンクが用意されています。このスキルはClaude CodeやCursor、CodexなどのAIエージェント向けで、Remotionでの効率的で正しいコーディングを支援します。

対応✓Claude Code~Codex CLI~Cursor
npx skills add https://github.com/JantonioFC/skillsbank/tree/HEAD/skills/remotion-markup

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

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

プレビュー

スキル README より

ドキュメント

これはRemotionのReactマークアップを作成するためのガイドです。 これに関連しない場合は、Remotionベストプラクティスを代わりに読み込んでください。

基本ルール

useCurrentFrame()とinterpolate()を使用してプロパティをアニメーションさせます。

spring()よりもinterpolate()を使用してください。

Easing.bezier()を使用して、跳ねる動きやオーバーシュートする動きなど、タイミングをカスタマイズします。 スプリングアニメーションが必要な場合はEasing.spring()を使用してください。

スタジオでインタラクティブに操作できるようにする意味があるHTML要素にはInteractiveを使用します:<div> -> <Interactive.Div>。 Interactive、Solid、Sequenceには、name="Hero title"のような説明的なnameプロパティを設定します。

import { useCurrentFrame, Easing, interpolate, Interactive } from "remotion";

export const FadeIn = () => {
  const frame = useCurrentFrame();

  return (
    <Interactive.Div
      name="Title"
      style={{
        opacity: interpolate(frame, [0, 60], [0, 1], {
          extrapolateRight: "clamp",
          extrapolateLeft: "clamp",
          easing: Easing.bezier(0.16, 1, 0.3, 1),
        }),
      }}
    >
      Hello World!
    </Interactive.Div>
  );
};

interpolate()の呼び出しはstyleプロパティ内にインラインで記述します。 transformよりもscale、translate、rotateのCSSプロパティを優先します。

// 👍 インラインで編集可能なキーフレームとtransformのショートハンド
style={{
  scale: interpolate(frame, [0, 100], [0, 1]),
  translate: interpolate(frame, [0, 100], ["0px 0px", "100px 100px"]),
  rotate: interpolate(frame, [0, 100], ["20deg", "90deg"]),
}}

// 👎 値が隠蔽され、transform文字列はStudioでの編集が難しくなります
const scale = interpolate(frame, [0, 100], [0, 1]);

style={{
  transform: `scale(${scale})`,
}}

CSSトランジションやアニメーションは禁止です - 正しくレンダリングされません。 Tailwindのアニメーションクラス名は禁止です - 正しくレンダリングされません。

アセットはプロジェクトルートのpublic/フォルダに配置します。

staticFile()を使用してpublic/フォルダからファイルを参照します。

ビデオとオーディオは@remotion/mediaを使用して追加します。 画像は<Img>コンポーネントを使用して追加します。 public/内のファイルにはstaticFile()を使用するか、リモートURLを直接渡します:

import { Audio, Video } from "@remotion/media";
import { staticFile } from "remotion";

export const MyComposition = () => {
  return (
    <>
      <Video src={staticFile("video.mp4")} style={{ opacity: 0.5 }} />
      <Audio src={staticFile("audio.mp3")} />
      <Img src={staticFile("logo.png")} style={{ width: 100, height: 100 }} />
      <Video src="https://remotion.media/video.mp4" />
    </>
  );
};

コンテンツを遅延させるには<Sequence>でラップし、fromを使用します。 要素の持続時間を制限するには、<Sequence>のdurationInFramesを使用します。 デフォルトでは<Sequence>はシーン全体を覆う絶対配置の塗りつぶしです。 インラインコンテンツの場合はlayout="none"を使用します。

const Main = () => {
  const {fps} = useVideoConfig();

  return (
    <AbsoluteFill>
      <Sequence name="Background">
        <Background />
      </Sequence>
      <Sequence name="Title" from={30} durationInFrames={60} layout="none">
        <Title />
      </Sequence>
      <Sequence name="Subtitle" from={60} durationInFrames={60} layout="none">
        <Subtitle />
      </Sequence>
    </AbsoluteFill>
  );
}

export const Title = () => {
  const frame = useCurrentFrame();

  return (
    <div
      style={{
        opacity: interpolate(frame, [0, 60], [0, 1], {
          extrapolateRight: "clamp",
          extrapolateLeft: "clamp",
          easing: Easing.bezier(0.16, 1, 0.3, 1),
        }),
      }}
    >
      Title
    </div>
  );
};

export const Subtitle = () => {
  return <div>Subtitle</div>;
};

マップ

シンプルな静的マップ、Mapboxマップ、MapLibreマップの選択については、map.mdを参照してください。

ナレーション

ElevenLabs TTSを使用して、AI生成のナレーションをRemotionコンポジションに追加する方法については、voiceover.mdを参照してください。

トリミング

アニメーションの先頭または末尾をカットするトリミングパターンについては、trimming.mdを参照してください。

動画の埋め込み

動画の埋め込み(トリミング、音量、速度、ループ、ピッチ)に関する高度な知識については、embedding-videos.mdを参照してください。

音声の埋め込み

トリミング、音量、速度、ピッチなどの高度な音声機能については、audio.mdを参照してください。

トランジション

シーントランジションパターンについては、transitions.mdを参照してください。

視覚効果とピクセル効果

視覚効果を作成する場合、優先順位:1. 通常のRemotion/HTML/CSS/SVG/フィルター/ブレンド/マスクアニメーション、2. effects.mdにリストされている効果(<HtmlInCanvas>を通じてレンダリングされたHTMLを含む)、3. ユーザーが再利用可能/プロジェクト固有の効果を要求した場合のeffects.mdを使用したカスタムcreateEffect()、4. 上記のいずれにも該当しない場合のみ、カスタム<HtmlInCanvas onPaint>(html-in-canvas.md経由)。

ライトリークオーバーレイについては、light-leaks.mdを参照してください。 ドキュメント:https://www.remotion.dev/docs/effects

利用可能な効果:brightness(), contrast(), colorKey(), duotone(), grayscale(), hue(), invert(), saturation(), tint(), linearGradient(), linearGradientTint(), thermalVision(), blur(), linearProgressiveBlur(), radialProgressiveBlur(), zoomBlur(), dropShadow(), glow(), lightTrail(), evolve(), venetianBlinds(), mirror(), scale(), uvTranslate(), xyTranslate(), barrelDistortion(), chromaticAberration(), fisheye(), cornerPin(), wave(), burlap(), emboss(), dotGrid(), halftone(), noise(), noiseDisplacement(), paper(), roughenEdges(), pattern(), pixelate(), pixelDissolve(), scanlines(), speckle(), shine(), shrinkwrap(), vignette(), contourLines(), checkerboard(), halftoneLinearGradient(), gridlines(), whiteNoise(), tvSignalOff(), lines(), rings(), waves(), zigzag(), lightLeak(), starburst()。

3Dコンテンツ

Three.jsとReact Three Fiberを使用したRemotionでの3Dコンテンツについては、3d.mdを参照してください。

効果音

効果音を使用する必要がある場合は、./sfx.mdファイルを読み込んで詳細を確認してください。

オーディオビジュアライゼーション

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

キャプション

キャプションや字幕を扱う場合は、詳細についてRemotion Captionsスキルを読み込んでください。

Google Fonts

Remotionでフォントを読み込む推奨方法です。Google Fontsを読み込む方法については、google-fonts.mdを参照してください。

ローカルフォント

ローカルフォントを読み込む方法については、local-fonts.mdを参照してください。

GIF

Remotionのタイムラインと同期したGIFを表示する方法については、gifs.mdを参照してください。

高度な画像

画像のサイズ調整と配置、動的な画像パス、画像の寸法取得については、images.mdを参照してください。

Lottieアニメーション

RemotionにLottieアニメーションを埋め込む方法については、lottie.mdを参照してください。

高度なタイミング

interpolateとベジェイージング、スプリングを使用した高度なタイミングについては、timing.mdを参照してください。

パラメータ化された動画

Zodスキーマを追加してコンポジションをパラメータ化可能にする方法については、parameters.mdを参照してください。

DOMノードの測定

RemotionでDOM要素の寸法を測定する方法については、measuring-dom-nodes.mdを参照してください。

テキストの測定

テキストの寸法測定、コンテナへのテキストのフィッティング、オーバーフローの確認については、measuring-text.mdを参照してください。

FFmpegの使用

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

無音検出

動画または音声ファイルから無音部分を検出してトリミングする必要がある場合は、./silence-detection.mdファイルを読み込んでください。

動的な持続時間、寸法、データ

コンポジションの持続時間、寸法、プロパティを動的に設定する方法については、calculate-metadata.mdを参照してください。

高度なコンポジション

静止画、フォルダ、デフォルトプロパティの定義、コンポジションのネスト方法については、compositions.mdを参照してください。

高度なシーケンス設定

アイテムの遅延、トリミング、持続時間制限など、より多くのシーケンスパターンについては、sequencing.mdを参照してください。

モジュールのインストール

npx remotion addを使用して、適切なバージョンの新しいパッケージを追加します:

npx remotion add @remotion/media

これは@remotion/*パッケージ、mediabunny、@mediabunny/*、およびzodに適用されます。

マークアップのプレビュー

ユーザーがプレビューを表示したいと思っている場合にのみこれを行います。

npx remotion studio --no-open

これにより長時間実行されるプロセスが開始され、プレビュー用のサーバーURLが出力されます。 すでに開始されている場合は、そのURLが出力されます。

オプション:1フレームレンダリングチェック

CLIを使用して1フレームをレンダリングし、レイアウト、色、タイミングを簡単に確認できます。 些細な編集、純粋なリファクタリング、またはすでにスタジオや以前のレンダリングで十分な確信がある場合はスキップしてください。

npx remotion still [composition-id] --scale=0.25 --frame=30

30fpsの場合、--frame=30は1秒のマークです(--frameはゼロベースです)。

Individual skills in this repo

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

JantonioFC/skillsbank

AI-powered image editing with style transfer and object removal

JantonioFC/skillsbank

Internationalization and localization patterns. Detecting hardcoded strings, managing translations, locale files, RTL support.

JantonioFC/skillsbank

Analise e auditoria de editais de leilao judicial e extrajudicial. Riscos ocultos, clausulas perigosas, debitos, ocupante e classificacao da oportunidade.

JantonioFC/skillsbank

Embed Photopea in web apps using photopea.js. Covers embedding, file I/O, scripting, exporting, layers, text, filters, and the full Photoshop-compatible API.

JantonioFC/skillsbank

Best practices for Remotion - Video creation in React

JantonioFC/skillsbank

Generate walkthrough videos from Stitch projects using Remotion with smooth transitions, zooming, and text overlays

JantonioFC/skillsbank

Seek and analyze video content using Memories.ai Large Visual Memory Model for persistent video intelligence

JantonioFC/skillsbank

Writes complete, structured landing pages optimized for SEO ranking, AEO citation, and visitor conversion. Activate when the user wants to write or generate a landing page for a product, service, or offer.

JantonioFC/skillsbank

Video and audio perception, indexing, and editing. Ingest files/URLs/live streams, build visual/spoken indexes, search with timestamps, edit timelines, add overlays/subtitles, generate media, and create real-time alerts.

JantonioFC/skillsbank

Upload, stream, search, edit, transcribe, and generate AI video and audio using the VideoDB SDK.

JantonioFC/skillsbank

Skill for discovering and researching autonomous AI agents, tools, and ecosystems using the AgentFolio directory.

JantonioFC/skillsbank

Expert in building portfolios that actually land jobs and clients - not just showing work, but creating memorable experiences. Covers developer portfolios, designer portfolios, creative portfolios, and portfolios that convert visitors into opportunities.

JantonioFC/skillsbank

Tool lifecycle UI components for React/Next.js from ui.inference.sh. Display tool calls: pending, progress, approval required, results. Capabilities: tool status, progress indicators, approval flows, results display. Use for: showing agent tool calls, human-in-the-loop approvals, tool output. Triggers: tool ui, tool calls, tool status, tool approval, tool results, agent tools, mcp tools ui, function calling ui, tool lifecycle, tool pending

JantonioFC/skillsbank

Security audit, hardening, threat modeling (STRIDE/PASTA), Red/Blue Team, OWASP checks, code review, incident response, and infrastructure security for any project.

JantonioFC/skillsbank

When the user wants help with paid advertising campaigns on Google Ads, Meta (Facebook/Instagram), LinkedIn, Twitter/X, or other ad platforms. Also use when the user mentions 'PPC,' 'paid media,' 'ROAS,' 'CPA,' 'ad campaign,' 'retargeting,' 'audience targeting,' 'Google Ads,' 'Facebook ads,'...

JantonioFC/skillsbank

Create AI avatar and talking head videos with OmniHuman, Fabric, PixVerse via inference.sh CLI. Models: OmniHuman 1.5, OmniHuman 1.0, Fabric 1.0, PixVerse Lipsync. Capabilities: audio-driven avatars, lipsync videos, talking head generation, virtual presenters. Use for: AI presenters, expla...

JantonioFC/skillsbank

Create AI marketing videos for ads, promos, product launches, and brand content. Models: Veo, Seedance, Wan, FLUX for visuals, Kokoro for voiceover. Types: product demos, testimonials, explainers, social ads, brand videos. Use for: Facebook ads, YouTube ads, product launches, brand awarene...

JantonioFC/skillsbank

Generate AI videos with Google Veo, Seedance, Wan, Grok and 40+ models via inference.sh CLI. Models: Veo 3.1, Veo 3, Seedance 1.5 Pro, Wan 2.5, Grok Imagine Video, OmniHuman, Fabric, HunyuanVideo. Capabilities: text-to-video, image-to-video, lipsync, avatar animation, video upscaling, fole...

JantonioFC/skillsbank

Production-ready CI/CD configurations for Playwright — GitHub Actions, GitLab CI, CircleCI, Azure DevOps, Jenkins, Docker, parallel sharding, reporting, code coverage, and global setup/teardown.

JantonioFC/skillsbank

You are an expert copy editor specializing in marketing and conversion copy. Your goal is to systematically improve existing copy through focused editing passes while preserving the core message.

関連スキル