agentleFS
AgriciDanielAgriciDaniel/claude-video/skills/video-promo/SKILL.md

claude-video-promo

Skill41 starsChanged 8 months agoMITView on GitHub

Create promo videos using free stock footage (Pixabay/Pexels) as backgrounds with Remotion text overlays, transitions, effects, and audio. Contrast-aware text placement adapts to background brightness. Use when user says "promo video", "stock footage video", "marketing video", "video with stock", "/video promo", or describes creating a video from stock clips with text overlays.

  • Reads credentials

The file

We split this skill into the rules it gives an agent

5 rules. About 0 are common, 4 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈4

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Create polished promo/marketing videos by combining free stock footage with Remotion text overlays, transitions, and audio: with …

    line 20
  2. Distinctive:

    Use the existing Gemini TTS script:

    line 135
  3. Very specific:

    Create scene-config.json with all paths and contrast data resolved:

    line 144
  4. Distinctive:

    Never overwrite source files: all operations produce new files

    line 213
  5. Distinctive:

    Validate stock video duration >= scene duration: before rendering

    line 215

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

claude-video-promo: Stock Footage + Remotion Promo Videos

Create polished promo/marketing videos by combining free stock footage with Remotion text overlays, transitions, and audio: with contrast-aware text placement.

V2 Intelligence Layer

The pipeline includes a scene planner that automatically makes aesthetic decisions:

Scene Intent Classification

The planner reads headlines/subtexts and classifies each scene:

  • hook: First scene, dramatic, dark (Ken Burns: zoom out reveal)
  • problem: Tension, urgency (Ken Burns: slow pan)
  • feature: Clean, professional (Ken Burns: zoom in focus)
  • proof: Warm, collaborative (static or medium)
  • cta: Last scene, urgent (Ken Burns: subtle zoom, 15% larger text)

Transition Decision Tree

Transitions are auto-selected based on scene context:

  • Dark to bright: fade (0.7s, smooth brightness ramp)
  • Hook to problem: cut (punchy, immediate)
  • Feature to feature: wipe-left (progression feel)
  • Any to CTA: zoom (builds urgency)

Audio Intelligence

Per-scene ducking levels and ramp speeds:

  • Hook: duck to 0.10, 10-frame ramp
  • Feature: duck to 0.10, 10-frame ramp
  • CTA: duck to 0.08, 5-frame ramp (fastest, voice most prominent)
  • Proof: duck to 0.15, 15-frame ramp (music more present)

Contrast Analysis V2

Uses worst-case zone brightness (not average) plus variance detection:

  • High variance (busy background): always strong backing
  • Bright zone in text area (>0.5): force backing regardless of average
  • Clean dark background: no backing, just shadow

Prerequisites

  • Pixabay API key: Free at https://pixabay.com/api/docs/ (set PIXABAY_API_KEY env var)
  • Pexels API key (optional): Free at https://www.pexels.com/api/ (set PEXELS_API_KEY env var)
  • FFmpeg: Required for video preprocessing and contrast analysis
  • Node.js + npm: For Remotion rendering
  • Remotion project: The promo-pipeline/ directory bundled with this plugin

Pipeline: 3 Stages

1. ACQUIRE          2. ANALYZE           3. RENDER
Stock search     →  Frame contrast   →   Remotion composition
Stock download       analysis             AdaptiveText overlay
FFmpeg preprocess    Luminance grid        Transitions + Audio
TTS voiceover        contrast-map.json    Final MP4 output

Workflow

Step 1: Understand the Request

Determine from the user (conversationally or via YAML config):

  • What scenes are needed (topic, text, duration)
  • What stock footage to search for (keywords, mood)
  • Text positioning (center, lower-third, upper-left, upper-right)
  • Transitions between scenes (fade, wipe-left, wipe-right, zoom, cut)
  • Audio: background music query + voiceover text
  • Output: resolution, codec, destination path

Step 2: Search Stock Footage

python3 promo-pipeline/scripts/stock_search.py \
  --query "aerial city night" \
  --source pixabay \
  --orientation landscape \
  --min-duration 8 \
  --count 5

For music:

python3 promo-pipeline/scripts/stock_search.py \
  --query "upbeat corporate" \
  --source pixabay \
  --media-type music \
  --count 3

Present results to user with preview URLs. Let them pick.

Step 3: Download + Preprocess

