Communitygithub.com

CleanExpo/Pi-Dev-Ops

將品牌研究檔案轉換為三個成品:型別的 TypeScript 設定檔、符合規格的視覺設計文件,以及九個章節的 Markdown 投影檔,由人類審核後合併。

Pi-Dev-Ops 是什麼?

此技能「remotion-brand-codify」負責將品牌研究成果(如顏色、字型、語調等)自動轉換為三個結構化成品,供 Remotion 動畫引擎使用。它首先驗證研究檔案是否涵蓋所有必要欄位,若缺少則要求補充。接著,根據 `CONTRACT.md` 中的邊界協定,將執行期與行為相關的欄位(如語音、動作、禁止詞)寫入型別的 `BrandConfig` TypeScript 檔案,而視覺標記(如顏色、字型、間距、元件)則寫入符合 `@google/design.md` 規格的設計文件。最後,從這兩個來源同步產生一份人類可讀的九章節 Markdown 投影檔。此技能支援在 Claude Code、Cursor 等開發者工具中使用,並會自動建立 Pull Request(但關閉自動合併),確保所有品牌語意細節都經過人類審查後才合併。

相容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/CleanExpo/Pi-Dev-Ops/tree/HEAD/skills/remotion-brand-codify

在你喜歡的 AI 中提問

開啟一個已預先載入此 Agent Skill 的新對話。

說明文件

remotion-brand-codify

將研究輸出轉換為每個合成都能讀取的型別化程式碼。

觸發條件

  • 在 remotion-brand-research 將檔案寫入 .research/ 目錄後。
  • 使用者貼上品牌顏色、字型和語調筆記,並說「將 {brand} 品牌程式碼化」。

輸入

  • .research/brand-{slug}-{date}.json(優先)或 Markdown 檔案
  • 如果已存在,則讀取現有 Synthex/packages/brand-config/src/brands/{slug}.ts 以供差異比對

方法

  1. 驗證檔案是否涵蓋 BrandConfig 的所有必要欄位(參見 Synthex/packages/brand-config/src/types.ts)。缺少欄位則阻塞,並要求 remotion-brand-research 補齊。
  2. 套用邊界合約 — 顏色十六進位碼 / 字型比例 / 間距 / 元件 / 佈局進入 .design.md;語音 / 旁白 / 動作 / 觀眾 / 頻道 / 禁止詞 / Logo 路徑 / 簽名進入 .ts。請參閱 Pi-Dev-Ops/remotion-studio/src/brands/CONTRACT.md。
  3. 針對每個顏色,如果調色盤少於 5 種顏色或未通過 text on primary 的 WCAG-AA 標準,則執行 remotion-colour-family。色彩家族技能會輸出一個 YAML 區塊,可直接放入 .design.md 的 colors: 區段。
  4. 針對動作,如果 motion 區塊為空,則執行 remotion-motion-language。
  5. 針對字型,驗證授權:僅允許 OFL / Apache / MIT 系列字型。阻塞 Adobe Fonts(不允許伺服器端渲染)和付費 Google Fonts。
  6. 產生 Synthex/packages/brand-config/src/brands/{slug}.ts,僅包含執行期欄位(根據 CONTRACT.md)。以 Synthex/packages/brand-config/src/brands/ra.ts 為最佳範例。之後在 Synthex/packages/brand-config/ 目錄下執行 npm run build,以重新產生 dist/。
  7. 產生 Synthex/packages/brand-config/src/brands/{slug}.design.md,僅包含視覺標記,並採用符合規格的 @google/design.md 格式。以任何現有的 *.design.md(例如 ra.design.md)為最佳範例。
  8. 檢查 design.md — 執行 npx --prefix Pi-Dev-Ops/remotion-studio design.md lint Synthex/packages/brand-config/src/brands/{slug}.design.md。錯誤則阻塞。警告僅作為建議 — 僅在未使用的標記沒有語義意圖時,才修復未引用標記的警告。
  9. 鏡像到執行期位置 — cp Synthex/packages/brand-config/src/brands/{slug}.design.md Pi-Dev-Ops/packages/brand-config/src/brands/{slug}.design.md。執行期載入器 (loadDesign(slug)) 會透過 remotion-studio 中的 workspace-link 讀取 Pi-Dev-Ops 本地副本。
  10. 如果 slug 是新的,則更新 Synthex/packages/brand-config/src/brands/index.ts(同時在 types.ts 中擴充 BrandSlug 聯集型別)。
  11. 從 .ts 和 .design.md 兩者讀取,重新產生位於 Pi-Dev-Ops/remotion-studio/src/brands/{slug}.md 的人類可讀九章節投影檔。章節 2(色彩調色板)、3(字型排版)、4(元件)、5(佈局)從 .design.md 提取;章節 1、6、7、8、9 從 .ts 及輔助文字提取。

