{"id":120733,"plugin_id":"plugin_asdk_app_6ac54d9a866c8191877d60974b7641b3","kind":"skill","collection_source":"plugin_package","comparison_source":null,"observed_at":"2026-11-27T12:24:45.400Z","digest":"f493b689a9b2025bc80d4b58a196b9daea6df261312ef57fb935dc9a119db34c","against":null,"payload":{"description":"Make a singing ad on the MaxFusion AI MCP - an ad script sung verbatim over music in any genre, illustrated shot by shot with animated or realistic visuals and cut to the song. Gated, card-driven intake (script style, music style, vocal, visual style, cast, aspect, length), then script → song (Suno V6) → word-level timing map → shot plan → character + brand refs → shot sheets or single images → video clips (Seedance 2.0 default) → frame-accurate edit. Two entry loads - from scratch, or the user brings a script / song / plan and the skill enters at that stage. Every paid generation needs the user's approval. Use when the user says \"singing ad\", \"song ad\", \"make a singing ad\", \"AI song ad\", \"musical ad\", \"jingle ad\", or wants an ad where the pitch is sung over visuals. Requires the MaxFusion AI MCP.","included_files":[{"relative_path":"agents/openai.yaml","size_in_bytes":152}],"name":"singing-ad","skill_md_contents":"---\nname: singing-ad\ndescription: \"Make a singing ad on the MaxFusion AI MCP - an ad script sung verbatim over music in any genre, illustrated shot by shot with animated or realistic visuals and cut to the song. Gated, card-driven intake (script style, music style, vocal, visual style, cast, aspect, length), then script → song (Suno V6) → word-level timing map → shot plan → character + brand refs → shot sheets or single images → video clips (Seedance 2.0 default) → frame-accurate edit. Two entry loads - from scratch, or the user brings a script / song / plan and the skill enters at that stage. Every paid generation needs the user's approval. Use when the user says \\\"singing ad\\\", \\\"song ad\\\", \\\"make a singing ad\\\", \\\"AI song ad\\\", \\\"musical ad\\\", \\\"jingle ad\\\", or wants an ad where the pitch is sung over visuals. Requires the MaxFusion AI MCP.\"\n---\n\n# Singing Ad\n\nA singing ad is **an ad first, a song second**: a real ad script for a real buyer, sung word for word, with every shot illustrating the line being sung. Everything is generated through the **MaxFusion AI MCP**; nothing is generated anywhere else.\n\n---\n\n## Hard rules\n\n1. **Approval before every paid generation** — script, song prompt, character sheets, each sheet/image, each clip prompt. Present the prompt, wait for an explicit yes. A chained instruction (\"…and then generate\") does not waive this. On re-runs, show only what changed.\n2. **Never auto-regenerate** a paid result to fix a defect. Report it, propose the fix, wait.\n3. **One fresh MaxFusion project per ad** (`maxfusion_create_project`, `title` = `Singing Ad – <Product>`). Every generation goes into it: images take `project_id`, music and video take `project_group_id`.\n4. **Choices are made with cards.** Every intake choice and gate is asked as a multiple-choice question (the client's multiple-choice question tool, or a numbered list where it has none): 2–4 options, each with a one-line description of what it is and what it changes, the recommended option first and marked \"(Recommended)\". The user can always pick \"Other\".\n5. **Generation runs only on MaxFusion tools:** music `maxfusion_create_music` (Suno V6 — the only music model on the MCP), images `maxfusion_generate_image` (default `gpt-image-2`), video `maxfusion_generate_video` (default `seedance-2.0`), uploads `maxfusion_upload_asset`. Generation tools return only a job id; poll `maxfusion_get_job` for the asset ids and download `url`s (`result.audios[]`, `result.images[]`, `result.video`). Local helpers are used only where the MCP has no equivalent: Whisper for word timestamps, ffmpeg for frame-accurate cutting. While a generation job is `running`, `maxfusion_get_job` also returns `progress_estimate` (`percent` is how far along it is, 0-99; `mode: indeterminate` means no estimate; null once the job finishes) — report the percentage to the user, never a remaining time.\n6. **No captions, end cards, or text/logo overlays** in the final edit unless the user asks.\n\n---\n\n## Two loads — where to enter\n\nFirst question (card): **\"What do you already have?\"**\n\n| Option | One-liner | Enter at |\n|---|---|---|\n| Nothing yet (Recommended for first-timers) | We build the brief, script and song together. | Stage 0 |\n| A finished script | Skip writing; we check it and make the song. | Stage 1 check → Stage 2 |\n| A finished song | Upload it; we time it and go straight to visuals. | Stage 3 |\n| Song + shot plan | We time the song and review your plan. | Stage 3 → Stage 4 |\n\nA user-supplied script or plan is still checked against this skill's rules; flag problems once, then follow the user's decision. A user-supplied character image replaces Stage 5's character sheet for that character.\n\n---\n\n## Stage 0 — Intake\n\n**Brief (plain questions, one message):** product and its one-line promise · who the buyer is and what they struggle with · the concrete features/mechanism to name · proof (numbers, results, reviews) · offer and CTA (URL/action) · brand assets needed on screen (logos, product photos).\n\n**Cards (multiple-choice questions, max 4 per call):**\n\n**Script style**\n| Option | One-liner |\n|---|---|\n| Problem → solution (Recommended) | Pain, what makes it worse, what failed, your fix, CTA — the strongest converter for cold audiences. |\n| Story / testimonial | A character's before-and-after in their own words — warmer, more trust, slower pitch. |\n| Demo / how it works | Walks through the product step by step — best when the mechanism is the selling point. |\n| Offer / promo | Leads with the deal and urgency — short, punchy, for warm audiences and sales. |\n\n**Music style** — see the genre menu in Stage 2. Recommend a words-forward genre that fits the brand.\n\n**Vocal**\n| Option | One-liner |\n|---|---|\n| Solo female (Recommended) | Bright and clear; cuts through on phone speakers. |\n| Solo male | Warmer, lower; good for rugged or premium brands. |\n| Duet | Call-and-response between two voices; more energy, more words to fit. |\n| Choir / group lead | Anthem feel; only for short, simple scripts — groups blur words. |\n\n**Visual style**\n| Option | One-liner |\n|---|---|\n| 3D animated feature look (Recommended) | Polished CGI characters; expressive and forgiving of AI artifacts. |\n| 2D cartoon / flat animation | Bold and graphic; cheaper-feeling, very readable on small screens. |\n| Claymation / stop-motion | Handmade texture; stands out in feeds, slower-paced acting. |\n| Realistic live-action | Looks like a shot commercial; hardest to keep consistent, least forgiving. |\n\n**Cast**\n| Option | One-liner |\n|---|---|\n| One lead character (Recommended) | One face carries the story; easiest to keep consistent. |\n| Lead + supporting characters | Richer scenes (friend, boss, customer); each extra person needs its own sheet. |\n| Faceless / product-only | No people; the product and props carry the story. |\n\n**Format**\n| Option | One-liner |\n|---|---|\n| 9:16, 60–90s (Recommended) | Reels/TikTok/Shorts; room for a full pitch. |\n| 9:16, 30–45s | Tighter pitch; fewer claims, faster cuts. |\n| 16:9 | YouTube/web placements; wider shots, more room for environments. |\n| 1:1 | Feed placements; center-weighted framing. |\n\nRecord every answer in the run folder as `brief.md`.\n\n---\n\n## Stage 1 — The script\n\nThe lyrics are an ad script, not a poem. The song is a delivery method.\n\n**Beat structure by script style:**\n- **Problem → solution:** hook with stakes → pain (concrete steps of the current struggle) → agitate (cost, frustration, broken promises) → what they tried that failed → the solution in detail (mechanism + each benefit, one per line) → close → CTA.\n- **Story / testimonial:** hook in the character's voice → the before → the moment they found it → what changed, specifically → CTA.\n- **Demo / how it works:** hook with the outcome → step 1, step 2, step 3 in plain actions → what you get → CTA.\n- **Offer / promo:** the offer in the first line → why it's worth it (2–3 benefits) → urgency/limit → CTA.\n\n**Universal rules (any style, any genre):**\n- Literal, plain sentences. One idea per line. Write for someone who knows nothing about the product.\n- No metaphors, euphemisms, wordplay or clever analogies. Specific beats clever: real numbers, real objects, real moments.\n- **No rhymes and no chorus by default.** The song carries the catchiness; the words carry the pitch. (If the user explicitly wants a rhyming jingle or a repeated tagline, it's their call — note that it trades clarity for memorability.)\n- A self-referential hook (\"This ad you're watching was made with…\") is strong when the product makes ads or content.\n- URLs and brand names written as they should be sung (\"brand dot com\").\n- **Length math:** ~2.2 sung words per second for mid-tempo genres (slower genres ~1.8, fast pop ~2.5). Word count sets the length — hit the target before generating.\n\nGate: the user approves the script text.\n\n---\n\n## Stage 2 — The song\n\n`maxfusion_create_music` → Suno V6, **Auto duration** (omit `duration`; recommended for exact lyrics), `project_group_id` = the run project. One call = 2 takes for 5 credits. The whole prompt (style + lyrics) must stay under **3,000 characters** on Auto. Fixed durations (15/30/60/120/180/360) route the prompt through a lyric-preparation model that rewrites the brief into separate style and lyric fields and drops delivery instructions — don't use them for a verbatim script.\n\n**Genre menu (card options come from here).** Words-forward genres keep a sung pitch intelligible; dense-lyric ads should stay in the first group.\n\n| Group | Genres (tempo) | Notes |\n|---|---|---|\n| Words-forward — best for pitches | Upbeat R&B (100–120) · Pop (100–125) · Country / country-pop (90–120) · Musical theatre / Broadway (varies) · Acoustic / indie-pop (90–120) · Soul / Motown (100–125) · Kids / jingle-pop (110–130) | Clear diction, room for words. Upbeat R&B with an earworm melody is a proven default. |\n| Energy-first — short scripts only | Dance-pop · House · EDM · K-pop · Reggaeton | Busy production and stretched syllables bury words. Keep the script short and simple. |\n| Mood — for brand/emotional ads | Gospel · Rock anthem · Lo-fi · Orchestral | Big feel; words need extra space. |\n\n**Prompt template** (order matters — the vocal-start line goes FIRST):\n\n```\nThe song opens with the vocal. The very first sound at 0:00 is <her/his/their> voice singing the first word. Zero seconds of instrumental before the vocal. Style: <genre, feel, key instruments, mood>, <BPM> BPM. [Earworm block, optional]. <Vocal: gender, tone, delivery>, crisp enunciation, every single word understood, no vocal runs that stretch or blur words. Sing every line exactly once, in order, top to bottom. Do not repeat any line, do not add a chorus, do not add ad-libs, backing chants or extra words. Short instrumental ending after the last line.\n\nUse these exact lyrics:\n\n[Verse 1 - vocal starts at 0:00, no intro]\n<lines>\n[Verse 2]\n<lines>\n...\n```\n\n**Earworm block (optional, works in any genre):** `Earworm melody: one simple, instantly singable melodic motif that repeats on every line with the words changing each time, rising-then-falling phrase shape like a nursery-rhyme hook, bright major key, steady rhythm, one memorable melodic jump per phrase. Built to get stuck in your head after one listen.` — the melody repeats, the words don't.\n\n- Group lyrics into `[Verse N]` blocks by beat.\n- If the script intentionally has a chorus or tagline, drop the \"no chorus / no repeat\" lines and mark the section `[Chorus]`.\n- Exploring styles: run 2 genres in parallel (one call each) and let the user compare.\n- **Known failure modes:** instrumental intro (fix: vocal-start line first); rushed or garbled words (fix: slower tempo, words-forward genre, shorter lines); repeated or invented lines (fix: the \"exactly once\" rules); wrong language drift (add \"sung in English\").\n\nGate: the user listens and picks the take. `maxfusion_get_job` returns both takes in `result.audios[]` (`id`, `url`, `duration_seconds`); record the chosen `id`.\n\n---\n\n## Stage 3 — Timing map (the mechanism)\n\nEvery shot is placed on the exact second its line is sung. This is what makes the visuals land on the lyrics automatically.\n\n1. Download the chosen take (its `url` from the job result) into the run folder.\n2. Word timestamps with local faster-whisper:\n   ```python\n   from faster_whisper import WhisperModel\n   m = WhisperModel(\"medium.en\", device=\"cpu\", compute_type=\"int8\")\n   segs, _ = m.transcribe(\"song.mp3\", word_timestamps=True, language=\"en\")\n   ```\n   (`maxfusion_transcribe_media` — `file_id` = the take's audio id, `purpose: audio_reference` — returns plain text in `result.text`, no timestamps, and often mishears brand names — use it only as a cross-check of the words.)\n3. **Timestamps from Whisper, text from the approved script** (Whisper mishears too).\n4. Write `lyric-timing-map.md`: one row per line — start, end, lyric, beat. Mark instrumental gaps (natural spots for a visual beat).\n5. Verify: vocal starts at 0:00, every line sung once, in order, nothing added. If not, back to Stage 2.\n\n---\n\n## Stage 4 — Shot plan\n\nOne shot per lyric line or small group of lines. Shot slot = the lyric times from the map. Table: #, time, lyrics, location, camera, action.\n\n**Rules:**\n- **No lip sync by default.** Characters act the story; they don't sing to camera (sung lip sync over a full song rarely matches). Offer lip sync only as an explicit extra.\n- **Illustrate the literal line.** Show what the words say, grounded and specific.\n- **Tell it physically.** Actions, props, places and faces first; UI and screens only when the line is about something on a screen.\n- **Screens:** they face the character, never the viewer. Show screen content with an **over-the-shoulder** shot or a **POV insert** (hand + device filling the frame), and cut between the character's reaction and the insert. Never a monitor turned toward the camera, never a phone held back-to-camera while \"showing\" its screen.\n- **Grounded props, used the normal way.** A bill is an email or bank notification, a deadline is a calendar or clock, an error is a realistic app popup. No magic objects or visual metaphors (glowing cables, floating symbols) unless the chosen visual style is explicitly surreal.\n- **Floating UI / holograms** are an occasional accent (e.g. rapid tool-switching, a notification bubble) — never the default.\n- **Variety:** no location twice (bookends excepted), no camera angle twice in a row, a physical action in every shot, a different staging for every benefit beat.\n- **Brands on screen appear inside the world** (stickers, app screens, packaging, signage), not as end cards.\n- Every shot's slot must fit the video model's duration range — `seedance-2.0` takes whole seconds from 4 to 15; split longer lines across shots.\n\nGate: the user approves the plan.\n\n---\n\n## Stage 5 — Character sheets + brand refs\n\n**Character sheet** (one per character; skip if faceless or the user supplies one) — `maxfusion_generate_image`, `gpt-image-2`, `aspect_ratio: \"16_9\"`, `project_id` = run project:\n\n```\n<Visual style description> character sheet. One character shown four times on a clean light-gray background: close-up face portrait, full body front view, full body three-quarter view facing left, full body three-quarter view facing right. Neutral friendly expression.\nCharacter: <age, look, skin, hair, eyes, distinguishing details, outfit>. Same exact character in all four views, consistent face, hair, outfit and proportions. No text, no logos.\n```\n\n**Style description** (reused in every image and clip prompt), e.g.:\n- 3D animated: \"3D animated feature film, stylized CGI in the look of a modern big-studio animated movie: soft subsurface skin, big expressive eyes, appealing rounded shapes, cinematic lighting, highly polished render.\" (Describe the look; never name a studio.)\n- 2D cartoon: \"flat 2D cartoon animation, bold clean outlines, flat color fills, simple shapes.\"\n- Claymation: \"handmade claymation stop-motion, visible clay texture and fingerprints, miniature practical sets.\"\n- Realistic: \"photorealistic live-action commercial, natural skin texture, real lighting, shallow depth of field.\"\n\n**Brand refs:** product photos, logos and packaging go up with `maxfusion_upload_asset` (purpose `image_reference`). The tool takes no bytes: it returns an upload session — build a multipart form with every key in `upload.fields`, append the binary as the last part named `file`, POST it to `upload.url`, and only then use the returned `file_id`. Treat any 4xx from `upload.url` as final for that session: do not retry the same URL; call `maxfusion_upload_asset` again with a `content_type` that matches the file's real bytes, not its extension. Check each file visually first. White or transparent logos go on a dark solid background before upload so the model can see them. For third-party logos the story needs, ask before downloading; SVGs convert to PNG with `resvg-py`.\n\nGate: the user approves each character sheet. Approved ids (`result.images[].id` from `maxfusion_get_job`) are reused in every later prompt.\n\n---\n\n## Stage 6 — Shots: sheets or single images (gate)\n\nCard:\n\n| Option | One-liner |\n|---|---|\n| **Shot sheets (Recommended)** | One image with four panels per shot, handed to the video model as a storyboard — more control over motion and angles, fewer images to approve, more consistent clips. |\n| Single images | One start-frame image per shot, animated from that frame — simpler to review, but only the first frame is controlled, so motion drifts and each bad shot is a full re-render. |\n\nAlways generate **one sheet/image first as a test**, get approval, then the rest.\n\n**6A — Shot sheets** (`maxfusion_generate_image`, `gpt-image-2`, `aspect_ratio` = the chosen aspect in underscore form — `9_16`, `16_9` or `1_1`; `project_id` = run project):\n\n```\nStoryboard sheet, <aspect> image split into a 2x2 grid of four equal panels with thin white gutters, read left-to-right, top-to-bottom. Every panel is a frame from the same scene: <style description>. <Character> is exactly the character from the attached character sheet (<key traits>). [Other characters, same words every time.] Realistic proportions: normal-sized hands, phones and laptops. Correct anatomy in every panel: exactly two arms and two legs per person, no extra or missing limbs. Any logo is copied exactly from its attached reference image.\nSetting: <one place, one light>.\nPanel 1 (top-left), <camera placement + angle>: <one clear action>.\nPanel 2 (top-right), ...\nPanel 3 (bottom-left), ...\nPanel 4 (bottom-right), ...\n```\n\n**6B — Single images** (`gpt-image-2`, chosen aspect): one frame per shot, same header minus the grid lines, describing the **opening** moment of the shot, with camera placement.\n\n**Both paths:**\n- Every panel/image states where the camera is (behind, over-the-shoulder, POV insert, front eye level, top-down, low, Dutch) and one action.\n- Screen content only in over-the-shoulder or POV frames; otherwise \"the screen is never visible\".\n- Time-lapse: \"camera locked in the same position in all four panels\".\n- Avoid limb-risky poses (legs over armrests, crossed-over limbs); prefer simple seated or standing poses.\n- Refs: `references` = character sheet image id(s) + only the brand `file_id`s that shot needs (max 16).\n\nGate: the user reviews each sheet/image (or a batch).\n\n---\n\n## Stage 7 — Clips\n\n`maxfusion_generate_video`, default `seedance-2.0` (switch only if the user asks — check `maxfusion_list_video_models` for durations/refs), `resolution: \"1080p\"` (the model default is 720p; per-second rates by resolution are in `maxfusion_list_video_models`), `aspect_ratio` in underscore form (`9_16`, `16_9`, `1_1`), `project_group_id` = run project.\n\n- **Duration** = `duration` integer, the shot slot rounded **up** to whole seconds (4–15 on `seedance-2.0`). The edit trims to the exact slot.\n- Test 1–2 clips first, then batch the rest in parallel.\n- **Audio: silent.** The song is laid on in the edit.\n\n**7A — Sheet path** (`ref_image_mode: \"ingredients\"`, `ref_image_file_ids` = `[sheet, character sheet(s), brand refs]` in that order — max 9 on `seedance-2.0`; no `start_frame_file_id` in this mode):\n\n```\n<Aspect> <style description> scene. @image1 is a storyboard sheet: play its four panels in order as full-frame shots, cutting between them like a film edit where the camera angle changes. Never show the grid, gutters, or multiple panels; every frame is a single full-screen image. @image2 is the character sheet: <character> must match it exactly. Correct anatomy, normal proportions; screens are only shown where the panel shows them. Audio: silent, no music, no voices.\n0.0-X.Xs: panel 1, <action>.\nX.X-Y.Ys: panel 2, <action>.\n...\n```\n\n**7B — Image path** (`ref_image_mode: \"frames\"`, `start_frame_file_id` = the approved image id): same prompt minus the sheet lines, describing the motion across the shot. Frames mode accepts only start/end frames — `ref_image_file_ids` must be empty, so character sheets and brand refs can't be attached here; the approved image carries the look, and the prompt describes the character in words.\n\n- **Panel/beat timings follow the lyric timestamps inside the slot** (relative seconds), so each beat lands on its line.\n- Describe screens and effects literally (\"the laptop screen shows the same scene and moves in sync with her\"), never with jargon like \"Droste\" or \"infinite mirror loop\".\n- Brand refs are cited as \"(logo exactly as @image3)\".\n\nGate: the user reviews the clips (`result.video.id` and `url` from `maxfusion_get_job`); only named clips are redone.\n\n---\n\n## Stage 8 — Edit\n\nThe cut is made on a timeline by the `timeline-editing` skill's recipe \"Making a video on a timeline\": `maxfusion_create_timeline` at the ad's size with the clips and the chosen song take in its `media`, then one change that places each clip on `main` at its cut point, `muted`, and the song as the only sound on an `audio` layer.\n\n- Cut points = `round(time × 30)` on the cumulative lyric times (the timeline runs at 30 fps): a clip's `start` is its cut point, its `duration` runs to the next one, its `in_point` skips frames the checks below drop.\n- The song is the only audio; the video is as long as the song.\n- Look with `maxfusion_see_timeline`, then `maxfusion_export_timeline` at `resolution: \"full\"`; send the user the export's `file_url` and the timeline's link. Every change is a new export.\n\nOnly when the user asks for no timeline: a frame-accurate cut to the song with local ffmpeg. Fallback if ffmpeg isn't available: `maxfusion_trim_video` (`video_file_id` + `ranges[{start_seconds, end_seconds}]`, per clip) then `maxfusion_stitch_videos` (`video_file_ids` in playback order). The fallback cuts on seconds, not frames, and can't lay the song onto the stitched video — hand the user the stitched cut and the song to mux in their editor.\n\n- Download every clip to `clips/clipNN.mp4`.\n- Cut points = `round(time × fps)` on the cumulative lyric times; per clip `trim=start_frame=S:end_frame=S+N,setpts=PTS-STARTPTS,fps=<fps>,scale=<W>:<H>,setsar=1`, then `concat`.\n- The song is the only audio track; output length = song length. libx264 crf 18, aac 192k, `+faststart`.\n- Save `edit/<name>-vN.mp4`, a new version number per change; send it to the user.\n\n**QA every clip before sending:**\n1. **Storyboard grid leaking** (sheet path) — clips can open on the 2x2 sheet for up to ~1.5s. Step through the first ~40 frames and start past the last grid frame.\n2. **Frozen start** — the first ~0.5s barely moves. Check a contact sheet or frame differences (`tblend=all_mode=difference,signalstats`) and skip those frames.\n3. **Fill skipped time by borrowing spare footage from neighbouring clips** — shift cut points (the previous clip plays longer, the next starts earlier), keeping the song and total length untouched. **Never slow a clip down or motion-interpolate** to fill time; it visibly damages the shot.\n4. If a requested cut can't be filled at normal speed, explain the trade-off instead of forcing it.\n\n---\n\n## Common failures → the rule that prevents them\n\n| Failure | Prevention |\n|---|---|\n| Script comes out as a poem or jingle | Stage 1 — literal ad script, style-specific beats, no rhyme/chorus by default |\n| Song has an instrumental intro | Vocal-start line first in the prompt |\n| Words rushed or garbled | Words-forward genre, sensible tempo, shorter lines, delivery rules |\n| Visuals miss their lines | Stage 3 timing map; beats timed inside every clip |\n| Lip sync looks wrong | No lip sync by default |\n| Shots feel random or silly | Illustrate the literal line with grounded props |\n| Monitors facing the viewer, backwards phones | Screen grammar: over-the-shoulder / POV, reaction ↔ insert |\n| Everything becomes floating UI | Holograms are an occasional accent |\n| Giant hands/phones, extra limbs | Proportion + anatomy lines; avoid risky poses |\n| Repetitive staging | Variety rules in Stage 4 |\n| Single images drift in motion | Shot sheets recommended at the Stage 6 gate |\n| Grid or frozen frames in clips | Stage 8 QA, fixed by borrowing from neighbours |\n| Captions/end cards the user didn't want | No overlays unless asked |\n\n## Run folder\n\n`<working dir>/singing-ad-<slug>/` → `brief.md`, `lyric-timing-map.md`, `song.mp3`, `song_timestamps.json`, `asset-ids.md` (project, song, sheets, clips), `logos/`, `clips/`, `edit/`.\n"},"changes":[],"summary":"First saved snapshot. No earlier version is available for comparison.","summary_kind":"deterministic","summary_metadata":{}}