Skip to the usage guide
OpenMotion · Sale Promoby nexu-io

Sale Promo

OpenMotion Sale Promo turns a single sale offer into a punchy 10 or 15 second promo video covering the occasion, the discount, the was/now price, the code with its deadline and a call to action. It produces an editable HyperFrames project and MP4 in 9:16, 4:5, 1:1 or 16:9.

  • Sale Promo
  • OpenMotion
Sale PromoSKILL.md
Expected result An editable HyperFrames project in out/ with five beats at 10 or 15 seconds, plus a rendered MP4 in 9:16, 4:5, 1:1 or 16:9, carrying a small "Made with OpenMotion" sign-off unless --no-credit is passed. What to provide Required: brand name, occasion, product name and photo, regular price, exactly one of percent off, amount off or sale price, currency, promo code, the real end date and time with its time zone, call to action and short URL. Use the user's own product photo; if none exists, ask before generating one with openmotion_media_use and openmotion_assets_use, and get consent before any paid generation. Never invent a discount, a code or a deadline. Requirements One video carries one offer; two offers make two videos, so run the script once per row rather than combining discounts.
Read the pinned SKILL.md for the complete instructions and dependencies.

01 What It Does

How it works

OpenMotion Sale Promo turns one verified offer into an editable 10 or 15 second sale video with consistent prices, a promo code and a real deadline.

OpenMotion workflowEditable workflow and source instructions

The Working Approach

The script derives the sale price, the percentage and the saving from the regular price, so they can never disagree. The check refuses no price or more than one way to state the discount, a sale price at or above the regular price, a code that is not 3–16 capital letters or digits, a missing deadline or one already past postDate, a missing photo file, and text too long to fit; it prints the computed prices to read back to the user. The five beats run hook, discount, price, code and call to action; 15 seconds stretches every beat. theme picks a palette (black-friday, cyber-monday, holiday, new-year, light), brand.accent overrides its accent, and labels translates fixed words while prices follow locale. The film has no soundtrack.

Expected Deliverables

  • An editable HyperFrames project in out/ with five beats at 10 or 15 seconds, plus a rendered MP4 in 9:16, 4:5, 1:1 or 16:9, carrying a small "Made with OpenMotion" sign-off unless --no-credit is passed.
See the Example Brief

From Brief to Review

  1. 01
    Collect and confirm the offer

    Gather brand, occasion, product name and photo, regular price, one discount form, currency, code, zoned deadline, call to action and short URL, and read the facts back to the user.

  2. 02
    Write and check offer.json

    Follow the schema, then run node scripts/build.mjs --check offer.json and read the computed prices back to the user before generating.

  3. 03
    Generate, render and review

    Run node scripts/build.mjs offer.json out/ [--aspect 9:16] [--duration 10] [--no-credit], then npx hyperframes check and npx hyperframes render -o promo.mp4, and review a contact sheet with stills at each beat.

02 When to Use It

When to use it

Required: brand name, occasion, product name and photo, regular price, exactly one of percent off, amount off or sale price, currency, promo code, the real end date and time with its time zone, call to action and short URL. Use the user's own product photo; if none exists, ask before generating one with openmotion_media_use and openmotion_assets_use, and get consent before any paid generation. Never invent a discount, a code or a deadline.

A Good Fit

  • Black Friday and flash-sale spotsA vertical discount reveal with a struck-through old price, a promo code chip and the real deadline, ready for social placement.
  • Was/now price drops and promo-code adsA clearance or holiday offer where the computed percentage, saving and code must stay consistent across every frame.

Limits to Check

  • One offer per videoOne video carries one offer; two offers make two videos, so run the script once per row rather than combining discounts.
  • Silent by defaultThe generated film has no soundtrack; add licensed music in the editor and land the discount beat on a strong hit. When installed on its own, set OPENMOTION_HOME or run npm install gsap.

