Communitygithub.com

CleanExpo/Pi-Dev-Ops

最終ステップ。各シーンのElevenLabs音声合成、`npx tsx render/render.ts` によるMP4生成、期間・コーデック・解像度・サイズの検証、Supabaseストレージへのアップロード、Telegramでの結果送信、Linearチケット作成までを自動化します。remotion-composition-builder から準備完了を受け取った後に起動します。タイムアウト、ハングアップ、型エラーなどの障害はLinearにエスカレーションされます。

Pi-Dev-Ops とは?

このスキルは、Remotionコンポジションを完成された配信用MP4に変換するエンドツーエンドのレンダリングパイプラインです。まず`tsc --noEmit`で型チェックを実行し、問題があればビルダーにエラーを返します。次にElevenLabsを使用してシーンごとの音声を合成し、キャッシュによる効率化を図ります。その後、`npx tsx render/render.ts` で実際のレンダリングを実行し、600秒のタイムアウトと1回の再試行を行います。レンダリング後にファイルの存在、期間、コーデック、解像度、サイズを検証し、Supabaseにアップロード(署名付きURL、90日保持)、Telegramで送信(45MB超の場合はリンク)、Linearチケットを作成します。失敗時は自動的にLinearにエスカレーションされ、優先度付きのチケットが発行されます。各プロジェクトは自身のAPIキー(ElevenLabs、Telegram、Supabase、Linear、Remotionライセンスキー)を環境変数で提供し、このスキルはそれらを継承して動作します。

対応~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/CleanExpo/Pi-Dev-Ops/tree/HEAD/skills/remotion-render-pipeline

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

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

ドキュメント

remotion-render-pipeline

コンポジションを納品可能なMP4に変換します。

トリガー

  • remotion-composition-builder が ready: true を報告した場合
  • ユーザーが既知のジョブに対して「レンダリングして」「送信して」と言った場合

入力

  • jobId
  • composition — src/Root.tsx に一致するID(例: Explainer)
  • outputPath — remotion-studio/output/ からの相対パス
  • props — 完全な入力プロパティ(ブランド+ストーリーボード+...)をJSONで
  • linear — {teamId, projectId} チケットルーティング用

方法

  1. プリフライト型チェック — cd remotion-studio && npx tsc --noEmit を実行。エラーが出た場合、そのエラーを remotion-composition-builder に返します。
  2. 音声合成 — render/voiceover.ts がシーンごとにMP3を public/audio/{jobId}/scene-N.mp3 に書き込みます(public/ 下にあるため staticFile() で解決可能)。キャッシュキーは sha1(voiceId|style|text) を使用します。ELEVENLABS_API_KEY がない場合はスキップされます。その場合でもコンポジションは画面上のテキストのみでレンダリング可能です。
  3. レンダリング — npx tsx render/render.ts --comp={composition} --out={outputPath} --props='{...}' --jobId={jobId} を実行。600秒のタイムアウトでラップし、ハングアップ/クラッシュ時には1回再試行します。
  4. 検証 — ファイルが存在すること、期間が期待値±0.5秒以内、コーデックが h264、解像度がコンポジションと一致、サイズが100MB未満であることを確認します。
  5. 配信:
    • Supabaseバケット remotion-renders にアップロード — 署名付きURL、90日保持。
    • app.server.telegram_video.send_telegram_video()(共有ユーティリティ)経由でTelegramに送信。ファイルが45MBを超える場合は、インラインアップロードではなく署名付きURLのリンクを送信します(Telegramの上限は50MB)。
    • Linearチケットを {teamId}/{projectId} に作成:レンダリングURL、ソース概要、BrandConfigバージョン(src/brands/{slug}.ts のgit SHA)、コンポジションファイルのパス。
  6. ステータス — サマリーを .research/renders/{jobId}.json に書き込みます。

出力

