Communitygithub.com

novel-to-storyboard

把小說、劇本或故事大綱拆成可直接用於 AI 影片/圖像生成的分鏡表(storyboard / shot list):角色與場景設定檔、每鏡的首尾幀與走位、可複製貼上的圖像與影片提示詞、母圖與場景定稿圖提示詞、連戲與風險檢查,並能跨章節沿用同一套設定。目標是讓 AI 漫劇、AI 動畫的畫面穩定、角色不走樣、不像 AI。只要使用者提到分鏡、分鏡表、分鏡腳本、漫劇、AI 短劇、AI 動畫、小說轉影片、推文影片、圖生影片、鏡頭拆解,或是可靈、即夢、Veo、Sora、Runway、Vidu、Midjourney 的鏡頭規劃與提示詞,或貼上小說章節、劇本、故事大綱並想做成影片,就要使用這個 skill,即使沒有明說「分鏡表」。接續前一章繼續拆、修改既有分鏡或角色設定時也使用。

novel-to-storyboard 是什么?

novel-to-storyboard is a Claude Code agent skill that 把小說、劇本或故事大綱拆成可直接用於 AI 影片/圖像生成的分鏡表(storyboard / shot list):角色與場景設定檔、每鏡的首尾幀與走位、可複製貼上的圖像與影片提示詞、母圖與場景定稿圖提示詞、連戲與風險檢查,並能跨章節沿用同一套設定。目標是讓 AI 漫劇、AI 動畫的畫面穩定、角色不走樣、不像 AI。只要使用者提到分鏡、分鏡表、分鏡腳本、漫劇、AI 短劇、AI 動畫、小說轉影片、推文影片、圖生影片、鏡頭拆解,或是可靈、即夢、Veo、Sora、Runway、Vidu、Midjourney 的鏡頭規劃與提示詞,或貼上小說章節、劇本、故事大綱並想做成影片,就要使用這個 skill,即使沒有明說「分鏡表」。接續前一章繼續拆、修改既有分鏡或角色設定時也使用。.

兼容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/tszhungwong/novel-to-storyboard/tree/HEAD

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

Novel / Script / Outline → AI Storyboard

Break text stories into storyboard shots—each with a single action, ready to feed into an AI generation tool.

Core principle: Pre-decide what the AI tends to guess. Anything not told to the generation tool (appearance, left/right position, held objects, light source) will vary every time. Inconsistent visuals, style drift, and that "AI look" mostly come from here.

Response language follows the user; defaults to Traditional Chinese.

Three Data Layers, Written Once

LayerContentLocation
SettingsProject parameters, characters, scenes, props, style lock phrasebible.json, shared across the whole project
ShotsShot-specific content: movement, action, dialogue, durationEPxx.json, one file per episode
OutputStoryboard, copyable prompts, asset prompts, inspection resultsGenerated by scripts/build_storyboard.mjs

The reason for this separation: character appearance must appear verbatim in every shot's prompt. Manual copying drifts. By having the script compose prompts from settings files, consistency is guaranteed by the program. The user only writes "what's unique to this shot"—no need to repeat appearance or scene descriptions in the storyboard.

Field definitions are in references/fields.md; full examples are in examples/ (bible.json, EP01.json, and script output in out/). Read these first on initial use.

Workflow

