Storyboard sketch

From pengfeiqiao/kunpeng · View interactive version

Storyboard sketch is an AI agent skill from the GitHub repository pengfeiqiao/kunpeng. 电影镜头复刻分镜生成器。核心流程:原片关键帧 → 线稿草图 → 草图+人物参考 → 电影感分镜成片。 使用场景: - 视频风格复刻(换角色换服装但保留原片构图和光影) - 电影/视频片段批量拆解分镜并重新生成 - 需要精确控制AI生图的构图和光影 关键词:分镜、storyboard、视频复刻、线稿草图、电影感分镜

How to use this skill

Skill file

电影镜头复刻分镜生成器

核心理念

复刻原片镜头的构图和光影,换上自己的角色。构图来自原片,一切以此为锚。

完整工作流

Step 0: 视频风格分析

使用 vision_video_analysis 工具分析原始视频,提取视觉风格信息:

输出 style_profile.json:

{
  "lighting": "Cool overcast daylight (6500K)",
  "colorGrading": "cool blue-gray, desaturated",
  "mood": "cinematic, contemplative",
  "filmStock": "Kodak Vision3 500T, fine grain",
  "colorTemperature": "6500K",
  "saturation": "58%",
  "contrast": "medium-high",
  "cameraCharacteristics": "Cooke S4 prime lenses, steady tracking shots"
}

此风格档案贯穿后续所有步骤,确保最终分镜与原片风格一致。

风格复用

如果已有之前生成的 style_profile.json,可以跳过 Step 0,直接在后续步骤中使用:

Step 1: 原片抽帧

# 长段落:每3秒一帧
ffmpeg -ss {start} -i {video} -vf "fps=1/3" -frames:v {n} {outfiles} -y

# 需要细节的段落:每秒一帧
ffmpeg -ss {start} -i {video} -vf "fps=1" -frames:v {n} {outfiles} -y

# 极速搜索:每秒2帧
ffmpeg -ss {start} -i {video} -vf "fps=2" -frames:v {n} {outfiles} -y

Step 2: 筛选9帧

用image工具批量分析帧,筛选构图差异最大的9帧:

Step 3: 批量生成草图

逐帧调用Gemini生成铅笔线稿:

prompt = "Convert to clean pencil line drawing. Keep ONLY composition. Remove color, shading, text, details."

保存为:{scene}_sk_{1-9}.jpg

Step 4: 拼3x3网格

from PIL import Image
# 9张草图resize到427x240,拼成1281x720网格
# 不足9张时复制最后一帧补齐

保存为:{scene}_3x3_grid.jpg

Step 5: 生成3x3分镜

传入:草图网格 + 人物三视图

保存为:{scene}_3x3_final.jpg

Step 6: 质量检查

用image工具逐格分析,检查:

Step 7: 飞书发送 → 用户确认 → 存档

# 发送
message action=send channel=feishu media={path}

# 存档(用户确认后)
cp {path} ~/Desktop/夹缝-白日梦想家/outputs/

提示词工程(通用方法论)

人物一致性公式

CRITICAL COSTUME RULE: Woman wears THE EXACT SAME OUTFIT in EVERY panel:
- {逐项列出每件服装,用中文+英文}
- {每项后面加"ALWAYS on her"或"NEVER remove"}

She keeps her EXACT face from image 2 in every close/medium panel.

要点:

主角 vs 路人区分公式

- The WOMAN (from image 2): wears {主角服装}. She has the EXACT face from image 2.
- ALL OTHER PEOPLE: wear COMPLETELY DIFFERENT {路人服装描述}.
  They do NOT wear {主角特有服装项}. They have GENERIC faces (do NOT copy the woman's face).
- The woman's outfit MUST look different from everyone else's.

要点:

禁文字标准句(必加)

ABSOLUTELY NO TEXT of ANY KIND. This means:
- NO letters (no A-Z, no a-z)
- NO numbers (no 0-9)  
- NO words, labels, annotations, descriptions
- NO symbols that look like text
- If unsure, leave blank rather than add text

要点:

质感/材质强化公式

当需要特定材质效果时(如冰川、水面、岩石):

CRITICAL {材质名} TEXTURE: {材质} must look REAL:
- {细节1:如 "deep blue crevasses with jagged irregular edges (NOT smooth geometric lines)"}
- {细节2:如 "natural imperfections, dirt spots, wind-blown patterns"}
- {正面描述},{反面禁止}(如 "cold, ancient, raw - NOT smooth or polished")

剪影场景公式

CRITICAL: ALL people are PURE DARK SILHOUETTES against {背景}. 
NO facial details visible. No skin tone visible. Pure black silhouettes.
{描述人物剪影轮廓特征:长发、帽子形状、身高对比等}

构图规则

可替换(场景层)

不可变(构图层)

原片没有的细节怎么办?


3x3分镜提示词结构

TWO images:
1st: 3x3 pencil sketches of {场景}. Composition reference only.
2nd: CHARACTER reference - this woman's EXACT face and {服装}. She appears in every panel.

CRITICAL RULES:
{人物一致性公式}
{主角vs路人区分公式(如果有多人)}
{禁文字标准句}

Create 3x3 FILM STILL GRID, 9 panels, thin dark borders, 16:9. ALL panels are {场景统一描述}.

Kodak Vision3 500T ISO 640, 5200K, 58% saturation, {色调}, fine grain.

P1: {景别} - {构图+动作+场景描述}. {情绪}.
P2: {景别} - ...
...
P9: WIDE FINAL - {结尾大景}. {情绪}.

ARRI ALEXA, Cooke S4. 16mm grain. {色调}. ZERO TEXT. NO watermark. NO AI look.

API配置

参考图最佳实践

多轮微调

中文文字生成(底层能力缺陷)

AI不是"写字"是"画像素",笔画越多越容易画错。

核心原则:文字越少越准确,其余抽象化

策略:只保留2-5个核心文字,其余用抽象色块代替。指定黑体,明确禁止自由发挥。

依赖

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.