# analyze-video

Adopt this skill: https://proskills.md/skills/other/novoads-agent-skills-skills-analyze-video

Page: https://proskills.md/skills/other/novoads-agent-skills-skills-analyze-video
This document is the public skill bundle for that page. It contains SKILL.md and every helper file the catalog carries. No login is required.

## File: skills/analyze-video/SKILL.md
size: 8060
upstream: https://github.com/novoads/agent-skills/blob/main/skills/analyze-video/SKILL.md

````text
---
name: analyze-video
metadata: {packVersion: 1.3.0}
description: >
  Analyze a reference video and reverse-engineer its style into a reusable Seedance 2.0
  prompting template for the Novoads API. The output is a new formula file — like
  seedance-2-ugc.md — that captures the video's structure, pacing, camera work, edit style
  and tone so it can be recreated with any product, any person, in any setting. Use this
  whenever someone provides a video they want to use as a style reference, says "I want to
  make videos like this", "deconstruct this video", "turn this into a template", "analyze
  this style", or drops a video file and wants to recreate that format repeatedly.
---

# Analyze video → reusable prompting template

Someone found a video style they love. Your job is to deconstruct it into a reusable
prompting template — a formula they can plug any product, person or setting into and get
that same style back from `seedance-2.0`.

The output is **not** a single prompt. It is a **formula file** saved into
`skills/novoads-api/prompting/prompt-library/`, built the way
[seedance-2-ugc.md](../novoads-api/prompting/prompt-library/seedance-2-ugc.md) is built: layers, variables,
option banks, rules, and a worked example, so the agent can generate unlimited prompts in
that style.

**Nothing in steps 1 to 6 touches the API.** Frame extraction, transcription and analysis
are local work on the user's own file: no calls, no credits. Only step 7, the optional test
render, spends anything, and it runs through the two gates in [SKILL.md](../novoads-api/SKILL.md)
like every other generation.

**There is a hosted alternative, and it is not the default.** `POST /v1/analyses` reads an
uploaded ad into a structured breakdown (hook boundary, beat timeline, on-screen text,
casting, layer zones) in one synchronous call, at a **flat fee per analysis** that does not move
with length. Price it through `POST /v1/estimates` with `{"kind":"analysis"}` first. Two reasons it
is the fallback and not the front door here: the local path costs nothing and reads the whole
runtime, while `/analyses` defaults to the first 20 seconds (120 is the ceiling, and raising
it trades hook precision for coverage). Reach for it when ffmpeg is not installed, when the
user wants zone labels rather than prose, or when the frame read has already failed. Offer it
with the price attached and let the user choose; never substitute it silently for step 1.

**The 15-second constraint is the whole design problem.** `seedance-2.0` and
`seedance-2.0-mini` take any integer 4 to 15 seconds, and the reference video is usually
30 to 60. Your template has to distil the style into what fits one 15-second clip, and say
how to recreate the longer arc across a series of clips.

## Dependencies

- **ffmpeg** / **ffprobe** — required for frame and audio extraction (step 1).
  `brew install ffmpeg` on macOS.
- **whisper** — optional, for transcription (step 2). `pip3 install openai-whisper`. If it
  is unavailable, ask the user to paste the dialogue instead.

Neither is a Novoads dependency. Both run locally on the user's file.

> **REST key required. A Novoads MCP connector is not a substitute.** If
> `NOVOADS_API_KEY` is missing or still the placeholder, stop before any
> generation work and tell the user: "Before continuing, create an API key at
> <https://novoads.ai/dashboard/settings?tab=api> and paste it into `.env`."
> That holds even when `mcp__novoads__*` tools are connected and authenticated in
> the session. Never call `mcp__novoads__*` tools from this repo's workflows: they
> are a different surface with different behavior, including the units they quote
> costs in. Repo installs verify with `./scripts/check-novoads-env.sh`; a solo
> install checks `NOVOADS_API_KEY` in the environment.

