@milenyumai/film-kit 2.2.1 → 2.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (55) hide show
  1. package/README.md +69 -17
  2. package/build/index.d.ts +1 -1
  3. package/build/lib/cli.js +2 -2
  4. package/build/lib/film-kit.js +6 -4
  5. package/build/lib/storyboard-reference/adapters/kling30.js +3 -1
  6. package/build/lib/storyboard-reference/adapters/seedance20.d.ts +4 -0
  7. package/build/lib/storyboard-reference/adapters/seedance20.js +77 -14
  8. package/build/lib/storyboard-reference/adapters/veo31.js +3 -1
  9. package/build/lib/storyboard-reference/index.d.ts +1 -1
  10. package/build/lib/storyboard-reference/output-writer.js +84 -6
  11. package/build/lib/storyboard-reference/prompt-bundle-builder.js +311 -8
  12. package/build/lib/storyboard-reference/request-normalizer.js +8 -4
  13. package/build/lib/storyboard-reference/storyboard-interpreter.d.ts +3 -1
  14. package/build/lib/storyboard-reference/storyboard-interpreter.js +21 -1
  15. package/build/lib/storyboard-reference/types.d.ts +151 -2
  16. package/build/lib/storyboard-reference/validators.js +2 -5
  17. package/build/lib/templates.js +10 -6
  18. package/content/ARCHITECTURE.md +4 -4
  19. package/content/MASTER.md +2 -2
  20. package/content/RULES.md +4 -4
  21. package/content/agents/prompt-engineer.md +7 -7
  22. package/content/skills/prompt-structure/SKILL.md +14 -11
  23. package/content/skills/reference-locking/SKILL.md +6 -4
  24. package/content/skills/semantic-consistency/SKILL.md +1 -1
  25. package/content/skills/storyboard-reference/SKILL.md +58 -13
  26. package/content/workflows/generate-storyboard.md +37 -16
  27. package/content/workflows/generate.md +7 -7
  28. package/content/workflows/safety-check.md +2 -2
  29. package/package.json +1 -1
  30. package/packages/gpt-image-smart/content/skills/storyboard-reference/SKILL.md +108 -12
  31. package/packages/gpt-image-smart/content/workflows/generate-storyboard.md +89 -12
  32. package/packages/hybrid/content/skills/storyboard-reference/SKILL.md +108 -12
  33. package/packages/hybrid/content/workflows/generate-storyboard.md +89 -12
  34. package/packages/hybrid-smart/content/skills/storyboard-reference/SKILL.md +108 -12
  35. package/packages/hybrid-smart/content/workflows/generate-storyboard.md +89 -12
  36. package/packages/multi/build/cli.js +39 -0
  37. package/packages/multi/build/index.d.ts +1 -1
  38. package/packages/multi/build/lib/configure.js +208 -1
  39. package/packages/multi/build/lib/defaults.d.ts +3 -1
  40. package/packages/multi/build/lib/defaults.js +32 -0
  41. package/packages/multi/build/lib/templates.js +146 -60
  42. package/packages/multi/build/lib/types.d.ts +16 -0
  43. package/packages/multi/content/agents/continuity-editor.md +6 -6
  44. package/packages/multi/content/agents/delivery-editor.md +2 -2
  45. package/packages/multi/content/agents/lead-director.md +18 -10
  46. package/packages/multi/content/agents/semantic-auditor.md +4 -5
  47. package/packages/multi/content/agents/shot-generator.md +9 -27
  48. package/packages/multi/content/skills/storyboard-reference/SKILL.md +108 -12
  49. package/packages/multi/content/workflows/chain-multi.md +4 -4
  50. package/packages/multi/content/workflows/generate-multi.md +6 -6
  51. package/packages/multi/content/workflows/generate-storyboard.md +89 -12
  52. package/packages/multi/content/workflows/generate-teammate.md +8 -14
  53. package/packages/multi/content/workflows/safety-check-multi.md +7 -11
  54. package/packages/studio/content/skills/storyboard-reference/SKILL.md +108 -12
  55. package/packages/studio/content/workflows/generate-storyboard.md +89 -12
@@ -1,28 +1,124 @@
1
1
  ---
2
2
  name: storyboard-reference
3
- description: Character reference + storyboard image + brief to model-aware video prompt bundles without requiring start/end frames.
3
+ description: Character reference sheet prep + per-shot GPT Image 2 storyboard prompts + model-aware video prompt bundles for Veo 3.1, Seedance 2.0, and Kling 3.0 without requiring start/end frame generation.
4
4
  ---
5
5
 
6
6
  # Storyboard Reference Skill
7
7
 
