12 — Media Orchestration
Generate all site media section-by-section: images (GPT Image 2), logos (Ideogram v3), video (Veo 3.1), OG cards, and compression pipeline.
Model migration note (pass-77, 2026-06-09): DALL-E → GPT Image 2 (2026-04; 2.5 branded 2026-09 — API id unconfirmed, check current id at integration) + GPT-4o → GPT Image 2 vision. Per platform.openai.com/docs/deprecations.
Video rail (2026-10-04): Sora retired (app 2026-04-26, API 2026-09-24) — Veo 3.1 is the video rail. Fallbacks: Kling 3.0 / Runway Gen-4.5.
Submodules
- media-prompts — prompt templates, Ideogram v3 API
- compression-pipeline — Python code, format tables, CF Image Transforms, CLS, broken image detection
- og-image-generation — Satori edge-rendered OG, KV / R2 cache, meta-tag helper
- image-optimization — Sharp processing, responsive srcset, WebP/AVIF, blur placeholders, R2 pipeline
- image-profiling — GPT Image 2 vision batch profiling
- lightbox-classifier — per-image eligibility:
kind!=logo + ≥1024×768 + score≥7
- social-brand-hex — canonical brand-color map per social platform
- notebooklm-pipeline — per-site podcast via ElevenLabs Studio + infographic via Vega-Lite/Recraft/GPT-Image-2 + HeyGen video + CF Stream + RSS + JSON-LD + cost ceiling $3.50/site
Strategy by Section
Hero → GPT Image 2 / Veo 3.1 · Features → GPT Image 2 / SVG · How It Works → GPT Image 2 · Testimonials → stock · About → stock/real · Blog → GPT Image 2 · Social → Satori OG 1200×630 · Icons → Ideogram v3
Pre-gen: communication goal · brand style · dimensions · format · budget · stock vs. generated?
Visual Inspection (MANDATORY)
Read every image before deploy: blur · artifacts · watermarks · wrong colors · hallucinations · gibberish text. Fail → regenerate with improved prompt. Quality bar: 2× retina, no artifacts, brand palette, consistent style, no uncanny valley.
Brian's Style
- Space/cosmic —
#00E5FF + #7C3AED, deep black (#060610); connections/dots — quantum, neural, constellation
- "Ultra realistic" scenes; transparent logos; simpler always; motifs — squirrels, turtles
Image Generation
- GPT Image 2 (
gpt-image-2) preferred (best quality); GPT Image 1 for speed; GPT Image 1-mini for bulk/drafts
- Fallback:
scripts/image_gen.py; product screenshots: Playwright on live URL
- Be specific: include colors, specify avoidances
GPT Image 2 First Slot-Fill (CANONICAL — UNIVERSAL)
PRIMARY originator for every slot real-entity sources (Places / uploads / scrape) didn't fill. GPT Image 2 invoked BEFORE generic stock; stock APIs run parallel speed-pass fallback (instant return if GPT Image 2 hangs >15s). See skill 15 media-acquisition + Fail-CLOSED auto-regenerate (5 attempts, $0.40 worst-case ceiling per slot).
Per-Slot Prompt Mandatory Fields (BUILD-BREAKING — validate-image-prompts.mjs + validate-dalle-slot-fill.mjs)
Every GPT Image 2 call MUST encode 6 fields from _media_slots.json:
- Page topic + intent verbatim from
topic_intent
- Brand palette tokens from
_brand.json.colors (inline hex)
- Composition + aspect ratio matching
aspect
- Subject specificity (NEVER "people" — always "octogenarian volunteer plating soup, soft window light, documentary style")
- Photographic technical specs (camera, lens, lighting, DoF — "shot on Hasselblad, 85mm prime, golden hour, shallow DoF")
- Negative prompt block ("no text, no watermarks, no logos, no extra fingers, no AI artifacts, no stock-photo cliches")
Generic prompts FAIL validator. Same template applies to FLUX, Recraft, Stability.
Fail-CLOSED Auto-Regenerate (BUILD-BREAKING — validate-no-empty-slots.mjs)
Every slot MUST end build w/ filled_url != null AND filled_score >= relevance_floor (default 8/10 via GPT Image 2 vision). Failure modes (Pexels empty, NSFW-flagged, broken scrape, vision below floor) → immediate re-gen w/ REFINED prompt — NEVER silent skip, NEVER substitute brand-gradient unless 5 attempts exhausted. media_pipeline_orchestrator sub-agent owns this loop. See media-acquisition.md § Fail-CLOSED chain.
Logo / Icon / Video / OG
- Logo — Ideogram v3 (best text rendering); Icons — Recraft V3; output: PNG transparent + SVG; bg removal → favicon set (16/32/180/192/512 + maskable); brand mark MUST be vector-clean
- Ideogram 4.0 (open-weight, Apache 2.0) is current — generates native transparent backgrounds (reduces bg-strip need); v3 endpoint remains valid
- Video — Veo 3.1 (primary rail: cinematic + narrative stitching, 7-8 × 8-sec clips → 60-sec arc); Kling 3.0 / Runway Gen-4.5 fallbacks; HeyGen (explainer/spokesperson); captions VTT + transcript;
prefers-reduced-motion → static poster fallback
- OG (1200×630) — Satori edge-rendered, per-route unique, BRANDED CARD never raw photo, ≤100KB, cached KV 7d / R2 forever
Stock Photography + Asset Compression + Performance
Stock: Pexels first (free, API); Pixabay second. Never Unsplash (generic), iStock/Getty (paid). Critique-and-remix loop max 3 rounds; AI vision <7/10 = reject + regenerate.
Compression: AVIF primary (94% browser support, 20-30% smaller than WebP); WebP fallback (Safari 14+); JPEG legacy. Sharp: 320/640/1280/1920w srcset; blur placeholder; dominant color → CSS bg fill. R2 upload per-extension content-type.
Budgets: total images/page ≤500KB; largest single ≤200KB; Hero LCP fetchpriority="high" + preload; loading="lazy" + decoding="async" on all others.
See submodules for: media-prompts, compression-pipeline, og-image-generation, image-optimization, image-profiling, lightbox-classifier, social-brand-hex, notebooklm-pipeline, build-breaking-rules.
1---2name: media-orchestration-23description: "Section-by-section media planning and generation. Image generation (GPT Image 2 primary, built-in fallback), logo/icon generation (Ideogram v3 → favicon set), video generation (Veo 3.1), social preview images (OG 1200x630 + AI search optimization), stock photo curation (Pexels, Pixabay), critique/remix loops (max 3 rounds), asset compression pipeline, and media performance budgets."4metadata:5 source: https://skillmd.com/skills/heymegabyte/media-orchestration-26 version: "2.1.0"7 updated: "2026-05-03"8 context: "fork"9 effort: "high"10 model: "sonnet"11license: "Rutgers"12compatibility:13 claude-code: ">=2.0.0"14 agentskills: ">=1.0.0"15submodules:16 - 30-ideogram-methods.md17 - build-breaking-rules.md18 - compression-pipeline.md19 - image-optimization.md20 - image-profiling.md21 - lightbox-classifier.md22 - media-prompts.md23 - notebooklm-pipeline.md24 - og-image-generation.md25 - social-brand-hex.md26 - technical-diagramming.md27priority: 328pack: "media"29stage: stable30triggers:31 - "image gen"32 - "dalle"33 - "media"34 - "og image"35paths:36 - "org:website_build"37---3839# 12 — Media Orchestration4041Generate all site media section-by-section: images (GPT Image 2), logos (Ideogram v3), video (Veo 3.1), OG cards, and compression pipeline.4243> **Model migration note (pass-77, 2026-06-09)**: `DALL-E` → **GPT Image 2** (2026-04; 2.5 branded 2026-09 — API id unconfirmed, check current id at integration) + `GPT-4o` → **GPT Image 2 vision**. Per `platform.openai.com/docs/deprecations`.44>45> **Video rail (2026-10-04)**: Sora retired (app 2026-04-26, API 2026-09-24) — **Veo 3.1 is the video rail**. Fallbacks: Kling 3.0 / Runway Gen-4.5.4647## Submodules4849- **media-prompts** — prompt templates, Ideogram v3 API50- **compression-pipeline** — Python code, format tables, CF Image Transforms, CLS, broken image detection51- **og-image-generation** — Satori edge-rendered OG, KV / R2 cache, meta-tag helper52- **image-optimization** — Sharp processing, responsive srcset, WebP/AVIF, blur placeholders, R2 pipeline53- **image-profiling** — GPT Image 2 vision batch profiling54- **lightbox-classifier** — per-image eligibility: `kind!=logo` + ≥1024×768 + score≥755- **social-brand-hex** — canonical brand-color map per social platform56- **notebooklm-pipeline** — per-site podcast via ElevenLabs Studio + infographic via Vega-Lite/Recraft/GPT-Image-2 + HeyGen video + CF Stream + RSS + JSON-LD + cost ceiling $3.50/site5758## Strategy by Section5960Hero → GPT Image 2 / Veo 3.1 · Features → GPT Image 2 / SVG · How It Works → GPT Image 2 · Testimonials → stock · About → stock/real · Blog → GPT Image 2 · Social → Satori OG 1200×630 · Icons → Ideogram v36162Pre-gen: communication goal · brand style · dimensions · format · budget · stock vs. generated?6364## Visual Inspection (MANDATORY)6566Read every image before deploy: blur · artifacts · watermarks · wrong colors · hallucinations · gibberish text. Fail → regenerate with improved prompt. Quality bar: 2× retina, no artifacts, brand palette, consistent style, no uncanny valley.6768## Brian's Style6970- Space/cosmic — `#00E5FF` + `#7C3AED`, deep black (`#060610`); connections/dots — quantum, neural, constellation71- "Ultra realistic" scenes; transparent logos; simpler always; motifs — squirrels, turtles7273## Image Generation7475- **GPT Image 2** (`gpt-image-2`) preferred (best quality); **GPT Image 1** for speed; **GPT Image 1-mini** for bulk/drafts76- Fallback: `scripts/image_gen.py`; product screenshots: Playwright on live URL77- Be specific: include colors, specify avoidances7879## GPT Image 2 First Slot-Fill (CANONICAL — UNIVERSAL)8081PRIMARY originator for every slot real-entity sources (Places / uploads / scrape) didn't fill. GPT Image 2 invoked BEFORE generic stock; stock APIs run parallel speed-pass fallback (instant return if GPT Image 2 hangs >15s). See skill 15 `media-acquisition` + Fail-CLOSED auto-regenerate (5 attempts, $0.40 worst-case ceiling per slot).8283## Per-Slot Prompt Mandatory Fields (BUILD-BREAKING — `validate-image-prompts.mjs` + `validate-dalle-slot-fill.mjs`)8485Every GPT Image 2 call MUST encode 6 fields from `_media_slots.json`:86871. Page topic + intent verbatim from `topic_intent`882. Brand palette tokens from `_brand.json.colors` (inline hex)893. Composition + aspect ratio matching `aspect`904. Subject specificity (NEVER "people" — always "octogenarian volunteer plating soup, soft window light, documentary style")915. Photographic technical specs (camera, lens, lighting, DoF — "shot on Hasselblad, 85mm prime, golden hour, shallow DoF")926. Negative prompt block ("no text, no watermarks, no logos, no extra fingers, no AI artifacts, no stock-photo cliches")9394Generic prompts FAIL validator. Same template applies to FLUX, Recraft, Stability.9596## Fail-CLOSED Auto-Regenerate (BUILD-BREAKING — `validate-no-empty-slots.mjs`)9798Every slot MUST end build w/ `filled_url != null AND filled_score >= relevance_floor` (default 8/10 via GPT Image 2 vision). Failure modes (Pexels empty, NSFW-flagged, broken scrape, vision below floor) → immediate re-gen w/ REFINED prompt — NEVER silent skip, NEVER substitute brand-gradient unless 5 attempts exhausted. `media_pipeline_orchestrator` sub-agent owns this loop. See `media-acquisition.md` § Fail-CLOSED chain.99100## Logo / Icon / Video / OG101102- **Logo** — Ideogram v3 (best text rendering); **Icons** — Recraft V3; output: PNG transparent + SVG; bg removal → favicon set (16/32/180/192/512 + maskable); brand mark MUST be vector-clean103 - Ideogram 4.0 (open-weight, Apache 2.0) is current — generates native transparent backgrounds (reduces bg-strip need); v3 endpoint remains valid104- **Video** — Veo 3.1 (primary rail: cinematic + narrative stitching, 7-8 × 8-sec clips → 60-sec arc); Kling 3.0 / Runway Gen-4.5 fallbacks; HeyGen (explainer/spokesperson); captions VTT + transcript; `prefers-reduced-motion` → static poster fallback105- **OG (1200×630)** — Satori edge-rendered, per-route unique, BRANDED CARD never raw photo, ≤100KB, cached KV 7d / R2 forever106107## Stock Photography + Asset Compression + Performance108109**Stock**: Pexels first (free, API); Pixabay second. Never Unsplash (generic), iStock/Getty (paid). Critique-and-remix loop max 3 rounds; AI vision <7/10 = reject + regenerate.110111**Compression**: AVIF primary (94% browser support, 20-30% smaller than WebP); WebP fallback (Safari 14+); JPEG legacy. Sharp: 320/640/1280/1920w srcset; blur placeholder; dominant color → CSS bg fill. R2 upload per-extension content-type.112113**Budgets**: total images/page ≤500KB; largest single ≤200KB; Hero LCP `fetchpriority="high"` + preload; `loading="lazy"` + `decoding="async"` on all others.114115## See submodules for: media-prompts, compression-pipeline, og-image-generation, image-optimization, image-profiling, lightbox-classifier, social-brand-hex, notebooklm-pipeline, build-breaking-rules.