/skills:hook-app-adfrom skills
Creates short vertical app ads from a user's screen recording using the Novoads REST API. Adds a hook clip with a synthetic face, captions, and optional music. Prices each step before spending.
Ships in skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
A short ad for an app, in two parts that the server joins:
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.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 and
reference.md. This file names the endpoints and the fields this ad
needs.
../novoads-api/ is not on diskThen 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.
https://api.novoads.ai/v1 (host overridable with NOVOADS_BASE_URL, host only).Authorization: Bearer $NOVOADS_API_KEY, read from .env at the repo root../scripts/check-novoads-env.sh. If it is missing, run ./scripts/setup.sh..env, or paste a key into MASTER_CONTEXT.md.REST key required. A Novoads MCP connector is not a substitute. If
NOVOADS_API_KEYis 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 whenmcp__novoads__*tools are connected and authenticated in the session. Never callmcp__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 checksNOVOADS_API_KEYin 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):
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.
| 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 |
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). 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.
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:
# 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:
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:
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.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).inSeconds only when they ask."ownSound":0 on the recording's clip.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.").
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.
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.
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.
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.
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:
{"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.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.
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:
creditsCharged, never worked out from a rate. A
failed or blocked job gave its charge back: leave it out.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.
| 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 |
| 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 |
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
18 skills in this plugin
/analyze-videoAnalyze 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.
/broll-overlayOverlays silent b-roll cutaway clips onto a finished base video — the base audio keeps running underneath while the picture cuts away and returns, and the final duration always equals the base duration. Use when the user asks to add b-roll, add cutaways, or overlay clips on a video: "add b-roll to this", "cut away to a product shot here", "overlay these clips on my UGC ad". Entered from an approved base video plus its transcript, which comes from POST /v1/transcripts and needs no local install; it never generates the base itself and it never extends a video./caption-videoBurn timed, styled captions into a finished video on the local machine, without re-rendering the source. This is the manual fallback to the API's captioning endpoint, POST /v1/captions, which stays the default path: come here when the style the user wants is outside the API's presets, or when the source was rendered with audio disabled and the API refuses it. Transcribes the audio with Whisper, groups words into reading phrases, renders the captions in a real browser via HyperFrames, and composites them over the source with ffmpeg using a real alpha channel. Use when the user has an MP4 with speech and asks to add captions, subtitles, burned-in text, TikTok-style captions or word-by-word text to it, and the API path has been ruled out. Runs out of band, so it costs no credits and works on any video file whoever generated it. Not for generating video (use the video skills) and not for a separate .srt/.vtt sidecar file.npx claudepluginhub novoads/agent-skills --plugin skillsOther plugins' skills for the same job