Communitygithub.com

xiaoyunque-video-prompt

A universal "script-to-video generation prompt" skill, based on XiaoYunQue (Short Drama Agent 3.0) and proven with high pass rates on Seedance 2.0/2.5 syntax. Works with final scripts or script snippets across genres like ancient fantasy/xianxia, modern urban/workplace, sweet romance, suspense/thriller, action/fight, sci-fi, etc. Automates scene segmentation (10–15s per segment), minimal @asset extraction, axis-based blocking, 20/80 restrained camera movement, lip-sync prevention, and audio duration validation. Output can be directly pasted into XiaoYunQue / Jimeng / Seedance video generation prompts. Does NOT expand plot from scratch, generate asset images, or handle post-production editing.

What is xiaoyunque-video-prompt?

This skill, named 'xiaoyunque-video-prompt,' is a specialized tool designed to translate finalized scripts or script fragments into structured video generation prompts optimized for platforms like XiaoYunQue (Short Drama Agent 3.0) and Seedance 2.0/2.5. It is not a generic prompt template but a comprehensive constraint system that ensures high instruction compliance, consistent character and spatial positioning, and prompt outputs that are ready to use with minimal modification. The core workflow consists of six steps: audio and transition accounting to preserve all spoken content, automatic scene segmentation into 10-15 second segments, extraction of only essential @assets for cross-shot consistency, planning a limited number of shots per segment, composing prompts using a 'XiaoYunQue native enhanced skeleton' with strict rules for axis locking, camera movement (80% static, 20% dynamic), lip-sync prevention, and abstract emotion translation into physical actions, followed by a 7-point silent checklist before delivery. The skill enforces a 'zero hallucination' policy, prohibiting the addition of details not present in the original script. The final output includes an asset mapping table, the video generation prompts per segment, and a delivery acceptance section with audio duration checks, a list of extracted on-screen text, and compliance suggestions for sensitive content. This skill is intended for experienced users of video generation models who need to convert textual scripts into high-quality, footage-ready prompts.

Works with~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/lyp741/xiaoyunque-video-prompt-skill/tree/HEAD

Ask in your favorite AI

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

Documentation

XiaoYunQue / Seedance Universal Script-to-Video Prompt

Converts finalized scripts or script fragments of any genre into structured video generation prompts that are highly instruction-following, consistent in character/spatial positioning, and directly pasteable into XiaoYunQue or Seedance 2.0/2.5.

The core of this skill is not a set of fixed phrases for a specific genre, but a universal constraint system built on the underlying principles of Seedance video generation: minimal skeleton + auto-segmentation + spatial axis lock + 20/80 restrained camera movement + lip-sync prevention + strict audio duration validation + zero setting hallucination.


I. Input Confirmation (Only Ask for Missing Items)

Before processing, only confirm the following 3 items; if the user has already provided them in the instruction, execute directly without interruption:

ParameterDefault Rule
Aspect RatioDefault 9:16 portrait (change to 16:9 landscape for landscape projects upon user request)
Art Style BaselineUse the user-provided art style phrase as-is (e.g., modern cinematic realism, ancient 3D manga style, Japanese 2D cel shading, cyberpunk realism); if not provided, ask or mark as pending confirmation. Never pad with rendering buzzwords like 8K/UE5.
Asset Tags & Duration LimitPrioritize using the user's precise @tags; if not provided, generate @CharacterName / @SceneName / @KeyPropName based on script entities. Default planning duration per segment: 10–15s (Seedance 2.5 long video mode can be relaxed to 15–20s; it is not recommended to force a full 30s to prevent character drift).

If the input is merely a vague synopsis rather than a shootable script, first remind the user to provide a final script. It is prohibited to expand the narrative on your own.


II. Core Conversion Workflow (6 Universal Steps)

Step 1: Audio and Transition Ledger (Internal Check, Prevent Omissions)