8
- Use when the user provides a character reference, storyboard reference, and video brief.
8
+ ## Purpose
9
+
10
+ Use this skill when the user provides:
11
+
12
+ - one or more character reference images
13
+ - a video brief or scenario text
14
+ - optional external storyboard guide images
15
+
16
+ The output is a production workflow, not only a video prompt. First create one reusable GPT Image 2 character sheet prompt per reference character. Then create one GPT Image 2 storyboard prompt per `SHOTNN.md`. The generated shot storyboard is the staging reference for the final video model prompt.
17
+
18
+ ## Reference Prep
19
+
20
+ ### Character Sheet Prompt
21
+
22
+ For each character reference, generate this prompt once:
23
+
24
+ - provider: `gpt-image-2`
25
+ - aspect ratio: `16:9`
26
+ - layout: one widescreen production storyboard sheet
27
+ - required views: front full body, back full body, left profile, right profile, three-quarter full body, close-up face
28
+ - identity lock: exact face, skull shape, hair, skin texture, body proportions, wardrobe, accessories, and visible props
29
+ - forbidden: text, labels, arrows, panel numbers, logos, watermarks, alternate outfits, alternate character designs
30
+
31
+ This sheet becomes the identity reference for every later shot storyboard.
32
+
33
+ ### Shot Storyboard Prompt
34
+
35
+ For each shot, generate a professional GPT Image 2 storyboard prompt:
36
+
37
+ - provider: `gpt-image-2`
38
+ - aspect ratio: `16:9`
39
+ - panel budget: 4-6s = 1-2 panels, 7-10s = 2-3 panels, 11-15s = 3-4 panels
40
+ - hard cap: max 4 panels/phases per shot unless the configured project cap is lower
41
+ - split policy: 5+ distinct phases must become separate chained `SHOTNN.md` files
42
+ - target detail: dense professional storyboard direction, concrete blocking and camera language, no decorative prose
43
+ - storyboard art grammar: black-and-white rough pencil drawings, minimal detail, rapid gesture energy, simple anatomy construction, strong silhouette readability, unfinished previsualization feel
44
+ - annotation grammar: red arrows = body movement, blue arrows = camera movement, green marks = framing/composition, orange marks = lighting direction, purple marks = vocal/emotional emphasis, black text = very short lens notes and panel labels
45
+ - continuity: include previous shot handoff, next shot handoff, shared `visual_world`, screen direction, lighting, and action rhythm
46
+
47
+ The shot storyboard prompt must use the character sheet reference as the only identity source. Optional external storyboard guide images may inform composition and timing only.
9
48
 
10
49
  ## Role Separation
11
50
 
12
- - `@character1`: exact identity lock for face, hair, body proportions, wardrobe, accessories, and visible props.
13
- - `@storyboard1`: composition, blocking, camera angle, action progression, visual rhythm, and phase order only.
51
+ Character references and generated character sheets are identity locks.
52
+
53
+ Use them for face, hair, skin texture, body proportions, wardrobe, accessories, and visible props. Do not use them for camera path, storyboard timing, or background layout.
54
+
55
+ The generated shot storyboard is the editorial and camera plan.
56
+
57
+ Use it for composition, blocking, camera angle, action progression, visual rhythm, phase order, and handoff continuity. Do not use it to redesign the character, replace wardrobe, copy panel borders, copy text, copy logos, or import watermark details.
14
58
 
15
59
  ## Hard Rules
16
60
 
17
61
  - Character identity always wins over storyboard character design.
18
- - Do not copy storyboard text, logos, watermarks, labels, or panel borders.
19
- - One prompt may contain at most 4 storyboard phases.
20
- - 5+ distinct phases must split into multiple `SHOTNN.md` files.
21
- - Do not require ILK FRAME / SON FRAME assets in `storyboard-reference` mode.
22
- - Every model prompt needs `Avoid` or negative prompt coverage.
23
- - Dialogue stays in the user's original language.
24
- - Music is `NONE` unless explicitly requested.
62
+ - Storyboard text, labels, watermarks, logos, and panel borders are never copied into the video.
63
+ - One prompt may contain at most 4 storyboard phases by default.
64
+ - 5+ distinct storyboard phases must be split into multiple `SHOTNN.md` files.
65
+ - Do not assume start/end frame assets exist in `storyboard-reference` mode.
66
+ - Every model output must include an `Avoid` or negative prompt section.
67
+ - Dialogue remains in the user's original language.
68
+ - Music is `NONE` unless the user explicitly asks for music.
69
+ - Fail closed on public figure, real-person likeness, trademark/logo, or unsafe visual requests.
70
+
71
+ ## Model Grammar
72
+
73
+ Seedance 2.0:
74
+
75
+ - Map character sheet images to `@Image1`, `@Image2`, ... with legacy aliases `@image1`, `@image2`, ...
76
+ - Map the generated shot storyboard to the next image token, for example one character means `@Image2`, two characters means `@Image3`.
77
+ - Character image tokens control identity, face, body proportions, wardrobe, accessories, and visible props.
78
+ - The storyboard token controls composition, blocking, camera direction, timing, action rhythm, and phase order only.
79
+ - Follow generated storyboard panels left-to-right, top-to-bottom. Do not reinterpret the action, pose logic, camera angle, emotional progression, frame variety, or final pose.
80
+ - Treat storyboard arrows, labels, lens notes, and colored marks as planning annotations only; never render them into the video.
81
+ - Use explicit timeline phases when the storyboard has multiple beats.
82
+ - Use `No scene cuts throughout, one continuous shot` only for a true single uninterrupted camera move.
83
+ - For multi-phase storyboard prompts, use only the planned phase transitions and do not add unplanned cuts.
84
+ - Duration policy: 4-6s = 1-2 phases, 7-10s = 2-3 phases, 11-15s = 3-4 phases.
85
+ - Seedance provider limits: max 9 image references, 3 video references, 3 audio references, 12 total files, 4-15 seconds.
86
+ - Storyboard text, panel borders, watermark, logo, and alternate character design are never identity sources.
87
+
88
+ Veo 3.1:
89
+
90
+ - Describe the generated storyboard as a visual planning reference, not a literal frame.
91
+ - Include camera, lens/framing, lighting, foreground/midground/background, continuity, and full `Audio direction`.
92
+ - Do not request storyboard panel borders or on-screen text.
93
+
94
+ Kling 3.0:
95
+
96
+ - Prompt code block starts with `[CHARACTER / SUBJECT CONSISTENCY]`.
97
+ - Include `[CORE INTENT]`, `[TOTAL DURATION]`, `[VISUAL STYLE]`, `[CAMERA]`, `[SHOT N | time range]`, `[AUDIO]`, `[TIMING RULES]`, `[BACKGROUND RULES]`, `[FINAL FRAME PRIORITY]`, and `[NEGATIVE PROMPT]`.
98
+ - Use `resolved storyboard composition`, not `final frame exactly`, when no end frame exists.
25
99
 
