Skip to content

ZJU-REAL/Easel / skills/builtin/ecom-details-image

ecom-details-image

Verified

生成电商商品视觉方案:主图概念、场景图、详情页视觉方向和 AI 生图 Prompt。 当用户说"商品主图""详情页视觉""电商配图方案""商品场景图""带货视觉""产品视觉方向""详情页设计"时使用。 本 SKILL 出视觉方案+生图 Prompt(策划);实际抠白底图用 remove-bg,实际生成图片用 ai-image-gen。

FileKindSize
.env.exampleother469 B
EASEL-META.mdmarkdown1.5 KB
SKILL.mdskill md7.5 KB
references/campaign-style-lock.mdmarkdown2.7 KB
references/image-gen-rules.mdmarkdown5.3 KB
references/pdp-sequences.mdmarkdown11.8 KB
references/templates.mdmarkdown2.6 KB
references/templates/01-hero-image.jsonconfig2.4 KB
references/templates/02-lifestyle-scene.jsonconfig2.7 KB
references/templates/03-flat-lay.jsonconfig2.6 KB
references/templates/04-detail-macro.jsonconfig2.6 KB
references/templates/05-poster-banner.jsonconfig2.8 KB
references/templates/06-social-media.jsonconfig3.0 KB
references/templates/07-ugc-style.jsonconfig3.9 KB
references/templates/08-model-showcase.jsonconfig3.1 KB
references/templates/09-before-after.jsonconfig2.4 KB
references/templates/10-packaging.jsonconfig2.5 KB
references/templates/11-infographic.jsonconfig2.5 KB
references/templates/12-creative-concept.jsonconfig2.4 KB
references/templates/13-size-spec.jsonconfig2.5 KB
references/templates/14-multi-product.jsonconfig2.4 KB
references/templates/15-livestream.jsonconfig3.3 KB
references/templates/16-try-on-virtual.jsonconfig2.6 KB
references/templates/17-exploded-view.jsonconfig2.7 KB
references/templates/18-ghost-mannequin.jsonconfig2.8 KB
references/templates/19-multi-angle-grid.jsonconfig2.6 KB
references/templates/20-magazine-editorial.jsonconfig3.0 KB
references/templates/21-seasonal-campaign.jsonconfig2.6 KB
references/templates/22-luxury-atmospherics.jsonconfig2.7 KB
references/templates/23-device-mockup.jsonconfig2.8 KB
references/templates/24-storefront.jsonconfig2.7 KB
references/templates/25-sports-campaign.jsonconfig2.7 KB
scripts/generate_image.pyscript18.3 KB

references/image-gen-rules.md

View on GitHub
# 文生图 Prompt 规则

## 通用图片 Prompt 结构

默认用英文写 Prompt,除非用户要求其他语言。按这个结构组织:

1. Campaign Style Lock,多图任务必填且每张图完全一致(见 `campaign-style-lock.md`)。
2. 主体和场景。
3. 图片目的和情绪意图。
4. 构图、镜头和取景。
5. 光线、颜色、材质和纹理。
6. 风格和真实感等级。
7. 平台限制和画幅比例。
8. 图片内文字处理。
9. 负面约束。

Prompt 要足够具体,可以直接执行;也不要过度规定无关细节,避免和用户目标冲突。

## 文生图 Prompt 铁律(必须遵守)

以下规则来自大量实战验证,每条 Prompt 都必须逐条检查。

### 1. 颜色用 hex 码,不用形容词

"白底"出来是淡灰,"金色"出来有 8 种金。必须写 hex:

- 白底 → `#FFFFFF`
- 深灰文字 → `#2D2D2D`
- 金色强调 → `#D4AF37`
- 浅米色背景 → `#F5F1E8`
- 深绿背景 → `#1A3A2E`

### 2. 产品占比必须数字化

| 图型 | 产品占比 | 说明 |
|---|---|---|
| 白底主图 | 35-40% | 太小显廉价,太大显拥挤 |
| 卖点副图 | 25-30% | 左图右文布局,产品在左 |
| 场景氛围图 | 20-25% | 场景图不是产品图,氛围才是主角 |
| 信息流广告 | 40% | 环境干扰多,产品要更突出 |
| 搜索广告 | 45% | 搜索图比信息流再大一点 |
| SKU 多规格卡 | 60-70%(整体) | 多个产品横排 |

### 3. 留白必须显式声明

不写留白,AI 一定把画面填满。每张图必须写:

- 白底主图 / 卖点副图 / 广告图:`留白至少 45%`
- 场景氛围图:`留白至少 50%`
- 详情页长图:`留白 50%+`

### 4. 否定清单不能省

每条 Prompt 结尾必须加负面约束,写具体禁止项而不是笼统的"不要多余的":

```
不要添加:道具、手、水印、假 logo、额外文字、装饰元素、渐变背景
```

### 5. 平台预留空间

国内电商主图必须预留:

- `顶部中央 200×100 区域留空(平台价格叠加区)`
- `左上角 200×100 像素区域完全留白` — logo 区域(如需要)

### 6. 3 层信息架构

电商图内文字必须遵循:

- 核心承诺 ≤15 字(主标题)
- 关键证据 2-3 个(图标 + 短标签)
- 行动指令 ≤8 字(CTA 按钮)

### 7. 批量出图优于反复调参

一次 `--resolution 2k` 出图,让 CTR 数据选风格,不要凭审美反复调参。

## Prompt 精简原则

**文生图模型在结构清晰、信息具体的 Prompt 下表现最佳。**

- 只包含核心信息,去除冗余约束和重复描述。
- 自然语言优于关键词堆砌。
- 明确描述材质纹理(磨砂玻璃、拉丝金属、哑光饰面、丝绸光泽)。
- 始终包含光线方向和质量,场景图指定色温(如 `色温 5500K`)。
- 不要在一个 Prompt 里塞入太多场景、风格、情绪要求。
- 如果用户提供了参考产品图,传入 `--image` 比文字描述更有效。
- 中文字用「」中文引号包裹,渲染准确率明显高于英文引号或无引号。
- 复杂笔画的中文字(赢、鬱、餮等)尽量换成简单同义字,95% 准确率不是 100%。

## Anti-AI 技巧(UGC / 直播 / 社媒场景)

生成 UGC、直播或社媒内容时,必须遵循以下规则让图片看起来真实:

- 指定具体手机型号:`iPhone 14 Pro`、`iPhone 15 Pro`。
- 添加可见瑕疵:毛孔、轻微噪点、暖色偏移、不完美构图。
- 使用真实感语言:`NOT professional photography`、`NOT AI-generated look`。
- 展示真实环境:略微凌乱、真实物品、水渍、用过的毛巾。
- 参考胶片色调:`Kodak Portra 400 color feel`。
- 明确声明:`NOT retouched, NOT smoothed`。
- 避免典型 AI 词汇:不用 `perfect`、`flawless`、`stunning`、`hyper-realistic`。
- 各模板中如有 `anti_ai_tips` 字段,生成对应场景时必须遵循。

## 常见翻车点与防护

| 翻车 | 原因 | 防护 |
|---|---|---|
| 中文字笔画错 | 模型中文准确率约 95%,复杂字容易少笔画 | 放大 200% 逐字核对;复杂字换简单同义字 |
| 品牌色漂移 | 写"金色"出来 8 种金 | 全部用 hex 码(`#D4AF37`) |
| Logo 区域被填满 | 写"留空间"模型当没看见 | 写精确坐标:`左上角 200×100 像素区域完全留白` |
| 背景不是纯白 | 写"白底"出来是淡灰 | 写 `#FFFFFF` |
| 产品太大或太小 | 没指定占比 | 写具体百分比:`产品占画面 38%` |
| 画面填满无留白 | 没写留白要求 | 显式声明:`留白至少 50%` |
| 连续多张视觉疲劳 | 背景色全部一样 | 交替使用 2-3 种背景色 |
| 全套图角度雷同 | AI 默认生成正面 3/4 角度,不指定就千篇一律 | 每张 Prompt 显式写明角度关键词;主图 ≥3 种角度,详情页 ≥4 种,穿插特写/微距 |
| 衣服/3C 翻车率高 | 对面料垂坠感、人体比例、接口按键细节要求太高 | 优先测护肤品、家居、食品等稳定品类;衣服用参考图 `--image` 提升一致性 |
| 详情页变成纯产品图 | 只写了多角度关键词,没有电商信息图结构(标题、图标、标签、卖点列表) | 每张详情页 Prompt 以 `E-commerce infographic` 开头,包含布局、文案、图标等电商元素;多角度是信息图内的展示手段而非目的 |
reverse-engineer-anythingmorluto/reaReverse engineer native, managed, Electron/JavaScript, packaged, firmware, and browser targets with REA, and build agent environments (AgentEnv bundles) of web applications from a live instance or a capture, and of Linux desktop apps with a task from a request. Use shipped-artifact or requested runtime evidence to explain features, compare versions, decompile code, or guide a reconstruction. Skip REA for ordinary source-repository architecture analysis.Stars: 472kUpdated Claude CodeCodexVerifiedInstall
diagnosing-superpowersobra/superpowersUse when a superpowers session went wrong and your human partner wants to know why — repeated work, ignored plans, stumbles, poor results, a skill that didn't fire, "it took too long", "why is it so expensive", "what is it doing" — or wants to build a bug report for the superpowers maintainers, for the current session or a past one identified by id or path, on any harness.Stars: 322kUpdated Claude CodeCodexVerifiedInstall
dispatching-parallel-agentsobra/superpowersUse when facing 2+ independent tasks that can be worked on without shared state or sequential dependenciesStars: 322kUpdated Claude CodeCodexVerifiedInstall
executing-plansobra/superpowersUse when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is availableStars: 322kUpdated Claude CodeCodexVerifiedInstall