Scan the original script line by line, locking down 4 types of hard elements that must not be discarded:

  1. All Spoken Content: Extract every line of dialogue, voiceover (VO), and inner monologue (OS) verbatim. Do not change, abbreviate, or omit words.
  2. Speech Rate and Duration Budget: Estimate the time needed for each line based on a normal Chinese performance speech rate of 4–6 characters/second (including pauses and breaths). If a single line exceeds 12 seconds or the overall segment density is > 6.5 characters/second, flag the risk and suggest splitting in the final "Delivery Checklist."
  3. Key Actions and Transition Anchors: Individually mark scene changes, flashbacks, waking from dreams, black screens, rapid camera turns, and other transition instructions. Do not eliminate ending transitions when compressing shot breakdowns.
  4. On-Screen Text Separation: Strip all instances of Subtitle: xxx, Pop-up text: xxx, and large blocks of text on phone screens from the original script and place them in the final section "Post-Production Text List." Do not let the video model render text directly (prone to garbled characters).

Step 2: Long Script Auto-Segmentation (If Shot Numbers Are Already Marked, Use Them)

If the input is a complete scene script without pre-cut shot numbers, automatically split it into several 10–15s independent video segments based on these 3 rules:

  1. Scene Change = Mandatory Cut: Different locations or obvious time jumps must be split into independent segments. Each segment must strictly be bound to 1 main scene (except special "transition flashback" endings).
  2. Same Scene Merge for Consistency: For consecutive scenes in the same space with the same set of character blocking relationships, prioritize merging them into a single 10–15s segment. Use internal shot cutting to complete shot/reverse shot shots or emotional progression, reducing the need for cross-segment face re-identification.
  3. Segment by Audio/Action Upper Limit: A single segment's total dialogue should generally not exceed 55–65 characters, and action events should not exceed 3–4 core beats. If this is exceeded, cut to the next segment at a natural pause or reaction shot, and design a connecting action at the beginning/end.

Step 3: Extract Minimal Continuity @Asset Set

Only assign @Names to core characters, fixed scenes, and key props that affect the plot and must maintain visual consistency across shots:

  • Common environmental elements (extras, crowd, tables, chairs, walls, building components, traffic) belong to the scene's internal context and are not separated as individual @assets.
  • Do not build @assets for nameless extras who only appear once.
  • Zero Hallucination Principle: It is strictly forbidden to invent hard settings not present in the original script or asset list (do not fabricate specific terrain, eye color, clothing style, weather, or add unmentioned props).

Step 4: Plan Within-Segment Shot Breakdown (Few Shots + Scene Changes Within a Shot)

  • 10–15s segment: Limit to 2–4 shots (each shot is approximately 2.5s–6.5s; a purely visual transition shot can be 1.0s–1.5s).
  • Time Precision: Mark each shot's duration to the 0.1s as [Duration: X.Xs], and the sum of all shot durations must strictly equal the segment's total duration.
  • Scene Change Within a Shot: Within the same emotional/action unit, allow one natural scene change within a single shot using cut to close-up/insert/reverse shot.

Step 5: Compose Video Prompts Using the "XiaoYunQue Native Enhanced Skeleton"