26
100
  ## Output Contract
27
101
 
28
- Write `$OUTPUT_DIR/storyboard-reference-plan.json`, `$OUTPUT_DIR/prompt-bundles/SHOTNN.bundle.json`, `$OUTPUT_DIR/shots/SHOTNN.md`, and `$OUTPUT_DIR/reports/STORYBOARD-REFERENCE-QA.md`.
102
+ Each shot file contains:
103
+
104
+ - Turkish summary
105
+ - model control
106
+ - input asset roles
107
+ - reference asset requirements
108
+ - provider reference tokens
109
+ - GPT Image 2 storyboard prompt
110
+ - storyboard interpretation
111
+ - audio plan
112
+ - prompt bundle for requested models
113
+ - QA verdict
114
+
115
+ Generated files:
116
+
117
+ ```text
118
+ $OUTPUT_DIR/storyboard-reference-plan.json
119
+ $OUTPUT_DIR/reference-prep/CHARACTER-SHEET-*.md
120
+ $OUTPUT_DIR/storyboard-prompts/SHOTNN-GPT-IMAGE-2-STORYBOARD.md
121
+ $OUTPUT_DIR/prompt-bundles/SHOTNN.bundle.json
122
+ $OUTPUT_DIR/shots/SHOTNN.md
123
+ $OUTPUT_DIR/reports/STORYBOARD-REFERENCE-QA.md
124
+ ```
@@ -1,19 +1,96 @@
1
1
  ---
2
- description: Generate storyboard-reference prompt bundles from character reference, storyboard reference, and video brief
2
+ description: Generate character sheet prompts, per-shot GPT Image 2 storyboard prompts, and model-aware video prompt bundles from character references and a video brief
3
3
  ---
4
4
 
5
- # /generate-storyboard
5
+ # /generate-storyboard - Storyboard Reference Video Prompt Mode
6
6
 
7
- Read `.agent/model-profile.md`, `safety-compliance`, `reference-locking`, `storyboard-reference`, `semantic-consistency`, `visual-modes`, `audio-design` when needed, and `prompt-structure`.
7
+ ## Preconditions
8
8
 
9
- Flow:
9
+ - Character reference image exists.
10
+ - User brief or scenario text exists.
11
+ - Optional storyboard guide images may exist, but they are not required.
12
+ - `storyboard-reference` mode is explicitly requested or configured.
10
13
 
11
- 1. Bind `@character1` as `character_identity`, exact lock.
12
- 2. Bind `@storyboard1` as `storyboard_plan`, staging only.
13
- 3. Interpret storyboard panels: 1 continuous arc, 2-4 internal phases, 5+ split shots.
14
- 4. Build `visual_world`, continuity anchors, and model-specific prompts.
15
- 5. Generate Seedance, Veo, and Kling prompt sections for the requested model subset.
16
- 6. Run QA for reference lock, storyboard role separation, model grammar, avoid line, audio plan, and safety.
17
- 7. Write all outputs under `$OUTPUT_DIR`.
14
+ ## Read Order
18
15
 
