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 파일로 변환합니다. 장면별 보이스오버 합성(ElevenLabs), MP4 렌더링, 파일 검증, Supabase 업로드, Telegram 전송, Linear 티켓 생성을 자동화합니다. 주요 트리거는 remotion-composition-builder가 `ready: true`를 보고할 때 또는 사용자가 'render it', 'ship it' 명령을 내릴 때입니다. 사전 타입 검사, 600초 시간 초과 및 재시도 로직, 파일 크기/코덱/해상도 검증 등 안전 장치가 내장되어 있으며, 실패 시 Linear로 우선순위가 지정된 티켓이 생성됩니다. 각 프로젝트는 자체 API 키(예: ELEVENLABS_API_KEY, TELEGRAM_BOT_TOKEN)를 제공하며, 필수 키가 누락되더라도 해당 단계를 건너뛰고 렌더링을 계속 진행합니다. 출력 파일은 호출 프로젝트의 `.remotion-renders/` 디렉토리에 저장되어 각 프로젝트 아티팩트를 분리하여 관리합니다.

지원 대상~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를 보고합니다.
  • 사용자가 알려진 작업과 함께 "render it" / "ship it"이라고 말합니다.

입력

  • 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초 시간 초과를 적용하며, 중단/충돌 시 한 번 재시도합니다.
  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로 이동합니다.

실패 에스컬레이션

  • 시간 초과 / 중단 → 종료, 한 번 재시도 → 두 번째 실패 시 priority: 2로 Linear 티켓을 열고 stderr를 첨부합니다.
  • 검증 실패 (잘못된 지속 시간 / 코덱) → 예상과의 차이와 함께 Linear priority: 3 티켓을 엽니다.
  • Telegram 실패 → .mp4를 첨부 파일로 send_telegram_document()로 대체합니다.

재사용

프로젝트별 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를 통해 호출합니다.

출력 규칙: 기본적으로 MP4를 <calling-project>/.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.

관련 스킬