輸出

每個品牌三個編輯過的檔案:

  1. Synthex/packages/brand-config/src/brands/{slug}.ts — 型別的 BrandConfig(執行期與行為,根據 RA-1985 為真實來源)。
  2. Synthex/packages/brand-config/src/brands/{slug}.design.md — 視覺標記(真實來源,符合 @google/design.md 規格)。
  3. Pi-Dev-Ops/remotion-studio/src/brands/{slug}.md — 九章節人類可讀投影檔(從兩者重新產生;切勿手動編輯)。

以及位於 Pi-Dev-Ops/packages/brand-config/src/brands/{slug}.design.md 的執行期鏡像(#2 的拷貝 — 保持同步,直到品牌設定檔合併移除本地副本)。

九章節 .md 投影檔是 .ts + .design.md 的投影,而非平行來源。每當任一來源變更時,請重新產生;切勿手動編輯。章節順序固定:

  1. 視覺主題與氛圍(來自 .ts 的語音 + 觀眾說明)
  2. 色彩調色板與角色(表格映射 .design.md 的 colors:,並包含深色變體行(如有定義))
  3. 字型排版規則(來自 .design.md 的 typography:,以及 BrandTypography 中的系列/粗細以追蹤授權)
  4. 元件樣式(來自 .design.md 的 components:)
  5. 佈局原則(來自 .design.md 的 spacing.outer-margin-* + BrandLogo.safeAreaPx)
  6. 深度與高度(來自 .design.md 的高度說明)
  7. 注意事項與禁止事項(合併 .ts 的 doNot + voice.forbiddenWords + .design.md 的注意/禁止事項章節)
  8. 響應式行為(來自 .ts 的長寬比,以及 .design.md 中每個長寬比的字型比例)
  9. 代理程式提示指南(一個實際範例,調用 {colors.*} 和 motion.signature 標記)

加上一個 PR(或本地差異)摘要:

  • 來源檔案路徑
  • 已填寫的欄位 vs 留待創始人審查的欄位
  • 檢查狀態(design.md lint 錯誤 / 警告、字型授權、對比度)
  • 所有三個產出的檔案(.ts + .design.md + .md 投影)— 缺少成品則阻塞

邊界

  • 始終將 PR 設為 auto-merge:false — 品牌語意的細微差異必須由人類審查。
  • 切勿無聲覆寫現有檔案;產生並排差異。
  • 切勿憑空發明字型或顏色 — 這些值來自研究檔案,或者預設為中立備用值,並加上 // TODO: 創始人審查 註解。
  • 切勿在 .ts 和 .design.md 之間重複標記。 如果 colour.primary 存在於 .design.md,則 .ts 不得重新宣告它。CONTRACT.md 是仲裁者。
  • 切勿手動編輯 .md 投影檔 — 應從來源重新產生。

重複使用的資源

重複使用的工具

  • Synthex/packages/brand-config/src/types.ts — 真實來源結構(根據 RA-1985)
  • remotion-studio/src/colour/index.ts — 用於 WCAG 檢查的 contrast() 函式
  • remotion-studio/src/design-systems/_library/ — 138 個供應的參考 DESIGN.md 檔案(開放設計,Apache-2.0)。在 .md 投影檔中最多引用一個作為視覺學派錨點;切勿逐字複製
  • 參考投影檔:remotion-studio/src/brands/ra.md 是可供鏡像的標準範例

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

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.

CleanExpo/Pi-Dev-Ops

Use when a Remotion video job needs production gates, render evidence, output discipline, and pass/fail validation before it can be called shippable.

相關技能