19
- Fail closed on missing refs, empty brief, public figure likeness, trademark/logo risk, unsafe visual requests, missing avoid line, or invalid Kling block structure.
16
+ 1. `.agent/model-profile.md`
17
+ 2. `.agent/skills/safety-compliance/SKILL.md`
18
+ 3. `.agent/skills/reference-locking/SKILL.md`
19
+ 4. `.agent/skills/storyboard-reference/SKILL.md`
20
+ 5. `.agent/skills/semantic-consistency/SKILL.md`
21
+ 6. `.agent/skills/visual-modes/SKILL.md`
22
+ 7. `.agent/skills/audio-design/SKILL.md` when dialogue, SFX, ambience, or voiceover exists
23
+ 8. `.agent/skills/prompt-structure/SKILL.md`
24
+
25
+ ## Flow
26
+
27
+ 1. Confirm asset roles:
28
+ - `@character1`, `@character2`, ...: `character_identity`, exact lock
29
+ - optional `@storyboard1`, `@storyboard2`, ...: external storyboard guides, staging only
30
+ 2. Generate one GPT Image 2 character sheet prompt per character reference:
31
+ - 16:9 production storyboard sheet
32
+ - front full body, back full body, left profile, right profile, three-quarter full body, close-up face
33
+ - exact identity, wardrobe, accessories, and visible props
34
+ - no labels, text, logos, watermarks, alternate designs, or extra characters
35
+ 3. Confirm target models: `veo31`, `seedance-2.0`, `kling-3.0`, or a user-provided subset.
36
+ 4. Select shot storyboard panel budget:
37
+ - 4-6 seconds: 1-2 panels/phases
38
+ - 7-10 seconds: 2-3 panels/phases
39
+ - 11-15 seconds: 3-4 panels/phases
40
+ - 5+ distinct phases: split into multiple `SHOTNN.md` files
41
+ 5. Build `visual_world`:
42
+ - environment
43
+ - lighting
44
+ - foreground/midground/background
45
+ - screen direction
46
+ - continuity anchors
47
+ 6. Generate one GPT Image 2 storyboard prompt per shot:
48
+ - use character sheets as the only identity source
49
+ - use optional storyboard guide only for composition, blocking, camera, timing, and rhythm
50
+ - include previous shot handoff and next shot handoff
51
+ - preserve shared location, lighting, screen direction, action rhythm, and scene continuity
52
+ 7. Build model prompt bundle:
53
+ - Seedance dynamic image mapping: character sheets first, generated shot storyboard next
54
+ - Veo visual-planning prompt with full audio direction
55
+ - Kling block-structured storyboard route
56
+ 8. Run QA gates:
57
+ - reference lock
58
+ - storyboard role separation
59
+ - model grammar
60
+ - avoid/negative prompt
61
+ - audio plan
62
+ - safety
63
+ 9. Write outputs under `$OUTPUT_DIR`.
64
+
65
+ ## CLI Equivalent
66
+
67
+ ```bash
68
+ npx @milenyumai/film-kit generate-storyboard \
69
+ --character-ref ./refs/character.png \
70
+ --brief ./scenario.md \
71
+ --models veo31,seedance-2.0,kling-3.0 \
72
+ --duration 8 \
73
+ --aspect 16:9 \
74
+ --output-dir ./outputs
75
+ ```
76
+
77
+ Optional external storyboard guide:
78
+
79
+ ```bash
80
+ npx @milenyumai/film-kit generate-storyboard \
81
+ --character-ref ./refs/character.png \
82
+ --storyboard-ref ./refs/storyboard-guide.png \
83
+ --brief ./scenario.md \
84
+ --models seedance-2.0
85
+ ```
86
+
87
+ ## Fail-Closed Rules
88
+
89
+ - Missing character reference: stop and request a valid reference.
90
+ - Empty brief: stop and request a brief.
91
+ - Public figure / real-person likeness / trademark risk: stop or safely anonymize before prompt generation.
92
+ - 5+ storyboard phases: do not compress into one prompt; split shots.
93
+ - Missing GPT Image 2 character sheet prompt: output is invalid.
94
+ - Missing GPT Image 2 per-shot storyboard prompt: output is invalid.
95
+ - Missing `Avoid` / negative prompt: output is invalid.
96
+ - Kling prompt missing required block structure: output is invalid.
@@ -1,28 +1,124 @@
1
1
  ---
2
2
  name: storyboard-reference
3
- description: Character reference + storyboard image + brief to model-aware video prompt bundles without requiring start/end frames.
3
+ description: Character reference sheet prep + per-shot GPT Image 2 storyboard prompts + model-aware video prompt bundles for Veo 3.1, Seedance 2.0, and Kling 3.0 without requiring start/end frame generation.
4
4
  ---
5
5
 
6
6
  # Storyboard Reference Skill
7
7
 
8
- Use when the user provides a character reference, storyboard reference, and video brief.
8
+ ## Purpose
9
+
10
+ Use this skill when the user provides:
11
+
12
+ - one or more character reference images
13
+ - a video brief or scenario text
14
+ - optional external storyboard guide images
15
+
16
+ The output is a production workflow, not only a video prompt. First create one reusable GPT Image 2 character sheet prompt per reference character. Then create one GPT Image 2 storyboard prompt per `SHOTNN.md`. The generated shot storyboard is the staging reference for the final video model prompt.
17
+
18
+ ## Reference Prep
19
+
20
+ ### Character Sheet Prompt
21
+
22
+ For each character reference, generate this prompt once:
23
+
24
+ - provider: `gpt-image-2`
25
+ - aspect ratio: `16:9`
26
+ - layout: one widescreen production storyboard sheet
27
+ - required views: front full body, back full body, left profile, right profile, three-quarter full body, close-up face
28
+ - identity lock: exact face, skull shape, hair, skin texture, body proportions, wardrobe, accessories, and visible props
29
+ - forbidden: text, labels, arrows, panel numbers, logos, watermarks, alternate outfits, alternate character designs
30
+
31
+ This sheet becomes the identity reference for every later shot storyboard.
32
+
33
+ ### Shot Storyboard Prompt
34
+
35
+ For each shot, generate a professional GPT Image 2 storyboard prompt:
36
+
37
+ - provider: `gpt-image-2`
38
+ - aspect ratio: `16:9`
39
+ - panel budget: 4-6s = 1-2 panels, 7-10s = 2-3 panels, 11-15s = 3-4 panels
40
+ - hard cap: max 4 panels/phases per shot unless the configured project cap is lower
41
+ - split policy: 5+ distinct phases must become separate chained `SHOTNN.md` files
42
+ - target detail: dense professional storyboard direction, concrete blocking and camera language, no decorative prose
43
+ - storyboard art grammar: black-and-white rough pencil drawings, minimal detail, rapid gesture energy, simple anatomy construction, strong silhouette readability, unfinished previsualization feel
44
+ - annotation grammar: red arrows = body movement, blue arrows = camera movement, green marks = framing/composition, orange marks = lighting direction, purple marks = vocal/emotional emphasis, black text = very short lens notes and panel labels
45
+ - continuity: include previous shot handoff, next shot handoff, shared `visual_world`, screen direction, lighting, and action rhythm
46
+
47
+ The shot storyboard prompt must use the character sheet reference as the only identity source. Optional external storyboard guide images may inform composition and timing only.
9
48
 
