Skip to main content
BuildOfficialCertifiedReviewed Nov 27, 2026

Ad Video

v1.0.3New

Install this skill

No account required. Pick your tool, then copy.

Run in your terminal. It detects your AI tool.

npx @skills-hub-ai/cli install ad-video

What this does: Generate platform-optimized video ads from a product brief. Supports brand kits, 6 ad types, 6 platform formats (TikTok, Instagram, YouTube, Facebook, LinkedIn), batch personalization, A/B variants, stock footage, screen recordings, and AI voiceover. ~$1-5/video. Use when the user wants a short video ad rendered for TikTok, Reels, YouTube pre-roll, Facebook or LinkedIn, or asks to 'make a video ad', 'render ad variants for A/B testing' or 'personalize ads from a CSV'.

Or get the file:
Browse all CLI commands →
Manual setup by platform

Claude Code

~/.claude/skills/ad-video/SKILL.md

Setup guide →

Signing

SignedSLSA L2
Signed by
skills-hub.ai distributor
Method
Distributor-signed by skills-hub.aiSigned with the skills-hub.ai Ed25519 distributor key over this exact slug, version and content. Check it with `npx @skills-hub-ai/cli verify`.
Key
skills-hub-ed25519-2026-11
Signed
0Save

Instructions

Ad Video

Create platform-optimized video ads from a product brief. Describe your product, get ads for TikTok, Instagram, YouTube, Facebook, and LinkedIn — rendered and ready to upload.

Setup

Step 1: Check Prerequisites

TOOLKIT=~/.openclaw/workspace/claude-code-video-toolkit
cd $TOOLKIT
python3 tools/verify_setup.py

The ad-video skill extends the video-toolkit. Ensure video-toolkit is installed and configured first.

Step 2: Install Additional Dependencies

cd $TOOLKIT
pip3 install --break-system-packages playwright qrcode[pil] Pillow
playwright install chromium

Step 3: Configure API Keys

Add to .env:

PEXELS_API_KEY=...    # Free at pexels.com/api (stock footage)

Voiceover and music use existing video-toolkit Modal endpoints (Qwen3-TTS, MusicGen).

Creating an Ad

Step 1: Create Project

cd $TOOLKIT
cp -r templates/ad-template projects/MY_AD
cd projects/MY_AD
npm install

Step 2: Define Brand Kit

Create or edit brand.json:

{
  "name": "Acme Corp",
  "tagline": "Ship faster, break nothing",
  "website": "https://acme.com",
  "logo": {
    "primary": "brand/logo.svg",
    "light": "brand/logo-light.svg",
    "dark": "brand/logo-dark.svg",
    "icon": "brand/icon.svg",
    "minWidth": 120,
    "safePadding": 16
  },
  "colors": {
    "primary": "#2563EB",
    "secondary": "#7C3AED",
    "accent": "#F59E0B",
    "background": "#0F172A",
    "surface": "#1E293B",
    "text": "#F8FAFC",
    "textMuted": "#94A3B8",
    "ctaBackground": "#2563EB",
    "ctaText": "#FFFFFF",
    "gradient": ["#2563EB", "#7C3AED"]
  },
  "fonts": {
    "heading": { "family": "Inter", "weight": 800, "source": "google" },
    "body": { "family": "Inter", "weight": 400, "source": "google" },
    "accent": { "family": "Space Grotesk", "weight": 700, "source": "google" }
  },
  "social": {
    "twitter": "@acmecorp",
    "linkedin": "acme-corp"
  }
}

Validate: python3 tools/brand_validate.py --brand brand.json

Step 3: Write Ad Config

Edit src/config/ad-config.ts:

export const adConfig: AdBrief = {
  type: 'product-launch',
  product: {
    name: 'Acme Deploy',
    tagline: 'Ship faster, break nothing',
    description: 'One-click deployments with automatic rollbacks and zero-downtime.',
    features: [
      'One-click deploy',
      'Automatic rollbacks',
      'Zero-downtime migrations',
    ],
    painPoints: [
      'Deployments take hours and break production',
      'Rollbacks are manual and terrifying',
    ],
    pricing: { amount: '$29/mo', trial: '14-day free trial' },
  },
  assets: {
    productShots: ['products/dashboard.png', 'products/deploy-screen.png'],
    screenRecording: {
      url: 'https://app.acme.com/dashboard',
      script: [
        { action: 'wait', duration: 1000 },
        { action: 'click', selector: '#deploy-btn' },
        { action: 'wait', duration: 2000 },
      ],
    },
    stockQueries: ['developer coding', 'server room'],
  },
  cta: {
    text: 'Start Free Trial',
    secondary: 'Learn More',
    url: 'https://acme.com/signup',
    qrCode: true,
  },
  targets: ['tiktok', 'instagram-reel', 'youtube-preroll', 'facebook', 'linkedin'],
  voiceover: { enabled: true, speaker: 'Ryan', tone: 'excited' },
  music: { preset: 'upbeat-tech', volume: 0.12 },
};

Ad types: product-launch, feature-highlight, testimonial, comparison, seasonal-promo, app-demo.

Type-specific config fields (add alongside the base config):

  • testimonial: testimonial: { quote: '...', author: 'Jane Doe', title: 'CTO at Startup', avatar: 'brand/jane.png', rating: 5 }
  • comparison: comparison: { competitor: 'OldTool', advantages: [{ dimension: 'Speed', us: '50ms', them: '500ms' }] }
  • seasonal-promo: seasonal: { event: 'Black Friday', discount: '50% off', deadline: 'Nov 30' }

Asset manifest format, weights, placement rules and example (needed when writing the manifest): read references/asset-manifest.md. If it is not installed, fetch https://raw.githubusercontent.com/tinh2/skills-hub-registry/main/build/ad-video/references/asset-manifest.md .

Step 4: Gather Assets

Stock footage:

cd $TOOLKIT
python3 tools/pexels_search.py \
  --query "developer coding" --type video --orientation landscape \
  --output projects/MY_AD/public/stock/

Screen recording (optional):

cd $TOOLKIT
python3 tools/screen_record.py \
  --url "https://app.acme.com/dashboard" \
  --script projects/MY_AD/scripts/demo-flow.json \
  --viewport 1280x720 \
  --device "iPhone 14 Pro" \
  --output projects/MY_AD/public/recordings/demo.mp4

Supports device emulation (--device), custom viewports, and CSS injection (hide cookie banners, blur PII).

Voiceover:

cd $TOOLKIT
python3 tools/qwen3_tts.py \
  --text "Tired of deployments that break production? Meet Acme Deploy." \
  --speaker Ryan --tone excited \
  --output projects/MY_AD/public/audio/vo.mp3 --cloud modal

Speakers: Ryan, Aiden, Vivian, Serena, Uncle_Fu, Dylan, Eric, Ono_Anna, Sohee
Tones: neutral, warm, professional, excited, calm, serious, storyteller, tutorial

Background music:

cd $TOOLKIT
python3 tools/music_gen.py \
  --preset upbeat-tech --duration 30 \
  --output projects/MY_AD/public/audio/bg.mp3 --cloud modal

Presets: corporate-bg, upbeat-tech, ambient, dramatic, tension, hopeful, cta, lofi.

Step 5: Generate Composition

Claude reads the ad config and brand kit, then generates the Remotion composition. The composition includes:

  1. HookScene — Attention-grabbing opener (question, stat, or bold claim)
  2. ProblemScene — Visualize the pain point
  3. SolutionScene — Product reveal with key highlights
  4. CTAScene — Call-to-action with end card

Each scene uses KineticText for headlines, ProductShot for product images, and brand-consistent colors/fonts from brand.json.

Ad script structure: Hook (stop scrolling) > Problem (empathy) > Solution (product demo) > CTA (next action).

Step 6: Render All Platforms

cd $TOOLKIT/projects/MY_AD

# Preview
npx remotion studio

