Communitygithub.com

6667084/ai-short-video-skill

Produces Douyin / WeChat Channels / TikTok-style vertical ad videos (≤30s, 9:16) end-to-end — hook-first script, cost quotes confirmed by the user before any paid generation, product-zero storyboard (AI footage shows only people; every product shot is real pixels via motion_clip / product-reveal overlays, so labels never garble), Seedance 2.5 via Jimeng Canvas CLI (credits) or reAPI (USD), per-video visual styling (fonts, stickers, calc board, end card), aligned captions, Suno BGM, cover image, publish copy, and automated QA. Use when the user asks for 抖音/视频号/短视频/带货视频/广告片/口播视频/系列视频, mentions Seedance, 即梦, 画布, reAPI, 字幕, 花字, 封面, 价格卡, 算账板, 产品揭幕, 超分, or wants to turn a product + script into a finished video. Not for long-form editing, live streaming, or pure image tasks.

What is ai-short-video-skill?

This skill is a comprehensive AI agent workflow for producing short vertical ad videos (≤30 seconds, 9:16 aspect ratio) for platforms like Douyin (TikTok China), WeChat Channels, and TikTok. It transforms "a product + key selling points" into a fully polished, publishable video complete with subtitles, stylized text overlays, price animations, background music (BGM), cover image, and publication copy. The core methodology, derived from a real-world case study, enforces a "product-zero storyboard" rule: AI-generated footage (via Seedance 2.5) is limited to people and lifestyle scenes only, while all product shots are created as transparent real-pixel overlays using `motion_clip`. This prevents common AI artifacts like garbled text or incorrect product counts. The skill orchestrates a multi-step workflow across several MCP tools (media-jimeng, media-reapi, media-image, media-speech, media-edit) for everything from script writing and quotation to video composition, QA, and delivery. It strictly requires user approval before any paid generation, supports both credit-based (Jimeng Canvas CLI) and USD-based (reAPI) billing, and ensures high quality through automated checks like `qa_check` and subtitle alignment verification.

Works with✓Claude Code~Codex CLI~Cursor
npx skills add https://github.com/6667084/ai-short-video-skill/tree/HEAD/skill/douyin-video

Ask in your favorite AI

Open a new chat with this agent skill pre-loaded.

Documentation

Douyin / WeChat Channels AI Short Video Production

Turn "a product + a set of selling points" into an ad-ready 30-second vertical short video: final output (subtitles, stylized text, price animation, BGM) + cover image + publication copy. The methodology comes from a real-world campaign of 10 barrel water group-buy videos (see repo docs/case-study.md), and boils down to one core rule:

AI only shoots people and life scenes; all product shots use real pixels. Video models will always re-render labels into gibberish, and draw "10 barrels" as 20; rather than cropping or blurring after the fact, it's better to remove the product from AI footage at the storyboard stage.

Tools (media series MCP, split by capability)

ServiceTools Used by This SkillCost
media-jimeng (Jimeng Canvas CLI, default video channel)doctor / jimeng_quote (server-side quote) / jimeng_submit / jimeng_status / jimeng_credit / jimeng_spendJimeng membership credits
media-reapimusic_quote (Suno BGM) / video_options / video_quote (fallback) / submit_quote / task_statusUSD
media-imageimage_generate (character references, backgrounds, stylized text, titles, transparent background) / image_edit / image_compositesubscription quota
media-speechsubtitles_align (align subtitles to script) / transcribe / ttsFree
media-editmotion_clip (real product animation, can be transparent) / broll_insert (replace video only, keep voiceover) / video_compose / qa_check / contact_sheet / still_to_video / local_upscale / local_job_statusFree

In Claude Code, tool names are mcp__<service>__<tool>. Even without these MCPs installed, the methodology still applies: use CapCut / ffmpeg / After Effects and follow the same storyboard and rules manually.