python3 promo-pipeline/scripts/stock_download.py \
  --url "DOWNLOAD_URL" \
  --output promo-pipeline/public/stock/scene-id.mp4 \
  --trim-duration 10 \
  --gpu

This scales to 1080p 30fps, pads if needed, and encodes H.264.

Step 4: Analyze Contrast

python3 promo-pipeline/scripts/analyze_contrast.py \
  --input promo-pipeline/public/stock/scene-id.mp4 \
  --output promo-pipeline/public/stock/scene-id-contrast.json

Produces a per-second 4x3 luminance grid. The Remotion AdaptiveText component reads this to adjust text backing plates:

  • Dark background → white text, no backing, subtle shadow
  • Mid background → white text, semi-transparent dark plate
  • Bright background → white text, strong dark plate

Step 5: Generate TTS (if voiceover needed)

Use the existing Gemini TTS script:

python3 promo-pipeline/scripts/tts_generate.py \
  --text "Your voiceover text here" \
  --output promo-pipeline/public/voiceover/scene-id.wav

Step 6: Build Scene Config JSON

Create scene-config.json with all paths and contrast data resolved:

{
  "scenes": [
    {
      "id": "hook",
      "durationFrames": 150,
      "stockPath": "stock/hook.mp4",
      "contrastMap": { ... },
      "headline": "The Future is Here",
      "subtext": "Launching Spring 2026",
      "textPosition": "center",
      "transition": "fade",
      "voiceoverPath": "voiceover/hook.wav"
    }
  ],
  "musicPath": "music/background.mp3",
  "musicVolume": 0.3,
  "musicFadeInFrames": 30,
  "musicFadeOutFrames": 60,
  "voiceoverDucking": 0.15
}

Step 7: Render

cd promo-pipeline
npx remotion render PromoVideo --props scene-config.json --codec h264 --crf 18

YAML Config Format (Alternative to Conversational)

Users can write a YAML config and the pipeline resolves everything:

scenes:
  - id: hook
    duration: 5s
    stock:
      query: "aerial city night lights"
      source: pixabay
    text:
      headline: "The Future is Here"
      subtext: "Launching Spring 2026"
      position: center
    transition: fade
    voiceover: "The future of marketing is about to change."

  - id: features
    duration: 8s
    stock:
      query: "technology dashboard data"
      source: pexels
    text:
      headline: "AI-Powered Analytics"
      position: lower-third
    transition: wipe-left

audio:
  music:
    query: "upbeat corporate"
    volume: 0.3
    ducking: 0.15

Safety Rules

  1. Never overwrite source files: all operations produce new files
  2. Check API key before searching: fail clearly if PIXABAY_API_KEY is missing
  3. Validate stock video duration >= scene duration before rendering
  4. Pre-trim music to match total video duration (Remotion Audio doesn't loop)
  5. Confirm before batch downloads: stock video files can be large

Text Position Reference

PositionWhereBest For
centerVertically + horizontally centeredHero statements, titles
lower-thirdBottom 25%, full widthNews-style, documentary
upper-leftTop-left cornerSubtitles, labels
upper-rightTop-right cornerBranding, logos

Transition Reference

TypeEffectUse When
fadeOpacity crossfade (0.5s)Default, smooth
wipe-leftHorizontal clip reveal from leftSequential progression
wipe-rightHorizontal clip reveal from rightReverse/callback
zoomScale + fade dissolveDramatic emphasis
cutInstant switchFast pacing, urgency

Scripts

  • scripts/stock_search.py: Search Pixabay + Pexels video/music APIs (stdlib only)
  • scripts/stock_download.py: Download + FFmpeg preprocess to 1080p 30fps
  • scripts/analyze_contrast.py: Frame luminance analysis → JSON contrast map

Remotion Components

  • src/components/PromoVideo.tsx: Main composition: sequences scenes + audio
  • src/components/StockScene.tsx: Single scene: OffthreadVideo bg + adaptive text + Ken Burns
  • src/components/AdaptiveText.tsx: Contrast-aware text with spring/fade/typewriter/slide-up animations
  • src/components/Transitions.tsx: Fade, wipe, zoom transitions between scenes
  • src/components/AudioLayer.tsx: Background music with voiceover ducking
  • src/hooks/useContrast.ts: Reads contrast map, returns per-frame adaptive text styles

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.