/content-agent-kit:create-videofrom content-agent-kit
Turns articles, URLs, or text files into 9:16 short videos (TikTok/Reels/Shorts) with Vietnamese narration. Writes and validates a script, then renders video, voice, and text output.
Ships in content-agent-kit. 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.
None: SKILL.md is the whole skill.
Produce a 9:16 short from written content. You write text only — the templates own every
pixel of design and motion. Deterministic code turns your script.json into the video.
Antigravity / Gemini: same steps, run the commands directly.
Chạy lệnh
node scripts/…ở thư mục gốc của kit — thư mục cóAGENTS.md, hai cấp trên file này (nếu skill được cài bằnginstall-skills.mjs --kit, đường dẫn nằm trong file.kit-rootcạnh file này).
Dẫn người dùng theo đúng các bước dưới, bằng lời đơn giản. Trước khi bắt đầu: một câu nói skill sẽ làm gì, mất khoảng bao lâu, cần người dùng chuẩn bị gì. Đầu mỗi bước báo "Bước n/N — <tên bước>" kèm một câu đang làm gì. Khi cần người dùng làm gì, chỉ hỏi đúng một việc. Kết thúc: kết quả nằm ở đâu và việc nên làm tiếp.
| Bước | Agent làm gì | Người dùng cần làm |
|---|---|---|
| 1. Lấy nội dung | Đọc link bài, file .txt hoặc nội dung trong hàng đợi; link bị chặn thì dừng, không bịa | Gửi link hoặc file .txt |
| 2. Đọc quy tắc | Đọc VIDEO_CRAFT và video-templates/CATALOG.md | — |
| 3. Viết kịch bản | Viết script.json vào brain/<tên-ngắn>/: lời đọc + chữ trên từng cảnh | Duyệt nội dung nếu muốn |
| 4. Kiểm kịch bản | Chạy node scripts/video/validate-script.mjs <thư mục>/script.json --strict (vài giây) | — |
| 5. Nghe thử giọng (lần đầu) | node scripts/video/tts-check.mjs | Nghe file mẫu, chọn giọng |
| 6. Dựng video | node scripts/video/render.mjs <thư mục>/script.json — mất 3–5 phút | Đợi |
| 7. Xem và giao | Tạo ảnh từng cảnh bằng contact-sheet.mjs, rồi báo video.mp4, voice.mp3, script.txt | Xem video; muốn đăng thì dùng video-and-post |
Hay vướng:
clips/scene-<id>.mp4 của cảnh đó rồi dựng lại.WebFetch asking for: title (string), content (main body, ~500–1500 words),
ogImage (string|null), domain. If it fails (paywall / JS-only / 4xx), stop and ask the
user to save the text to a .txt — do not invent content..txt file → Read it. Title = first line (≤80 chars), content = the rest,
domain = "local".Pick an output directory. Inside a content-agent-kit project use brain/<slug>/, matching where
that item's other artifacts live. <slug> is ASCII, diacritics stripped (đ→d), ≤40 chars.
Read both, every time — they are the difference between a video that renders and one that does not:
templates/VIDEO_CRAFT.template.md (or the project's own VIDEO_CRAFT.md) — the two text
channels, the Vietnamese number table, pacing, template choice, the review rubric.video-templates/CATALOG.md — every template's slots, types and character limits.
Only use a templateId that appears there.brain/insights.md if it exists (performance-review
writes it from real post numbers). It beats general advice on genre, length and hook shape
for THIS audience; follow a finding with its n, and say when you go against one. Set
"genre" in the script (a key of templates/VIDEO_GENRES.template.json) so the next
review can count this video."theme" to the industry's preset from templates/INDUSTRIES.template.json
(graphite-signal for AI/tech, ledger-green for finance, newsprint-red for news…). Do
not leave a non-tech video on the dark neon defaults. Rules and the "AI-slop" tells to
avoid: docs/25-palettes.md.frame-trend-* set for hooks, data and CTAs — word-pop, search-morph,
comment-reply for the first 2 seconds; bar-race and stat-odometer for numbers;
compare-wipe for before/after; price-drop for the selling close. They fill a 9:16 frame and
keep moving; the older generic cards they replaced did neither.script.jsonStart from templates/VIDEO_SCRIPT.template.json — it is a complete, validator-clean 9-scene
example. Write to <outputDir>/script.json.
The rules that break a render if you get them wrong:
hook + 6–10 body + 1 outro. First scene type:"hook", last type:"outro".voiceText is spoken aloud: spell every number out in Vietnamese words
(GPT 5.5 → GPT năm chấm năm, 200MP → hai trăm megapixel, 2x → gấp đôi).
No digits, no emoji, no URLs, no → & % $ # + =. End each with . or ?.inputs is rendered on screen: keep pretty numbers (5.5, 82%), emoji allowed
(0–1 per field) — but never in frame-build-minimal's hero, which animates per character.frame-liquid-bg-hero. Outro is frame-logo-outro (or
frame-statement-outro). Body templates are your choice — vary them, max twice each.accent_from/accent_to, per-side from/to) and item icon emoji are yours to
pick per scene.Does the whole video want a different palette? Almost every template is dark by default. One top-level key recolours all of them at render time:
{ "aspect": "9:16", "theme": "paper-blue" }
paper-blue (white canvas, ocean-blue ink) · paper-ink · paper-forest, or an object that
overrides any field of one. Ask before choosing — a palette is the user's call, not yours.
If the user has a website, offer to read their palette off it rather than guessing hex
codes: node scripts/video/theme-from-url.mjs --url <their site> --name <id> writes a theme
they can then use by name. Run it with --dry-run first and show them the palette — on a
page that is mostly photography the dominant colour is the photograph, and only they can tell.
Two consequences worth knowing: emoji keep their own colours (a red 🚫 stays red on a blue
frame), and a new template must be measured with theme-probe.mjs before it themes correctly.
See video-templates/CATALOG.md.
Which frames does this kind of business need? templates/INDUSTRIES.template.json has an
entry per vertical: the genre to start from, the frames that vertical actually uses, and a
palette. It also names what that vertical wants and this kit cannot draw yet — do not
substitute a frame that only nearly fits, say the gap out loud instead.
How do the scenes join? Hard cuts unless you say otherwise. One top-level key gives the whole video a transition, and a scene can override how it enters:
{ "transition": "fade", "scenes": [{ "id": "s2", "transition": "swipe" }] }
fade · swipe · slide · iris · pixelize · zoom · whip · radial · slice · squeeze · reveal · cover · none. The finished video is
exactly the same length either way — the padding is worked out for you — but a transition
forces a re-encode of the join, so --no-transitions is there while you iterate.
| transition | ffmpeg xfade | when it earns its place |
|---|---|---|
fade | fade | Gentle topic shift or time passing |
swipe / slide | wipeleft / slideup | Stepping to the next item in a sequence or list |
iris / radial | circleopen / radial | Opening onto a map, diagram, or clock-sweep reveal |
zoom | zoomin | The beat where something is FOUND — a radar lock, a map arriving on its target |
whip | hblur | High-energy whip-pan between contrasting beats (whoosh SFX) |
slice / squeeze | hlslice / squeezev | Glitch, terminal, or mechanical dossier cuts |
reveal / cover | revealup / coverleft | Editorial page-turn or curtain-lift into a verdict |
pixelize | pixelize | Retro/arcade beat or digital deconstruction |
zoom is for the beat where something is FOUND — a radar lock, a map arriving on its
target, a name matching a record. A fade says "and then"; the picture should say "there".
Use it once or twice in a video, on the join that earns it: a punch on every cut is a tic.
It acts on the JOIN, pushing the incoming scene forward — it is not a camera move on the
outgoing one. If a scene carries
a whoosh, swoosh or page-flip SFX, give it a transition: that sound is describing a
movement, and over a hard cut it describes one that never happens.
Does any scene want real footage? A scene can carry a media block — a stock clip, or a
screenshot of the page you are citing:
"media": { "kind": "video", "source": "pexels", "id": "28709421" }
"media": { "kind": "screenshot", "url": "https://…" }
"media": { "kind": "video", "source": "geo", "query": "Aokigahara, Japan" }
Use frame-broll when the footage is the scene, frame-media-inset when it illustrates a
point the words carry, frame-screenshot to show a page the viewer might doubt. Never put
footage under a statistic — a number needs a text template to stay readable, and never let
more than about a third of scenes be B-roll.
Does the video need a change of energy? A run of text frames and stock B-roll is one tone
for ninety seconds. frame-meme costs one scene and resets attention:
"media": { "kind": "image", "source": "meme", "id": "drake|Viết tay|Dùng agent", "fit": "contain" }
fit: "contain" is required — cover crops the image to fill the frame and takes the
punchline with it, before this template ever sees the file. The validator refuses without it.drake wraps at about 15 Vietnamese
characters, afraid at 23 — it depends on the template, so render it and look:
node scripts/media/meme-search.mjs --render "drake|…|…" --out /tmp/m.pngvoiceText still has to make sense with
the sound off the picture. Do not read the meme aloud word for word.Is the scene about a real place? The geo source builds a flythrough of it — map tiles
falling from the whole world onto the coordinates, then satellite, then street level. It makes
a strong frame-broll hook when where is the story. Free and keyless. Look before you
commit: node scripts/video/geo-flythrough.mjs --place "…" --dry-run.
Two things it will tell you, and both matter: whether a font was found for the
attribution — a tile carries no credit of its own, and publishing without one breaks the
licence — and whether street-level imagery exists there at all (Mapillary's coverage is
much thinner than Street View's; no coverage is normal, and the clip is then map-only).
Prefer --lat/--lng over --place: geocoding a name happily returns a café with the same
name in another country. For a stylised map instead of photographic, use the vector frames —
frame-geo-markers → frame-geo-route → frame-geo-pin-detail.
Is the footage somebody else's TikTok / Douyin post? The social source fetches it
through a service you run — and the scene must say on what basis:
"media": { "kind": "video", "source": "social", "url": "https://www.douyin.com/video/7…",
"rights": "permitted", "rights_note": "author @abc agreed by DM, 2026-08-14" }
rights is one of own · licensed · permitted · public-domain; the last two are claims
about someone else's permission and must name it in rights_note. The validator refuses a
scene without a declaration, and media-lock.json records it beside the original URL. There
is no unknown value — if you cannot say which of the four it is, use Pexels instead.
Studying a post's hook rather than shipping its footage? social-fetch.mjs --analyze.
For choosing clips and capturing pages, follow the research-and-capture skill; the rules
live in VIDEO_CRAFT.md §4b and docs/15-media-sources.md.
Pairing with specialized registry skills:
opus-55-videos (yihui-dev/awesome-opus5-5-videos), opus-video-skills, and opus-video-styles (HiAPIAI/awesome-opus-5-5-video-styles) for 12 art-direction recipes (productui, explainer, collage, handdrawn, pixel, generative) paired with the frame-opus-* templates.motion-video-kit for product launch choreography and visual critic loops, or video-lens to extract structured beats from reference YouTube videos.marketing-core (product-marketing.md) or fb-hook-extractor to analyze hook formulas before writing scene 1.manim-math for math proofs (frame-math-manim), explainroo for word-aligned canvas explainers, and drawio for flowchart/architecture mapping (frame-diagram-architecture, frame-diagram-flowchart).ui-transitions and motion-craft for curated easing curves (cubic-bezier, linear() springs), delays, and micro-animations across HTML frames.ui-ux-pro for WCAG AAA contrast and typography ratios.Does it want a music bed? One optional block, and the bed is mixed under the narration:
{ "music": { "query": "dark ambient drone", "gainDb": -20 } }
Openverse, no key, filtered to licences that clear a monetised and edited video. gainDb
must be negative — the validator refuses otherwise, because a bed louder than the voice is
a mistake rather than a taste, and one you only hear after a full render. The music is also
ducked under every spoken word, so it comes up in the gaps instead of sitting at one level.
Audition before committing: node scripts/video/music-search.mjs --query "…" --get 1 --out /tmp/bed.mp3,
then use { "file": "bed.mp3" } to pin that exact track. Prefer CC0 — CC-BY works but then the
attribution must appear wherever you publish, and the render prints it.
CC0 means "not copyright-encumbered". It does not mean "will not be Content-ID claimed" — widely-used CC0 audio gets registered by distributors with no right to it. Disputable, since the licence is in
media-lock.json, but not impossible.
Captions: --captions burn writes them into the picture, and they pick up the script's
theme, so a themed video gets themed captions with no extra work. Most short-form is watched
with the sound off; --captions file instead writes a .ass any editor can import.
node scripts/video/validate-script.mjs <outputDir>/script.json --strict
Fix everything it reports and re-run until clean. It quotes the offending text. This costs seconds; rendering a broken script costs 3–5 minutes. Silently correct up to two rounds; if it still fails, say what is wrong rather than rendering anyway.
The narrator comes from TTS_PROVIDER/TTS_VOICE_ID in env, or from the script's own voice
block, which wins:
"voice": { "provider": "elevenlabs", "voiceId": "21m00Tcm4TlvDq8ikWAM", "speed": 1.0 }
Put it in the script whenever the choice matters — that is what makes the video reproducible
rather than dependent on whoever's .env ran it.
Before the first render with a new voice, listen to it — seconds, versus 3–5 minutes:
node scripts/video/tts-check.mjs --providers # what's configured / available
node scripts/video/tts-check.mjs # speak a sample, save it, report timing
Only omnivoice needs a local server; the others need an API key. If a cloud provider bills
per character, check the damage first: node scripts/video/render.mjs <script.json> --estimate.
Foreground, streaming output — it takes ~15–20s per scene, so 3–5 minutes for 8–10 scenes:
node scripts/video/render.mjs <outputDir>/script.json
It preflights ffmpeg / Chrome / the configured voice first and names anything missing.
On success it prints VIDEO=<path> — capture that.
Captions — match them to the frames. The frame-trend-* templates already put the key
words on screen as kinetic type, so burning captions over them stacks two layers of text and
they collide (checked on the niche samples, Nov 2026). Leave captions as a sidecar file
(the default) for template-led videos. Burn active-word captions when the scenes are
mostly footage — frame-broll, screen recordings, a person speaking:
node scripts/video/render.mjs <outputDir>/script.json --captions burn --caption-style active
If the user brings their own talking-head footage, one command cuts the pauses, reframes to 9:16 (cropping out burned-in TV bars), and burns active-word captions from a speech-to-text transcript (faster-whisper / whisperX / whisper.cpp JSON — see docs/26):
node scripts/video/talking-head.mjs take.mp4 --transcript take.json --crop 405:600:438:0 --theme <preset> --hook "<first-line title>" --credit "<source · licence>"
node scripts/video/autocut.mjs take.mp4 --vertical --punch 0.12 # cut only, no captions
Method for both: docs/26-auto-edit.md. For a full edit of someone's own footage — fillers and
retakes cut by the words, cards from what each sentence says, music and sounds — use
skills/talking-head-edit/SKILL.md.
If a scene's text was wrong, fix script.json and re-run: narration re-generates by itself
when the text, provider, voice or speed changed (it is fingerprinted). Only visual edits need a
manual nudge — delete clips/scene-<id>.mp4 after changing that scene's inputs.
node scripts/video/contact-sheet.mjs <outputDir>/video.mp4
One labelled thumbnail per scene in a single image. Do this every time. The validator checks rules; it cannot see that a headline printed twice, that a word broke mid-syllable, or that the B-roll shows a coffee cup. All three of those shipped before this step existed.
✓ Video: <outputDir>/video.mp4 (1080×1920, XX.Xs)
✓ Audio: <outputDir>/voice.mp3 — for CapCut
✓ Script: <outputDir>/script.txt — CapCut auto-caption
To publish it, hand off to the video-and-post skill or run scripts/social/make-post.mjs --video … (see docs/11-social-posting.md).
docs/14-video-generation.md.assets/sfx/ → renders without sound effects; that is fine.docs/14-video-generation.md. The validator reads the folder, so a new
template works immediately.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub xuho-it/content-agent-kit --plugin content-agent-kit32 skills in this plugin
/ads-comment-triageSort comments on Facebook ads and fanpage posts by what the commenter wants — hỏi size, hỏi giá, hỏi ship, còn hàng, muốn mua/xin inbox, khiếu nại, spam/lừa đảo link, nhắc đối thủ, khen — and draft replies in the brand's voice for review, including unaccented teencode ("sz m con k", "giá bn", "ib e"). Use when the user says "trả lời bình luận", "lọc comment", "comment ads nhiều quá", "ẩn comment spam", "khách hỏi giá dưới quảng cáo", "reply comments", "moderate comments". Drafts only; never posts, hides or deletes./ads-creative-labDesign and read Facebook/Instagram creative tests for a content-agent-kit agent — hook × angle × format matrix, a naming convention results can be pivoted on, test structure and budget (ABO test → CBO/Advantage+ scale), kill/scale rules with sample-size floors, and the next round built from the winners. Use when the user says "test creative", "test mẫu quảng cáo", "nên chạy mẫu nào", "làm thêm mẫu ads", "hết ý tưởng creative", "mẫu nào thắng", "scale mẫu nào", or after ads-report/ads-fatigue-watch names a creative to replace. Works from pasted Ads Manager numbers; better with the meta-ads MCP. Never creates or changes ads on its own./ads-fatigue-watchFind Facebook/Instagram ads that are wearing out — frequency climbing, CTR falling from its own start, CPM and cost per result rising — and write a concrete refresh brief for each, from an Ads Manager CSV export or the meta-ads MCP. Use when the user says "quảng cáo đuối", "ads bị bão hoà", "CPM tăng", "CTR giảm", "mẫu này chạy lâu rồi", "ad fatigue", "creative refresh", "canh ads", or on a schedule twice a week. Reads only; never pauses or edits an ad./ads-policy-checkPre-flight Facebook/Instagram ad copy before it is submitted — Meta's personal-attributes rule ("Bạn béo bụng?"), before/after bodies, body or health promises for shapewear, unprovable superlatives ("rẻ nhất", "số 1"), invented urgency, discounts with no reference price or over the Vietnamese promotion cap, counterfeit hints, engagement bait — with a severity and a rewrite for each. Use when the user says "check chính sách quảng cáo", "ads bị từ chối", "bị reject", "quảng cáo có vi phạm không", "kiểm tra nội dung trước khi chạy", "policy check", or before any ad copy leaves the review gate. A linter, not legal advice./ads-reportRead ad performance from the connected ads MCP servers (Meta, Google, TikTok, Snap, Reddit) and turn it into a decision about what content to make next, for an agent built with content-agent-kit. Also works with no ad spend at all — paste the numbers the platform shows you and it reports the same way. Use weekly, or when the user asks "how did the ads do", "how did last week do", "what should we post next", or "which campaigns are wasting money". Writes a short report and proposes concrete queue items./audience-planPlan Facebook/Instagram audiences for a fashion shop from its own customer data — RFM segments from an orders export (VIP, trung thành, mới, tiềm năng, sắp rời, ngủ đông), SHA-256-hashed custom-audience upload files, lookalike seeds, exclusions, and which segment gets which message. Use when the user says "tệp khách hàng", "custom audience", "lookalike", "tệp tương tự", "retarget khách cũ", "chăm sóc khách cũ", "khách lâu không mua", "phân nhóm khách hàng", "RFM". Never uploads anything; hashes personal data before it touches a file.Other plugins' skills for the same job