Bring These Inputs

  • What to provideRequired: brand name, occasion, product name and photo, regular price, exactly one of percent off, amount off or sale price, currency, promo code, the real end date and time with its time zone, call to action and short URL. Use the user's own product photo; if none exists, ask before generating one with openmotion_media_use and openmotion_assets_use, and get consent before any paid generation. Never invent a discount, a code or a deadline.

03 Decisions That Matter

Design decisions

  1. Every number derived from the regular price

    Computing the sale price, percentage and saving from one source value means a promo can never show figures that disagree with each other.

  2. Strike first, then land the new price

    The regular price is struck through before the sale price counts down, so the drop reads as a change rather than a static label.

  3. One continuous world instead of slides

    The product photo stays on screen throughout, reframing into a card and opening back out, while a diagonal sale tape and spinning badge carry the offer.

04 Try a Focused Brief

Try it with your own brief

Use the example as a starting point. Supply your own brief, materials and constraints.

Collect and confirm the offer

Gather brand, occasion, product name and photo, regular price, one discount form, currency, code, zoned deadline, call to action and short URL, and read the facts back to the user.

Upstream Source File
https://github.com/nexu-io/openmotion/blob/709b10fd9ac5e33f996e035361cbb365d7ff79ae/library/skills/openmotion-sale-promo/SKILL.md

Write and check offer.json

Follow the schema, then run node scripts/build.mjs --check offer.json and read the computed prices back to the user before generating.

Example Brief
Use openmotion-sale-promo for a Cyber Monday spot. Brand: [brand name]; occasion: Cyber Monday; product: [product name] with photo [attach file]; regular price 120 USD; discount 25% off; code CYBER25; deadline 2026-12-01T23:59:00-05:00; postDate 2026-11-28T09:00:00-05:00; CTA "Shop now"; short URL [url]. Write offer.json, run `node scripts/build.mjs --check offer.json`, show me the computed prices to confirm, then generate `out/` at 9:16 for 10 seconds and render promo.mp4.

Generate, render and review

Run node scripts/build.mjs offer.json out/ [--aspect 9:16] [--duration 10] [--no-credit], then npx hyperframes check and npx hyperframes render -o promo.mp4, and review a contact sheet with stills at each beat.

  • The printed computed prices, percentage and saving match the confirmed offer, and the code is 3–16 capital letters or digits with a deadline after postDate.
  • The product photo is the user's own or was generated with consent, and the aspect ratio and duration suit the placement.
  • The advertiser's brand leads the film, the sign-off is present unless --no-credit was requested, and the review guide was walked rather than self-certified.

Keep your brief and source assets together in OpenDesign, and follow the linked Skill’s own setup.

05 Source and License

Source and license

This page describes the pinned source revision linked below. Upstream behavior and requirements can change.

Source Owner
nexu-io
License
Apache-2.0
Reviewed Snapshot
2026-11-19 · 709b10fd9ac5
Editorial Source Summary
Turn one verified offer into a 10 or 15 second editable sale promo with consistent price calculations. Check offer.json first; derive all prices, then build five beats for 9:16, 4:5, 1:1 or 16:9.

Read the pinned SKILL.md for the complete instructions and dependencies.

06 Questions Before You Start

Questions before you start

Why does the check reject my promo code?

Codes must be 3–16 capital letters or digits. Shorten, lengthen or uppercase the code in offer.json and re-run the check.

Can one video show two different offers?

No. One video carries one offer; two offers make two videos, so run the script once per offer row.

What if the user has no product photo?

Ask before generating one with openmotion_media_use to discover providers and model IDs, then openmotion_assets_use, and get consent before any paid generation.

OpenDesign

Sale Promo

Keep your brief, source material and design work together in a local workspace. Check the skill’s own setup before adding it to your workflow.

Upstream Source File
https://github.com/nexu-io/openmotion/blob/709b10fd9ac5e33f996e035361cbb365d7ff79ae/library/skills/openmotion-sale-promo/SKILL.md