{
  "jobId": "ra-nir-explainer-2026-04-28T15-30-00",
  "mp4Path": "remotion-studio/output/ra-nir-explainer-2026-04-28T15-30-00.mp4",
  "supabaseUrl": "https://<project>.supabase.co/storage/v1/object/sign/remotion-renders/...",
  "telegramSent": true,
  "linearIssue": "RA-2049",
  "validation": { "durationSec": 60.0, "codec": "h264", "resolution": "1920x1080", "sizeMB": 12.4 }
}

境界

  • tsc --noEmit が失敗している状態でレンダリングを絶対に実行しないこと — 2〜5分を無駄にして確実に不良出力になります。
  • レンダリング検証が成功する前にソースPR(コンポジション+ブランド変更)を自動マージしないこと。
  • [DRAFT] が含まれたレンダリングをブランドバケットにアップロードしないこと — ドラフトは remotion-drafts に送ります。

障害エスカレーション

  • タイムアウト/ハングアップ → 強制終了、1回再試行 → 2回目も失敗した場合は、priority: 2 のLinearチケットを作成し、stderrを添付します。
  • 検証失敗(期間/コーデックの誤り) → priority: 3 のLinearチケットを作成し、期待値との差分を添付します。
  • Telegram送信失敗 → send_telegram_document() にフォールバックし、.mp4 を添付ファイルとして送信します。

再利用

プロジェクトごとのAPIキー

このスキルは 呼び出し元のプロジェクト内部から(Synthex、Pi-SEO、RestoreAssistなど、任意の場所)呼び出されます。各プロジェクトは自身の .env / .env.local で自身のキーを提供します。スキルは Pi-Dev-Ops からキーを読み取ることはありません。

レンダリング時に必要な(または警告される)環境変数:

  • ELEVENLABS_API_KEY — 音声合成。欠落 = 画面上のテキストのみでサイレントレンダリング(警告をログに出力し、レンダリングは続行)。
  • TELEGRAM_BOT_TOKEN, TELEGRAM_CHAT_ID — Telegram配信。欠落 = Telegramステップをスキップ(設定されていればMP4はディスク+Supabaseに残ります)。
  • SUPABASE_URL, SUPABASE_SERVICE_ROLE_KEY — 署名付きURLアップロード。欠落 = Supabaseステップをスキップ。
  • LINEAR_API_KEY — チケット作成。欠落 = Linearステップをスキップ。
  • REMOTION_LICENSE_KEY — Remotionのフェアソースライセンスに基づく商用レンダリングに必須。

プロジェクトシェルからの呼び出しパターン:

cd ~/Pi-CEO/Synthex
source .env.local                     # プロジェクト自身のキー
cd ~/Pi-Dev-Ops/remotion-studio
npx tsx render/render.ts \
  --comp=Explainer \
  --out=$OLDPWD/.remotion-renders/synthex-launch.mp4 \
  --jobId=synthex-launch-$(date +%s) \
  --props='{"brand":"synthex","hookSec":8,"ctaSec":8,"storyboard":[...]}'

または、Pi-Dev-Ops オーケストレーターAPIを介して呼び出すこともできます。このAPIはセッション生成時に呼び出し元プロジェクトの環境変数を継承します。

出力規則: MP4をデフォルトで <呼び出し元プロジェクト>/.remotion-renders/(gitignore対象)に書き込みます。これにより各プロジェクトのアーティファクトがそれぞれのツリーに保持されます。--out=... で上書き可能です。

Individual skills in this repo

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

CleanExpo/Pi-Dev-Ops

Produce one or many consistent, on-brand faceless marketing videos from a topic: script, ElevenLabs voiceover with timestamps, one styled illustration per beat, ffmpeg stitch to 1080p, optional Unlisted YouTube upload. The look is a named style from styles.md (flat-line, hand-doodle, bold-kinetic, cinematic-photoreal, minimal-corporate, retro-print), so one command yields repeatable output per brand. The automated pipeline; distinct from faceless-video and video-director.

CleanExpo/Pi-Dev-Ops