# Render all platforms
npx remotion render src/index.ts Ad-tiktok out/tiktok.mp4
npx remotion render src/index.ts Ad-instagram-reel out/instagram-reel.mp4
npx remotion render src/index.ts Ad-youtube-preroll out/youtube-preroll.mp4
npx remotion render src/index.ts Ad-facebook out/facebook.mp4
npx remotion render src/index.ts Ad-linkedin out/linkedin.mp4

Output: one MP4 per platform in out/.

Step 7: A/B Variants (Optional)

Generate variant headlines and CTAs for testing:

cd $TOOLKIT
python3 tools/generate_variants.py \
  --config projects/MY_AD/src/config/ad-config.ts \
  --elements headline,cta \
  --count 3 \
  --output projects/MY_AD/variants.json

Then render each variant:

cd $TOOLKIT/projects/MY_AD
npx remotion render src/index.ts Ad-tiktok-A out/tiktok-A.mp4
npx remotion render src/index.ts Ad-tiktok-B out/tiktok-B.mp4
npx remotion render src/index.ts Ad-tiktok-C out/tiktok-C.mp4

Step 8: Batch Personalization (Optional)

Create a CSV with variant data:

id,headline,ctaText,price,audience
dev-us,"Deploy in 60 seconds","Start Free Trial","$29/mo",developers
mktg-us,"Marketing teams ship 3x faster","Try It Free","$29/mo",marketers
dev-eu,"Ship code with confidence","Start Now","€27/mo",developers-eu

Render all (local):

cd $TOOLKIT
python3 tools/batch_render.py \
  --template projects/MY_AD \
  --data projects/MY_AD/variants.csv \
  --platforms tiktok,instagram-reel,facebook \
  --parallelism 4 \
  --output projects/MY_AD/out/batch/

Render all (Remotion Lambda for cloud-scale parallelism):

cd $TOOLKIT
python3 tools/batch_render.py \
  --template projects/MY_AD \
  --data projects/MY_AD/variants.csv \
  --renderer lambda \
  --output s3://my-bucket/ads/

Output: out/batch/{platform}/{id}.mp4 — one video per row per platform.

If a Step Fails

  • Brand kit or config invalid: if brand.json is missing colors, fonts or a logo path, stop and ask for them before composing; do not invent brand values.
  • Remotion render errors: a missing asset usually means it was not placed under public/ or was loaded without staticFile(). Fix the path and re-render only the failed platform, not all five.
  • Cloud tools fail (--cloud modal, fal.ai, voiceover API): retry once, then fall back to stock footage, a music preset without generation, or text-only scenes, and note the substitution in the delivery summary.
  • Batch or Lambda render fails part way: re-run batch_render.py for the failed rows only; if Lambda keeps failing, switch to local rendering with --parallelism 2 and report it.

Platform Specs

PlatformAspectResolutionFPSDurationNotes
TikTok9:161080x19203015-60sBottom 20% obscured by UI
Instagram Reel9:161080x19203015-30sKeep text in center 70%
Instagram Feed4:51080x1350303-60s4:5 fills more feed space
YouTube Pre-roll16:91920x1080306-15sSkippable after 5s
Facebook1:11080x1080305-15sSquare performs best in feed
LinkedIn16:91920x10803015-30sData/stats perform well

Ad Script Framework

Every ad follows the Hook > Problem > Solution > CTA structure:

  1. Hook (2-4s): Stop the scroll. Use a question, shocking stat, bold claim, or pain point. Must grab attention in the first 1.5 seconds.
  2. Problem (3-7s): Show empathy. Describe the pain the audience feels. Use animated text, frustrated-user visuals, or before/after.
  3. Solution (4-14s): Reveal the product. Show it in action (screenshots, screen recording, product shots). Highlight 2-3 key features with animated text + stats.
  4. CTA (2-6s): Clear next action. Animated button, QR code, pricing, and end card with logo + tagline.

Duration Allocation by Platform

PlatformTotalHookProblemSolutionCTA
TikTok (30s)30s3s7s14s6s
Instagram Reel (15s)15s2s3s7s3s
YouTube Pre-roll (6s)6s1.5s--2.5s2s
YouTube Pre-roll (15s)15s2s3s7s3s
Facebook (15s)15s2s3s7s3s
LinkedIn (30s)30s3s7s14s6s

