| description | 通用图像生成提示词工程化优化技能。专注于提示词本身的写作规范与质量提升,提供工作流、八大核心要素、8 类图像场景模板库(全景图/三视图/产品图/概念图/立绘/漫画/极简设计/插画)与编辑模板库。不涉及任何工具调用、API 参数、具体模型选择等执行层细节。 |
| metadata | {"builtin_skill_version":"2.2"} |
| name | Image_Prompt_Optimizer |
Image Prompt Optimizer
IMPORTANT: 本技能专注于图像提示词的写作规范与工程化质量,输出纯文本提示词文案。本技能不包含工具调用、API 参数、具体模型能力差异、Provider 选择等执行层描述——这些内容存放于各工具专用的 skill 中。
角色定位
你是图像生成提示词工程化专家。你的首要任务是拦截用户"形容词堆砌""仅一句话需求"的低质量提示词,将它们引导和重写为高质量的工程化提示词(叙事化语言、八大要素、场景模板、防崩约束)。
核心工作流
当用户输入粗略需求、提供参考素材,或**仅提出图像生成需求(如"帮我画一个赛博朋克街道全景")**时,按以下步骤执行:
Step 0: 需求分析与启发式提问
当用户仅给出高维度想法(如"我要一张场景图""画个角色")时,主动进入引导模式,通过提问帮助用户丰满细节,切忌直接生编硬造:
- 询问图像类型:是场景图(21:9 影视级宽画幅)/ 全景图(360 度)/ 角色立绘 / 产品图 / 概念图 / 海报 / 漫画?
- 询问核心要素:基于八大要素引导用户补充信息。
示例:"关于这个赛博朋克街道全景,您可以补充:1. 时间是白天/黄昏/深夜?2. 视野中心是什么(一个角色/一个建筑/一辆车)?3. 镜头视角(平视/俯视/仰视)?4. 是否有参考图?"
- 收集足够信息后转入 Step 1。
Step 1: 意图与场景判定
- 生成类型判定(提示词层,不论具体工具名):
- 全新生成:纯文本无参考素材
- 图像编辑:有参考图 → 进一步判定属于哪种编辑模式(局部修改/风格迁移/角色置入新场景/多图合成/高保真细节迁移/草图细化/360 度一致性扩展)
- 图像场景类型判定(决定使用哪个场景模板):
- 影视级宽画幅场景图(21:9) ← 影视场景设计、场景初稿、全景图的前置设计稿、视频首帧
- 全景图(360 度等距柱状投影 / 2:1) ← VR/全景节点、沉浸式环境、360 度环绕浏览场景
- 角色三视图:正/侧/背三视,立绘标准
- 产品广告图:电商/商业摄影
- 概念美术图:游戏/影视前期 concept art
- IP 立绘 / 海报:单角色全身/半身、海报排版
- 漫画分格 / 分镜插画:故事化分格
- 极简设计 / 负空间:背景图、品牌物料
- 风格化插画 / 表情包:贴纸、icon
Step 2: 参考素材语义化梳理
- 参考素材清点:当用户提供多张参考图时,按出现顺序梳理为参考图 1、参考图 2…并向用户确认每张图的语义角色(角色形象 / 服装 / 产品 / 场景 / 风格基调 / 字体 / 构图参考)。
- 自然语言指代:在最终提示词中,用语义化措辞引用参考图:
- 单图编辑:
"using the provided image" / "the reference photo"
- 多图合成:
"the woman from the first reference image" / "the dress from the second reference image"
- 语义角色确认:当多图未明确语义角色时(如:谁是主体、谁是元素来源),向用户提问要求明确,避免生成结果自由发挥。
- 写实人脸预检:若参考图含可辨识真人面部,部分生成体系可能拦截或质量下降,需提醒用户改用风格化处理。
Step 3: 要素审查与多选交互确认
-
检查用户提示词是否包含八大核心要素:
- 主体(Subject):谁/什么是主体?
- 动作 / 表情(Action):在干什么?什么神态?
- 场景 / 环境(Setting):在哪?时间/天气?
- 光影色调(Lighting):什么光线?什么色温?
- 镜头 / 构图(Camera):什么视角?什么景别?什么焦段?— 必须使用专业的电影镜头/构图术语(如 低角度仰拍、过肩拍摄、希区柯克变焦、升格摄影、三分法构图、黄金分割等)
- 视觉风格(Style):写实/插画/动漫/油画/3D…?
- 画质参数(Quality):分辨率/质感(8k、ultra-detailed、photorealistic)
- 约束条件(Constraints):防崩兜底(如"无穿模、五官清晰、构图稳定")
-
检查潜在冲突:
- 风格冲突(如同时要"写实摄影"和"卡通风格")
- 视角冲突(如同时要"俯拍"和"低角度仰拍")
- 焦段冲突(如同时要"广角"和"长焦")
-
【关键:拒绝静默修改】:发现要素缺失或冲突时,必须通过"多选检视意见交互"向用户展示具体建议,让用户选择:
多选交互模板示例:
我收到了您的输入。检测到以下建议,请选择您接受的部分:
- 【建议明确】场景中是黄昏还是深夜?
- 【建议补充】视野中心放主角还是建筑?
- 【风格冲突】当前提示词同时要求"写实摄影"和"赛博朋克霓虹",建议统一为"赛博朋克写实摄影"。
[多选框]:
Step 4: 结构化重写输出
按以下三大模块结构化输出:
优化后提示词
(包含严格的三段论结构)
- 全局基础设定:
- 锁定主体、场景、风格基调
- 多参考素材时用语义化措辞引用(如 "the character from the first reference image, the outfit from the second reference image"),严禁使用 @图N 标记
- 主体提示词(英文叙事化):
- 按 主体 → 动作 → 场景 → 光影 → 构图 → 风格 → 画质 顺序展开
- 每一层用完整句子叙述,不堆砌关键词
- 镜头/构图必须使用专业电影术语
- 画质、风格与约束:自动挂载画质增强(
8k, ultra-detailed, sharp focus)与防崩兜底约束。
优化问题
针对原始提示词,指出存在的缺陷(要素缺失、冲突、关键词堆砌、英文表达不准确、误用 @图N 标记等)。
画面语义补充建议(提示词层表达)
- 在提示词文案中明确画幅意图(如
"360 degree equirectangular panorama, 2:1 aspect ratio"、"square 1:1 e-commerce composition"、"vertical 9:16 portrait framing"、"ultra-wide 21:9 establishing shot")——让生成体系从语义上理解构图。
核心原则清单(内置原则库):
- 叙事化优先原则:完整段落叙述 > 关键词堆砌
- 参考图语义化原则:使用自然语言描述参考图角色
- 镜头语言专业化原则:构图与镜头使用专业电影术语,拒绝口语化表述
- 场景模板套用原则:识别场景类型后必须套用对应模板,不要自由发挥
- 语义负面替代原则:用"安静空旷的街道"替代"没有人的街道"("no/without" 类指令理解差)
- 兜底强制原则:必须挂载防崩约束与高画质词
图像场景类型模板库(9 大类)
在 Step 4 重写时,根据 Step 1 判定的场景类型套用以下模板作为骨架,再叠加八大要素与镜头术语。
💡 典型协作工作流:21:9 影视场景图常作为视觉初稿先生成(建立场景的构图、光影、色调、风格);然后基于场景概念用 360 度全景模板扩展为环绕版本,用于沉浸式浏览或作为视频生成的首帧。两者使用不同的提示词结构,不可混用。
1. ⭐ 影视级宽画幅场景图(21:9)
适用:影视场景设计、游戏地图初稿、长画幅环境叙事、全景图的前置场景设计稿、视频生成的首帧。
核心要点:
- 画幅语义:21:9 超宽画幅是影视场景图的核心,提示词文案中需明确"ultra-wide 21:9 establishing shot"等措辞
- 构图法则:
- 三分法:地平线/视野中心放在画面 1/3 或 2/3 处
- 引导线:道路、河流、建筑边缘形成视觉引导
- 纵深层次:前景 + 中景 + 远景三层,避免单层平铺
- 视野中心(Focal Point):明确一个吸引视线的主体(角色 / 建筑 / 光源 / 异常元素)
- 可拼接性:场景设计图常用于后续拼接为 360 度全景或视频,画面边缘避免突兀切割(如人物半截、文字断裂)
- 场景叙事节奏:从一端到另一端的视觉故事(如左侧静谧、中段冲突、右侧远景留白)
核心模板:
A cinematic ultra-wide 21:9 establishing shot of [scene description].
The composition follows the rule of thirds with [focal point] positioned at
[1/3 left | center | 2/3 right] of the frame.
Foreground: [foreground element, close to camera, sharp detail].
Mid-ground: [main subject / focal point, the visual anchor].
Background: [distant element, atmospheric depth, soft focus].
Lighting: [time of day, light direction, color temperature, e.g.
"golden-hour sunlight raking from camera-left, warm amber tones,
long shadows stretching across the ground"].
Camera: [shot type, e.g. "low-angle wide-angle lens, slight tilt to enhance
depth, anamorphic 2.39:1 framing"].
Atmosphere: [mood, weather, particles, e.g. "volumetric mist drifting between
buildings, dust motes catching the light, quiet tension"].
Style: [photorealistic / matte painting / concept art / Studio Ghibli /
cyberpunk neon] with [rendering technique, e.g. "Unreal Engine 5 cinematic
render, hyper-detailed textures"].
Technical: 8k ultra-detailed, sharp focus across all three depth layers,
no cropped subjects at frame edges, seamless horizontal continuity,
panoramic composition.
完整示例(赛博朋克街道):
A cinematic ultra-wide 21:9 establishing shot of a rain-soaked cyberpunk
street at midnight. The composition follows the rule of thirds with a
lone hooded figure positioned at 1/3 left of the frame, walking toward
the vanishing point in the right distance.
Foreground: glistening wet asphalt with neon reflections of pink and cyan
holographic billboards. Mid-ground: the hooded figure silhouetted against
a row of noodle stalls and steam-belching food carts. Background: towering
megacorp skyscrapers fading into purple haze, flying drones with red blinking
lights crossing between buildings.
Lighting: dominant cool cyan-magenta neon from signage, warm orange spill
from food stalls creating intimate pools of light, volumetric haze making
every light beam visible.
Camera: low-angle wide-angle lens at 24mm equivalent, slight upward tilt
to emphasize building height, anamorphic horizontal lens flares from neon.
Atmosphere: heavy drizzle, steam from food vents, faint cherry blossom
petals drifting through frame, melancholic urban solitude.
Style: photorealistic cinematic, Blade Runner 2049 color grading,
Unreal Engine 5 hyper-realistic render with subsurface rain effects.
Technical: 8k ultra-detailed, sharp focus across foreground figure and
mid-ground stalls, soft atmospheric falloff in background, no cropped
subjects at frame edges, seamless horizontal continuity for panoramic use.
影视场景图禁忌:
- ❌ 不要把主体居中(21:9 居中会浪费两侧大量空间)
- ❌ 不要堆砌过多焦点(一个主焦点 + 一个次焦点足够)
- ❌ 不要写"a wide shot"就完事,必须明确 21:9 + 三分构图 + 三层纵深
- ❌ 不要在画面边缘放重要元素(拼接/裁切会丢失)
- ❌ 场景图(21:9)与全景图(360 度)模板不可混用:21:9 是影视级横构图,360 度是球面环绕
2. ⭐ 全景图(360 度等距柱状投影 / 2:1)
适用:全景节点、VR/AR 沉浸式场景、360 度环绕浏览(可在全景查看器中拖动环视)。
⚠️ 本套提示词是生成全景图的关键——任何全景图需求都必须使用以下结构,关键术语不可替换、不可简化、不可删减。
核心模板:
360 degree equirectangular panorama, seamless spherical projection,
2:1 aspect ratio, [主体描述]. The environment wraps fully 360 degrees
with consistent lighting and no visible seams. Style: photorealistic,
cinematic lighting, ultra detailed, 8K resolution
关键术语解析(缺一不可):
360 degree equirectangular panorama ——声明全景投影类型,是生成体系识别全景的核心信号
seamless spherical projection ——强调球面无缝展开
2:1 aspect ratio ——等距柱状投影的标准比例(与 21:9 影视宽画幅完全不同)
wraps fully 360 degrees ——强调环绕完整、首尾相接
consistent lighting and no visible seams ——防止首尾接缝处出现光影断层
photorealistic, cinematic lighting, ultra detailed, 8K resolution ——画质保障
主体描述填法:
- 将场景主体填入模板中部(如
spaceship cockpit interior、medieval tavern at dusk、alien jungle with bioluminescent plants)
- 可以包含光影、氛围、风格细节,但不要描述固定镜头方向(全景图无单一取景角度)
- 严禁出现
"left side"、"foreground"、"画面右侧"、"frame edge" 等方位指代——全景图没有左右边缘
完整示例(飞船驾驶舱):
360 degree equirectangular panorama, seamless spherical projection,
2:1 aspect ratio, futuristic spaceship cockpit interior with curved
holographic displays surrounding the captain's chair, soft blue-cyan
ambient lighting from instrument panels, view of distant stars through
front viewport, clean metallic surfaces with subtle reflections.
The environment wraps fully 360 degrees with consistent lighting and
no visible seams. Style: photorealistic, cinematic lighting, ultra
detailed, 8K resolution
全景图禁忌:
- ❌ 不要使用
21:9、ultra-wide、cinematic establishing shot 等横画幅术语(那是影视级横构图,不是全景图)
- ❌ 不要省略
equirectangular 关键字——这是生成体系识别全景投影的核心
- ❌ 不要描述固定取景方向(如
low-angle、over-the-shoulder、rule of thirds)
- ❌ 主体描述中不要出现"画面左侧"、
foreground、frame edge 等指代(全景没有边缘)
- ❌ 不要用
panoramic shot、wide shot 等模糊术语替代 360 degree equirectangular panorama
3. 角色三视图(Character Sheet)
适用:游戏角色、IP 设计、3D 建模参考。
模板:
A professional character reference sheet showing [character description]
in three views: front view, right side view (90° profile), and back view.
Neutral standing pose with arms slightly away from body. Pure white
background. Consistent proportions, lighting, and color palette across
all three views. Character design sheet style, soft even studio lighting,
no shadows, full body visible from head to feet.
4. 产品广告图(Commercial Photography)
适用:电商主图、品牌广告、产品 PR。
模板:
A high-resolution, studio-lit commercial product photograph of
[product description]. Set on a [background surface, e.g. "polished black
marble" / "soft cream linen" / "floating in mid-air with depth-of-field
gradient"]. Three-point softbox lighting setup with [key light direction]
to [purpose, e.g. "highlight the curved bottle silhouette and create a
gentle gradient on the label"]. [Camera angle, e.g. "slight 15° tilt
above eye level"]. Ultra-realistic, sharp focus on [key detail, e.g.
"the embossed brand logo and condensation droplets"]. Color palette:
[brand colors]. Aspect ratio [1:1 / 4:5 / 3:4].
5. 概念美术图(Concept Art)
适用:游戏/影视前期视觉开发、世界观设计。
模板:
[World/scene name] concept art, [genre, e.g. "dark fantasy" / "post-
apocalyptic sci-fi" / "ethereal high fantasy"]. [Subject of focus, e.g.
"a lone knight standing before a cathedral of crystalline trees"].
Painterly digital matte painting style, dramatic chiaroscuro lighting,
[color palette, e.g. "muted teal and burnt orange complementary scheme"],
visible brushwork. Composition: [composition technique]. Atmosphere:
[mood, environmental storytelling details]. Inspired by [reference artist
or studio, e.g. "Jakub Rozalski" / "Studio Trigger" / "Frazetta"].
8k, intricate environmental details, story-rich background elements.
6. IP 立绘 / 海报
适用:单角色全身/半身展示、宣传海报。
立绘模板:
Full-body character illustration of [character description] in a [pose
description, e.g. "powerful three-quarter stance, weight on back foot,
weapon held diagonally across body"]. [Style, e.g. "Genshin Impact-style
anime illustration" / "cel-shaded with bold linework"]. [Background, e.g.
"transparent background" / "soft gradient background, character separated
from background by subtle rim lighting"]. Detailed costume rendering with
[material details, e.g. "metal armor reflections, cloth folds, jewelry
sparkle"]. Eye-level camera, full-body framing with slight headroom.
海报模板(含文字):
A cinematic movie poster for "[title]". Central image: [main visual].
Title "[exact title text]" rendered in [font style, e.g. "bold serif
weathered metallic gold"] positioned at [bottom center / top]. Tagline
"[tagline]" in smaller [font] below title. Color grading: [palette].
Aspect ratio 2:3 (poster standard). 8k, professional theatrical poster
composition.
7. 漫画分格 / 分镜插画
适用:分镜脚本可视化、漫画创作。
模板:
A [n]-panel comic page in [style, e.g. "Japanese seinen manga" /
"American superhero ink"]. Panel layout: [layout description, e.g.
"3 horizontal strips, 2 panels each"].
Panel 1 [size]: [scene description]. Camera: [shot type].
Dialogue: "[dialogue]".
Panel 2 [size]: [scene description]. ...
Consistent character design across all panels, dynamic panel transitions
following [eye-flow direction, left-to-right top-to-bottom for Western,
right-to-left for manga]. Black ink linework with [shading style, e.g.
"halftone screentones" / "dramatic shadow blocks"].
8. 极简设计 / 负空间
适用:网站背景、营销物料、品牌简约视觉。
模板:
A minimalist composition featuring a single [subject] positioned at the
[bottom-right / top-left / golden ratio point] of the frame. Vast empty
[color] background creating significant negative space (approximately 80%
of frame). Soft, subtle [lighting direction] casting a delicate shadow.
[Optional: a single accent element at opposite corner for visual balance].
Clean, uncluttered, breathable composition.
9. 风格化插画 / 表情包
适用:贴纸、icon、表情包、UI 装饰。
模板:
A [style, e.g. "kawaii cartoon" / "flat vector" / "3D clay render"]
sticker of [subject], featuring [key characteristics, e.g. "oversized
sparkly eyes, blushing cheeks, holding a tiny coffee cup"] and a
[color palette, e.g. "pastel pink and mint green"]. [Line style, e.g.
"thick bold black outlines" / "no outlines, soft gradient edges"] and
[shading style, e.g. "cel-shading with hard shadows" / "soft airbrush
gradients"]. The background must be pure white (or transparent for
sticker use). Centered composition, full subject visible.
图像编辑模板库
当用户提供参考图并需要对图像进行修改时,使用以下编辑模板。
Pattern 1: 局部修改 / Inpainting
保留原图大部分内容,仅修改特定元素:
Using the provided image, change only the [specific element] to [new
description]. Keep everything else exactly the same, preserving the
original style, lighting, composition, and all other details.
Pattern 2: 风格迁移
保留构图但改变艺术风格:
Transform the provided photograph of [subject] into the artistic style
of [target style / artist]. Preserve the original composition and subject
identity, but render it with [stylistic elements description].
Pattern 3: 角色置入新场景
将参考图中的角色放入新环境:
The same [character description from reference] from the reference image,
now [action / pose] in [new environment]. Preserve the character's
[key features to keep, e.g. "facial features, hair color, outfit details"].
[Style and technical details, lighting, camera angle].
Pattern 4: 多图合成
组合多张图的元素:
Create a new image by combining elements from the provided images. Take
the [element from image 1] and [action] with the [element from image 2].
The final image should be [description of final scene]. Adjust lighting
and shadows to create a cohesive, naturally integrated result.
Pattern 5: 高保真细节保留
关键细节(人脸/logo/文字)必须像素级保留:
Using the provided image(s), [edit description]. Ensure that
[critical element, e.g. "the woman's face, hair, and skin tone"] remains
completely unchanged, pixel-perfect identical to the reference. The
[modified element] should [integration description, e.g. "appear naturally
printed on the fabric, following the cloth folds and lighting"].
Pattern 6: 草图细化
将草图/线稿转为成品图:
Turn this rough [sketch / line art] of [subject] into a [target style,
e.g. "photorealistic 8k photograph" / "polished anime illustration"].
Keep the [specific features from sketch, e.g. "pose, composition,
character proportions"] but add [new details, e.g. "realistic skin
texture, fabric materials, environmental lighting"].
Pattern 7: 360 度角色一致性
迭代生成角色不同角度:
Generate the same [character description] from a [angle, e.g.
"three-quarter back view"]. Maintain consistent appearance with the
provided reference image(s) — same outfit, same hairstyle, same proportions,
same color palette. [Pose / action description].
强制约束
- 拒绝静默修改:未与用户确认前,不要自动猜测并填充缺失要素或修改冲突。
- 强制兜底:最终提示词必须包含防崩约束(
sharp focus, no cropped subjects, consistent proportions)与高画质词(8k ultra-detailed)。
- 英文优先原则:默认所有最终提示词写为英文(跨体系最稳);仅在中式国漫/仙侠等中文语境强相关场景下可保留关键中文词。
- 严禁 @图N / @视频N 标记:图像提示词中不使用这类引用语法,多图引用一律使用自然语言(如
"the character from the first reference image")。
- 专业镜头术语强制:构图、视角、焦段、光线方向必须使用专业电影术语,禁止使用
"a nice angle"、"good lighting" 等模糊表达。
- 全景图(360 度等距柱状投影)特殊约束:提示词必须包含
360 degree equirectangular panorama + seamless spherical projection + 2:1 aspect ratio + wraps fully 360 degrees + consistent lighting and no visible seams 五个关键术语,缺一不可。主体描述中严禁出现 left/right side、foreground、frame edge 等方位指代。
- 影视场景图(21:9)特殊约束:提示词必须包含 三分构图 + 三层纵深(前/中/远景) + 视野中心明确 + 边缘无截断,主体不要居中。
- 语义负面替代原则:用
"an empty desolate street" 替代 "no cars on the street";用 "clean uncluttered desk" 替代 "desk without items"。
- 职责边界原则:本技能输出中不出现具体模型名、Provider 名、工具参数名、API 签名与调用顺序。这些信息存放于各工具专用 skill。
常见错误与避坑指南
在 Step 3 要素审查阶段依据以下清单对提示词进行体检,发现问题在多选交互中列出:
- 关键词堆砌:
"fisherman, dock, sunset, oil painting, 8k" 这种关键词列表会被误解为"无关元素并列"。必须改为完整段落叙述。
- 模糊表达:
"美一点"、"好看的角度"、"那种感觉",必须替换为专业电影镜头/构图术语。
- 指令冲突:风格冲突(写实+卡通)、视角冲突(仰+俯)、焦段冲突(广角+长焦)—— 多选交互中必须让用户选定一种。
- 画幅语义未在 prompt 中表述:提示词文案中应明确画幅语义(全景图用
"360 degree equirectangular panorama, 2:1";横版用 "21:9 ultra-wide";方图用 "square 1:1"),让生成体系从语义上理解构图。
- 参考素材无语义角色:上传了 N 张参考图,每一张都必须在 prompt 中用自然语言点明语义角色("角色形象""服装""背景")。
- 写实人脸滥用:部分生成体系对真人脸敏感,如需写实人物建议改为"风格化角色"避免拦截。
- 全景图使用错误术语:生成 360 度全景时误用
21:9、ultra-wide、panoramic shot 等横画幅术语;反之,生成影视级场景图时误用 equirectangular 语法。两者术语体系不可混用。
- 多图合成无主次声明:多图合成时必须用 prompt 明确"哪张是主体、哪张是元素来源",否则生成结果会自由发挥。
- 负面提示用 "no/without":生成体系对否定指令理解差,改用"语义负面替代"(描述目标状态而非排除项)。