Produce a faceless YouTube-style video (hand-drawn doodle / simple-illustration channels like Zen, Nick Invest) end-to-end from a single topic. ASKS FACT-vs-STORY mode first (non-fiction educational vs fiction storytelling) and branches the whole run — built to serve multiple clients/channels, not one fixed format. Reverse-engineers a proven reference video's script format, writes a new script in that format, generates an ElevenLabs voiceover with timestamps, creates one styled Artlist (AI Toolkit) image per timestamp, and stitches everything with FFmpeg — fully automated, no human recording. Use when the user says "faceless video", "/faceless-video", "doodle video", "make a YouTube short/long-form in the Zen style", or wants an organic faceless-channel content piece. Composes with video-distribution-strategist (channel/launch) and video-director (when motion/edit polish is wanted instead of stills).

CleanExpo/Pi-Dev-Ops

The 15+ year brand director extension of `brand-guardian` specifically for video — frame-by-frame audit of brand-mark integrity, Gun Metal `#1a1a1a` + Candy Red `#dc143c` consistency, NO AI slop, NO Lucide icons, custom geometric marks ONLY, real logos correctly placed. PASS / FAIL gate before any client-facing video ships. Use after `video-colorist` completes the grade pass.

CleanExpo/Pi-Dev-Ops

The 15+ year Director-of-Photography persona (Roger Deakins / Emmanuel Lubezki / Hoyte van Hoytema-tier) that owns shot composition, lens psychology, motion language, and the decision of which source (Remotion / Hyperframes / stock cinematic) each scene uses. Extends the existing `remotion-designer` + `remotion-motion-language` skills with a frame-by-frame shot-language framework. Use when the user says "cinematography", "shot list", "framing", "DoP", "lens choice", or invoked by `video-director` Phase 2.

CleanExpo/Pi-Dev-Ops

The 15+ year colorist persona (Light Iron / Company 3 / The Mill-tier) that applies per-brand LUT + grade pass to every Unite-Group video. Closes the "raw Remotion render colours" gap — today Remotion outputs whatever colours BrandConfig declares with zero cinematic grade. Use when the user says "colour", "grade", "LUT", "look", "cinematic finish", or invoked by `video-director` Phase 3 (post-production) after `video-sound-designer` mixes audio.

CleanExpo/Pi-Dev-Ops

The Creative Director persona that owns brief intake, composition selection and narrative POV for every Unite-Group video. ENTRY POINT for the Video Agency: use for any video creation brief (explainer, promo, social cut, demo reel, case study, testimonial, client video). Dispatches the full production team: script-writer, cinematographer, editor, sound designer, colorist, brand-guardian.

CleanExpo/Pi-Dev-Ops

The 15+ year platform-native distribution expert (early TikTok creator economy + YouTube algorithm + LinkedIn organic reach + IG Reels native specialist) that owns per-platform aspect ratio + duration cap + caption format + hook density + thumbnail composition. Extends `remotion-marketing-strategist` with platform-native specs locked per BrandConfig. Use when the user says "which platform", "distribution", "channel-fit", "thumbnail", "captions", or invoked by `video-director` Phase 4 (QA + Delivery) for per-platform cuts.

CleanExpo/Pi-Dev-Ops

The 15+ year screenwriter persona (Pixar / Apple keynote / Nike spot tier) that engineers hooks (0-3s), retention beats (7-15s), narrative tension curves, and CTA placement. Extends the existing `remotion-screen-storyteller` skill with a structural framework lifted from Pixar's 22 Rules + Apple keynote architecture. Use when the user says "script", "voiceover", "narration", "hook", "story arc", or invoked by `video-director` Phase 2.

CleanExpo/Pi-Dev-Ops

The 15+ year sound designer persona (Skywalker Sound / Sound Lounge / Audio Network-tier) that mixes ElevenLabs voiceover with music bed, sound effects, ambient texture, and audio polish. Closes the single biggest gap in the existing Remotion pipeline — today voiceover is the ONLY audio; this skill adds music + SFX + mix. Use when the user says "sound design", "audio mix", "music bed", "SFX", "score this", or invoked by `video-director` Phase 3 (post-production).