10
49
  ## Role Separation
11
50
 
12
- - `@character1`: exact identity lock for face, hair, body proportions, wardrobe, accessories, and visible props.
13
- - `@storyboard1`: composition, blocking, camera angle, action progression, visual rhythm, and phase order only.
51
+ Character references and generated character sheets are identity locks.
52
+
53
+ Use them for face, hair, skin texture, body proportions, wardrobe, accessories, and visible props. Do not use them for camera path, storyboard timing, or background layout.
54
+
55
+ The generated shot storyboard is the editorial and camera plan.
56
+
57
+ Use it for composition, blocking, camera angle, action progression, visual rhythm, phase order, and handoff continuity. Do not use it to redesign the character, replace wardrobe, copy panel borders, copy text, copy logos, or import watermark details.
14
58
 
15
59
  ## Hard Rules
16
60
 
17
61
  - Character identity always wins over storyboard character design.
18
- - Do not copy storyboard text, logos, watermarks, labels, or panel borders.
19
- - One prompt may contain at most 4 storyboard phases.
20
- - 5+ distinct phases must split into multiple `SHOTNN.md` files.
21
- - Do not require ILK FRAME / SON FRAME assets in `storyboard-reference` mode.
22
- - Every model prompt needs `Avoid` or negative prompt coverage.
23
- - Dialogue stays in the user's original language.
24
- - Music is `NONE` unless explicitly requested.
62
+ - Storyboard text, labels, watermarks, logos, and panel borders are never copied into the video.
63
+ - One prompt may contain at most 4 storyboard phases by default.
64
+ - 5+ distinct storyboard phases must be split into multiple `SHOTNN.md` files.
65
+ - Do not assume start/end frame assets exist in `storyboard-reference` mode.
66
+ - Every model output must include an `Avoid` or negative prompt section.
67
+ - Dialogue remains in the user's original language.
68
+ - Music is `NONE` unless the user explicitly asks for music.
69
+ - Fail closed on public figure, real-person likeness, trademark/logo, or unsafe visual requests.
70
+
71
+ ## Model Grammar
72
+
73
+ Seedance 2.0:
74
+
75
+ - Map character sheet images to `@Image1`, `@Image2`, ... with legacy aliases `@image1`, `@image2`, ...
76
+ - Map the generated shot storyboard to the next image token, for example one character means `@Image2`, two characters means `@Image3`.
77
+ - Character image tokens control identity, face, body proportions, wardrobe, accessories, and visible props.
78
+ - The storyboard token controls composition, blocking, camera direction, timing, action rhythm, and phase order only.
79
+ - Follow generated storyboard panels left-to-right, top-to-bottom. Do not reinterpret the action, pose logic, camera angle, emotional progression, frame variety, or final pose.
80
+ - Treat storyboard arrows, labels, lens notes, and colored marks as planning annotations only; never render them into the video.
81
+ - Use explicit timeline phases when the storyboard has multiple beats.
82
+ - Use `No scene cuts throughout, one continuous shot` only for a true single uninterrupted camera move.
83
+ - For multi-phase storyboard prompts, use only the planned phase transitions and do not add unplanned cuts.
84
+ - Duration policy: 4-6s = 1-2 phases, 7-10s = 2-3 phases, 11-15s = 3-4 phases.
85
+ - Seedance provider limits: max 9 image references, 3 video references, 3 audio references, 12 total files, 4-15 seconds.
86
+ - Storyboard text, panel borders, watermark, logo, and alternate character design are never identity sources.
87
+
88
+ Veo 3.1:
89
+
90
+ - Describe the generated storyboard as a visual planning reference, not a literal frame.
91
+ - Include camera, lens/framing, lighting, foreground/midground/background, continuity, and full `Audio direction`.
92
+ - Do not request storyboard panel borders or on-screen text.
93
+
94
+ Kling 3.0:
95
+
96
+ - Prompt code block starts with `[CHARACTER / SUBJECT CONSISTENCY]`.
97
+ - Include `[CORE INTENT]`, `[TOTAL DURATION]`, `[VISUAL STYLE]`, `[CAMERA]`, `[SHOT N | time range]`, `[AUDIO]`, `[TIMING RULES]`, `[BACKGROUND RULES]`, `[FINAL FRAME PRIORITY]`, and `[NEGATIVE PROMPT]`.
98
+ - Use `resolved storyboard composition`, not `final frame exactly`, when no end frame exists.
25
99
 
26
100
  ## Output Contract
27
101
 