YouTube 6s bumper ads skip the Problem scene entirely -- they are Solution + CTA only.

Voiceover word budget per scene: (durationSeconds - 2) * 2.5 words.

Ad Type Scene Maps

Product Launch

Hook (bold-claim) > Problem (list) > Solution (product-reveal) > Feature x2 > CTA

Feature Highlight

Hook (curiosity-gap) > Feature (full scene) > Demo (screen recording) > CTA

Testimonial

Hook (stat/social-proof) > Testimonial (full-screen-quote) > Solution (product-reveal) > CTA

Comparison

Hook (question) > Comparison (table or split-screen) > Solution (highlights) > CTA

Seasonal Promo

Hook (urgency) > PriceTag (discount reveal) > Feature (quick highlights) > CTA (deadline)

App Demo

Hook (pain-point) > ScreenRecording (product in action) > Feature x2 > CTA

Composition patterns (brand text, product shots, CTA, QR, layouts, transitions, audio), cost estimates and Remotion packages: read references/reference.md. If it is not installed, fetch https://raw.githubusercontent.com/tinh2/skills-hub-registry/main/build/ad-video/references/reference.md .

Key Rules

  1. Brand kit first — always validate brand.json before composing
  2. Platform specs are law — never exceed duration limits, always respect safe zones
  3. Hook in 1.5 seconds — the first scene MUST grab attention immediately
  4. All motion via useCurrentFrame() — no CSS animations, no Tailwind animate classes
  5. Always staticFile() for assets — never require() or import
  6. Always <OffthreadVideo> — never raw <video> tags
  7. CTA on every variant — every ad must end with a clear call-to-action
  8. Test at 1x speed — preview at actual playback speed before rendering

Source: Built on digitalsamba/claude-code-video-toolkit (MIT License)

This skill doesn’t include stateful context yet, instructions only. Learn about stateful skills.

Security

Loading security scan...

Reviews (0)

Browse all →
design-animateAdd purposeful motion with modern CSS (scroll-driven animations, view transitions, @starting-style) or Flutter implicit animations, with reduced-motion support. Triggers: add animation, animate, add motion, transitions, scroll animation.86 installsdesign-auditRead-only design quality audit (WCAG 2.2 accessibility, performance, theming, responsive, anti-patterns) with scored, prioritized fixes. Triggers: 'audit design', 'check accessibility', 'a11y audit', 'design review', 'UI quality check'.64 installssecureRead-only full-stack security posture assessment with a 0-100 risk score: dependency CVEs, dangerous code patterns, auth gaps, config and secrets, PII handling; routes to deeper skills. Triggers: 'security posture', 'how secure is this', 'security scan', 'risk score'.62 installsdiagramGenerate Mermaid architecture diagrams from the codebase: C4 context/container, sequence diagrams for key flows, ER from schemas, module dependency graphs. Triggers: 'architecture diagram', 'ERD', 'sequence diagram', 'dependency graph', 'C4 diagram'.61 installsdesign-polishFinal quality pass before shipping: fixes alignment, spacing, type hierarchy, color consistency, interactive states and motion timing to match the existing design language. Triggers: 'polish the UI', 'make it pixel perfect', 'final design pass'.60 installscode-smellScan a codebase for Fowler's code smells (god classes, long methods, feature envy, data clumps, primitive obsession, shotgun surgery, message chains) and rank refactorings by impact. Triggers: 'code feels messy', 'before a refactor', 'find maintainability problems'.53 installs

More from Skills Hub