1. Read the Source, Determine Input Type

  • Novel: Convert narrative into filmable actions. Render psychological descriptions via micro-expressions, small gestures, environmental details, or voiceover. For example, "She was very sad" becomes "She stared at the cup, her fingers pausing on the rim, gaze dropping."
  • Script: Scene headings become the scene list directly; dialogue stays unchanged. Focus on breaking stage directions into one action per shot.
  • Outline or Synopsis: Not enough detail to break into shots. First expand into a scene beat sheet (each scene's location, characters, what happens, emotional shift), ask the user to confirm, then proceed to shot breakdown. Mark added content that wasn't in the original source clearly.

2. Determine Parameters

Infer from the user's words and the source first; fall back to defaults only if necessary. Don't stop solely to ask about parameters: bundle questions into the first delivery (for long works: in the confirmation stage; for short works: in the final output), and list the chosen values at the top so the user can change them at a glance.

ParameterDecision MethodDefault
Target Tool (Image, Video)User specifies. Affects prompt language, negative prompt field, start/end frame support, max duration per clip. See references/tool-capabilities.mdGenerate prompts in both Chinese and English; image-to-video; use start/end frames; no duration filled; when asking, cite 2-3 examples from the table
Format"Manhua, short drama, commentary, tweet, Shorts" → Manhua style; "Animation, series, MV, cinematic" → formal animationFormal animation
Aspect RatioFollows format: Manhua 9:16, formal animation 16:916:9
StyleUser specifies; otherwise infer based on genre (e.g., Chinese fantasy → guófēng, school daily → Japanese cel-shaded) and mark as pending confirmationSame as left
Sound SchemeManhua → "voiceover"; formal animation: if tool supports native audio → use it; otherwise → "post-dub lipsync"Same as left
Prompt LanguageFollows the tool; user can request bilingualChinese and English

Common ambiguous cases:

  • Only a video tool was mentioned: use the same language for image prompts and ask about the image tool (which affects max length and number of reference images).
  • Tool has multiple versions and the user didn't specify: use the standard version, mark as pending.
  • User-specified tool is about to be deprecated or has a newer version: still do as the user says, but add a note in the delivery.

3. Create or Reuse Settings File

First check for existing settings: a storyboard/bible.json in the working folder, or a settings table the user pasted from a previous chapter. If it exists, reuse it—do not change a single word of existing character or scene descriptions; only add new items (new characters, new looks, new scenes). Changing old descriptions makes characters look different across episodes.

If none exists, create a new one at storyboard/bible.json. Key points:

  • Characters are split into unchanging appearance (look: age, face shape, hairstyle and color, eyes, body type) and changeable looks (variants: clothing and status). Create separate variants for costume changes, injuries, dirt (C01-a, C01-b). Shots reference the variant number. This lets continuity state be recorded.
  • Give each character a short tag (e.g., "young woman with shoulder-length black hair"). Use this tag to refer to the character in video prompts—not names or pronouns—because generation tools don't recognize names, and pronouns can point to the wrong person in multi-character shots.
  • For scenes, space only includes immovable things (structure, doors, windows, large furniture) and their spatial relationships, e.g., "a wooden table against the window, with the door on the opposite wall."
    • Do not write "window is on the left side of the frame." Screen left/right changes with camera position; a reverse shot will break. Leave screen position for each shot.
    • Don't include movable or changeable items (bowls on the table, lights on/off)—their state changes between episodes. Those belong to props or each shot's lighting.
  • Recurring props (letters, keys, swords) are registered in props. Use {P01} in shots; the script replaces it with the same description. Small one-time props just write in the shot directly.
  • Style lock phrase only covers art style, linework, color, and texture. It gets added to every image, including character setting images with plain backgrounds and empty scene images, so do not mention background, characters, weather, or light direction.
  • Three fields manage their own domains; do not overlap: light handles source, direction, brightness; time handles time and weather; saturation and texture belong to the style lock phrase.
  • Default negative prompts are empty. Most tools lack a dedicated negative prompt field. Writing "don't show extra fingers" into the prompt can actually trigger it. Instead, rewrite "what not to do" into "what to do": in hands, clearly describe both hands' positions. Only fill if the tool definitely has a separate negative prompt field.
  • Appearance or scene details not in the original: add a concrete temporary value to the settings and mark it as pending (needs confirmation). Leaving it blank makes the generation tool guess, and it will guess differently each shot. A temporary value at least ensures consistency across shots. Same for contradictions in the original: pick one approach and mark as pending.

4. Estimate Length, Decide Whether to Pause

One chapter = one episode. One chapter of the original text equals one episode (one EPxx.json). Length is determined by the story; no limits on duration or shot count. The user can cut to fixed lengths later during editing. If the user specifies a different scope ("only the first half of this chapter," "these three scenes count as one episode"), follow that. Process at most one chapter at a time: if multiple chapters are pasted, start with the first chapter and indicate which comes next in the delivery.

Estimate shot count by counting beats: one action, one line of dialogue, one reaction each count as a shot. Word count is a rough guide; dense narrative can be 15-30 words per shot, so a 1000-word chapter often has 40-50 shots. Add the estimated duration of each shot to get estimated total runtime.

Whether to pause:

  • Single location and estimated under 30 shots: complete all at once. Place temporary settings at the top for user confirmation.
  • Multiple locations or estimated over 30 shots: deliver the first stage (settings), pause for user confirmation, then break into shots. The reason for pausing is that workload is high, and changing tools, format, or prompt language would require rewriting all shot excerpts. Appearance and style can be changed later by re-running the script.
  • If the user pre-says "do it all in one go," do not pause; complete the entire chapter.

First stage only runs bible.json; the script produces settings.md and assets.csv. The dialog reply follows this order:

  1. Current parameters and questions the user needs to answer (tool, format, etc.).
  2. Scene list: each scene's location, what happens, estimated shots and duration, and total estimated runtime for the chapter.
  3. Character and scene settings table, clearly marking which come from the original and which are temporary.
  4. Asset list (which images need to be generated first); the prompts themselves are in settings.md, no need to paste.
  5. Ask the user to confirm or modify, and explain what happens next after confirmation.

5. Break into Shots

First list the scene list, then break each scene into individual shots.

Each shot has one main action with a clear start and end. The start is written in pos (first frame); the end is in end (the final image). If you put two actions in one shot, the generation tool usually only does one correctly.

Shot language

  • In the first 2-3 shots of a new scene, include a wide shot or extreme wide shot to establish space.
  • Vary shot types between adjacent shots; avoid three consecutive shots of the same type.
  • Alternate dialogue into "speaker" and "listener reaction" shots; don't keep cutting to the speaker.
  • Emotional beats get close-ups with slightly longer duration.

Duration follows content, typically 2-5 seconds, with variation. Action scenes can have shots as short as 1.5 seconds.

  • Chinese voiceover or dialogue runs about 4-5 characters per second. Formula: characters ÷ 4.5 + 0.3 seconds, excluding punctuation. If a sentence doesn't fit, shorten it, split into two shots, or distribute the line across adjacent shots' line.
  • Generated clips need about 0.5 seconds trimmed from each end (where deformation often occurs), so final clip duration must be at least 1 second shorter than the tool's maximum per clip. If a shot is shorter than the tool's minimum clip, still generate the minimum-length clip and select the best action portion during editing.

Speed: within a shot, write "natural speed, small amplitude." For a sense of speed, use short shots and editing—do not write "fast, violent." Similarly, don't write "slow" in every shot; the whole piece will feel like slow motion, a common AI giveaway.

Transitions (link): Most shots are "cut," each generating its own first frame image. Only use "continuous" when the same camera position, same characters, and directly continuing action apply, meaning the previous shot's last frame is this shot's first frame. Using "continuous" for everything creates a single long take with no cuts, and errors accumulate.

High-risk shots: shoot differently. Fights, running, multi-character physical contact, hand close-ups, picking up small objects, and turning are common failure points for generation tools. Substitute with editing, blocking, backs of characters, reaction shots, or object close-ups. See references/anti-ai-rules.md for substitutions. If keeping the original approach, state the risk and backup plan in risk.

Frames should not contain readable text (signs, letter content, phone messages). Most generation tools write text poorly. Add text in post-production and note it in continuity. Relax only if the tool explicitly supports text generation and the text is very short (see references/tool-capabilities.md).

Lighting changes within a scene (turning off lights, lightning, car headlights sweeping across): override with that shot's light without opening a new scene. Only open a new scene if the time period actually changes and many subsequent shots will use the new lighting.

Time jumps and flashbacks must be marked, using different color tones and character variants.

Mark suggested cut points (cut): A chapter is one full episode; the user may later cut it into shorter segments. Write cut on suitable shots with a reason; the script calculates cumulative time and lists them.

  • Good cut points: end of a scene, after a cliffhanger or reveal (preferred for Manhua), emotional beat, before a time jump.
  • Do not cut in the middle of a line of dialogue, a question-answer pair, or a continuous action.
  • Distribute roughly evenly, about every 30-90 seconds, so the user has options regardless of desired length. No need to mark the last shot.

Do not change the plot. Each shot must have a source (a short sentence or paragraph number from the original) so the user can verify nothing is missing. Deletions, merges, additions, or reordering must be recorded in changes and explained in the delivery.

Adjust by format, aspect ratio, and sound scheme:

ManhuaFormal Animation
Driving forceVoiceover led, visuals support the narrationDialogue and performance led
Shot duration2-4 seconds, fast pace3-6 seconds, allowing pauses
OpeningLead with conflict or cliffhanger in the first 3 secondsCan start with an establishing shot
EndingEnd on a cliffhangerFollow the original text
Shot typesMostly close-ups, one subject per shotMix of wide, medium, close; can use two-shot
  • Manhua opening hook: start by finding the most striking detail in the opening (a close-up, a prop), then reveal the wide shot. If the original opening is flat, you may pull a later sentence or image forward as a preview—but this is a change: record it in changes, explain in delivery, and tell the user they can delete that shot if unwanted.
  • 9:16: favor single-person compositions; for two-person scenes, use over-the-shoulder or alternating singles; don't force a side-by-side. 16:9: can use side-by-side two-shots; pay attention to consistent left-right axis.
  • Voiceover: characters don't speak; facial expression field writes "lips naturally closed"; shot length matches the voiceover sentence. Character dialogue becomes voiceover: line type = VO, who = character ID. If there's a lot of dialogue and the tool has native audio, you may suggest switching to native audio.
  • Post-dub lipsync: dialogue shots use fixed camera, face towards camera, mouth not blocked, head movement small; generate with lips closed; lip-sync done separately.
  • Native audio: dialogue and sound are written into the video prompt via the script, so sound must be in the prompt language. One shot = one person speaking one short sentence. If the tool supports audio reference, assign each character a fixed voice; otherwise, voices will vary per shot. If the tool doesn't support audio reference, use post-dub lipsync instead.

6. Write Shot File, Run Script

Write the shots as storyboard/EPxx.json. Shot IDs use the format EP01-001, non-repeating across episodes. Then run:

node <skill_folder>/scripts/build_storyboard.mjs storyboard/bible.json storyboard/EP01.json

When an episode has more than two scenes, write one scene at a time. Writing several dozen shots at once leads to sloppy details, missing fields, or truncation. Do this:

  1. Write the first scene's shots, run the script, fix errors until clean.
  2. Before writing the next scene, check the previous scene's last shot's end and continuity to see how characters, props, and lighting connect.
  3. Use Edit to append the next scene's shots to the same file's shots array—do not rewrite the whole file. Then run the script again.
  4. After all scenes are written, run one final time to check total runtime and pacing.

If a single scene exceeds ~30 shots, also split it into two writing passes. Batching is only for writing convenience; it's still one episode, one file.

Output goes to storyboard/out/: settings.md, assets.csv, EP01-storyboard.md, EP01-shots.csv. CSV files are Excel-compatible and include fields for model, seed, generation attempt count, etc., for the user to track generation status.

When writing prompt fragments, remember how the script assembles them to avoid duplication or contradiction:

  • First frame image prompt = character appearance + look (pos, gaze, hands, face) + props + background + lighting + shot type & composition + style lock phrase.
    • For close-ups or medium close-ups, fill bg (the actual visible background in this shot); otherwise the script will use the full scene description, potentially cramming the entire room into a close-up.
    • Scene lighting goes into every shot. If a light source isn't visible in a close-up ("a light shining through a hole in the roof"), it will confuse the generation tool; override light for that shot with only what's visible in the frame.
    • For characters shown only from behind or out of focus in the foreground, set partial: true; if only a hand or foot is visible, write partial as the visible part (e.g., "a hand entering from the right edge of frame, sleeve is cream-colored wool sweater").
  • Last frame = an image editing instruction: use the first frame image as base, change it to the scene described in end. Editing the first frame into the last frame keeps character and scene consistent better than regenerating. For shots with camera movement, the script adds a note to adjust composition accordingly.
  • Video prompt (image-to-video) = motion + camera movement. Do NOT include appearance. The first frame image already determines the look; describing it again often causes the tool to reinterpret and distort. So motion only covers how things move: main action, its cause, one or two micro-motions (blink, breathing), secondary motion with a reason (wind moving curtains). Under native audio scheme, the script appends dialogue and sound.
  • Aspect ratio is not in the prompt—it's a tool option. Remind the user to select correctly during delivery.

7. Process Inspection Results, Then Self-Review

The script checks mechanical issues: mismatched IDs, missing position, dialogue too long for shot duration, consecutive same shot type, exceeding tool max duration or prompt length, scene description using screen left/right, etc. "Errors" must be fixed; "warnings" should be fixed or kept with a reason in the delivery; "info" are up to you. Fix until clean.

Clean inspection only means no mechanical errors. What the script can't detect is up to you: follow the self-check list in references/anti-ai-rules.md: left-right axis, continuity state, whether high-risk shots are handled, whether each shot truly has one action, whether motion phrasing is actually intense (the script only knows a few words). Also open the output settings.md and glance at the assembled asset prompts for contradictions.

8. Delivery

In the dialog, deliver:

  1. Current parameters and pending settings.
  2. A compact table from the start of EPxx-storyboard.md (shot ID, duration, cumulative time, shot type, action, dialogue, cut point). Paste directly. The full director's table is in the file.
  3. Changes from the original text, high-risk shots and how they're handled, and any inspection items left unaddressed with reasons.
  4. File locations, and suggested production order: generate and finalize asset images first, then first frames (remember to select correct aspect ratio), then generate videos. Post-production reminders are in the last section of references/anti-ai-rules.md; pick relevant ones for this episode.

Don't paste the prompt text itself into the dialog—only paste when the user asks for a specific shot. They're long, and the file version is the proper copyable source.

After finishing an episode, add a line to bible.json's log recording the final state (who is where, wearing what, prop states, time of day). The next episode continues from here.

Modifying Existing Storyboards

  • To change characters, scenes, props, or style: edit bible.json and re-run every episode.
  • To modify specific shots: edit the corresponding EPxx.json and re-run. For insertions, use shot IDs like EP01-004a—do not renumber subsequent shots, because the user may already have generated assets using the old IDs.

Without a Runtime Environment

When the script cannot be executed, follow the layout of the two files in examples/out/ and output directly in the dialog: write the settings table once, then a compact table, then each shot's fully expanded prompts in separate code blocks. No placeholders like [character description]—the user must be able to copy directly. Output one scene at a time to avoid truncation. Then go through the checklist in references/anti-ai-rules.md item by item, including the checks the script would normally do.

Reference Files

  • references/fields.md: Field definitions for bible.json and EPxx.json, shot types, and camera movement terms. Read before writing data.
  • references/anti-ai-rules.md: High-risk shot substitutions, phrasing for action and human-feel, self-check list, post-production tips. Read before breaking into shots.
  • references/tool-capabilities.md: Prompt language, negative prompts, start/end frames, reference images, max clip duration, native audio for each tool. Read when deciding parameters.
  • examples/: A complete example of a two-character dialogue scene and its output.

相关技能