28
- Write `$OUTPUT_DIR/storyboard-reference-plan.json`, `$OUTPUT_DIR/prompt-bundles/SHOTNN.bundle.json`, `$OUTPUT_DIR/shots/SHOTNN.md`, and `$OUTPUT_DIR/reports/STORYBOARD-REFERENCE-QA.md`.
102
+ Each shot file contains:
103
+
104
+ - Turkish summary
105
+ - model control
106
+ - input asset roles
107
+ - reference asset requirements
108
+ - provider reference tokens
109
+ - GPT Image 2 storyboard prompt
110
+ - storyboard interpretation
111
+ - audio plan
112
+ - prompt bundle for requested models
113
+ - QA verdict
114
+
115
+ Generated files:
116
+
117
+ ```text
118
+ $OUTPUT_DIR/storyboard-reference-plan.json
119
+ $OUTPUT_DIR/reference-prep/CHARACTER-SHEET-*.md
120
+ $OUTPUT_DIR/storyboard-prompts/SHOTNN-GPT-IMAGE-2-STORYBOARD.md
121
+ $OUTPUT_DIR/prompt-bundles/SHOTNN.bundle.json
122
+ $OUTPUT_DIR/shots/SHOTNN.md
123
+ $OUTPUT_DIR/reports/STORYBOARD-REFERENCE-QA.md
124
+ ```
@@ -1,19 +1,96 @@
1
1
  ---
2
- description: Generate storyboard-reference prompt bundles from character reference, storyboard reference, and video brief
2
+ description: Generate character sheet prompts, per-shot GPT Image 2 storyboard prompts, and model-aware video prompt bundles from character references and a video brief
3
3
  ---
4
4
 
5
- # /generate-storyboard
5
+ # /generate-storyboard - Storyboard Reference Video Prompt Mode
6
6
 
7
- Read `.agent/model-profile.md`, `safety-compliance`, `reference-locking`, `storyboard-reference`, `semantic-consistency`, `visual-modes`, `audio-design` when needed, and `prompt-structure`.
7
+ ## Preconditions
8
8
 
9
- Flow:
9
+ - Character reference image exists.
10
+ - User brief or scenario text exists.
11
+ - Optional storyboard guide images may exist, but they are not required.
12
+ - `storyboard-reference` mode is explicitly requested or configured.
10
13
 
11
- 1. Bind `@character1` as `character_identity`, exact lock.
12
- 2. Bind `@storyboard1` as `storyboard_plan`, staging only.
13
- 3. Interpret storyboard panels: 1 continuous arc, 2-4 internal phases, 5+ split shots.
14
- 4. Build `visual_world`, continuity anchors, and model-specific prompts.
15
- 5. Generate Seedance, Veo, and Kling prompt sections for the requested model subset.
16
- 6. Run QA for reference lock, storyboard role separation, model grammar, avoid line, audio plan, and safety.
17
- 7. Write all outputs under `$OUTPUT_DIR`.
14
+ ## Read Order
18
15
 
19
- Fail closed on missing refs, empty brief, public figure likeness, trademark/logo risk, unsafe visual requests, missing avoid line, or invalid Kling block structure.
16
+ 1. `.agent/model-profile.md`
17
+ 2. `.agent/skills/safety-compliance/SKILL.md`
18
+ 3. `.agent/skills/reference-locking/SKILL.md`
19
+ 4. `.agent/skills/storyboard-reference/SKILL.md`
20
+ 5. `.agent/skills/semantic-consistency/SKILL.md`
21
+ 6. `.agent/skills/visual-modes/SKILL.md`
22
+ 7. `.agent/skills/audio-design/SKILL.md` when dialogue, SFX, ambience, or voiceover exists
23
+ 8. `.agent/skills/prompt-structure/SKILL.md`
24
+
25
+ ## Flow
26
+
27
+ 1. Confirm asset roles:
28
+ - `@character1`, `@character2`, ...: `character_identity`, exact lock
29
+ - optional `@storyboard1`, `@storyboard2`, ...: external storyboard guides, staging only
30
+ 2. Generate one GPT Image 2 character sheet prompt per character reference:
31
+ - 16:9 production storyboard sheet
32
+ - front full body, back full body, left profile, right profile, three-quarter full body, close-up face
33
+ - exact identity, wardrobe, accessories, and visible props
34
+ - no labels, text, logos, watermarks, alternate designs, or extra characters
35
+ 3. Confirm target models: `veo31`, `seedance-2.0`, `kling-3.0`, or a user-provided subset.
36
+ 4. Select shot storyboard panel budget:
37
+ - 4-6 seconds: 1-2 panels/phases
38
+ - 7-10 seconds: 2-3 panels/phases
39
+ - 11-15 seconds: 3-4 panels/phases
40
+ - 5+ distinct phases: split into multiple `SHOTNN.md` files
41
+ 5. Build `visual_world`:
42
+ - environment
43
+ - lighting
44
+ - foreground/midground/background
45
+ - screen direction
46
+ - continuity anchors
47
+ 6. Generate one GPT Image 2 storyboard prompt per shot:
48
+ - use character sheets as the only identity source
49
+ - use optional storyboard guide only for composition, blocking, camera, timing, and rhythm
50
+ - include previous shot handoff and next shot handoff
51
+ - preserve shared location, lighting, screen direction, action rhythm, and scene continuity
52
+ 7. Build model prompt bundle:
53
+ - Seedance dynamic image mapping: character sheets first, generated shot storyboard next
54
+ - Veo visual-planning prompt with full audio direction
55
+ - Kling block-structured storyboard route
56
+ 8. Run QA gates:
57
+ - reference lock
58
+ - storyboard role separation
59
+ - model grammar
60
+ - avoid/negative prompt
61
+ - audio plan
62
+ - safety
63
+ 9. Write outputs under `$OUTPUT_DIR`.
64
+
65
+ ## CLI Equivalent
66
+
67
+ ```bash
68
+ npx @milenyumai/film-kit generate-storyboard \
69
+ --character-ref ./refs/character.png \
70
+ --brief ./scenario.md \
71
+ --models veo31,seedance-2.0,kling-3.0 \
72
+ --duration 8 \
73
+ --aspect 16:9 \
74
+ --output-dir ./outputs
75
+ ```
76
+
77
+ Optional external storyboard guide:
78
+
79
+ ```bash
80
+ npx @milenyumai/film-kit generate-storyboard \
81
+ --character-ref ./refs/character.png \
82
+ --storyboard-ref ./refs/storyboard-guide.png \
83
+ --brief ./scenario.md \
84
+ --models seedance-2.0
85
+ ```
86
+
87
+ ## Fail-Closed Rules
88
+
89
+ - Missing character reference: stop and request a valid reference.
90
+ - Empty brief: stop and request a brief.
91
+ - Public figure / real-person likeness / trademark risk: stop or safely anonymize before prompt generation.
92
+ - 5+ storyboard phases: do not compress into one prompt; split shots.
93
+ - Missing GPT Image 2 character sheet prompt: output is invalid.
94
+ - Missing GPT Image 2 per-shot storyboard prompt: output is invalid.
95
+ - Missing `Avoid` / negative prompt: output is invalid.
96
+ - Kling prompt missing required block structure: output is invalid.
@@ -1,28 +1,124 @@
1
1
  ---
