/content-agent-kit:video-and-postfrom content-agent-kit
Produces a short video and publishes it to TikTok, YouTube Shorts, Facebook Reels, or Instagram Reels via a Make.com webhook. Runs the full pipeline: script generation, rendering, review, caption writing, and posting or scheduling.
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.
The end-to-end loop for one video item: content → script.json → render → review → publish.
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 |
|---|---|---|
| 0. Kiểm cập nhật | freshness-check — thông số đăng, nhãn nội dung AI, chính sách nền tảng mới nhất | — |
| 1. Chọn bài | Lấy từ hàng đợi (queue-client.mjs pull) hoặc bài bạn đưa, kiểm tra chưa làm | Đưa nội dung nếu có |
| 2. Dựng video | Chạy skill create-video: viết script, kiểm tra, render (3–5 phút) | — |
| 3. Viết caption | Caption, bình luận đầu tiên, tiêu đề YouTube, hashtag | Duyệt caption |
| 4. Kiểm duyệt | Một reviewer độc lập chấm video và caption | — |
| 5. Chạy thử đăng | make-post.mjs ... --dry-run, chưa gửi đi đâu | — |
| 6. Đăng hoặc xếp lịch | Đăng ngay, hoặc build-queue.mjs để xếp giờ | Đồng ý đăng và chọn nền tảng |
| 7. Ghi lại | Ghi history.json, viết brain/<slug>/report.md | — |
Hay vướng:
.env → bản dry-run vẫn chạy; thêm webhook rồi mới đăng thật.Run freshness-check first. Upload limits and AI-label rules change; delivery-check.mjs is only as current as delivery-specs.mjs, and an unlabelled AI video can be removed after it is posted.
From the idea queue (node scripts/queue-client.mjs pull), from today's PLAYBOOK phase, or from
what the user handed you. Check history.json — skip anything already done.
Work in brain/<slug>/.
Invoke the create-video skill (or follow it as a document). It ends with a validated
script.json and a rendered video.mp4, and prints VIDEO=<path>.
Separate from the narration — this is the text of the social post, not what is spoken:
post — the caption. Follows the project's WRITING_CRAFT.md voice, not the video's.
Emoji and hashtags are fine here.comment — the first comment (engagement / link / source credit).title — required by YouTube; ≤100 characters.hashtags — e.g. #ai #coding.Never put the source's copyrighted text in the caption. Summarize in your own words and link.
Cover image — the platforms show it before anyone presses play. A talking-head short gets
one from talking-head.mjs --cover (taken before the captions were burned, plus a
<out>.post.md brief of what was said); any other video from
node scripts/video/cover.mjs video.mp4 --title "<≤ 60 ký tự>" --faces --style <the video's>.
Pass it as --thumbnail below.
Invoke the review-gate skill on the item — an independent reviewer, scoring the video
section of the rubric plus the caption. Watch specifically for:
--strictPass → continue. Fail → fix (2–3 rounds) → drop and log why.
Check the file against where it is going — a video that renders is not a video that uploads (a Shopee listing video over 30 MB, a Zalo ad over 60 s, a 16:9 "Short"):
node scripts/video/delivery-check.mjs brain/<slug>/video.mp4 --platform tiktok,facebook-reels,youtube-shorts
node scripts/video/delivery-check.mjs brain/<slug>/video.mp4 --platform shopee-product --fix brain/<slug>/video.shopee.mp4
Errors (an official limit) block the post; warnings (sources disagree) are judgement calls —
say them in the report. --fix never trims: an over-long video goes back to the edit.
Check the payload first — it costs nothing:
node scripts/social/make-post.mjs --video brain/<slug>/video.mp4 \
--post brain/<slug>/caption.txt --comment brain/<slug>/comment.txt \
--title "…" --hashtags "#ai #coding" --thumbnail brain/<slug>/cover.jpg \
--platforms tiktok,youtube_shorts,facebook_reels,instagram_reels --dry-run
Then either post now (drop --dry-run), or schedule it — the better default, because
rendering is slow and the posting slot should be instant:
node scripts/scheduler/build-queue.mjs items.json # assign times → queue.json
node scripts/scheduler/register-tasks.mjs # schtasks / cron lines
The queue item must be type: "video" and carry videoPath (already rendered), post,
comment, title, hashtags, platforms — see templates/state/queue.example.json.
run-item.mjs then only uploads and calls the webhook when the slot fires.
history.json (dedup).posted in the idea queue: node scripts/queue-client.mjs posted <url>.script.json, video.mp4, voice.mp3, script.txt.brain/<slug>/report.md: what was made, the review verdict, where it went.docs/06-scheduling.md.docs/11-social-posting.md.Zalo, Shopee Video, Shopee product pages, TikTok Shop have no posting API. Instead of
stopping there, build the upload pack — one folder per platform with the file re-encoded to its
limits, the caption, the cover and the steps — and hand it to the user:
node scripts/social/upload-pack.mjs video.mp4 --post caption.txt --hashtags "…" --cover cover.jpg --platforms zalo,shopee-video.
For TikTok, Facebook, Instagram, YouTube: make-post.mjs (Make webhook, or --via ayrshare).
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