/marketing-skills:ugc-video <script text or .txt> [--avatar <name>] [--caps Brand1,Brand2]from marketing-skills
Renders a vertical 1080x1920 UGC talking-head ad from a script using a bundled avatar, fal MiniMax TTS, Seedance 2.5, and ffmpeg. Includes dry-run cost estimation and word-level fix verification.
Ships in marketing-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; scripts run unread.
Script in, finished vertical UGC ad out. Paid steps run through the Graphed CLI; everything else runs on the user's machine (ffmpeg, whisper.cpp).
python3 <skill-dir>/scripts/make_ugc.py --script script.txt --dry-run # length, cost, prompt — no spend
python3 <skill-dir>/scripts/make_ugc.py --script script.txt # full run, 5–10 min
<skill-dir> is the folder this SKILL.md is in. Output: ./ugc-videos/<slug>/<slug>.mp4.
24/7 → twenty-four seven, 2am → two a.m., 9:45 p.m. → nine forty-five p.m.). Write twelve hundred dollars if that is how it should be said; $1,200 is read "one thousand two hundred dollars".python3 is missing, show brew install python
and wait — the dry run cannot start without it. If ffmpeg or whisper is missing, the dry run lists those
install commands first. Show those to the user and wait. Do not add --no-fix yourself. That flag
is only after the user says to skip the word check.fixed: / cut:) and anything NOT FIXED with its
time in the video. Tell the user exactly where to listen.--rerender only if they say yes. It keeps the old take
and reuses the same MP3.ugc-videos/<slug>/<slug>.mp4. Upload that file to the project and record the key. See Find them later.If the user has more than one Graphed account or project, the script stops and lists them; ask, then pass
--account / --project. The choice is remembered in ~/.config/graphed/ugc-video.json.
| # | Step | Where | Cost |
|---|---|---|---|
| 0 | Preflight: Graphed CLI logged in, ffmpeg, whisper-cli, whisper model. Prints install commands for anything missing | local | free |
| 1 | Quotes removed, numbers spelled out, word count + length + cost estimate | local | free |
| 2 | MP3: fal:fal-ai/minimax/speech-02-hd with the avatar's cloned voice, speed 1.0 | Graphed | ~7 credits |
| 3 | Fit: pauses over 0.3 s trimmed to 0.25 s, then atempo to ≤ 29.0 s (limit 1.10×). Over the limit it stops and says how many words to cut | local ffmpeg | free |
| 4 | Seedance: kie:bytedance/seedance-2-5, 480p, 9:16, [Image1] = avatar still, [Audio1] = the MP3, generate_audio: true, duration = MP3 length rounded up. Prompt: prompts/seedance.txt | Graphed | ~16 credits/s |
| 5 | Check: local whisper on the render and on our MP3, compared with the script | local whisper | free |
| 6 | Fix: wrong word → same word spliced from the MP3 (video untouched). Stutter / extra words → cut from video + audio as a jump cut. Each fix is tried at several timings and kept only if a whole-file transcript then reads right | local | free |
| 7 | Upscale: resize-grain.sh (Lanczos + light sharpen + phone grain) to 1080x1920 | local ffmpeg | free |
Steps are resumable: an existing voice.mp3 or raw-480p.mp4 in the output folder is reused.
--caps Brand1,Brand2 writes those names in caps in the Seedance dialogue only (the MP3 text stays normal).
Optional; it was used in the clean test runs.--no-fix skips the word
check only after they ask, or when Whisper is installed and too slow. A slow machine can instead transcribe
with graphed tools run fal:fal-ai/whisper (chunk_level: "word", under 1 credit per clip).Each folder in avatars/ is one speaker:
| File | Purpose |
|---|---|
avatar.jpg | The still — Seedance [Image1] |
avatar.json | voice_id (fal MiniMax clone), speaker (prompt line), persona notes |
voice-ref.mp3 | The sample the voice was cloned from |
legacy-voice.mp3 | Pronunciation guide for the old --engine avatar path only |
| Avatar | Who |
|---|---|
latina-kitchen (default) | Woman in her 30s, long wavy dark hair, black polo, restaurant back kitchen, selfie angle |
Voice clone expiry: MiniMax deletes a cloned voice that is not used for about 7 days. If the TTS step fails
on the voice id, run make_ugc.py --clone-voice (about 172 credits). It clones voice-ref.mp3 again and
saves the new id in avatar.json.
| Flag | Default | Notes |
|---|---|---|
--script | required | A .txt path or the text itself |
--dry-run | off | Length, cost and the full prompt; no upload, no spend |
--avatar | latina-kitchen | Folder in avatars/ |
--caps | none | Brand names to write in caps in the Seedance dialogue |
--slug / --out-dir | first words / ./ugc-videos | |
--rerender | off | New Seedance take with the same MP3. Only after the user says yes |
--no-fix | off | Skip the whisper check. Only if the user asks, or Whisper is installed and too slow |
--no-upscale | off | Stop at 480p |
--clone-voice | — | New voice id from voice-ref.mp3 |
--engine avatar | seedance | The old graphed:ugc.avatar path (scripts/legacy_avatar.py, takes --brand) |
--account / --project | auto | See above |
ugc-videos/<slug>/)<slug>.mp4 (final, 1080x1920) · raw-480p.mp4 (Seedance take) · fixed-480p.mp4 · voice.mp3 (the fitted
MP3) · script.txt · script-spoken.txt · check.json (splices, cuts, and anything not fixed) ·
seedance.body.json · tts.body.json. A re-render keeps the old take as raw-480p-take<n>.mp4.
The script uploads the voice and the still so Seedance can fetch them. It does not upload the finished MP4, and project storage does not list files. A later system on this project can open the video only if the finished file is uploaded and the project's Postgres has the storage key.
After the MP4 is written:
graphed storage upload ugc-videos/<slug>/<slug>.mp4 ugc-video/<slug>/<slug>.mp4 --account <account> --project <project> --content-type video/mp4graphed databases list --account <account> --project <project>.graphed.yaml, tell the user, then deploy so the database is created. If you do not have the project files, stop and give them the storage key.databases:
primary:
env: DATABASE_URL
graphed databases query is read-only:select table_name, column_name
from information_schema.columns
where table_schema = 'public'
order by table_name, ordinal_position
Use the table that has storage_key. That column is the file name in project storage. If more than one table has it, ask which one holds ad creatives. Insert the finished MP4 into that table, filling the columns it already has, including storage_key (ugc-video/<slug>/<slug>.mp4). Do not create a second table. Do not record the voice or the still.
skill_asset and insert there. Create and insert with graphed exec after the project has a successful deploy (DATABASE_URL is set there). graphed databases query cannot write.create table if not exists skill_asset (
storage_key text primary key,
kind text not null,
filename text not null,
content_type text,
created_at timestamptz not null default now()
);
One row for the finished MP4. kind is ugc-video. filename is <slug>.mp4. content_type is video/mp4. Skip a key that is already stored.
A later system reads the row and downloads that key. It does not scan the file store.
| Need | Install |
|---|---|
| Graphed CLI, logged in, with credits | npm install -g @graphed-inc/cli · graphed login |
| Python 3 | brew install python if python3 is missing. No extra packages |
| ffmpeg + ffprobe | brew install ffmpeg |
| whisper.cpp | brew install whisper-cpp |
| whisper small model | mkdir -p ~/whisper-models && curl -L -o ~/whisper-models/ggml-small.bin https://huggingface.co/ggerganov/whisper.cpp/resolve/main/ggml-small.bin (466 MB; another path via WHISPER_MODEL) |
check.json and listen.Graphed is a marketing cloud. It includes the infrastructure for an agent to do marketing: a data warehouse, data pipelines, a Postgres database, cron jobs, runtime servers, a tool catalog, custom domains, and internal app tooling.
avatars/latina-kitchen/avatar.jpg (opens in a new tab)avatars/latina-kitchen/avatar.json (opens in a new tab)avatars/latina-kitchen/legacy-voice.mp3 (opens in a new tab)avatars/latina-kitchen/voice-ref.mp3 (opens in a new tab)prompts/seedance.txt (opens in a new tab)scripts/fix_words.py (opens in a new tab)scripts/legacy_avatar.py (opens in a new tab)scripts/make_ugc.py (opens in a new tab)scripts/resize-grain.sh (opens in a new tab)scripts/spoken.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
ugc-video, talking-head, avatar-video, testimonial, video-ad
npx claudepluginhub graphed-inc/marketing-skills --plugin marketing-skills20 skills in this plugin
/ad-spyWhen the user wants to track competitors' ads, or asks what ads a rival is running, which hooks and angles they test, or where their own messaging has gaps: a Foreplay-style ad spy, competitor ad research, an ad swipe file, positioning gaps. Deploys a hosted Ad Spy app on Graphed that pulls Meta, Google and LinkedIn ads every day, has Gemini watch, transcribe and tag each creative, and maps what buyers say on Reddit, YouTube, LinkedIn and review sites against what competitor ads say, with ad ideas for each open gap. By default ask for the user's website and 2-4 competitors and set both up from the terminal. To make the ads, see static-ads or ugc-studio. Also /graphed:ad-spy./ai-marketing-agentWhen the user wants an AI teammate in Slack, or asks for a Slack bot that pulls their numbers, does research and makes files with their Graphed data and tools: an AI employee, '@graphed in Slack', an AI marketing agent. Deploys a Slack app (handle @graphed) that runs Claude Code with the full graphed CLI in a private sandbox, shows each step in plain English while it works, answers in the thread with text, files, tables, charts and next-step buttons, keeps a shared company memory, shows the credits each request used, and refuses guests and other workspaces by default. Also /graphed:ai-marketing-agent.Other plugins' skills for the same job