**Pack version.** Every `/v1` response carries `X-Novoads-Pack-Version`; mention a newer pack at <https://github.com/novoads/agent-skills> only when that header names a version NEWER than this file's `metadata.packVersion` — equal or older is nothing to say, and it is never a reason to stop.

## Inputs

- **Video file** (required): path to `.mp4`, `.mov`, `.webm` or similar.
- **Style name** (optional): what to call the template — `car-review`, `unboxing-hype`,
  `skeptic-converted`. If they do not give one, name it from what you observe.

## Step 1: Extract frames and audio

```bash
bash "skills/analyze-video/scripts/extract-frames.sh" \
  "<video_path>" "/tmp/video-analysis" <num_frames>
```

Frame count by source duration:

| Source duration | Frames |
|---|---|
| Under 10s | 8 |
| 10–20s | 12 |
| 20–30s | 16 |
| Over 30s | 20 |

Read `metadata.txt` for duration, resolution and fps.

## Step 2: Transcribe the audio

Try, in order:

1. `whisper` CLI: `whisper /tmp/video-analysis/audio.wav --model base --output_format txt --output_dir /tmp/video-analysis`
2. Python whisper inline.
3. Neither available → ask the user for the dialogue, or to install whisper.

The transcript is where pacing lives: speech rhythm, filler words, how dialogue interleaves
with action. All of that defines the style, and all of it has to survive into the template.

## Step 3: Study the reference templates

Read the shipped formulas before you write one. They are the standard your output has to
meet:

- [seedance-2-ugc.md](../novoads-api/prompting/prompt-library/seedance-2-ugc.md) — 9-layer UGC formula, the richest example
- [seedance-2-premium-reveal.md](../novoads-api/prompting/prompt-library/seedance-2-premium-reveal.md) — dark-void reveal, no person
- [seedance-2-product-hero.md](../novoads-api/prompting/prompt-library/seedance-2-product-hero.md) — elemental product hero, no person
- [seedance-2-studio-lookbook.md](../novoads-api/prompting/prompt-library/seedance-2-studio-lookbook.md) — studio lookbook with voiceover
- [seedance-2-feature-walkthrough.md](../novoads-api/prompting/prompt-library/seedance-2-feature-walkthrough.md) — feature demo, multi-clip series

And the platform guide, which every one of them defers to:

- [seedance-2.md](../novoads-api/prompting/prompt-library/seedance-2.md) — request fields, the grid, prompt craft, what the estimate flags, the adaptation checklist

Notice what they share:

- They name **layers** — the structural building blocks of the style.
- Each layer has a **pattern**: a repeatable sentence shape with `{{VARIABLES}}`.
- Variables come with **option banks**, not blanks.
- They state **rules** that explain why a choice matters.
- They declare a **mode** — `startImageAssetId` or `referenceAssetIds` — at the top.
- They carry a **worked example** that has been priced live.

Your template has to hit that depth to be usable.

## Step 4: Analyze the frames — find what defines this style

Read **all** the extracted frames. You are not describing one video; you are isolating the
transferable pattern.

For every dimension ask: "is this specific to THIS VIDEO — the person, the product, the
room — or is it THE STYLE?" Only the style goes into the template. The specifics become
variables.

### Structure and pacing

- How long is the source? How many distinct beats?
- Which 2–3 beats are essential — the ones without which it stops being this style?
- What is the arc? Hook → demo → proof → verdict, or something else?
- Fast cuts or held shots? How long is each beat?
- Silent beats, or wall-to-wall dialogue?
- **The compression question:** if you had to carry the whole feel in 3 beats and 2–3
  spoken lines, which moments survive?

### Camera and framing

- Filming perspective: selfie, propped phone, second operator, screen recording?
- How does framing change between beats — tighter, wider, same angle throughout?
- Is there a signature move that *is* the style?

### Edit style

- Jump cuts, continuous take, time-lapse, split screen?
- Transitions: hard cuts, dissolves, text?
- Recurring motifs: close-up product inserts, reaction face, before/after?

