Makes a short vertical ad for an app or a site out of the user's own screen recording, on the Novoads REST API: one of Novoads' faces copies a hook move and says one line, then the recording plays, joined on the server with captions and a music bed if wanted. Use when the user HAS a screen recording: "an ad from my screen recording", "turn this app demo into an ad", "a hook before my demo", "a face says one line and then my app plays", "UGC ad for my SaaS, here is the screen capture". The fac...
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Hook App Ad?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/novoads-hook-app-ad)
---
name: hook-app-ad
metadata: {packVersion: 1.9.0}
description: >-
Makes a short vertical ad for an app or a site out of the user's own screen recording, on
the Novoads REST API: one of Novoads' faces copies a hook move and says one line, then the
recording plays, joined on the server with captions and a music bed if wanted. Use when the
user HAS a screen recording: "an ad from my screen recording", "turn this app demo into an
ad", "a hook before my demo", "a face says one line and then my app plays", "UGC ad for my
SaaS, here is the screen capture". The face and the move come from a fixed list by id, never
from a photo or clip of a real person. Prices every step with a live estimate before it
spends. Not for an ad with no recording, a UGC ad about a product, or a longer script said by
an actor (novoads-api); not for rebuilding someone else's video ad (clone-video-ad); not for
moving a still picture (image-to-motion).
---
# Hook and app recording ad
A short ad for an app, in two parts that the server joins:
1. **The opening**, about four seconds, `9:16`, with sound. One of Novoads' faces copies the move of
one of Novoads' hook clips and says one line. You pick the face, the move and the line; the prompt
is written on the server. No file goes in.
2. **The user's own screen recording.** It plays right after the last word, so the ad cuts from the
line to the app doing what the line promised.
Everything that spends is priced with `POST /v1/estimates` and approved first. The line has its own
approval, separate from the price.
**This skill owns the order and the craft. The HTTP mechanics belong to the pack:** auth, strict
bodies, status codes, rate limits and error envelopes are in
[`../novoads-api/SKILL.md`](../novoads-api/SKILL.md) and
[`reference.md`](../novoads-api/reference.md). This file names the endpoints and the fields this ad
needs.
## If `../novoads-api/` is not on disk
Then this skill was installed on its own from skills.sh and the rest of the pack stayed behind. Fetch
each missing file from `https://raw.githubusercontent.com/novoads/agent-skills/main/<path>`, where
`<path>` is `skills/novoads-api/SKILL.md` or `skills/novoads-api/reference.md`. Or take everything at
once with `git clone https://github.com/novoads/agent-skills.git`. That install has no
`scripts/check-novoads-env.sh` either, so set `NOVOADS_API_KEY` in the environment yourself and let
the first call report the key.
## Before anything
- **Base URL:** `https://api.novoads.ai/v1` (host overridable with `NOVOADS_BASE_URL`, host only).
- **Auth:** `Authorization: Bearer $NOVOADS_API_KEY`, read from `.env` at the repo root.
- **Check:** `./scripts/check-novoads-env.sh`. If it is missing, run `./scripts/setup.sh`.
- **Never** print API keys, commit `.env`, or paste a key into `MASTER_CONTEXT.md`.
> **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 tools and behavior.
> 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.
A `401` means the key is wrong, revoked, or from another account. A `403` with
`error.details.reason` of `plan_required` or `subscription_inactive` means the key is fine and the
account has no live subscription: plans are at <https://novoads.ai/pricing>. No account yet:
**<https://novoads.ai/?utm_source=claude-code&utm_medium=github&utm_campaign=skill-pack>**
**Check that this deployment offers it, before you ask for anything.** The document is large, so ask
it this way and never by reading the page (a reader that cuts it short says "absent" about a path
that is there):
```bash
curl -sS https://api.novoads.ai/v1/openapi.json \
| jq '.paths | has("/hooks") and has("/videos/hooks") and has("/assemblies")'
```
`false` means it is not offered yet. Say so in one line, offer what `novoads-api` makes today (a UGC
video, with their recording joined by `POST /v1/assemblies` if they have one and that path is there),
and stop there unless they want it. An opening made another way is a different ad: never call it this
one.
## What the user must bring, and what is refused
| | |
|---|---|
| **Their screen recording** | MP4 or MOV, up to 100 MB, of their own app or site, or of a product whose owner agreed. Vertical fills the ad. With the opening it must stay under 180 seconds, so keep it under 175. A WebM can be stored too, and step 1's check says whether it can be read. Any other format is refused at the upload: ask for an MP4 or a MOV |
| **One promise** | What the app really does, in the user's words. A number only if they gave it |
| **Never a real person** | The face is one of Novoads' own, by id from `GET /v1/hooks`. A photo, a clip, a celebrity or a "make it look like" ask is not possible here. Say so in one line and offer the faces |
| **Never a file for the opening** | The opening is made from a line and ids. It takes no picture, style, logo or background |
## The flow
1. [The recording, stored and checked](#1-the-recording), which spends nothing.
2. [The face, the move and the line](#2-the-face-the-move-and-the-line), which spends nothing.
3. [Gate 1: the line](#3-gate-1-the-line), approved on its own.
4. [Gate 2: the price](#4-gate-2-the-price): every paid call, one total, one yes.
5. [The opening](#5-the-opening), paid.
6. [The word check](#6-the-word-check), paid.
7. [The ad put together](#7-the-ad-put-together), paid.
8. [Hand over](#8-hand-over).
Log each `202` and each charged `200`: one line in `logs/novoads-api.jsonl` with its `jobId` and
`creditsCharged` (the format is in [`logs/README.md`](../../logs/README.md)). The job
ids are read from there after a crash, and the charges from the jobs. Poll every job with `GET /v1/generations/{jobId}` every 15 seconds
until `succeeded`, `failed`, `blocked` or `canceled`.
### 1. The recording
Ask for the file, what the app does in one sentence, who it is for, and the ad's language.
**No recording yet:** say how to make one (record the phone's screen, or the browser window, doing the
one thing the line will promise, notifications off, nothing private on screen). If they cannot, offer
the opening alone (this skill, to step 6), or a UGC video with `novoads-api`. Do not stop without an
offer.
Store it once and check it, both before any price:
```bash
# the exact size in bytes, and the type
F=path/to/recording.mp4
BYTES=$(wc -c < "$F" | tr -d ' ')
TYPE=video/mp4 # video/quicktime for a .mov, video/webm for a .webm
curl -sS -X POST https://api.novoads.ai/v1/uploads \
-H "Authorization: Bearer $NOVOADS_API_KEY" -H "Content-Type: application/json" \
-d "{\"contentType\":\"$TYPE\",\"sizeBytes\":$BYTES}"
# it answers assetId, uploadUrl and headers. PUT the bytes with those headers copied exactly:
curl -sS -X PUT -H "Content-Type: $TYPE" -H "Content-Length: $BYTES" --data-binary @"$F" "$UPLOAD_URL"
```
Keep the `assetId`: the next ad can use it again. If a later call cannot find it, store the file
again. Then the free check, with the recording alone:
```bash
curl -sS -X POST https://api.novoads.ai/v1/estimates \
-H "Authorization: Bearer $NOVOADS_API_KEY" -H "Content-Type: application/json" \
-d '{"kind":"assembly","clips":[{"assetId":"ASSET_ID"}],"aspectRatio":"9:16"}'
```
A `400` here names the file's problem: say it plainly, ask for another file, and nothing was charged.
A price back means the recording can be read. Settle these while it is free:
- **Its shape.** A vertical recording fills the ad. A phone's own is taller than `9:16`, so about a
tenth of its height is trimmed at each end, where an app's tab bar often sits: if something there
matters, ask for an export at `9:16` first. A wider recording, a computer's or a tablet's, plays
at full width over a blurred copy of itself.
- **Its end.** A recording in a phone's own tall shape (narrower than `9:16` by more than 8%) loses its
last 1.5 seconds, where the phone shows what stopped it, and keeps a last word said there. It goes
by the shape, so one whose end was already cut in Photos loses that moment of the app too. Any other shape keeps
its end: an export at `9:16`, a computer, a tablet, a phone held sideways or with a home button. Ask
two things: does the app's part run until the recording was stopped, and was its end cut already? If it
ends sooner, if its end was cut already, or if one that keeps its end stops on a menu, send `outSeconds`:
the second the app's part ends (for one whose end was cut, its length rounded down to a tenth, because
past the end of the file is refused).
- **Its start.** Trim with `inSeconds` only when they ask.
- **Its own sound stays in the ad,** turned down to the opening's level when it is louder, and a voice
on it is read by the captions. Say so. Not wanted: `"ownSound":0` on the recording's clip.
### 2. The face, the move and the line
```bash
curl -sS https://api.novoads.ai/v1/hooks -H "Authorization: Bearer $NOVOADS_API_KEY"
```
The answer has `faces` (each with its name and a picture link), `hooks` (each with what the person in
it does, and a preview link), `defaults` (the face and the move already picked), `lineLimits` (the
most words and characters a line holds, **per language**), and the sizes. The links last as long as
`urlsExpireInSeconds` says. The list can change, so never keep one from memory.
Show each face as a numbered choice with its name **and its picture**, and each move in words **with
its preview**, downloaded or linked. Then ask once. Call a face by its name and a move by what the
person does, never by the person in the preview: that is another face, and the ad shows the face the
user picks.
**Match the move to the line.** A close move fits a confession, a shocked look or a finger pointing
down (it hands over to the recording) fits a result, a palm to the lens fits a warning, a hand to the
glasses in a car fits a casual find. The descriptions from `GET /v1/hooks` are the truth; these are how
we use them.
**The languages are the ones `lineLimits` lists.** Any other language cannot be made: say so and make
nothing. Never send a line in a language `lineLimits` does not list under another language's code to
get past the refusal: the server does not read what language the words are in, and the take is charged.
**Write the line.** One thought, said to "you", in the ad's language as a native speaker says it. It
is written for that language, never translated word for word. The pain it ends or the result it gives;
never the brand first, because the viewer does not know the name yet and the recording shows it. No
list, no second sentence, no invented number, and no claim the app cannot keep. Plain words only: the
API drops emoji and double quotes, and refuses words in brackets, parentheses, braces or asterisks
before any charge, because they read as stage directions. A coined name is left out, or spelled as it
sounds, in letters.
Examples, in three patterns: a confession ("Nobody told me about this app."), a result ("My fridge
planned dinner all week."), a warning ("Stop wasting the food you bought.").
### 3. Gate 1: the line
Write three lines within `lineLimits` for the ad's language, and **count both the words and the
characters of each** before you show it. A number counts as the words it takes to say. A line the
user typed is one of the three, held to the same limits. Show them in one block and ask for an
explicit approval:
```
The line (please confirm before I price anything)
1. "…" (N words, N characters)
2. "…"
3. "…"
Face: [name] | Move: [what they do] | Language: [language] | within the limits: yes
Which line? (1, 2 or 3, or tell me what to change)
```
The approved line is sent word for word, and step 6 checks what was said. Changing it later means
paying for the opening again, and a new line goes through this gate again. An approval of a price is
never an approval of the line, and the other way round.
### 4. Gate 2: the price
Ask once whether they want captions (and the style, from `GET /v1/caption-presets`, or none) and music
under the ad. Pick the style here: it is what the price is for. A style of the `look` tier is not taken
in the put-together: price the put-together without captions, and
`{"kind":"caption","preset":…,"assetId":…}` on the recording beside it, priced again on the finished
ad before it is spent (step 7). Then price everything the plan needs,
in one go:
| Estimate | Body |
|---|---|
| The opening | `{"kind":"hook"}`, or `{"kind":"hook","resolution":"1080p"}` when they asked for the bigger size (then price both) |
| The word check | `{"kind":"transcript"}`, the minimum, since no file exists yet |
| The put-together | `{"kind":"assembly","clips":[{"assetId":…}],"aspectRatio":"9:16"}`, plus `"captions":{"preset":…}` when they chose them. The recording alone, since the opening does not exist yet; the real call is priced again before it is spent |
| Music, if wanted | `{"kind":"music"}` |
**Add the parts up and compare the total with the balance.** Each estimate answers only for its own
call, so a balance that covers each part can still be short of the total. If it is, say by how much,
give the link (the estimate's `topUpUrl`, or <https://novoads.ai/dashboard/billing>), offer the smaller
size priced the same way if they asked for the bigger one, and spend nothing until the total is
covered.
Show each amount, the total, the balance and how many such ads it covers. One yes covers the whole
plan, except a step the user changes. Never offer a price below the estimates, and never quote a
number from this file or from memory.
### 5. The opening
```bash
curl -sS -X POST https://api.novoads.ai/v1/videos/hooks \
-H "Authorization: Bearer $NOVOADS_API_KEY" -H "Content-Type: application/json" \
-d '{"line":"…","language":"en","faceId":"…","hookId":"…","idempotencyKey":"a-new-key-for-this-take"}'
```
Add `"resolution":"1080p"` only when they chose the bigger size: without it the take is the default
size. It answers `202` with a `jobId`, charged now; the wait is minutes. A **new key for each new
take**. On a retry of the same call send the **same key**: it answers the first take and charges
nothing, for 24 hours. After a timed-out call, look in `GET /v1/generations` before sending anything
new.
Read `line` in the answer: the words as the face will say them, with emoji and double quotes taken
out. If it differs from the approved line, show both.
### 6. The word check
```bash
curl -sS -X POST https://api.novoads.ai/v1/transcripts \
-H "Authorization: Bearer $NOVOADS_API_KEY" -H "Content-Type: application/json" \
-d '{"jobId":"JOB_ID"}'
```
Show where the words differ from the approved line, the app's name and any number first. Keep the end
of the last word and the take's `durationSeconds`, in seconds: the opening is cut **0.1 to 0.2 seconds**
after that word, so the word is whole and no silent face waits before the app. Save the take in
`outputs/<name>/` (`GET /v1/generations/{jobId}/watch` needs the key) and have the user watch it: the
face, the mouth, the move.
**A take that missed is a new paid take.** Price it, ask, and change one thing only: the line, the face
or the move. Spelling a name as it sounds is one change. A new line goes through Gate 1 again. Never
three at once.
### 7. The ad put together
**Music first, if they wanted it:** `POST /v1/music` with `{"prompt":"<the feel and tempo, never a real
song or artist>","instrumental":true,"idempotencyKey":"…"}`, polled to `succeeded`. One charge makes
two tracks, both in `audio[]` with their links: give both to the user to pick one.
**Then price the real put-together with the opening in it**, and wait for a yes if the number moved:
```json
{"kind":"assembly","clips":[
{"jobId":"TAKE_JOB","outSeconds":LAST_WORD_END_PLUS_0.1_TO_0.2},
{"assetId":"RECORDING"}],
"aspectRatio":"9:16","cutPauses":false,
"music":{"jobId":"MUSIC_JOB","take":1},
"captions":{"preset":"…"}}
```
Send the same fields without `kind` to `POST /v1/assemblies`, plus a **new `idempotencyKey` for each
put-together**. Leave `music` or `captions` out when they did not want them, and `captions` out when they chose a
`look`. It answers `202` and a
`jobId` to poll. What matters:
- **`outSeconds` on the opening** never goes past the take's `durationSeconds`.
- **`cutPauses: false`**: the move plays as one take from its first frame, and the recording keeps its
own pauses.
- **`aspectRatio` is `9:16`**, the opening's shape.
- The recording carries the `outSeconds`, `inSeconds` and `ownSound` settled in step 1.
**Captions on a close face.** Some styles put their words in the middle, over the mouth, and a close
move fills the frame with the face. Either choose a place in the put-together
(`"captions":{"preset":"…","position":"bottom"}`; `bottom` is about 82% down, low on the face's
picture but under TikTok and Instagram's own text: say so), or put the ad together without captions and
then run `POST /v1/captions` on the finished ad's `jobId`, with a style of the `look` tier from
`GET /v1/caption-presets` where it lists one (TikTok's and Instagram's own type) and `placePercent`, 14
to 80, set below the chin (at 65 or more it is under Instagram's own text, at 75 or more under TikTok's;
a look takes a video of up to 2 minutes). Once the first copy of a look is finished, another place in the same look on
the same video charges nothing. Price the captions with `{"kind":"caption","preset":"…","jobId":"…"}`, and wait for a yes if the
number moved.
`lines` there fixes a misheard app name: send the whole list, from the `segments` of a
`POST /v1/transcripts` on the finished ad (priced and asked for first: step 6's holds the opening's
words alone), with the name corrected, because what you send is the whole caption.
**Look before you hand over.** Save the ad beside the take, as step 6 saved it, and look at one frame
of the opening with a caption and one of the recording: `ffmpeg -ss 1 -i ad.mp4 -frames:v 1 frame.jpg`, or ask the user to look. Do the words sit on the mouth?
Is the app's header cut? A different style or place in the put-together is a new one, priced and asked
for.
### 8. Hand over
The take and the ad are both in `outputs/<name>/` (`outputUrl` lasts an hour, so a link alone dies):
give the user the paths, and:
- **The total, read from the API.** Add each job's `creditsCharged`, never worked out from a rate. A
failed or blocked job gave its charge back: leave it out.
- **Watch it as a stranger.** Does the opening make them want the app? Does the recording start on the
cut, with no menu and no phone controls? Do the captions read right?
- **The next ad:** three new lines on the same face and move, or another face or move, with the same
recording, stored already.
**If only the opening can be made** (the recording cannot be read, or the put-together fails twice):
save the take, and give its path and the second its last word ends. The user cuts and places the
recording in their own editor.
## When something is refused
| Answer | What to do |
|---|---|
| `404` on `/hooks` or `/videos/hooks` | Not offered here, or not for this account. Nothing was charged. Offer what `novoads-api` makes |
| `400`, `details.code` `line_missing` or `line_too_long` | Nothing was charged. Count the line against `lineLimits`, shorten it and show it again |
| `400`, `line_marks` | Words in brackets, parentheses, braces or asterisks. Take them out |
| `400`, `face`, `hook` or `resolution` | A wrong id. The accepted ones are in `options` |
| `400`, `language` | The language is not offered. Say so; never swap it for one that passes |
| `400`, `idempotency_key_mismatch` | The header key and the body key differ. Use one |
| `401`, `403` | The key, or the plan: the section *Before anything* |
| `402` | Not enough credits. Show the gap and the link. Do not retry |
| `409` | Read its message. The job is still running, its file is not stored yet, or the key is being accepted: wait, then send the same call again (with the same key where the call takes one). From `/transcripts`, a take with no speech in it: a missed take, step 6 |
| `422` | The line was refused for its content. Rewrite it, or stop. Never send the same words again |
| `429` | Wait `retryAfterSeconds`. Never loop |
| `500` or a timeout | It may have run and charged. `GET /v1/generations` first; with the same `idempotencyKey` a retry never charges twice |
| `502`, `error.code` `provider_failed` | The provider failed and the charge came back by itself. Send the same call once more, with the same key where the call takes one; failed again: stop. A `502` with no JSON is the row below |
| `503`, `details.reason: not_configured` | Hook takes are not available right now. Nothing was charged. Say so and stop |
| any other `503` | Read its message, wait, send the same call with the same key: it never charges twice |
| A job that is `failed` or `blocked` | Its `error` says why and its credits are refunded. A `reasonCode` starting `vendor`, or none: send once more with a new key. A content reason: a new line, through Gate 1. Failed again: stop |
| The put-together failed | Refunded. Try once more with a new key and a fresh price: the same key answers the same failed job. Failed again: hand over the opening alone |
## Boundaries
| The user wants | Skill |
|---|---|
| An ad with no recording, a talking UGC ad about a product, a longer script | `novoads-api` |
| Somebody else's video ad, rebuilt for their product | `clone-video-ad` |
| A still that should move | `image-to-motion` |
| A new voice on a finished video | `change-voice` |
| Only the opening, for an ad they cut themselves | this skill, stopping at step 6 |