2
2
  name: storyboard-reference
3
- description: Character reference + storyboard image + brief to model-aware video prompt bundles without requiring start/end frames.
3
+ description: Character reference sheet prep + per-shot GPT Image 2 storyboard prompts + model-aware video prompt bundles for Veo 3.1, Seedance 2.0, and Kling 3.0 without requiring start/end frame generation.
4
4
  ---
5
5
 
6
6
  # Storyboard Reference Skill
7
7
 
8
- Use when the user provides a character reference, storyboard reference, and video brief.
8
+ ## Purpose
9
+
10
+ Use this skill when the user provides:
11
+
12
+ - one or more character reference images
13
+ - a video brief or scenario text
14
+ - optional external storyboard guide images
15
+
16
+ The output is a production workflow, not only a video prompt. First create one reusable GPT Image 2 character sheet prompt per reference character. Then create one GPT Image 2 storyboard prompt per `SHOTNN.md`. The generated shot storyboard is the staging reference for the final video model prompt.
17
+
18
+ ## Reference Prep
19
+
20
+ ### Character Sheet Prompt
21
+
22
+ For each character reference, generate this prompt once:
23
+
24
+ - provider: `gpt-image-2`
25
+ - aspect ratio: `16:9`
26
+ - layout: one widescreen production storyboard sheet
27
+ - required views: front full body, back full body, left profile, right profile, three-quarter full body, close-up face
28
+ - identity lock: exact face, skull shape, hair, skin texture, body proportions, wardrobe, accessories, and visible props
29
+ - forbidden: text, labels, arrows, panel numbers, logos, watermarks, alternate outfits, alternate character designs
30
+
31
+ This sheet becomes the identity reference for every later shot storyboard.
32
+
33
+ ### Shot Storyboard Prompt
34
+
35
+ For each shot, generate a professional GPT Image 2 storyboard prompt:
36
+
37
+ - provider: `gpt-image-2`
38
+ - aspect ratio: `16:9`
39
+ - panel budget: 4-6s = 1-2 panels, 7-10s = 2-3 panels, 11-15s = 3-4 panels
40
+ - hard cap: max 4 panels/phases per shot unless the configured project cap is lower
41
+ - split policy: 5+ distinct phases must become separate chained `SHOTNN.md` files
42
+ - target detail: dense professional storyboard direction, concrete blocking and camera language, no decorative prose
43
+ - storyboard art grammar: black-and-white rough pencil drawings, minimal detail, rapid gesture energy, simple anatomy construction, strong silhouette readability, unfinished previsualization feel
44
+ - annotation grammar: red arrows = body movement, blue arrows = camera movement, green marks = framing/composition, orange marks = lighting direction, purple marks = vocal/emotional emphasis, black text = very short lens notes and panel labels
45
+ - continuity: include previous shot handoff, next shot handoff, shared `visual_world`, screen direction, lighting, and action rhythm
46
+
47
+ The shot storyboard prompt must use the character sheet reference as the only identity source. Optional external storyboard guide images may inform composition and timing only.
9
48
 
10
49
  ## Role Separation
11
50
 
12
- - `@character1`: exact identity lock for face, hair, body proportions, wardrobe, accessories, and visible props.
13
- - `@storyboard1`: composition, blocking, camera angle, action progression, visual rhythm, and phase order only.
51
+ Character references and generated character sheets are identity locks.
52
+
53
+ Use them for face, hair, skin texture, body proportions, wardrobe, accessories, and visible props. Do not use them for camera path, storyboard timing, or background layout.
54
+
55
+ The generated shot storyboard is the editorial and camera plan.
56
+
57
+ Use it for composition, blocking, camera angle, action progression, visual rhythm, phase order, and handoff continuity. Do not use it to redesign the character, replace wardrobe, copy panel borders, copy text, copy logos, or import watermark details.
14
58
 
