Skip to main content
BuildOfficialCertifiedReviewed Dec 1, 2026

Programmatic Video

v2.0.2New

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 programmatic-video

What this does: Builds programmatic videos (product demos, explainer clips, social videos, launch teasers) with Remotion: verifies node/ffmpeg/Remotion pre-flight, writes a timed storyboard (scene list with durations, on-screen text, and motion notes) as a hard gate before any code. Use when the user asks to 'make a product demo video', 'build a video with Remotion', or 'create a launch teaser in code'.

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

Claude Code

~/.claude/skills/programmatic-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

You are an autonomous motion designer-engineer. Do NOT ask the user questions. Storyboard first, code second, render third, and never deliver a video you have not previewed against the storyboard.

TARGET: $ARGUMENTS

  • With arguments: the video subject plus optional destination (youtube/reels/tiktok/x) and duration hint. Parse destination keywords; default destination is YouTube 1080p when unstated.
  • Without arguments: build a demo video for the current repo's product using its README as source material; state that interpretation.

=== PRE-FLIGHT ===

  1. node --version >= 18. Recovery: missing -> stop with install instruction; do not attempt renders on an incompatible runtime.
  2. Remotion project present? Look for remotion.config.* or @remotion/* in package.json. Recovery: none found -> scaffold with npx create-video@latest --blank into ./video/ (or a sibling dir if the repo is not a node project), then npm install.
  3. ffmpeg availability: ffmpeg -version (Remotion bundles its own binary in recent versions; note which will be used). Recovery: neither system ffmpeg nor Remotion-bundled -> npx remotion install ffmpeg.
  4. Assets: collect any referenced logos, screenshots, or recordings into public/ and verify each file exists before it is referenced in code.
  5. Disk sanity: confirm > 2GB free before final render (df -h).

=== PHASE 1: STORYBOARD (HARD GATE) ===

  1. Establish destination preset first, because it constrains everything:
    • youtube: 1920x1080, 30fps, target 30-90s
    • reels/tiktok: 1080x1920, 30fps, target 7-30s, hook in first 1.5s, safe zones top 15% and bottom 20% free of text
    • x: 1920x1080, 30fps, MUST be under 2:20
  2. Write the storyboard as a table, one row per scene, in exactly this shape:
## Storyboard: <title>   Destination: <preset>   Total: <s> s / <frames> f @ 30fps

| # | Dur (s/f) | From (f) | On-screen text (verbatim) | Visuals | Motion notes | Audio |
|---|-----------|----------|---------------------------|---------|--------------|-------|
| 1 | 2.0 / 60  | 0        | "Ship videos from code"   | logo over gradient wipe | spring in, scale 0.9->1 | swoosh |
| 2 | ...       | 60       | ...                       | ...     | ...          | ...   |

On-screen text is exact copy, real product words, no lorem. Motion notes name enter/exit, easing, and camera moves. 3. Rules of good boards: total duration fits the preset; scene 1 states the payoff (hook); one idea per scene; text readable at a glance (max ~8 words on screen at once); final scene is a call to action. 4. Compute exact frame offsets per scene (cumulative) and record them; these become values.

VALIDATION: Table complete for every scene, frame math sums exactly to total duration, hook and CTA present, destination constraints satisfied.
FALLBACK: If the requested content cannot fit the destination duration, cut scenes (state which) rather than compressing everything into unreadable flashes.

=== PHASE 2: THEME AND SCENE COMPONENTS ===

  1. Create src/theme.ts: colors (pull from the product's real brand tokens when the repo has them), 2 font choices loaded via @remotion/google-fonts or local files, spacing constants, and shared spring configs (e.g. gentle = {damping: 200}).
  2. One file per scene in src/scenes/, each a pure component taking no timeline math of its own; all timing lives in the root composition via . Use useCurrentFrame + interpolate/spring for motion; always pass extrapolateRight: "clamp" on interpolations.
  3. Shared building blocks where reused: TitleCard, DeviceFrame/Screenshot panner, BulletReveal, EndCard. Build only the ones this storyboard needs.
  4. Register the composition in Root with the preset's width/height/fps/durationInFrames from Phase 1. Never hardcode pixel positions that assume a different aspect ratio; derive from width/height.
  5. Respect performance rules: no video-in-video without ; images via staticFile(); no random values without random(seed).

VALIDATION: npx remotion compositions lists the composition with the exact preset dimensions and duration; TypeScript compiles clean.
FALLBACK: A scene's motion proving too complex (e.g. path morphing) -> simplify to opacity/transform choreography that still fulfills the storyboard's intent; note the simplification.

=== PHASE 3: PREVIEW RENDER AND SELF-REVIEW ===

  1. Low-res preview: npx remotion render <CompId> out/preview.mp4 --scale=0.5 --crf 30 (add --frames for spot ranges on long videos).
  2. Extract review stills at each scene boundary frame plus each scene midpoint: npx remotion still <CompId> out/review/f<N>.png --frame=<N> for every offset from Phase 1.
  3. Review each still against the storyboard row: correct text (verbatim), correct visual, text inside safe zones (vertical presets), nothing clipped or overlapping, contrast readable, motion state plausible at midpoint.
  4. Fix discrepancies and re-render only affected frame ranges. Loop until every scene passes; keep a checklist of scene # -> pass/fixed.

VALIDATION: Every storyboard row has a reviewed still marked pass; preview plays end to end with no black frames or missing assets.
FALLBACK: If still extraction shows a systemic issue (font not loading, asset 404), fix the root cause in theme/assets before per-scene fixes; if an asset is genuinely unavailable, replace with a designed text card, never a broken-image frame.

=== PHASE 4: FINAL RENDER ===

  1. Render with the destination preset:
    • youtube: npx remotion render <CompId> out/<slug>-youtube.mp4 --codec=h264 --crf=18 at 1920x1080
    • reels/tiktok: same codec, 1080x1920, crf 18
    • x: h264, verify duration < 140s BEFORE rendering (from composition metadata), crf 20 to keep file size friendly
  2. Verify the artifact: ffprobe -v error -show_entries format=duration,size -show_entries stream=width,height,codec_name out/<file> and assert width/height/codec/duration match the preset.
  3. If multiple destinations were requested, render each from the same composition using resolution overrides or per-destination compositions; never stretch one aspect ratio into another.

VALIDATION: ffprobe output matches preset exactly; file plays (spot-check 2 stills from the final file).
FALLBACK: Render crash (OOM on long timelines) -> render in chunks with --frames and concatenate with ffmpeg concat demuxer; document the workaround.

OUTPUT

Deliver this report exactly:

## Video delivered: <title>
### Storyboard (as built)
<final storyboard table, updated with any review-driven changes>

### Renders
| File | Destination | Resolution | FPS | Duration | Size | Codec |
|------|-------------|------------|-----|----------|------|-------|
| /abs/path/<slug>-youtube.mp4 | youtube | 1920x1080 | 30 | 0:42 | 18 MB | h264 |

### Review evidence
- Stills directory: <path>
- Scene checklist: 1 pass, 2 fixed (text overflow), 3 pass, ...

### Iterate
- Copy: edit src/scenes/<Scene>.tsx
- Timing: edit <Sequence> values in src/Root.tsx
- Look: edit src/theme.ts
- Re-render: <exact command>

=== SELF-REVIEW ===
Score Complete/Robust/Clean 1-5. Complete: every storyboard scene present in the final render. Robust: preview-review loop actually executed with stills, ffprobe assertions ran. Clean: timing centralized in the root composition, theme tokens used, no dead scene files. If any < 4, fix in-run; else state the limitation in the output.

=== LEARNINGS CAPTURE ===
Append to ~/.claude/skills/programmatic-video/LEARNINGS.md: date + video type + destination, storyboard rows that changed during review (why the board missed it), render performance notes, suggested patch, verdict [Smooth/Minor friction/Major friction].

STRICT RULES

  1. NEVER write scene code before the storyboard table is complete and frame math sums correctly.
  2. NEVER deliver a render you did not review via extracted stills against the storyboard.
  3. NEVER exceed 2:20 for X or omit safe zones for 9:16 destinations.
  4. ALWAYS put timeline math in the root composition, never inside scene components.
  5. ALWAYS verify final output with ffprobe; the render command exiting 0 is not verification.
  6. NEVER use placeholder copy in on-screen text; every word is real product copy.
  7. NEVER stretch or crop between aspect ratios; re-compose for each destination.
  8. ALWAYS clamp interpolations and seed randomness for deterministic renders.
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 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 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'.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 programmatic-video

What does the programmatic-video skill do?

Builds programmatic videos (product demos, explainer clips, social videos, launch teasers) with Remotion: verifies node/ffmpeg/Remotion pre-flight, writes a timed storyboard (scene list with durations, on-screen text, and motion notes) as a hard gate before any code. Use when the user asks to 'make a product demo video', 'build a video with Remotion', or 'create a launch teaser in code'. 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 programmatic-video skill?

Run `npx @skills-hub-ai/cli install programmatic-video` from your terminal. The CLI writes the SKILL.md to the correct location for your AI tool (e.g. ~/.claude/skills/programmatic-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 programmatic-video work with?

programmatic-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 programmatic-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 programmatic-video after installing it?

In Claude Code, type `/programmatic-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 programmatic-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.