/content-agent-kit:localize-videofrom content-agent-kit
Localizes a pre-scripted video into another language by extracting on-screen and spoken strings, translating them within character limits, switching voice (Google Cloud TTS, Azure Speech, or ElevenLabs), and rendering a new version.
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.
Dịch là việc của agent. Phần dễ hỏng là mọi thứ xung quanh: tiêu đề dịch ra dài hơn khung và bị
cắt, một dòng quên dịch, giọng tiếng Việt đọc chữ tiếng Anh. localize.mjs lo phần đó.
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 10–15 phút (phần lớn là render), cần gì (khoá giọng đọc của ngôn ngữ đích). Đầ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. Chọn ngôn ngữ và giọng | Hỏi ngôn ngữ; kiểm khoá giọng bằng providers-check.mjs | Chọn ngôn ngữ; thêm GOOGLE_TTS_API_KEY hoặc AZURE_SPEECH_* nếu thiếu |
| 2. Lấy chuỗi cần dịch | localize.mjs <script.json> --to en | — |
| 3. Dịch | Điền mọi translation, giữ đúng giới hạn max | Đọc lại các câu quan trọng (tiêu đề, kêu gọi) nếu muốn |
| 4. Kiểm và ghi | --apply — báo câu quá dài, câu chưa dịch | — |
| 5. Kiểm kịch bản | validate-script.mjs <lang>/script.json --strict | — |
| 6. Render | render.mjs <lang>/script.json — vào thư mục riêng, bản gốc giữ nguyên | Xem video |
Hay vướng:
--apply từ chối; viết lại ngắn hơn, đừng xoá bớt ý quan trọng.node scripts/video/localize.mjs brain/video-x/script.json --to en # → script.en.strings.json
# fill every "translation" (respect "max" = characters on screen; no emoji in voiceText)
node scripts/video/localize.mjs brain/video-x/script.json --to en --apply # → brain/video-x/en/script.json
node scripts/video/validate-script.mjs brain/video-x/en/script.json --strict
node scripts/video/render.mjs brain/video-x/en/script.json
max; English often
runs longer than Vietnamese — shorten, keep the meaning. voiceText has no limit but should
stay about the same length so scene timing holds."Lượt xem:10000|Xem hết:1200") keep their label:number|…
shape — translate the labels only.--provider google (default) or azure picks a default voice per language
(lib/localize.mjs VOICES); --voice-id picks another; elevenlabs keeps the script's
multilingual voice. Check the key with node scripts/providers-check.mjs --live (free).--to en keeps translations already written, so a script edit does not wipe work.font-check.mjs guards the Vietnamese
subset). Japanese, Korean, Chinese or Thai text may fall back to another face or render as
boxes — render, then LOOK at node scripts/video/contact-sheet.mjs <lang>/video.mp4 before
posting. Western languages are safe.review-gate like any other; captions for the new audience
come from video-and-post.<video folder>/<lang>/script.json and, after rendering, <lang>/video.mp4 beside it. The
strings file script.<lang>.strings.json is kept so the next edit only needs the changed lines.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
32 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.npx claudepluginhub xuho-it/content-agent-kit --plugin content-agent-kitOther plugins' skills for the same job