15
59
  ## Hard Rules
16
60
 
17
61
  - Character identity always wins over storyboard character design.
18
- - Do not copy storyboard text, logos, watermarks, labels, or panel borders.
19
- - One prompt may contain at most 4 storyboard phases.
20
- - 5+ distinct phases must split into multiple `SHOTNN.md` files.
21
- - Do not require ILK FRAME / SON FRAME assets in `storyboard-reference` mode.
22
- - Every model prompt needs `Avoid` or negative prompt coverage.
23
- - Dialogue stays in the user's original language.
24
- - Music is `NONE` unless explicitly requested.
62
+ - Storyboard text, labels, watermarks, logos, and panel borders are never copied into the video.
63
+ - One prompt may contain at most 4 storyboard phases by default.
64
+ - 5+ distinct storyboard phases must be split into multiple `SHOTNN.md` files.
65
+ - Do not assume start/end frame assets exist in `storyboard-reference` mode.
66
+ - Every model output must include an `Avoid` or negative prompt section.
67
+ - Dialogue remains in the user's original language.
68
+ - Music is `NONE` unless the user explicitly asks for music.
69
+ - Fail closed on public figure, real-person likeness, trademark/logo, or unsafe visual requests.
70
+
71
+ ## Model Grammar
72
+
73
+ Seedance 2.0:
74
+
75
+ - Map character sheet images to `@Image1`, `@Image2`, ... with legacy aliases `@image1`, `@image2`, ...
76
+ - Map the generated shot storyboard to the next image token, for example one character means `@Image2`, two characters means `@Image3`.
77
+ - Character image tokens control identity, face, body proportions, wardrobe, accessories, and visible props.
78
+ - The storyboard token controls composition, blocking, camera direction, timing, action rhythm, and phase order only.
79
+ - Follow generated storyboard panels left-to-right, top-to-bottom. Do not reinterpret the action, pose logic, camera angle, emotional progression, frame variety, or final pose.
80
+ - Treat storyboard arrows, labels, lens notes, and colored marks as planning annotations only; never render them into the video.
81
+ - Use explicit timeline phases when the storyboard has multiple beats.
82
+ - Use `No scene cuts throughout, one continuous shot` only for a true single uninterrupted camera move.
83
+ - For multi-phase storyboard prompts, use only the planned phase transitions and do not add unplanned cuts.
84
+ - Duration policy: 4-6s = 1-2 phases, 7-10s = 2-3 phases, 11-15s = 3-4 phases.
85
+ - Seedance provider limits: max 9 image references, 3 video references, 3 audio references, 12 total files, 4-15 seconds.
86
+ - Storyboard text, panel borders, watermark, logo, and alternate character design are never identity sources.
87
+
88
+ Veo 3.1:
89
+
90
+ - Describe the generated storyboard as a visual planning reference, not a literal frame.
91
+ - Include camera, lens/framing, lighting, foreground/midground/background, continuity, and full `Audio direction`.
92
+ - Do not request storyboard panel borders or on-screen text.
93
+
94
+ Kling 3.0:
95
+
96
+ - Prompt code block starts with `[CHARACTER / SUBJECT CONSISTENCY]`.
97
+ - Include `[CORE INTENT]`, `[TOTAL DURATION]`, `[VISUAL STYLE]`, `[CAMERA]`, `[SHOT N | time range]`, `[AUDIO]`, `[TIMING RULES]`, `[BACKGROUND RULES]`, `[FINAL FRAME PRIORITY]`, and `[NEGATIVE PROMPT]`.
98
+ - Use `resolved storyboard composition`, not `final frame exactly`, when no end frame exists.
25
99
 
26
100
  ## Output Contract
27
101
 
28
- Write `$OUTPUT_DIR/storyboard-reference-plan.json`, `$OUTPUT_DIR/prompt-bundles/SHOTNN.bundle.json`, `$OUTPUT_DIR/shots/SHOTNN.md`, and `$OUTPUT_DIR/reports/STORYBOARD-REFERENCE-QA.md`.
102
+ Each shot file contains:
103
+
104
+ - Turkish summary
105
+ - model control
106
+ - input asset roles
107
+ - reference asset requirements
108
+ - provider reference tokens
109
+ - GPT Image 2 storyboard prompt
110
+ - storyboard interpretation
111
+ - audio plan
112
+ - prompt bundle for requested models
113
+ - QA verdict
114
+
115
+ Generated files:
116
+
117
+ ```text
118
+ $OUTPUT_DIR/storyboard-reference-plan.json
119
+ $OUTPUT_DIR/reference-prep/CHARACTER-SHEET-*.md
120
+ $OUTPUT_DIR/storyboard-prompts/SHOTNN-GPT-IMAGE-2-STORYBOARD.md
121
+ $OUTPUT_DIR/prompt-bundles/SHOTNN.bundle.json
122
+ $OUTPUT_DIR/shots/SHOTNN.md
123
+ $OUTPUT_DIR/reports/STORYBOARD-REFERENCE-QA.md
124
+ ```