ไธญๆ | English
# ๐ฌ AI Vertical Drama Director Toolkit **An industrial-grade, end-to-end AI agent production pipeline for vertical short dramas & AI comic dramas (Manju) โ turning AI video generation from a slot machine into a compilable, testable, NLE-ready production system.** > **This is NOT a collection of casual prompt templates.** > Battle-tested on real commercial vertical dramas (both Chinese Manju and overseas TikTok English short dramas), this toolkit packages **3 decoupled agent skills, 217 structured files, 37 zero-dependency engineering scripts (~7,800 lines of Node.js & Python), and a 750K-character production rulebook**. Natively compatible with **Claude Code, Codex, Cursor, Antigravity (Gemini), and GPT**. [๐ฆ Download Release ZIP (v2026.11.24)](https://github.com/shiz81463/vertical-drama-director-skills/releases/download/v2026.11.24/ai-drama-director-toolkit-2026-11-24.zip) ยท [๐ฅ Why It Stands Out](#1-why-this-toolkit-stands-out) ยท [๐ฏ Pain Points Solved](#2-real-production-pain-points-solved) ยท [๐ฐ Commercial ROI](#3-commercial-value-and-roi) ยท [โก 10-Min Quickstart](#5-10-minute-zero-account-quickstart) ยท [๐ฌ 6-Step Tutorial](#6-end-to-end-tutorial-script-to-editable-jianyingcapcut-draft) ยท [๐ค AI Entrypoint](ไป่ฟ้ๅผๅง_็ปAI่ฏป.md) --- ## 1. Why This Toolkit Stands Out Most AI short-drama workflows still boil down to the same fragile loop: *write a massive prompt โ burn credits rolling the dice โ tweak random words when it breaks โ fix sloppy cuts by eye in post.* **This toolkit solves the problem with hard software engineering โ taming generative randomness through compilers, static linters, regression tests, and frame-accurate NLE tooling:** ### 1. Hybrid "LLM + Deterministic Compiler" Architecture LLMs are great at dramatic pacing and performance direction โ and terrible at exact timestamp math, enforcing 30+ formatting invariants, and tracking props across segments. **Yijing V2.0 (`่ฏ้`)** separates the two cleanly: * **The LLM writes lean, structured source files** (Episode Card, Scene Card, Character Card, Segment Sources) so it focuses purely on blocking, acting, and beats; * **A deterministic compiler (`build.js`) handles everything mechanical**: injects verbatim show style locks, calculates exact beat timestamps and hard-cut timings, expands **34 callable cinematography/camera terms**, enforces a 4-field cross-segment state ledger (`Carry-Over Frame` = previous segment's `End Frame`), and runs dozens of static checks โ **zero โ errors required before you spend a cent on video generation.** ### 2. TDD-Style Failure Case Library Backed by Real Rendered Frames Every constraint comes from real production failures, not guesswork: * Ships with a **[23-Item Anti-Pattern & Failure Case Library](skills/่ฏ้/ๅ้ขๆกไพ/README.md)** paired with real rendered frame screenshots showing exact AI failure triggers: * Writing *"upper half / lower half of frame"* โ **triggers accidental split-screen** * Writing *"eyes blood-red"* โ **renders monster-red eyeballs** * Writing *"coat hem sweeps across lens"* โ **0.54s pure black screen** * Omitting mouth state in an action sprint โ **model invents random profanity on its own** * Writing *"freeze / hold completely still"* โ **10+ dead frozen frames at shot tail** * Backed by an automated regression suite (`self_test.js`): bad lines are injected into known-good prompts and the linter must catch 100% of them with exact rule IDs. **Once a production team hits a failure mode, it is locked into code forever.** ### 3. Clean Decoupling Between Storytelling & Video Models * **Upstream โ `Storyboard Director v6` (`ๅ้็ผๅฏผ`)**: Owns platform-agnostic cinematic craft โ a 6-ring pipeline, 11 scene-type shot recipes, 19 action-choreography patterns, a dialogue-pacing taxonomy, plus a script (`draw_plan.js`) that renders text floor plans into an interactive **HTML overhead camera-blocking diagram** for director review. * **Midstream โ `Yijing V2.0` (`่ฏ้`)**: Owns platform-specific prompt translation (heavily validated on 9:16 vertical video / Seedance 2.5). * **When a new generation model launches six months from now, you only re-calibrate the Yijing layer โ your storyboards, rules, and show bibles stay intact.** ### 4. Automated Multimodal Video Review (`review.js`) Once raw clips come back from the generation platform, one command runs three tedious checks automatically: * **Cross-Segment Lighting & Continuity Sheets**: Uses FFmpeg to extract and tile frames from the same scene & camera direction across segments so lighting drift and background shifts jump out instantly; * **Cut-Point Reconciliation**: Detects actual visual cuts in rendered clips and flags segments that *under-cut* (catching dropped tail shots automatically); * **Dialogue Verification**: Runs local `faster-whisper` ASR against the script to flag dropped lines, misspoken words, hallucinated speech, or accidental language switches. ### 5. Last-Mile NLE Integration (Jianying / CapCut Pro): Frame-Level QC, Footage Rescue, Procedural Audio & Direct Draft Writing Most open-source pipelines stop at dumping raw MP4s โ right where commercial post-production headaches begin. **`manju-edit`** bridges straight into the editing bay: * **Calibrated Frame-Level Flash-Frame & Freeze-Frame Detection**: AI clips (24fps) cut onto 30fps NLE timelines frequently leak 1โ3 stray frames ("flash frames" / blended transition frames / frozen heads) โ the #1 reason commercial edits get rejected. Calibrated against 21 shipped final episodes to match Jianying's exact floor-rounding frame sampling rule, the checker reports **exact clip, head/tail side, and how many timeline frames to trim**; * **Empirical Footage Rescue Playbook**: Distilled from 20+ shipped episodes (head/tail trims, punch-in reframing, horizontal mirroring, reaction-shot B-roll overlays, speed ramps) following *"pick before fixing, fix before patching, regenerate only as a last resort"*; * **Procedural Sound Effects & Score via Surge XT + pedalboard**: Generates broadcast-clean 48kHz/24-bit hits, risers, whooshes, drones, and unified multi-mood scores aligned to exact cut timestamps (0โ2ms precision) โ no cheesy sine-wave synth scripts; * **Direct Editable Draft Generation (`write_draft.mjs`)**: Writes brand-new, multi-track Jianying Pro project drafts with uncut media handles, separated audio roles (dialogue / SFX / music), and TikTok English subtitle standards baked in (verified item-for-item across 256 timeline segments). Open it in the NLE and start fine-cutting immediately. --- ## 2. Real Production Pain Points Solved | Pain Point in Real AI Short Dramas | The Old Broken Loop | How This Toolkit Eliminates It | | :--- | :--- | :--- | | **Reverse-Shot Continuity Breaks** | Doors jump sides, lighting flips, characters teleport; creators keep spamming *"keep background consistent"* in prompts. | **Overview-Map Direction Derivation + HTML Blocking Diagram + 4-Field State Ledger**: Directions are derived directly from the actual `@`-referenced overview map; unmapped angles are blocked with โ; segment end-states lock verbatim into the next segment's opening (validated 9/10 background & lighting consistency across a 10-segment episode). | | **Prompt Copy-Paste Chaos** | Editing a 9,000-char prompt by hand breaks timestamps, drifts wardrobe descriptions, and spawns phantom extras. | **Source-to-Prompt Compilation + 30+ Static Checks + 23 Failure-Case Traps**: Edit the source file once, recompile cleanly, and stop split-screens, red eyeballs, frozen tails, and rushed lines locally before generating. | | **Flat Acting & Clipped Dialogue** | Questions sound like statements, arguments lack rhythm, lines get cut mid-word, silent listeners move their mouths. | **Dialogue Archetype Taxonomy + 4-Tier Emotional Intensity + Per-Segment Audio Binding**: Storyboard defines beat accents, delivery cadence (smooth / stutter / clipped / staccato), and listener reactions; compiler binds voice refs strictly to active speakers and flags any duration extensions for producer sign-off. | | **Floaty, Aimless Action Scenes** | Weapons appear/vanish, strikes lack cause-and-effect, shots drag like slow-motion dance. | **Mandatory Action Choreography Sheet**: Action segments fail compilation unless fighter specs, rounds, and attack/defense tables are defined first; pairs with 19 fight-blocking patterns and tight 1.5โ2.5s action shot windows. | | **Endless Post-Production Rejections** | Human reviewers miss 1โ2 stray flash frames, >4-frame subtitle drift, unwanted AI BGM, or loudness clipping. | **Automated Delivery QC Against Studio Redlines**: `qc_draft.mjs` and `qc_media.mjs` inspect flash frames, freezes, black frames, hard audio cuts, loudness peaks, and subtitle specs, returning exact `MM:SS:FF` fix instructions. | | **Blame-Shifting During Revisions** | When a cut feels wrong, nobody knows whether to blame the script, storyboard, prompt, or edit. | **End-to-End Root-Cause Matrix**: Maps every visual/narrative symptom to the exact layer to fix (Storyboard Ring 0โ5, Yijing source card, asset image, or NLE trim) for surgical rework. | --- ## 3. Commercial Value and ROI Built for **AI drama studios, producers, AIGC pipeline leads, and commercial solo creators**, this system targets four bottom-line metrics: 1. **๐ฐ Slashes Reroll & Compute Burn** * Catches doomed prompts locally at zero compute cost before touching the generation platform; * Recovers mildly flawed clips on the editing timeline via the empirical Rescue Playbook instead of burning credits regenerating (in verified V2 Episode 30 production, all 6 segments / 24 shots made the final cut). 2. **๐ Breaks the Senior-Talent Bottleneck (Scalable Daily Output)** * Commercial vertical drama and overseas TikTok Manju live or die by daily episode throughput. By codifying director craft, studio delivery rules, **TikTok English subtitle standards, and trailer workflows** into executable skills and scripts, junior operators can reliably hit senior-grade output โ enabling parallel multi-show scaling. 3. **โฑ๏ธ Compresses Review & Delivery Turnaround** * Automating lighting contact sheets, cut verification, Whisper line checks, frame-accurate flash-frame scanning, and initial NLE draft assembly removes ~80% of mechanical QA and assembly grunt work โ letting directors and editors focus on pacing, hooks, and dramatic payoff. 4. **๐ Compounds Studio Know-How into Versioned Code Assets** * Handoffs rely on structured files and audit reports rather than buried chat logs; * Every new failure caught in review gets added to the failure-case library and regression tests โ making your studio faster and sharper with every episode, immune to staff turnover or video-model churn. --- ## 4. Architecture: Three Decoupled Skills Use the full end-to-end pipeline, or plug in any individual skill standalone: ```text [ Script + Reference Assets ] โ โผ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ 1. Storyboard Director v6 (skills/ๅ้็ผๅฏผ | Codex: fenjing-biandao) โ โ 6-Ring Breakdown ยท 11 Scene Recipes ยท Dialogue Taxonomy ยท HTML Map โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โผ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ 2. Yijing V2.0 (skills/่ฏ้ | Codex: yijing) โ โ 4 Source Files โ Compiler ยท State Ledger ยท 34 Camera Terms ยท 23 Trapsโ โ โโโถ Video Platform Render โโโถ review.js (Sheets / Cuts / Whisper) โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โผ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ 3. manju-edit (skills/manju-edit) โ โ Storyboard Cut & 8-Pass Polish ยท Flash-Frame QC ยท Rescue ยท Surge XT โ โ โโโถ write_draft.mjs โ Editable Multi-Track Jianying/CapCut Pro Draft โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ ``` | What You Have Right Now | Skill to Run | Deliverables | | :--- | :--- | :--- | | Script + character/scene reference images | **[Storyboard Director v6](skills/ๅ้็ผๅฏผ/SKILL.md)** | Shot-by-shot storyboard, scene cards, dialogue reconciliation, HTML overhead camera map | | Approved storyboard ready for 9:16 video generation | **[Yijing V2.0](skills/่ฏ้/SKILL.md)** | Editable source cards, compiled segment prompts, build/audit report, action choreography sheet, automated video review | | Rendered video clips or an NLE draft to edit / QA | **[manju-edit](skills/manju-edit/SKILL.md)** | Shot-selection sheet, rescue edit plan, frame-level QC report, procedural SFX/music WAVs, new editable Jianying Pro draft | > **Modular by design**: Already have a storyboard? Start straight at Yijing. Only want to QA an exported MP4 or Jianying draft? Run `manju-edit` scripts standalone. --- ## 5. 10-Minute Zero-Account Quickstart **No video platform account or GPU credits required.** With **Node.js 18+**, you can compile and audit a real commercial episode sample locally in minutes. > *Note: Repository file paths and built-in scripts keep their original Chinese filenames (Codex aliases `fenjing-biandao`, `yijing`, and `manju-edit` are included for English-only skill loaders). Copy-paste commands below directly from the repo root.* ### Step 1: Download, Unzip & Run Environment Diagnostics Download and extract the [Public Release ZIP](https://github.com/shiz81463/vertical-drama-director-skills/releases/download/v2026.11.24/ai-drama-director-toolkit-2026-11-24.zip), then open a terminal at the toolkit root: ```sh node --version node ๆฃๆฅ็ฏๅข.mjs --่ฏ่ท ``` > **Tiered dependencies (install only what you need):** > * **Node.js 18+ (Required)**: Zero `npm install` needed โ powers storyboard checks, HTML camera maps, and the full prompt compiler/linter. > * **FFmpeg / ffprobe (Recommended)**: Powers automated review contact sheets, cut detection, and frame-accurate flash-frame/freeze QC. > * **Python + `faster-whisper` / Surge XT + `pedalboard` (Optional)**: Powers local ASR dialogue verification and procedural SFX/music synthesis. See [Environment Setup Guide](็ปๅฆไธๅฐ็ต่็Claude_่ฃ ็ฏๅข.md) (your AI agent can read and install these step-by-step). ### Step 2: Install into Your AI Coding Agent (Optional) **Option A โ Native Skill Install (Claude Code / Codex):** Windows (PowerShell): ```powershell & ".\ๅฎ่ฃ ๅฐ่ฟๅฐ็ต่.ps1" # Dry-run preview & ".\ๅฎ่ฃ ๅฐ่ฟๅฐ็ต่.ps1" -Apply # Actual install (auto-backs up existing skills) ``` macOS / Linux: ```sh bash ๅฎ่ฃ ๅฐ่ฟๅฐ็ต่.sh # Dry-run preview bash ๅฎ่ฃ ๅฐ่ฟๅฐ็ต่.sh --apply # Actual install ``` Start a **new conversation** after installing. Invoke via `ๅ้็ผๅฏผ` / `่ฏ้` / `manju-edit` in Claude Code, or `fenjing-biandao` / `yijing` / `manju-edit` in Codex. **Option B โ Zero-Install Workspace Mode (Cursor / Antigravity / any local file-reading agent):** Open the extracted folder as your workspace and start with: ```text Read ไป่ฟ้ๅผๅง_็ปAI่ฏป.md first and follow its routing tree and rules. ``` ### Step 3: Compile a Real V2 Episode Sample Locally Run the compiler and linter against the included V2 drama sample (writing into a fresh test folder): ```sh node "skills/่ฏ้/scripts/build.js" "skills/่ฏ้/examples/V2_้ปๅธฎๅฃ่ฏ็ฌฌ30้_ๆๆ/ๆบ" --bible "้ๅธฆ่ตๆ/ๅง่ฎพๅฎ_็ซๅฑ/้ปๅธฎ่ๅคง็ๅฃ่ฏ็คผ็ฉ.md" --out "่ฏ่ท็ปๆ/V2ๆๆ" node "skills/่ฏ้/scripts/check.js" "่ฏ่ท็ปๆ/V2ๆๆ" --style "้ๅธฆ่ตๆ/ๅง่ฎพๅฎ_็ซๅฑ/้ปๅธฎ่ๅคง็ๅฃ่ฏ็คผ็ฉ.md" ``` **Inspect two outputs right away to see the magic:** 1. Open `่ฏ่ท็ปๆ/V2ๆๆ/็ฌฌ30้_็ผ่ฏๆฅๅ.md`: 4 segments, 70s total, **0 โ errors, 1 K15 โ ๏ธ warning** (pinpointing an isolated object-only tail shot in Segment 4 for human review โ showing how the linter flags exact creative risks without overriding the director); 2. Compare the lean [source files](skills/่ฏ้/examples/V2_้ปๅธฎๅฃ่ฏ็ฌฌ30้_ๆๆ/ๆบ/) against the compiled TXT prompts to see automatic timing math, style locking, and cross-segment state carry-over in action. --- ## 6. End-to-End Tutorial: Script to Editable Jianying/CapCut Draft Let's walk a complete 15-second elevator scene through all 6 production stages: > **Scene**: As elevator doors begin to close, Lin Lan catches the door, holds out an envelope of evidence to Zhou Yu, and says: *"Read it first, then ask me."* Zhou Yu says nothing; his hand reaches toward the envelope โ and stops mid-air. > **Dramatic Accent**: Not the spoken line, but the hesitation of his uncompleted reach. > ๐ก **Best Practice**: Follow the [Model Flow Tree](skills/ๅ้็ผๅฏผ/็ผๅฏผๅฅ่ฃ /ๆจกๅๆต็จๆ .md) โ **always split Storyboard and Yijing into separate conversations** to prevent context pollution and token bloat. --- ### Step 1 | Gather Four Non-Negotiable Inputs Organize a clean per-episode folder (`Episode01/` containing `ๆบ/`, `ๆ็คบ่ฏ/`, `ๆ็/`, `ๅฎก็/`, plus a shared show folder for show bible and reference assets) and lock four facts upfront: 1. **Aspect Ratio & Target Runtime**: e.g., `9:16` vertical, ~`90s` per episode (test with one scene first); 2. **Locked Script & Dialogue Language**: Specify Mandarin or US English (word rate dictates shot duration); include previous ending / next opening to prevent continuity overlap; 3. **Scene Overview + Character/Prop Refs**: Prefer a scene overview that includes an overhead grid showing doors, corridors, and key light; one image per character, one state per prop; 4. **Show Bible (Verbatim Style Lock)**: For a new show, draft one first with the [New Show Input Card](skills/่ฏ้/่งๅๆกฃๆก/ๆฐๅง่พๅ ฅๅก.md). --- ### Step 2 | Session 1: Storyboard & Camera Blocking (`Storyboard Director`) Open a fresh chat and prompt your agent: ```text Use Storyboard Director (fenjing-biandao). Read the locked script in "Episode01_Script.md". Vertical 9:16, ~90s episode, English dialogue. Reference scene and character images are in "assets/". Do ONLY the elevator scene for now โ do NOT write video prompts. The dramatic accent is Zhou Yu reaching out and stopping before taking the envelope. Deliver all 6 rings: kickoff card, beat sheet, scene card, shot-by-shot storyboard (with startโend state per shot), dialogue reconciliation, and checker output. ``` Run the automated storyboard validator and render the overhead camera map: ```sh # 1. Validate format, dialogue fidelity, shootability & rules (--partial for a single scene) node "skills/ๅ้็ผๅฏผ/scripts/check_storyboard.js" "Episode01_Storyboard.md" --partial # 2. Generate interactive HTML overhead camera-blocking map; open in browser to verify axis node "skills/ๅ้็ผๅฏผ/scripts/draw_plan.js" "Episode01_Storyboard.md" ``` **โ Gate to pass**: Zero โ errors and director sign-off on axis, beats, and dialogue. Close this chat. --- ### Step 3 | Session 2: Compile Prompts via Source Cards (`Yijing V2.0`) Open a **new chat** and hand off the approved storyboard + show bible: ```text Use Yijing (yijing) to read the approved "Episode01_Storyboard.md" and "ElevatorTest_ShowBible.md". Follow V2 format for the elevator segment and preserve all dialogue verbatim. Derive camera directions strictly from the actual @-referenced overview map in "assets/"; flag any unmapped angles as needing reference renders. Deliver ้ๅก.txt, ๅบๆฏๅก.txt, ไบบ็ฉๅก.txt, ๆฎต1.txt, compiled prompts, semantic review findings, and the build report. List any dialogue duration extensions or time jumps for my approval. ``` Compile and lint locally: ```sh node "skills/่ฏ้/scripts/build.js" "Episode01/ๆบ" --bible "ElevatorTest_ShowBible.md" --out "Episode01/ๆ็คบ่ฏ" node "skills/่ฏ้/scripts/check.js" "Episode01/ๆ็คบ่ฏ" --style "ElevatorTest_ShowBible.md" ``` When revising later, edit only the single source of truth and recompile: * Door flipped / wrong light direction โ edit `ๅบๆฏๅก.txt` * Wardrobe drift / wrong `@` reference โ edit `ไบบ็ฉๅก.txt` * Pacing / eyeline / handoff state mismatch โ edit `ๆฎตN.txt` **โ Gate to pass**: Zero โ errors in build report, semantic checklist completed, and producer approval on flagged extensions. --- ### Step 4 | Render on Your Video Platform (Test 1 Segment First) 1. Register the required character, prop, and scene-overview assets on your video platform (e.g. Seedance 2.5), matching `@` names verbatim from the build report; 2. Verify `9:16` ratio and exact segment duration, then render `Segment 1` first. Only generate extra single-direction background references if multi-segment backgrounds drift or when inserting pickup shots (see [Manual](็ผๅฏผๅฅ่ฃ _ไฝฟ็จๆๅ.md) ยง3); 3. Save outputs with segment numbers (`Episode01_ๆฎต1.mp4`, `Episode01_ๆฎต2.mp4`, ...). > Note: Video platform accounts, credits, and assets are not bundled. Scripts never upload files or trigger paid generations automatically. --- ### Step 5 | Automated Video Review & Surgical Rework Drop rendered clips into `Episode01/ๆ็/` and run: ```sh # Fast mode (same-direction lighting contact sheets + cut-point audit, without ASR) node "skills/่ฏ้/scripts/review.js" "Episode01/ๆ็คบ่ฏ" "Episode01/ๆ็" "Episode01/ๅฎก็" --no-asr # Full mode (adds local faster-whisper ASR line-by-line dialogue verification) node "skills/่ฏ้/scripts/review.js" "Episode01/ๆ็คบ่ฏ" "Episode01/ๆ็" "Episode01/ๅฎก็" --asr-model "