View source →
security-reviewEvidence-based security audit of a codebase: auth and authz gaps, IDOR, JWT/OAuth flaws, injection, data exposure, secrets and session issues, with exploit scenarios and fixes. Triggers: security review, audit auth, find vulnerabilities.207 installsunit-testFind untested code, write unit tests covering edge cases, error paths and boundaries in the project's own style, run them and fix failures. Triggers: add unit tests, increase coverage, test edge cases, test error handling.178 installsweb-gameScaffold a production-ready browser game (Phaser, PixiJS or Three.js) with Vite, TypeScript, input, audio, saves, responsive canvas and itch.io/PWA deploy. Triggers: web game, browser game, html5 game, phaser game, pixi game, three.js game.144 installshumanizerRewrite AI-drafted content so it reads human: cut filler and hedging, vary sentence length, curb em dashes, add specifics and voice. Triggers: humanize this, remove AI tells, sounds like ChatGPT, make it sound human.143 installsdesign-to-codeTurn a design into production frontend code in four phases: design-system tokens and components, responsive layout, dark mode, then a UX audit that fixes what it finds. Triggers: implement this design, Figma to code, design to code, build the UI from this.134 installsflutterBuild a complete Flutter app from a video, screenshots, description or /mvp output, matching the observed UI and flows, with tests. Triggers: flutter app, build a mobile app, build from video/screenshots, clone this app, make an app like, recreate this UI.131 installs

More Build skills

Browse category →
senior-frontendBuild and review React, Next.js, TypeScript or Tailwind frontends: components, scaffolding, performance and bundle size. Use whenever the user wants a new component or app, a page feels slow, the bundle is too big, or asks for a frontend code review.653 installsui-design-systemUse when building a design system: tokens, component docs, responsive scales or developer handoff. Generates tokens with design_token_generator.py.553 installsfrontend-designGuidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making choices that don't read as templated defaults.365 installssenior-backendBuild and fix backend services: REST or GraphQL APIs, auth, microservices, PostgreSQL queries, migrations and load tests. Use whenever the user's API is slow or broken, needs login or auth added, a schema change, or a new endpoint or service scaffolded.266 installsself-improving-agentCurate what the agent has learned into durable project knowledge. Reviews Claude Code auto-memory (MEMORY.md and its topic files) for learnings worth keeping, promotes proven ones into CLAUDE.md or .claude/rules/, records a correction as a lesson that persists across sessions, prunes stale or duplicate entries, and turns a recurring fix into a reusable skill. Use whenever the user asks what you have learned or saved about the project, which memories should become permanent rules, to remember a lesson or stop repeating a mistake, or to clean up, audit or check memory health.185 installsusing-superpowersUse when starting any conversation - establishes how to find and use skills, requiring skill invocation before ANY response including clarifying questions149 installs

Frequently asked questions about ad-video

What does the ad-video skill do?

Generate platform-optimized video ads from a product brief. Supports brand kits, 6 ad types, 6 platform formats (TikTok, Instagram, YouTube, Facebook, LinkedIn), batch personalization, A/B variants, stock footage, screen recordings, and AI voiceover. ~$1-5/video. Use when the user wants a short video ad rendered for TikTok, Reels, YouTube pre-roll, Facebook or LinkedIn, or asks to 'make a video ad', 'render ad variants for A/B testing' or 'personalize ads from a CSV'. It's a reusable SKILL.md instruction set that loads into your AI coding assistant on demand, no prompt engineering, no copy-pasting every session.

How do I install the ad-video skill?

Run `npx @skills-hub-ai/cli install ad-video` from your terminal. The CLI writes the SKILL.md to the correct location for your AI tool (e.g. ~/.claude/skills/ad-video/ for Claude Code or ~/.cursor/skills/ for Cursor with --target cursor) and adds it to your project's .skills.json lockfile.

Which AI tools does ad-video work with?

ad-video runs in Claude Code. It follows the open Agent Skills standard (SKILL.md), so the same skill works in every supported tool without modification.

Is the ad-video skill free?

Yes. Every skill on skills-hub.ai is free and open-source. There are no premium tiers, paywalls, or usage limits. You only pay for whatever AI assistant you're already using.

How do I use ad-video after installing it?

In Claude Code, type `/ad-video` (or whatever slash command the skill registers) and the AI follows the skill's instructions immediately. You can also reference it by name in natural language, your AI loads the skill into context when relevant.

Can I share the ad-video skill with my team?

Yes. Commit your project's .skills.json lockfile and teammates run `npx @skills-hub-ai/cli install` (no args) to install every skill at the exact version you pinned. Organization-scoped installs work via skills-hub.ai organizations.