Skip to content
Back to skills

motion-promo-reels

ASecurity

Promotional videos with motion graphics, music and optional voice-over generated by code (canvas + ffmpeg + numpy) for a person, website or online store — one video or a batch per product, built on real data and a clever, self-referential gag. Every video gets its own construction plan (scenes, layouts, transitions, theme, hook, music style, sound effects) so fifty reels don't look or sound alike.

  • 8 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 7, 2026
ai-agentspythonrustgoshellnodeawsapi

Works with

  • terminal
  • cli
  • api

Security analysis

A92/100
  • mediumInstalls packages at runtime which could introduce malicious dependencies

Pro scans all 15 files and shows the line behind each finding

Scanned November 7, 2026

npx -y skills add david-d2c2/motion-promo-reels --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of motion-promo-reels?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for motion-promo-reels
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/david-d2c2-motion-promo-reels/badge)](https://www.skillsdirectory.com/skills/david-d2c2-motion-promo-reels)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: motion-promo-reels
description: Promotional videos with motion graphics, music and optional voice-over generated by code (canvas + ffmpeg + numpy) for a person, website or online store — one video or a batch per product, built on real data and a clever, self-referential gag. Every video gets its own construction plan (scenes, layouts, transitions, theme, hook, music style, sound effects) so fifty reels don't look or sound alike.
---

# Promotional reels with code-generated motion graphics

15–30 second videos generated entirely by code: 2D canvas → frames → ffmpeg, with audio synthesized in numpy. No video templates, no After Effects, no third-party music. It covers three cases:
- a person or personal brand (16:9);
- a handful of products (9:16);
- a store's entire catalog (9:16, dozens or hundreds of videos).

**Guiding principle: nothing made up.** Every figure, price, color or feature shown in the video comes from a verified source: website, store API, product page or project documents. If something can't be confirmed, flag it as pending and say so.

This package ships three complete templates in `${CLAUDE_SKILL_DIR}/templates/` and their shared engine in `${CLAUDE_SKILL_DIR}/core/` (in chat on claude.ai: `templates/` and `core/`, next to this file). **Create the project from the closest template and adapt its data** instead of rebuilding the engine (section 4). `templates/README.md` lists what to change in each one.

Write all on-screen copy in the language of the brand's audience, and reply to the user in their language. Fixed interface strings ("from", "colors", "NOT HIM"…) are overridden through the template's `textos` block, never by editing the engine. Match the person's gender in `no_es`.

## Quick path (any model)

The templates do the hard work; you only edit data files and run commands. Follow these steps in order and **do not continue past a step that reports an error** — read the message, fix exactly what it says, run it again.

1. Create the project (template names in section 0): `node ${CLAUDE_SKILL_DIR}/core/nuevo.js catalogo|producto|persona <folder>`, then inside the folder: `npm install`. It refuses a folder that isn't empty. Without a shell, copy `templates/<template>/` plus every file in `core/comun/` (and `core/9x16/` for the two 9:16 templates) into one folder.
2. `node comprobar.js` → must end with `OK`. It checks Node, ffmpeg, Python (numpy, scipy), Chrome and the data, and every error says where it is, what is wrong and how to fix it.
3. Edit **only** the data: `productos.json` (+ `config.json` for a catalog) or the `CFG` block at the top of `anim.html` (person). Real data only (section 1). Gag and hook: section 2.
4. The look (section 3a): if the request says nothing about tone, ask **one** question; then `node variar.js --preferencias ...`. Voice-over is optional (section 3c): ask before installing anything.
5. `node variar.js` (person: `node variar.js 3`) → plans; read `VARIACION.md`.
6. Review frames: `node render.js all --hoja` (person: `node render.js hoja`) → **open `out/hoja_01.jpg` and look at it**. Fix text that overflows or overlaps (section 6).
7. Final videos: `node render.js all` (person: `node render.js video promo_A.mp4 --version A`). `render.js` validates the data again and stops with a clear message if something is wrong.
8. Deliver (section 7).

Never edit `motor.html`/`anim.html` engine code or the shared engine files (`sonido.py`, `variacion.js`, `voz.js`, `comprobar.js`…) to make data fit: change the data, or the `textos`/`variacion` blocks. A project made with an older version: `node ${CLAUDE_SKILL_DIR}/core/nuevo.js --actualizar <folder>`.

## 0. Pick the case

| Case | Template | Format | Length | Gag unit |
|---|---|---|---|---|
| Person or personal brand | `persona-16x9` | 1920×1080 | 27 s | One, hand-written; A/B/C versions on demand (3b) |
| Website or service | `persona-16x9`, adapted | 16:9 or 9:16 | 20–30 s | One, hand-written |
| A few products (≤10) | `producto-9x16` | 1080×1920 | 15.5 s | One per product, hand-written; construction varies per reel (3b) |
| Catalog (dozens to hundreds) | `catalogo-9x16` | 1080×1920 | 15.5 s | **One per category**, with 2–3 phrase variants that rotate, filled from each product's data; every reel gets its own construction plan (section 3b) |

If the user doesn't specify, use 9:16 for products and say so in one line.

## 1. Research (before writing a single line of script)

Sources, in order:
1. **The project folder, if there is one.** Read `CLAUDE.md`, `AGENTS.md`, decision logs, reports and social-media plans. That's where brand and copy rules live (e.g. "no third-party brand names", "informal tone", "no empty superlatives"), along with design tokens, moderation rules and legal notices (AI labelling). **These rules override any creative idea.**
2. **The official website.** Hero, services, stats, method, stack, credentials. On a JS-heavy site, use a browser and read `document.body.innerText` section by section.
3. **Online stores:**
   - WooCommerce: `/wp-json/wc/store/v1/products?per_page=100&page=N` and `/products/<id>`. Prices are in cents. `prices.price_range` with min ≠ max → "from"; `on_sale` + `regular_price` → struck-through price; `attributes` (colors, sizes, measurements); `description` (often with structured bullet lists); `permalink`.
   - Shopify: `/products.json` and `/products/<handle>.json`.
   - **Never guess slugs or URLs:** read them from `permalink`.
4. **Web search.** Useful for people, but common names return namesakes. If that happens, turn it into script material (see section 2) instead of hiding it.
5. **Photos:** local project files first. Cloud sandboxes often can't download from the store; don't keep retrying. Either use local photos or draw the product in code (stripes, satin waves and simple shapes look better than you'd expect).

Write down the date you read the data: prices go stale.

## 2. Concept: the gag

**A gag is a real property of the product or person, turned into something the video itself does.** It is not a joke pasted on top. Example mechanics, all implemented in the templates (gag ids are Spanish in the code):

| Mechanic | Real property | What the video does |
|---|---|---|
| `invisible` | Transparent, hidden, discreet | An empty frame: "There's a case here. Can't see it? Of course not, it's transparent." The screen then unzips like a zipper. |
| `contador` (counter) | A big quantity (metres, hours, units) | "This reel lasts 15 s. This roll, 50 m. You won't have time to use it up." A counter runs. |
| `diagonal` | Bias cut, stripes or a diagonal design | The text tilts 45° and stripes cross the screen. |
| `brillo` (shine) | Glossy or satin finish | "This text is matte. / This one shines." (with a sheen) |
| `cortar` (cut) | No laces, no cables, no ties | Two threads hold the text up, get cut, and the text stays put. |
| `elevar` (lift) | Platform, push-up, height | The text rises on a "cushion". |
| `secuencia` (sequence) | Many sizes, widths or variants | The real variants flip one by one: "Here, from E to H." |
| `quitar` (remove) | "Without X" | Two rings get drawn and fly off: "Gone." |
| `ritmo` (rhythm) | Sport, movement | Words land on the beat. |
| `reordenar` (rearrange) | Multi-use, convertible | Two lines switch position: parallel, crossed, V-shape. |
| `patron` (pattern) | Embroidery, print, lace | A decorative pattern draws itself. |
| `calma` (calm) | Sensitive categories (health, post-surgery, maternity…) | No gag, no sound hits, no percussion: a serene tone. |
| `homonimos` (namesakes, person) | A common name on Google | `investigar("Name")` shows the namesakes crossed out with "NOT THEM", then "SOURCE FOUND". |

Rules:
1. One **real, verifiable** property.
2. Three lines: setup, twist, punchline (the punchline in italics or the accent color).
3. **The punchline must not be false.** If the product page doesn't say it, don't claim it. Conditional phrases (`si`/`sino` in the config) let a punchline appear only when the description backs it up.
4. **A fixed self-referential element across the whole video**, tied to the industry: a HUD with timecode and frame counter (tech), a stitch line with a stitch counter (crafts, textiles), a tape measure that "measures" the reel (fashion, sizing). Pay it off in the outro ("This reel measures 15.5 s. One size fits all.").
5. **Never joke about bodies.** Sensitive categories use `calma`. Also check that no abstract drawing could read as a body silhouette.
6. No empty superlatives, no comparisons with competitors.

## 3. Structure

**9:16 product (15.5 s at 30 fps = 465 frames)**

| Scene | Time | Content |
|---|---|---|
| Hook | 0–3.0 | The gag |
| Product | 3.0–5.6/5.8 | Name + photo with a bounce (or a procedural drawing, or a placeholder card) |
| Range | ~2.8 s | Real color count, or range (sizes), variants and colors with their names |
| Facts | ~2.6 s | Three facts from the product page, with animated checkmarks |
| Price | ~1.8 s | Real price, "from" or sale, tax note if it applies |
| Outro | 13.2–15.5 | Logo or brand, website in a pill, shipping or CTA, and the closing wink |

In both 9:16 templates the three middle scenes change order and layout per reel; each scene keeps its duration and the total is always 15.5 s (see 3b).

**16:9 person or brand (27 s):** terminal → namesakes crossed out with a glitch → drop (source found + headline) → stats with counters → method in phases → tool stack marquee (freezes on a self-referential item: "↑ that's me") → "THIS VIDEO: 0 templates · N lines of code" (real count) → the person's quote → outro with monogram, name and CTA.

## 3a. Choosing the look

The format comes from the template (products 9:16, person 16:9); a format a template doesn't have means adapting the engine by hand — say so in one line. Everything else is chosen per video by the planner; the user only steers it:
- the request already says it ("calm music", "dark background") → translate it, don't ask;
- it says nothing about tone → ask **one** question (music calm/energetic/elegant/doesn't matter · colors light/dark/mixed · effects subtle/playful/doesn't matter);
- the user asks what can be chosen → `node variar.js --opciones`.

Then `node variar.js --preferencias musica=tranquila efectos=sutiles colores=claro movimiento=suave`. Brand rules beat preferences. Full word → option table: **[references/look.md](references/look.md)**.

## 3b. Variation: no two videos built the same way

Every video gets a **plan** (scene order, layouts, transition, theme, text entrance, hook variant, music style, tempo, key, seed, sound-effects pack) chosen by a seeded planner that keeps it away from the videos published just before it. Engine, audio and contact sheets all read that plan.
- Batches: `node variar.js` → `plan` in each product, report in `VARIACION.md`. Person: `node variar.js 3` → A/B/C in `versiones.json`.
- Existing plans are kept; `--temporada <name>` re-plans everything; `"manual": true` locks a video; no plan = v1 look.
- What never varies: the signature element, the closing card and the key instants the audio is synced to.

Axes per template, scoring, hooks, themes and contrast, sensitive categories, music styles: **[references/variation.md](references/variation.md)**.

## 3c. Voice-over (optional)

Without `locucion.json` (or with `"proveedor": "ninguna"`) nothing changes. **If the user wants a voice and none is set up, ask before installing anything** — one question: *No voice* · *Free and local (Piper, ~240 MB once, offline after)* · *ElevenLabs (paid, needs their key)* · *Voicebox (if they use it)*. Only after an explicit yes: `node voz.js --instalar piper es` (or `en`).
- The narration says only what is on screen, like the visuals.
- Keys never go in the project, logs or chat (env var or `~/.config/motion-promo-reels/env`).
- Keep the "Voz generada con IA" label unless the user decides otherwise; cloned voices only with the owner's consent.

Providers, script rules, placement, cost cap and cache: **[references/voice-over.md](references/voice-over.md)**.

## 4. Engine

The skill keeps each template once in `templates/` and the shared engine once in `core/` (`comun/` for all three, `9x16/` for the vertical ones). `node core/nuevo.js` puts both together in the project folder, so a project never depends on where the skill is installed. A project looks like this:

```
<project>/<reels-folder>/
├── METODO.md        method, rules and checklist (for humans)
├── CLAUDE.md        status and to-dos (for the next session)
├── config.json      (catalog) store, attributes, labels, palette and categories → gag + phrases
├── productos.json   brand + one block per product
├── motor.html       1080×1920 or 1920×1080 canvas; window.renderFrame(f) is DETERMINISTIC
├── render.js        (9:16 from core; person has its own) puppeteer-core → one JPEG per frame → ffmpeg image2pipe; then audio and mux
├── audio.py         numpy/scipy synthesis using the SAME cue table as motor.html
├── catalogo.js      (catalog) API → product sheet: gag, phrase variants, facts, brand stripping
├── extraer.js       (catalog) downloads catalog and photos with a browser UA and pauses; REVISAR.md; then plans
├── .motor.json      engine version + fingerprints (core/nuevo.js --actualizar reads it)
├── variacion.js     (all, core) shared by browser and Node: profiles, options, color themes + contrast, timeline, planner
├── variar.js        (all, core) plans each product, or the A/B/C versions of a person video → VARIACION.md
├── hoja.py          (all, core) contact sheets: one row per video, one frame per scene
├── versiones.json   (person) the versions written by `node variar.js 3`
├── sonido.py        (all, core) music styles, sound-effect packs, voice ducking and mix; audio.py only says WHEN
├── voz.js           (all, core) voice-over: script, providers, cache, cost cap, placement, .srt
├── comprobar.js     (all, core) checks environment and data with fix-it messages; render.js runs it first
├── locucion.json    (all, optional) voice-over settings
├── variacion.json   (all, optional) options the brand allows (styles, themes, transitions…)
├── fonts/           local woff2 + their license (fontsource: `npm pack @fontsource/<family>@<version>`)
├── img/             local photos
└── out/             final videos
```

Determinism, rendering, mux and audio internals: **[references/engine.md](references/engine.md)**. Update an existing project's engine without touching its data: `node ${CLAUDE_SKILL_DIR}/core/nuevo.js --actualizar <project>` (it leaves alone any engine file the user edited and says so).

## 5. Catalog data

The catalog template turns store data into reels without inventing anything: display names without stripped brands, facts from the description bullets, trimmed at natural breaks, real color names, `REVISAR.md` for anything doubtful. Rules and the extractor workflow: **[references/catalog-data.md](references/catalog-data.md)**. Test the transformation against the real catalog before trusting it.

## 6. Quality control (mandatory before delivery)

0. `node comprobar.js` ends with `OK`.
1. Run `node render.js all --hoja` (or `node render.js hoja` for person versions) and **look at the contact sheets of the whole batch**: if two consecutive rows look alike, the batch looks alike. Check `VARIACION.md` too (minimum distance between neighbours, pairs with the same construction: should be 0).
2. Render stills for every scene, build a contact sheet with PIL (not `xstack` with many inputs: ffmpeg can crash) and **look at it**. Check for:
   - overlapping text or truncated phrases;
   - accents on large headlines colliding with the line above;
   - elements intruding on another line;
   - letters vanishing under an overly white sheen;
   - empty "—" blocks when an attribute is missing;
   - empty lower halves in vertical format (the catalog's range layouts center themselves on what they actually show);
   - in every theme: dark swatches on a dark background, accent text on an accent background.
3. 9:16 safe zones: nothing important above ~250 px (Reels UI) or in the last ~320 px (caption). Only the decorative element goes down there.
4. Data: today's prices, "from" when there's a range, sales that may expire, unconfirmed units (flag them), verified URLs.
5. Legal and moderation:
   - Photos with AI-generated or AI-modified people → a visible label in the video (EU AI Act, art. 50; `ia.mostrar_si_foto` in the config). Disclose it when publishing too.
   - Products shown on the body: full photo, catalog style, no aggressive crops, little screen time.
   - Never promise returns or warranties that don't apply.
6. Audio: `ffmpeg -af ebur128` → about −14 LUFS. Check duration and resolution with `ffprobe`. With voice: read the warnings `render.js` prints (speed-up, dropped or late lines) and check the `.srt`.

## 7. Delivery

- When working on the user's machine, write everything into a subfolder of their project and keep the line endings of any file you edit. **Don't touch existing `CLAUDE.md` files or documents:** create your own inside the subfolder.
- `METODO.md`: what's there, how to run it, where each piece of data comes from, brand rules applied, how to add a product or a gag, a pre-publishing checklist and known limits.
- The subfolder's `CLAUDE.md`: status, to-dos and non-negotiable rules, in a few lines.
- Show the videos and summarize: the gags (one per line), where everything lives, the command to regenerate, and any data still to confirm.

## Common mistakes (avoid them)

- Guessing product slugs. Read them from `permalink`.
- A rotated-text gag that runs over the following lines: reposition the lines when the text rotates.
- A satin sheen that's too white eats letters. Use a light brand tone, not pure white.
- Swatch gradients whose color stops collapse leave diagonal bands. Use a separate, clipped sheen layer instead.
- A struck-through price on a product with a price range: use "from" + a sale badge, without the strike-through.
- Units missing from the product page (e.g. measurements without "cm"): omit them or flag them for confirmation.
- Abstract shapes that together suggest a body silhouette: replace them with unambiguous figures.
- One hook per category: with 30 products in a category, 30 reels open with the same sentence. Write variants and let them rotate.
- Picture tempo and audio tempo defined separately (v1's `ritmo` gag dropped words at 112 BPM over a 96 BPM kick). Both must read the plan's tempo.
- Tinting a light photo with a dark theme to make a backdrop: it turns grey. Lay the blurred photo over the theme color at low opacity instead.
- Labels anchored to an element that can sit at the screen edge (the "that's me" note in the stack grid): clamp them to the margins.
- Hard-coded `rgba(...)` colors scattered through an engine: they make palettes impossible. Use tokens from the start.
- One music loop for every video, with only the tempo or timbre changed: it still sounds like the same video. Change instruments, drums and arrangement (styles), not just parameters.
- A voice-over that reads text not shown on screen, or invents a claim to sound better. The narration is held to the same rule as the visuals.

Files in this skill

  • CHANGELOG.md12 KB
  • README.es.md12.9 KB
  • SKILL.md19 KB
  • assets/versiones.jpg83.5 KB
  • core/VERSION6 B
  • core/nuevo.js6.2 KB
  • install.ps13.2 KB
  • install.sh3 KB
  • references/catalog-data.md1.4 KB
  • references/engine.md3.7 KB
  • references/look.md2.6 KB
  • references/variation.md5.7 KB
  • references/voice-over.md3.5 KB
  • templates/README.es.md14.8 KB
  • templates/README.md14.6 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.