Digital Product Ad Editor
A 100% standalone, script-driven commercial motion-graphics skill for digital products, apps, SaaS, subscriptions, and online services.
Core Philosophy — Smart Direction, Never a Rigid Template:
- Zero locked layouts or elements: Every product, brand, and voiceover script is different. Never force a fixed sequence of scenes or recycled icons. Read the script first, invent a custom visual metaphor for every spoken beat, and adapt colors to the client's brand.
- Zero bundled assets: This skill contains pure craft instructions and motion architecture. Always source or receive official transparent vector SVGs / crisp PNGs for the specific client project.
- Extensible style system: Visual directions live as modular files inside
references/styles/. Currently includes 2 distinct Light-Theme directions; new styles can be added anytime by dropping another.mdspec intoreferences/styles/.
1. Visual Directions (references/styles/)
For high-trust commercial conversion ads (especially in Bangla/South Asian digital product markets), Light Themes consistently outperform dark themes in clarity and trust. Use Dark Theme only when the user explicitly requests it.
Choose the direction that best fits the script's emotional tone (or alternate directions when producing multiple ads for the same brand so every ad feels fresh and unique):
- Direction 1 — Cool Light SaaS Studio (
references/styles/cool-light-saas.md)- Crisp cool-white luminous studio canvas, glass-depth UI cards, authentic app-interface hooks, sleek modern SaaS energy.
- Direction 2 — Warm Editorial Alabaster (
references/styles/warm-editorial-alabaster.md)- Warm Swiss alabaster paper (
#FAF7F2 → #F2ECE1), slowly drifting architectural dot-matrix + faint rotating orbital rings, warm slate borders, spring-overshoot (outBack) motion, diagonal architectural curtain wipes.
- Warm Swiss alabaster paper (
(To add a 3rd, 4th, or custom direction later, add a new file in references/styles/<style-name>.md — no changes to the core workflow required.)
2. Mandatory Craft Laws
Read references/motion-and-craft-laws.md before writing any code. Summary of non-negotiable rules:
- Frame-0 Action Hook (
0–3s): Never open on an empty box, blank wireframe, or static text. Frame 0 must already be mid-action with a clear visual metaphor. Keep the first 2–3 seconds visual-first (minimal or zero text). - Continuous Purposeful Motion (Zero Static Holds, Zero Aimless Wobble): Never pop elements in over
0.35sand leave the screen frozen for 3 seconds — and never use cheap aimlessMath.sinbobbing. Every beat must maintain purposeful secondary motion (drifting parallax, flight paths, filling progress bars, specular card glints, streaming data beads, spinning loaders snapping into✓/✕, converging icons, glossy CTA shimmers, tap-ripple clicks). - Minimal, Honest Typography: Large bold headlines only on key spoken beats (for Bangla, animate whole words, never individual characters). Zero small cluttered sub-captions under big visuals. Zero robotic filler tags (
FREE QUOTA,PAYMENT DECLINED,INSTANT · 100%). Never invent unstated numbers (e.g., never show60% OFFif the script doesn't specify a percentage). Keep UI pills clean (Auto Sell,Plan Selected— no stray hyphens or redundant ticks). - 100% Boxless Official Logos: Float transparent SVG/PNG logos directly on the light canvas with soft drop-shadows — never trap them inside white rounded boxes or green circular rings.
- Clean, Balanced Composition: No lopsided half-empty screens waiting for a later word; no stray edge bars or decorative lines sticking out of cards; never use
mixBlendMode: 'overlay'insideclipPath.
3. A-to-Z Production Workflow
Step 1 — Smart Asset Intake & Collaboration (Ask Once, Never Stall)
Real brand assets always make a commercial look far more authentic and trustworthy. When the user simply says "edit this ad for me" / "আমাকে অ্যাডটা বানিয়ে দাও" without providing everything upfront, ask once in a single friendly checklist — AND explicitly tell them both options ("share what you have for the best brand match; anything you don't have, just say so and I will source or craft it myself"):
- Voiceover / Script: Raw voiceover audio file (
.mp3/.wav/.m4a) or text script. - Brand Identity: Official logo + favicon (transparent PNG/SVG), primary brand color, and website URL / CTA (if they share a URL, you can inspect the site to grab brand colors/details automatically).
- Special Assets (Optional): Any specific product screenshots, custom graphics, or payment badges they want featured.
- Visual Direction & Aspect Ratio: Direction 1 (
Cool Light SaaS Studio), Direction 2 (Warm Editorial Alabaster), or "you decide";9:16(1080×1920, default) or16:9(1920×1080).
Autonomous Fallback Rule (If the user doesn't provide assets or says "you handle it"): Never block or complain about missing assets — handle them autonomously in this priority order:
- Official Online Sources: Fetch crisp official vector SVGs / high-res transparent PNGs for third-party brands, apps, and payment gateways (e.g., official brand kits, Simple Icons, Wikimedia Commons, logo.wine, or the client's own website), and clean/de-fringe PNG edges with Python (
Pillow/numpy) if needed. - AI Image Generation & Vector Craft: If a custom product graphic, physical card, badge, or visual prop isn't available online, generate it cleanly using your available image-generation tool (with transparent/clean background removal) or build it natively in crisp SVG / React UI.
- Procedural UI SFX: If the host workspace has no SFX folder, synthesize subtle, clean UI SFX (
whoosh,pop,click,success) via Python/ffmpegor use CC0 UI sounds so the-16 LUFSmix always feels polished. - Honest Fallback Note: Only fall back to a clean typographic badge if an asset cannot be cleanly sourced or generated, and briefly mention it when presenting the preview.
Step 2 — Voice Analysis & Audio Master
- Convert the voiceover to lossless
48 kHzstereo 16-bit PCM WAV. - Transcribe and map exact phrase/word timestamps (using
ffmpeg silencedetect+ listening/transcription). - Mix voice normalized to
-16 LUFSwith subtle, beat-synced UI SFX (whoosh,pop,click,success) — never overpowering the voice.
Step 3 — Script-to-Visual Beat Plan
- Divide the voiceover into crisp visual beats (
1.2s – 4.5seach). - For each beat, design a custom visual metaphor matched strictly to what is being spoken:
- What is the focal visual or UI interaction?
- What continuous secondary motion keeps the beat alive from first frame to last frame?
- Can we cut any unnecessary text so the visual speaks for itself?
Step 4 — Build in Remotion
- Set up or use a Remotion project (
30 fps,1080×1920for Reels/Shorts). - Load clean fonts explicitly (
Inter+Hind Siligurifor Bangla/English). - Split code cleanly:
ThemeKit.tsx— backdrop, optical camera, kinetic headline, boxless logo helper, vector checkmarks/streams, easing curves (outQuart,outBack,outCubic).ScenesPart1.tsx/ScenesPart2.tsx— beat-locked scenes.MainAdVideo.tsx—<Audio>,<Backdrop>, overlapping<Sequence>beats (ENTER 5f / EXIT 4f), and diagonal wipe on the big solution reveal.
- Run TypeScript check (
npx tsc --noEmit) — must pass with 0 errors.
Step 5 — Self-QA Before Showing the User
- Render 6–8 representative still frames (including Frame 0/3 of the hook, mid-beats, logo grids, and outro) at
0.5×scale and visually inspect every single image. - Verify: zero text wrapping (
whiteSpace: 'nowrap'on pills/numbers), zero overflow, zero boxed/ringed logos, crisp contrast, balanced framing.
Step 6 — Environment-Smart Preview & Delivery (NEVER Auto-Render Final MP4!)
Never blindly render a final MP4 before the user reviews the edit. Adapt cleanly to where the agent is running:
- Local / CLI Agent (Antigravity, Claude Code, Cursor, Codex, etc.):
- Launch Remotion Studio (
npx remotion studio src/index.ts --port=3005 --no-open; on Windows pass--browser-executablepointing to local Chrome). - Share the
http://localhost:3005preview link so the user can scrub frame-by-frame and request instant HMR tweaks. Only run Step 7 after explicit user approval.
- Launch Remotion Studio (
- Web / Cloud Chat Agent (Claude Web, ChatGPT Web, etc. with no live localhost):
- Do NOT run a heavy MP4 render inside the cloud sandbox.
- Package the complete, ready-to-run Remotion project as a
.zipfile (includingpackage.json,src/,public/, and a 3-line quick-start:npm install && npx remotion studio src/index.ts) so the user can download it, preview live in Remotion Studio on their PC, tweak freely, and render cleanly.
Step 7 — Final Master Render & Verification
- Render high-quality
1080pMaster MP4 (H.264,--crf=16,--pixel-format=yuv420p,--image-format=png,--audio-bitrate=320k). - Verify output duration, resolution (
1080×1920), framerate (30 fps), video/audio codecs, and file size withffprobebefore delivering.