Each segment's video prompt should be 280–500 characters, allocating all expressive budget to spatial blocking, shot scale/camera position, physical actions, and dialogue lip-sync, strictly adhering to the 6 iron rules:

  1. Segment Heading Declaration (Fixed Phrase): Scene set in: @Scene . Generate a {aspect ratio}{art style} video composed of the following N shots.
  2. Screen Coordinates and Axis Lock (Prevent Axis Jump, Prevent Position Drift):
    • The first shot must fix the left/right/front/back position on screen for all main characters (e.g., left side of the frame, center of the frame, right side of the frame, foreground/background).
    • Subsequent shots within the same segment must strictly maintain the same axis relationship; characters must not jump from left to right.
    • When cutting to a single character close-up or dialogue shot/reverse shot, use on the left/right side of the frame, blurring out the shoulder/standing silhouette of @other character in the foreground and gaze looking to the left/right side of the frame to lock the spatial relationship.
  3. 20/80 Rule for Restrained Camera Movement (See references/camera-and-blocking.md):
    • 80% Stable Shot + Scene Change: Prioritize describing shot scale + composition (number of people) + camera angle (e.g., medium shot of two people, eye-level static camera, over-the-shoulder close-up, overhead shot of an insert, low-angle shot looking up).
    • 20% Single-Direction Accent Camera Movement: Only add a single-direction, lightweight camera movement in 4 types of nodes: ① Sudden impact, ② Emotional climax, ③ Space reveal/follow shot, ④ Forced transition. Action/fight scenes should use short cuts and local hit close-ups. Prohibit the model from executing complex compound camera movements.
    • Strictly Prohibited: Piling on optical focal lengths (85mm f/1.4), rendering engine parameters (UE5, SSS, 8K), or weak constraint words like "blockbuster feel, cinematic quality."
  4. Lip-Sync Prevention Dual Iron Rule:
    • Shots without dialogue: Must end with All visible characters in the frame do not speak throughout. (Prevents the model from automatically adding random voices or opening mouths).
    • Inner Monologue (OS): Use fixed phrase @Character does not open their mouth, … ; @Character thinks in their mind: "Original line".
    • Voiceover/Narration (VO): Use fixed phrase All visible characters in the frame do not speak throughout. Off-screen, the voice of @Character/Narrator is heard: "Original line".
    • Spoken Dialogue: Clearly write the tone and direction. Format: @Character {adverb for tone} says: "Original dialogue".
  5. Abstract Emotion → Physically Actable Action:
    • Any emotional words, psychological descriptions, or state summaries must be translated into visually recordable actions: eye movements, breathing patterns, hand gestures, neck/shoulder micro-reactions, or physical interaction (see references/camera-and-blocking.md for genre-specific tables).
  6. Segment Ending Fallback (Fixed Phrase): The entire video only contains {specific environment sounds and action sound effects} and character voices. No background music. No text or subtitles are allowed in the frame.

Step 6: Silent 7-Point Checklist Before Delivery

  • Sum of shot durations per segment == Total segment duration;
  • All lines, OS, VO are complete verbatim, zero deletions or edits;
  • All actions and ending transitions from the original script are fully preserved;
  • No fabricated location details, eye colors, costumes, or additional characters;
  • All silent shots contain All visible characters in the frame do not speak throughout, all OS contain does not open their mouth + thinks in their mind: "...", all VO explicitly state no one speaks;
  • No focal length parameters, rendering engine terms, or empty visual quality modifiers;
  • If the original script contains highly sensitive descriptions that could trigger platform content review (gore, excessive intimacy, dangerous illegal behavior, etc.), remain faithful in the main body, and provide an additional "Compliance Softening Suggestion" at the end.

III. Standard Output Format

## I. Segment @Asset Mapping Table
| Placeholder Tag | Type | Applicable Segment / Status Note |
| :--- | :--- | :--- |
| `@SceneName` | Scene | ... |
| `@CharacterName` | Character | ... |
| `@PropName` | Prop | ... (omit if no independent key prop) |

> When pasting into the XiaoYunQue editor, replace `@tags` with XiaoYunQue `@Asset Chips`; for Jimeng/Volcano Seedance, replace with corresponding `@ImageN` or reference image numbers.

## II. Video Generation Prompts (Direct Copy)

### Segment 1 (Total Duration Xs|Scene: @SceneName)
```text
Scene set in: @Scene . Generate a {aspect ratio}{art style} video composed of the following N shots.

Shot1[Duration: X.Xs]: ...

Shot2[Duration: X.Xs]: ...

The entire video only contains {specific sound effects} and character voices. No background music. No text or subtitles are allowed in the frame.

III. Delivery Acceptance and Risk Tips

  • Duration & Audio Check: Summarize total duration and spoken character count per segment, flagging shots with a speech rate > 6.5 characters/second and suggesting splits.
  • Post-Production Text/Subtitle List: List all subtitle strips, pop-up texts, and on-screen text extracted from the original script (write "None" if none exist).
  • Compliance Softening Alternatives (only output when high-risk trigger words are detected): List safe alternative phrasings item by item.

---

## IV. References

*   Multi-genre blocking, 20/80 rule for camera movement, universal emotional physicalization, and review softening guidelines: see [references/camera-and-blocking.md](references/camera-and-blocking.md)
*   Complete cross-genre examples (modern suspense workplace + ancient 3D manga drama): see [references/examples.md](references/examples.md)

Related Skills