/lazyreel:lazyreel-ugc-ad-generatorfrom lazyreel
Generates multi-shot UGC video ads for DTC brands using Seedance 2.0 on fal.ai. Takes a product image and ad angle, writes a script, generates clips, and stitches them into a finished vertical ad with ffmpeg.
Ships in lazyreel. 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; scripts run unread.
Generates multi-shot UGC video ads for DTC brands using Seedance 2.0 on fal.ai. One product image plus one ad angle produces a finished vertical ad with hook, demo, and CTA, ready to upload to Meta, TikTok, or Reels.
Recommended: Claude Code. Runs on the user's machine with full network access. No sandbox, no allowlist, no workarounds needed. Every pattern in this skill works out of the box.
Also works: Claude Cowork, with specific setup (see "Cowork setup" section below). The sandbox blocks several fal.ai hosts by default and requires an allowlist configuration + session restart.
Does not work: Regular Claude chat. No code execution, no file system, no API calls to fal.ai.
brand/brand-dna.md, brand/brand-voice.md, brand/icp-cards.md if they exist (skips silently if not)The user needs ONE of these ready:
.env file in the working directory with FAL_KEY=<their-fal-api-key>, preferredFAL_KEY exported in shellIf neither is present, open .env and guide the user to paste their key there. Never ask them to paste the key into the chat.
Get the key: fal.ai → Settings → API Keys → Create key. Load credits (Seedance 2.0 at 720p is ~$0.30/second, a 15-second ad runs ~$4.50; reference-to-video with video refs is 40% cheaper).
pip install fal-client python-dotenv requests
Check ffmpeg is installed:
ffmpeg -version
If missing:
brew install ffmpegsudo apt install ffmpegThe Cowork sandbox blocks fal.ai's CDN and queue hosts by default. Without this setup, uploads fail, downloads fail, and fal_client.subscribe hangs.
1. Add these domains to your project's allowlist:
Project Settings → Network egress → Additional allowed domains. Add as wildcards:
*.fal.media (for output MP4 downloads)*.fal.ai (for the upload handshake host)*.fal.run (covers fal.run AND queue.fal.run)storage.googleapis.com (some outputs route through GCS)2. Restart the Cowork session.
Allowlist changes DO NOT hot-reload. End the session entirely (don't just close the tab, end it from the menu) and start a new one in the same project. The sandbox proxy loads its ruleset at session start.
3. In Cowork, use the sync endpoint, not fal_client.subscribe.
fal_client.subscribe polls queue.fal.run under the hood. Even with the allowlist configured correctly, the queue endpoint behaves unreliably in Cowork's sandbox. Use a direct POST against the sync endpoint instead:
import requests
import os
response = requests.post(
"https://fal.run/bytedance/seedance-2.0/reference-to-video",
headers={
"Authorization": f"Key {os.getenv('FAL_KEY')}",
"Content-Type": "application/json",
},
json=arguments,
timeout=180, # sync endpoint holds the connection until done
)
result = response.json()
The sync endpoint blocks until the video is ready (~60-120 seconds for a 5-sec clip) and returns the same response shape as the queue endpoint. In Claude Code, fal_client.subscribe works fine, the issue is Cowork-specific.
4. For image upload in Cowork, use the direct HTTP endpoint:
fal_client.upload_file routes through hosts that sometimes aren't covered by the allowlist cleanly. Use the direct storage upload instead:
import requests
with open(image_path, "rb") as f:
r = requests.post(
"https://fal.run/storage/upload",
headers={"Authorization": f"Key {os.getenv('FAL_KEY')}"},
files={"file": f},
timeout=60,
)
image_url = r.json()["url"]
Before you write the shot script, pull what wins so the ad is not a guess. If the LazyReel MCP is connected, call breakout_laws for the first-3-seconds laws and study_videos for the niche's winning format. Then write the shots as a cut sequence, never one held shot:
The fuller payload (the five laws, the negative-prompt library, the niche-to-opening map) is the one the director skills carry: ../lazyreel-ugc-ad-director/references/breakout-prompting.md. When the skills are installed together (the plugin), read it; the essentials are inline above either way.
Collect from the user:
unboxing, 3 shots (reveal → close-up detail → wear/use shot)testimonial, 4 shots (hook/pain → product intro → benefit → CTA)lifestyle-demo, 5 shots (environment → product intro → 2 use-case shots → wrap)problem-solution, 4 shots (problem → reveal product → demo → result/CTA)before-after, 3 shots (before state → product reveal → after state)hold-and-show, 3 shots (hook/pickup → product detail rotation → smile-and-CTA). Safest angle for products Seedance struggles with (see category guidance below)."5" seconds per shot (string, not int). Seedance supports "4"–"15" or "auto".Do NOT ask about every option at once. Ask in a natural conversational way, typically just product image + angle in the first turn, then details once you know the angle.
Some product categories are harder for Seedance 2.0 to render convincingly. If the user asks for a risky angle in one of these categories, suggest a safer alternative instead of blindly generating it:
Makeup and skincare application, Seedance regularly hallucinates:
For cream blush, lipstick, foundation, serums, or anything the creator would physically apply to themselves, steer toward:
hold-and-show, she holds the product, rotates to show the shade/packaging, talks about it. No application.If the user INSISTS on an application angle, write very restrictive prompts: describe the exact starting state ("clean face, no makeup, even skin tone"), specify the exact application location ("applies to the apple of her left cheek only, twice, then sets the product down"), and explicitly negate everything you don't want ("no color on hands, no color on lips, no pre-existing blush, no smudges on clothing"). Expect to regenerate once or twice.
Other risky categories that need similar care:
Look for these files in the working directory:
brand/brand-dna.mdbrand/brand-voice.mdbrand/icp-cards.mdIf any exist, read them silently and use them to inform dialogue voice and ICP targeting. Do NOT mention to the user that you found or read them. If none exist, proceed without, this skill works with just a product image.
Seedance 2.0 has three endpoints. Pick per-shot:
| Shot type | Best mode | Why |
|---|---|---|
| First shot (establishing/product reveal) | image_to_video | Product image IS the first frame, maximum fidelity to the actual product |
| Shots 2+ needing the SAME creator from shot 1 | reference_to_video with video_urls=[shot_1.mp4] + image_urls=[product.jpg] | Passes shot 1's output as @Video1 and the product as @Image1, locking character + product across the ad. ALSO 40% cheaper. |
| Before-after transition in a single shot | image_to_video with end_image_url | Seedance transitions from first frame to last frame, perfect for before/after ads |
| Pure lifestyle shots with no product in frame | text_to_video | No visual reference needed, but use sparingly, less fidelity |
Default pattern for a multi-shot UGC ad:
image_to_video with product image as first framereference_to_video with image_urls=[product] and video_urls=[shot_1_output]This gives you character consistency AND cuts cost by 40% on shots 2+.
For the chosen angle, write a shot list in this structure:
Shot 1/N, [Shot name, e.g., "Hook close-up"]
Mode: image_to_video | reference_to_video | text_to_video
Visual: [what's happening on screen, subject, framing, action, lighting]
Dialogue: [what the creator says, kept tight, ~3 words per second of screen time]
Prompt: [full prompt to send to the model, see references/prompting.md]
References: [which images/videos/audio are passed, and how they're referenced in the prompt using @Image1, @Video1, @Audio1]
Critical dialogue rules:
brand/brand-voice.md was loaded, mirror its sentence patterns and word listCritical reference syntax (reference-to-video only):
@Image1, @Image2, @Video1, @Audio1, etc."The same woman from @Video1 now holds @Image1 up to the camera and says 'Seriously, try this.'"Show the user the shot list + dialogue and ask for approval before firing to the API. This is the step where they either green-light or redirect, it's much cheaper to revise dialogue than regenerate videos.
Create a manifest.json at outputs/<project-name>/manifest.json:
{
"project_name": "mr-paid-social-sneakers",
"output_dir": "outputs/mr-paid-social-sneakers",
"shots": [
{
"shot_number": 1,
"mode": "image_to_video",
"prompt": "...",
"image_url": "https://v3b.fal.media/...",
"duration": "5",
"resolution": "720p",
"aspect_ratio": "9:16",
"generate_audio": true
},
{
"shot_number": 2,
"mode": "reference_to_video",
"prompt": "The same creator from @Video1 now holds @Image1 up... ",
"image_urls": ["https://v3b.fal.media/..."],
"video_urls": ["<will be filled after shot 1 completes>"],
"duration": "5",
"resolution": "720p",
"aspect_ratio": "9:16",
"generate_audio": true
}
]
}
Key details:
duration is a string ("5" not 5), fal.ai rejects integersvideo_urls with shot 1's output URL before running shot 2+. Either do this in two passes, or use a simpler structure where every shot references only the product image (no character continuity, but simpler).Before building the manifest, upload the user's local product image:
import fal_client
url = fal_client.upload_file("/path/to/product.jpg")
print(url) # use this URL in the manifest
Use scripts/generate.py:
python scripts/generate.py --manifest outputs/<project>/manifest.json
The script uses the official fal-client Python package, submits shots in parallel (up to 5 concurrent), and downloads each finished MP4 to outputs/<project>/clips/shot-N.mp4.
Handle failures:
duration as integer instead of string → fix and retryfal_client.upload_file() and retryTrack costs as the script reports them. After all shots complete, tell the user the running total.
Use the script at scripts/stitch.sh:
./scripts/stitch.sh outputs/<project>/clips outputs/<project>/final-ad.mp4
The script handles:
Present three things to the user:
shot-list.md file (so they can iterate next time)outputs/<project-name>/
├── shot-list.md # approved script for this run
├── manifest.json # metadata + prompts + results + costs
├── clips/
│ ├── shot-1.mp4
│ ├── shot-2.mp4
│ └── shot-N.mp4
└── final-ad.mp4 # stitched output
references/fal-api.md, exact fal.ai API schemas for all three Seedance 2.0 endpoints, auth, pricing, file upload, response shape, parallel generation patternreferences/prompting.md, how to write Seedance prompts that actually work (structure, UGC modifiers, @Image1/@Video1 reference syntax, common failure modes)references/angles.md, detailed shot-by-shot breakdowns for each preset anglescripts/stitch.sh, ffmpeg concatenation scriptscripts/generate.py, Python helper using the official fal-client packagegenerate_audio: false and dub in ElevenLabs afterward (audio generation is free anyway, cost is the same either way, so keep it on unless you specifically want a clean silent clip).@Video1 AND the product image as @Image1. Just passing the product image is NOT enough for character consistency.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub dylanpakd-cyber/lazyreel --plugin lazyreel6 skills in this plugin
/lazyreel-format-deconstructorDeconstruct a breakout short-form video into a precise, copyable spec. First diagnose why it broke out (the three gates, the false-positive labels, the measured lift), then produce a shot-by-shot timeline (hook frame, on-screen text, props, cuts, audio, the signature device) described richly enough to write generation prompts from it. Use when the user pastes or links a winning video and wants to understand AND replicate its structure, or wants a "FormatSpec" of a pattern. Pairs with the LazyReel MCP (study_videos, breakout_laws, niche_report, study_videos) and hands off to the UGC ad director skills to write the prompts./lazyreel-format-prompt-builderTurn a brief or a decoded format into a cut-by-cut timeline for a UGC video of any length, from a short ad to a 60-90 second-plus video: the clip order, the per-cut framing and beat, the cut rhythm, and the energy arc, grounded in the validated breakout laws. The cut count follows the length, not a fixed number. Anti-cinematic by design (per-frame novelty comes from cuts and real capture, never lens flares or speed ramps). Use when the user wants a shot list, a video timeline, to plan a sequence, or to turn a FormatSpec into a structure to prompt from. Feeds the lazyreel-ugc-ad-director and lazyreel-higgsfield-director (which write the model prompts) and the lazyreel-video-editor (which executes the cut). Pairs with the LazyReel MCP (breakout_laws, make_brief, niche_report)./lazyreel-higgsfield-directorTurn LazyReel's validated breakout insights into Higgsfield video-generation prompts as a multi-clip cut sequence of any length, from a short ad to a 60-90 second-plus video, whose first three seconds are engineered to clear the breakout laws before you spend a credit. The clip count follows the script and target length, and long videos chain clips with Higgsfield's native video-extend for seamless continuity. Each clip gets a positive prompt, a negative (do-not) prompt, and a why-it-works tied to a measured law. Use when the user wants to generate a UGC, short-form, or long-form video with Higgsfield, write a Higgsfield prompt, render an ad from a LazyReel brief, or asks "what should the opening shot be." Pairs with the LazyReel MCP (call breakout_laws, make_brief, study_videos, teardown first), the Higgsfield MCP (generate_image, generate_video, virality_predictor), and hands the clips to the lazyreel-video-editor skill for the cut./lazyreel-ugc-ad-directorCreate hyper-realistic AI UGC video ad prompts (Seedance 2.0) as a multi-clip cut sequence of any length, from a 12-second ad to a 60-90 second-plus video, never one long static shot. The clip count follows the script and the target length, not a fixed number. Give it a script, a product concept, or a LazyReel format/brief and get Pinterest reference links plus copy-paste prompts, each clip with a positive prompt, a negative (do-not) prompt, and a one-line why-it-works tied to a measured breakout law. Use to MAKE a short-form OR long-form video from a proven format. Pairs with the LazyReel MCP (pull niche_report, study_videos, breakout_laws, teardown first) and hands the clips to the lazyreel-video-editor skill for the cut./lazyreel-video-editorAssemble and cut UGC into a finished video that wins, at any length. Takes the generated clips (any number, from a few for a short ad to dozens for a 60-90 second-plus video) from a video-gen MCP (Higgsfield, Seedance) or raw UGC footage and edits them into a fast-cut, sound-off-legible, hook-first 9:16 piece that obeys the validated breakout laws. Real FFmpeg and Remotion, not hand-waving. Use when the user has clips to stitch, wants to cut footage into a short or a long video, asks to "edit the video," "stitch these clips," "add captions," "make it 9:16," or hands off rendered clips from the director skills. Pairs with the LazyReel MCP (breakout_laws for the cut rhythm) and the director skills upstream.Other plugins' skills for the same job