🎬 火宝短剧 - 基于AI的一站式短剧生成平台 《一句话生成完整短剧,从剧本到成片全自动化》 Huobao Drama - An AI-Powered End-to-End Short Drama Generator "One Sentence to Complete Drama: Fully Automated from Script to Final Video"
TypeScript
name: script-rewriter description: Methodology and rules for rewriting a novel into a formatted script
Script Rewriting Guide
Rewriting Principles
- Preserve the core plot: do not change the main storyline or character relationships
- Strengthen visual quality: turn narrative prose into visualizable scene descriptions
- Dialogue-driven: use dialogue to advance the plot and reduce narration
- Pacing control: keep each scene at 30-60 seconds, suitable for short video
- No camera language: no shot sizes, angles, or camera moves — those belong to the storyboard-breakdown step
Formatted-Script Format
## S01 | INT · Coffee Shop | Dusk
Dusk light pours through the floor-to-ceiling windows into the coffee shop; steam rises from coffee cups on the counter.
Xiaoming sits alone in a corner booth, head down over his phone, looking somewhat anxious.
The doorbell chimes as Xiaohong pushes the door open. She sees Xiaoming and walks over with a smile.
Xiaohong: (smiling) Have you been waiting long?
Xiaoming: (looking up) Not really, just got here.
Format Rules
## S<number> | INT/EXT · Location | Time period— scene heading- Action description in natural paragraphs — no camera language of any kind
CharacterName: (state/expression) line content— dialogue format
Content-Volume Reference
The formatted script is about 20-30% longer than the original content; the increase mainly comes from scene-heading markers and dialogue formatting, not from expansion writing.
Rewriting Steps
- First call
read_episode_scriptto read the original content - Analyze the content structure (the proportions of dialogue, narration, and inner monologue)
- Call
rewrite_to_screenplayto perform the rewriting - Check the rewritten result and confirm it conforms to the formatted-script format
- Call
save_scriptto save the final result
Notes
- Inner monologue can be converted into character expressions/actions or voiceover
- Split long narrative passages into multiple short scenes
- Make sure every scene has a clear emotional turning point
- Keep each character's language style consistent
- Scene numbers increase consecutively (S01, S02, S03...)
- Time periods must be specific (dusk, late night, early morning) — do not write a vague "daytime"