Project folder: each project gets a <PROJECTS_ROOT>/<project name>/ directory (default ~/Desktop/Self-media, see settings.json's projects_root), containing instructions.md, assets/, scripts/, output/. The tool's job parameter maps to <project>/output/{images,raw,final}. Always read the project's instructions.md first; templates are in templates/. Secrets are in ~/.config/media-mcp/.env — do not read or print them.

Hard Rules

  1. User must confirm before spending money. jimeng_submit (credits) and submit_quote (USD) will deduct costs: first present the quote's summary and alternatives to the user, only submit after explicit consent. If the user has pre-authorized a budget, you may proceed directly, but still "spend as little as possible" and report usage afterward. When the user says "don't generate yet / just prepare," do not call any paid tool.
  2. Execute the user's plan first, don't upgrade models, resolution, or duration without permission; if a better option exists, explain the price difference and reasoning, and let the user choose.
  3. No products, no text, no BGM in AI footage: prompts must forbid product/packaging/any text; "only generate human voices and sound effects, no background music." Product, price, subtitles, stylized text, and BGM are all added in post-production.
  4. Quantity, price, and brand name must be real pixels and aligned with the voiceover: if the script says "10 barrels," exactly 10 barrels must fall; when it says "one sixty," the number 160 must appear and be crossed out.
  5. The final video must pass qa_check (fail = do not deliver; warn = check the review image). Review the contact sheet yourself before delivery.
  6. One video at a time: for a series, proceed to the next video only after the user confirms the previous one; write lessons learned back into the project's instructions.md.
  7. No title art text or "AI generated" watermark inside the video: titles only go on the cover (they would cover faces inside the video); enable the AI label and "fictional reenactment" tag on the platform when publishing.

Workflow (copy this checklist and check items one by one)

- [ ] 1 Start: doctor (media-jimeng / media-image / media-edit / media-speech / media-reapi); read project `instructions.md`; product facts come only from client materials
- [ ] 2 Script: hook in first 3 seconds + pain point/scene + price anchor + call to action, ≤30 seconds, voiceover ≤150 characters; for a series, write all topics and scripts for user review first
        → reference/script-and-hooks.md; template templates/script-template.md
- [ ] 3 Storyboard: zero product appearance — mark which lines use "calc board," "product reveal," "end card" to cover the frame → reference/storyboard-product-zero.md
- [ ] 4 Visual style: define a set style for this video (subtitle font/color, stylized text, calc board, reveal effect, end card) → reference/visual-styles.md
- [ ] 5 Visual assets (image_generate, review each image): 1 front-facing half-body reference image with emotion per character; background for calc board/end card; light effect for reveal;
        3 price stylized text images + 1 highlight stylized text image + 1 cover title image (transparent background, check character by character, verify true transparency)
- [ ] 6 Prompt: Seedance structure (material description/overview/prop prohibitions/audio/on-screen text/storyboard timeline/global constraints) → reference/prompting.md
- [ ] 7 Quote: jimeng_quote (default 480p; native 720p requires user confirmation) + music_quote (BGM) → present summary to user → submit after approval
- [ ] 8 Review: jimeng_status download → contact_sheet check faces/fingers/extra objects → subtitles_align verify lines (matched_lines must all match)
- [ ] 9 Real pixel clips: motion_clip for calc board (timed to aligned voiceover timestamps), motion_clip(transparent=True) for product reveal, end card
- [ ] 10 broll_insert: replace with calc board, overlay reveal on corresponding voiceover segments (voiceover continues uninterrupted)
- [ ] 11 Final video: video_compose (captions, cards for stylized text, caption_font/color/stroke, bgm_path, append end card) → local_job_status
- [ ] 12 QA: qa_check → review review_image (UI safe zones, face occlusion, reading speed, loudness); fail → go back to step 11
- [ ] 13 Delivery: cover (scripts/make_cover.py) + publication copy (templates/publish-copy-template.md) + final video project.json + history line in instructions.md

Product-Zero Storyboard (Core Method)

ModuleUsed for Which LineMethod
Calc Board (replace)"Was 16 a barrel, ten barrels one sixty, now ten barrels ninety-nine"motion_clip: styled background + text layers appear line by line + strike through original price + 10 real product images drop one by one + price stylized text pops up; replaces the entire frame
Product Reveal (overlay)"16.8 liters, big brand, safe to drink"Prompt character to stand on one side of the frame, gesture with palm up, leave room on the other side; motion_clip(transparent=True) creates light effect + real product pop-up floating, overlaid on the character's clip (character moves normally)
End Card (append)Last 2-3 secondsmotion_clip: product + price stylized text + call to action + compliance fine print (e.g., "Applicable area subject to group-buy page")

Timing is always based on the actual voiceover timestamps returned by subtitles_align, not script estimates. See reference/storyboard-product-zero.md.

Do not: give product close-ups in AI footage; use blurry blobs, cropping, or patches to hide garbled text (looks cheap); lay flat product PNGs on real floor to pretend it's a real scene (perspective mismatch, instantly fake).

Platform & Resolution (Tested Oct 2026)

  • Video defaults to Jimeng Canvas CLI (media-jimeng): same model and quality as reAPI, native 720p one 26-second video costs 520 credits (≈¥22), about 44% of reAPI 720p; server-side quotes cap the run at the quoted credits. Details and pitfalls in reference/jimeng-canvas.md.
  • Resolution: default 480p generation → local upscale to 720p; for main delivery videos with many close-ups / facial detail, native 720p is recommended (480p upscaled makes skin look waxy and hair blurry), requires user confirmation. 1080p generation has poor value (64 credits/second).
  • Model: for main delivery videos with real people, use Seedance 2.5 (generates ≤30 seconds in one go, consistent voice throughout, good lip sync); do not use the Mini series for main delivery videos (characters look fake and blurry). See reference/models-and-pricing.md.
  • BGM: one Suno generation per video (reAPI music_quote, $0.066 for 2 tracks, pick 1).

Delivery Standards

DeliverableRequirements
Final video output/final/<brand>_<title>.mp41080×1920 or 720×1280 (output_size) / 30fps, ~30 seconds (including end card), -14 LUFS, all subtitles match, qa_check no fail
Cover …_douyin_cover.pngThe most expressive frame + this video's title art text, placed in the lower 3:4 safe area, not covering eyes or mouth
Publication copy scripts/<title>/publish-copy.mdVideo intro (1-2 sentences + emoji + call to action) + 4-6 hashtags; when publishing, check "AI generated," label "fictional reenactment," attach link
Project record scripts/<title>/final-video-project.jsonPlatform, credits/USD spent, insertion timings, subtitle style, QA conclusion, for easy reproduction and re-editing

When to Read Reference Files

ScenarioFile
Writing scripts, hooks, series topics, compliance wording, BGM stylereference/script-and-hooks.md
Storyboard, calc board, product reveal, broll_insert timingreference/storyboard-product-zero.md
Writing Seedance prompts, character reference imagesreference/prompting.md
Designing style per video, stylized text/sticker prompts, fontsreference/visual-styles.md
Subtitles, stylized text placement, UI safe zones, QA thresholdsreference/captions-and-layout.md
Cover image and publication copyreference/cover-and-publish.md
Jimeng Canvas CLI: installation, quotes, credits, pitfallsreference/jimeng-canvas.md
Models, pricing, reAPI pipelinesreference/models-and-pricing.md
Upscaling optionsreference/upscaling.md
Errors, unexpected results, reworkreference/lessons-learned.md
Doubao web quota evaluationreference/doubao-web.md
Daily morning greetings / seasonal IP seriesUse daily-health-video skill instead (if installed)

Minimal Example (One 26-Second Native 720p Commercial Video)

# 1 Assets (media-image, review each image)
image_generate("vertical realistic portrait… approx 35-year-old Chinese woman… expression: surprised wide-eyed… no text in the image", job="BrandX", name="VideoA_mom_ref", size="1024x1536")
image_generate("truly transparent background… journal-style sticker, only text '10桶99元'…", job="BrandX", name="VideoA_stylized_10buckets99", size="1536x1024", background="transparent")
# 2 Main video (media-jimeng)
jimeng_quote(prompt=<templates/seedance_prompt_template.txt filled in>, job="BrandX", images=[mom_ref, dad_ref], duration=26,
             resolution="720p", confirm_high_res=True, name="VideoA_main")      → present summary to user → approve → jimeng_submit(quote_id)
music_quote(style="warm acoustic guitar, light claps, 110 bpm, family ad bgm", job="BrandX", title="VideoA_bgm", duration=40) → approve → submit_quote
jimeng_status(submit_id, job="BrandX", name="VideoA_main")                       # about 5 minutes
# 3 Alignment + real pixels (media-speech / media-edit)
subtitles_align(video_path=raw/VideoA_main.mp4, lines=["Was 16 a barrel|Was sixteen a barrel", "Now 【10 barrels for 99】!|Now ten barrels ninety-nine", …])
motion_clip(job, name="VideoA_calc_board", duration=4.6, background=calc_board_bg, layers=[text layer…, 10× product image drop…, stylized text pop…])
motion_clip(job, name="VideoA_product_reveal", duration=2.6, transparent=True, layers=[light_fade, product pop+bob])
broll_insert(base=raw/VideoA_main.mp4, inserts=[{video:calc_board, start:12.9}, {video:product_reveal.mov, start:22.3}], job, name="VideoA_main_inserted")
# 4 Final video + QA + Cover
video_compose([main_inserted, end_card], job, output_name="BrandX_VideoA", captions=cues, cards=[stylized_text…],
              caption_font="HappyFont", caption_color="#FFFFFF", caption_stroke="#7A4A2A", bgm_path=raw/VideoA_bgm_1.mp3)
qa_check(output)  →  python scripts/make_cover.py --video … --t 1.6 --title VideoA_cover_title.png --out …_douyin_cover.png

Remind User Before Publishing

Check the "Content generated by AI" option on the platform; label fictional reenactments as "fictional reenactment"; strike-through original prices must have a real basis; do not use extreme/efficacy claims like "best, first, cure, absolutely"; replace call-to-action with actual conversion methods (group-buy link / DM / store visit).

Related Skills