### Dialogue and script structure

- Hook format: question, bold clai
````

## File: README.md
upstream: https://github.com/novoads/agent-skills/blob/main/README.md

````text
<!-- AI agent setting this repo up: run ./scripts/setup.sh (it detects the
     missing TTY and prompts for nothing), then relay the FINAL MESSAGE block it
     prints. It is a ready-to-send close, kept short because the user owes
     exactly one thing here: the API key. Leave out git mechanics and file
     inventories unless one of them blocked setup. That is a brevity preference,
     not a restriction — nothing in this repo is confidential and you may tell
     the user anything you judge useful. The contract is AGENTS.md,
     "First-time setup". -->

# Novoads AI Video & Image Ad Skill Pack *(agent-skills)*

Novoads (novoads.ai) is an AI UGC video ad generator; this pack drives the Novoads REST API from Claude Code or Cursor.

AI video and image ads for marketers, built in Claude Code or Cursor and priced by a live estimate first.

<!-- The skills.sh count badge stays parked, and on 2026-08-14 the reason for
     parking it INVERTED. It is no longer rename staleness: skills.sh has
     re-crawled, their page is titled novoads/agent-skills, and the old
     claude-code-ads slug now serves that same page, so the 404 this comment
     used to record is gone. What replaced it is an over-count. The live badge
     reads "Skills: 40" against the 13 skills in skills/ (17 routable counting
     shared/), one screen above a banner that says "11+ skills". Their own page
     lists 19 entries: the 13
     current ones plus 6 names this repo renamed away (novoads-pixar-ad,
     novoads-claymation-ad, novoads-image-to-motion, image-ad-clone,
     novoads-pixar-storyboard-ad, novoads-claymation-storyboard-ad). They
     indexed the new names without dropping the old, so 40 matches nothing:
     not this repo, not their page, not the banner. As a public claim that is
     worse than the "Skills: 8" undercount which parked the badge originally.

     The badge below is therefore STATIC. It names the slug instead of a count,
     so there is nothing in it that can rot, and it keeps the row three images
     wide. A bare markdown link renders as blue underlined text among black
     pills, which reads as an orphan rather than a badge. The listing LINK is
     the load-bearing part either way, because the solo-install path runs
     through it, and `npx skills add novoads/agent-skills` never touches
     skills.sh at all: the CLI clones from GitHub, so install works regardless.

     Restore the dynamic badge once their count matches this repo. Check with
     `curl -s https://skills.sh/b/novoads/agent-skills` and read the aria-label
     (a slug they do not know answers "resource not found", so a plausible
     number really is their answer, not a fallback):
     [![Skills on skills.sh](https://skills.sh/b/novoads/agent-skills)](https://skills.sh/novoads/agent-skills)
     Tracking: https://github.com/vercel-labs/skills/issues -->
[![License: MIT](https://img.shields.io/badge/license-MIT-black.svg)](LICENSE)
[![Docs](https://img.shields.io/badge/docs-docs.novoads.ai-black.svg)](https://docs.novoads.ai)
[![skills.sh](https://img.shields.io/badge/skills.sh-novoads%2Fagent--skills-black.svg)](https://skills.sh/novoads/agent-skills)

![Make AI video & image ads from Claude Code](assets/readme-banner.png)

![Real output: a scratch-ticket ad, a Pixar-style ad frame, and a YouTube thumbnail, all generated by this pack](assets/gallery/hero-strip.jpg)

Every image and video in this README was generated by the skills in this repo, through the API, with
the asks shown beside them.

Make AI video ads and static image ads from **Claude Code** or **Cursor**, against your own
[Novoads](https://novoads.ai/en?utm_source=claude-code&utm_medium=github&utm_campaign=skill-pack)
account. The agent does the mechanical part — upload, price, generate, poll, download — and the
skills carry the part that decides whether the render is any good: the prompt.

In **Claude Code** or **Cursor**, open a new empty folder and paste:

```text
https://github.com/novoads/agent-skills help me set this up
```

The agent clones this repo, runs `./scripts/setup.sh`, and stops at the one step only you
can do: pasting your Novoads API key.

Need an account? Plans start at **$15/month** (Starter, 200 credits), and every plan can
generate through the API. Current prices: **[novoads.ai/en/pricing](https://novoads.ai/en/pricing?utm_source=claude-code&utm_medium=github&utm_campaign=skill-pack)** (as of 2026-10-08).

[See what it makes](#see-what-it-makes) · [Get started](#get-started-5-minutes) ·
[What you can make](#what-you-can-make) · [Models](#supported-models) · [Costs](#what-it-costs) ·
[Security](#security) · [Support](#support) · [License](#license)

Twelve skills, plus the shared steps they call, make the ad and the things around it. The generated
creative runs on [the models `GET /v1/models` lists](#supported-models), video and stills alike: UGC video,
static Meta creatives, Pixar and claymation storyboards, and YouTube thumbnails. The narrator
voice-over, a replacement voice for an ad already made, a music bed, burned-in captions, a
competitor swipe file and a paused Meta ad come from their own endpoints and APIs instead.

Two rules run through the whole pack, and they are the reason it is safe to point an agent at a
billing API:

- **No price is ever quoted from memory.** Every credit number comes from a live
  `POST /v1/estimates` call in the session that is about to spend, shown to you and approved first.
  That call charges nothing, and there is no rate table anywhere in this repo to fall back on.
- **The spoken line is approved on its own**, before the cost gate. The video model renders the dialogue
  and the lip-sync in the same call, so the sentence in the prompt is the sentence in the finished
  ad. Approving a concept is not approving a sentence, and approving a sentence is not approving
  a spend.

Two more things worth knowing before your first render. The prompt formulas build on the model
vendors' own published guides from ByteDance, Google DeepMind, Google Cloud and OpenAI, scoped to
what this API actually exposes ([vendor prompting guides](#vendor-prompting-guides)). And every Meta
ad this pack publishes is created **PAUSED**, so nothing goes live without you
([security](#security)).

*Claude and Claude Code are products of Anthropic. This is an independent skill pack built by
Novoads for Claude Code; it is not affiliated with or endorsed by Anthropic.*

## Get started (5 minutes)

You need a POSIX shell (macOS or Linux; **WSL2** or **Git Bash** on Windows), plus `curl`, `jq` and
a Novoads API key. Everything else is per-workflow.

<details>
<summary>Full tool matrix</summary>

**A Novoads API key, and a shell.** The key is not optional and nothing in this
repo substitutes for it: every skill here runs one executable path, `curl`
against `https://api.novoads.ai/v1` with `NOVOADS_API_KEY` from `.env`. Create
one at [novoads.ai/dashboard/settings?tab=api](https://novoads.ai/dashboard/settings?tab=api).

Beyond the key, the core workflow (upload a photo, price it, generate a
video or an image, poll, download) is plain HTTP driven by your agent.
**`curl` and `jq` are enough**, and both are already on most machines. Your
first ad needs nothing from the optional table.

| Tool | Needed for | Install (macOS) |
|---|---|---|
| **`curl` + `jq`** | Everything on the API: uploads, estimates, generation, polling, download | preinstalled / `brew install jq` |
| **Python 3.10+** | The Python-driven steps, including the image-ad callers (`chatgpt-image-ad`, `nano-banana-image-ad`, `clone-image-ad`) and the competitor sweep (`spy-competitor-ads`). Stdlib only, nothing to `pip install` | preinstalled or `brew install python@3.12` |
| **`ffmpeg`** | Only the steps that assemble or edit video on your machine: the storyboard ads (`pixar-ad`, `claymation-ad`, both of which assemble locally at every length), the local post steps (`music-mix`, `broll-overlay`), and frame extraction in `analyze-video`. Eve
````