CleanExpo/Pi-Dev-Ops

Converts a BrandResearch dossier into THREE artifacts — (1) typed BrandConfig TypeScript at Synthex/packages/brand-config/src/brands/{slug}.ts (runtime/behaviour — voice, voiceover, motion, audience, channel, forbiddenWords); (2) spec-conformant {slug}.design.md at Synthex/packages/brand-config/src/brands/{slug}.design.md (visual tokens — colour, typography, spacing, components, layout, elevation); (3) human-readable 9-section .md projection at Pi-Dev-Ops/remotion-studio/src/brands/{slug}.md derived from BOTH. Boundary contract at Pi-Dev-Ops/remotion-studio/src/brands/CONTRACT.md. Triggered after remotion-brand-research, or when the user pastes brand assets and says "codify". PRs are auto-merge:false — a human reviews before merge.

CleanExpo/Pi-Dev-Ops

Researches a portfolio company's visual identity from public sources (homepage, about page, marketing copy, GitHub README) and produces a structured BrandResearch dossier. Triggered when `Synthex/packages/brand-config/src/brands/{slug}.ts` (canonical home per RA-1985 / Synthex SYN-897) is missing, older than 90 days, or the user explicitly says "refresh brand for {brand}". Output feeds remotion-brand-codify.

CleanExpo/Pi-Dev-Ops

Generates a complete, accessible palette (primary, secondary, accent, 4-step neutral, semantic, and dark variant) from one to three hex anchors plus a colour-family classification. Validates WCAG-AA contrast for all text-on-background pairs. Triggered when a BrandConfig has fewer than 5 defined colours or contrast fails.

CleanExpo/Pi-Dev-Ops

Authors or extends a Remotion composition (.tsx) wired to BrandConfig + Storyboard + layout spec + motion. The actual builder skill — runs as a Sonnet-tier worker. Triggered after brand, storyboard, designer, and motion-language outputs are ready. Produces the file under remotion-studio/src/compositions/ and registers it in src/Root.tsx.

CleanExpo/Pi-Dev-Ops

Visual-design specialist for Remotion compositions. Sets layout grid, typography hierarchy, white-space, scene framing, and visual rhythm for a given composition + brand. Triggered after remotion-composition-builder for QA, or upfront when authoring a new composition type. Produces a layout spec consumed by remotion-composition-builder.

CleanExpo/Pi-Dev-Ops

Use when a Remotion video needs creative direction — hook, visual sequence, scene purpose, motion restraint, and CTA direction before render.

CleanExpo/Pi-Dev-Ops

Use when a Remotion video has timing, sync, transition, caption, pacing, or audio-fit risk and needs editing discipline before render.

CleanExpo/Pi-Dev-Ops

Use when /remotion-video needs existing Synthex ElevenLabs, brand-config, Remotion, output storage, Claude, or Hermes integration without adding vendors.

CleanExpo/Pi-Dev-Ops

Tunes a video's format and message for the target channel — LinkedIn, YouTube, Instagram Reel, internal training. Sets aspect ratio, total duration, hook timing, CTA timing, and pacing. Triggered when the brief mentions a specific channel or campaign goal. Output feeds remotion-screen-storyteller and remotion-composition-builder.

CleanExpo/Pi-Dev-Ops

Designs a brand-specific motion vocabulary — easing curves, default scene durations, signature entry/exit, transition frames. Each brand gets one signature move (rise / sweep / pulse / iris / whip) that recurs across compositions to build motion-recognition. Triggered when BrandConfig.motion is empty.

CleanExpo/Pi-Dev-Ops

/remotion-video one-shot Remotion command skill and ENTRY POINT for the Remotion Skills Package. Use for video, explainer, ad, promo, reel, intro, social cut, marketing, training, or launch videos. Reads the brief, classifies intent, enforces one single Synthex ElevenLabs voice, emits a production/wave plan, and dispatches the right sub-skills in topological order. Always invoked first.

関連スキル