Runs single-variable A/B tests for e-commerce main images. Generates controlled comparison groups with hypothesis recording, compliance checks, and a fill-in-the-blanks review template.
Ships in ecommerce-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
其他技能交付的是图,这个技能交付的是一次可复盘的实验。
区别在于:随便多生成几张不叫 A/B。A/B 要求每组之间只有一个变量不同, 并且事先写下你预期哪组会赢、为什么。否则跑完也不知道是什么在起作用。
| 能做 | 说明 |
|---|---|
| 单变量对照组 | 一次只改一个维度,其余保持一致 |
| 假设记录 | 每组附「预期效果 + 理由」,跑完能复盘 |
| 合规校验 | 每张自动过 platform-compliance,避免因驳回污染数据 |
| 复盘模板 | 产出可填数据的对照表 |
| 不能做 | 说明 |
|---|---|
| 接平台数据 | 不连后台,点击率转化率要你自己填回来 |
| 判断统计显著性 | 样本量不够时别下结论,见「常见问题」 |
一次实验只动一个:
| 变量 | A(对照) | B(实验) | 假设 |
|---|---|---|---|
| 背景 | 纯白 | 生活场景 | 场景图代入感强,点击率更高 |
| 景别 | 全身 | 半身特写 | 小屏上特写更清楚 |
| 有无模特 | 平铺图 | 模特上身 | 服装类上身图更有说服力 |
| 文案 | 无文字 | 左上角卖点标 | 文字提升信息密度(注意平台是否允许) |
| 模特 | 亚洲面孔 | 欧美面孔 | 跟目标市场匹配 |
| 色调 | 冷白 | 暖调 | 暖调在家居类更讨喜 |
别一次改三个。 三个变量一起动,赢了也不知道是哪个赢的。
生成对照组 —— 两条命令只差一处 prompt:
# A 组:纯白背景(对照)
node scripts/gen.mjs --task listing-optimizer --brand examples/brand.yaml \
--prompt 'E-commerce main image of the olive cable-knit sweater on a model. Pure seamless white background, RGB 255,255,255. Full body, product fills 88% of the frame. No text, no watermark.' \
--images docs/flat-lay/garment-flatlay.jpg docs/flat-lay/pose-reference.jpg \
--batch 3 --save out/ab/A-white.jpg
# B 组:生活场景(只改这一处)
node scripts/gen.mjs --task listing-optimizer --brand examples/brand.yaml \
--prompt 'E-commerce main image of the olive cable-knit sweater on a model. Warm minimal apartment interior, soft window light. Full body, product fills 88% of the frame. No text, no watermark.' \
--images docs/flat-lay/garment-flatlay.jpg docs/flat-lay/pose-reference.jpg \
--batch 3 --save out/ab/B-lifestyle.jpg
每组出 --batch 3 挑一张最好的,避免拿单次生成的运气当结论。
合规校验(被驳回的图会污染实验数据):
python3 scripts/check_listing.py out/ab/*.jpg --platform amazon
生成时就把这张表建好,投放后填数据:
## 实验:主图背景 白底 vs 生活场景
- SKU:A001 军绿麻花针织衫
- 平台 / 坑位:Amazon 主图
- 起止:2026-09-01 ~ 2026-09-14
- 变量:背景(其余保持一致:同模特、同景别、同色调、无文字)
| 组 | 图 | 假设 | 曝光 | 点击 | 点击率 | 加购 | 转化率 |
| --- | --- | --- | --- | --- | --- | --- | --- |
| A 对照 | A-white.jpg | 白底信息干净,符合平台预期 | | | | | |
| B 实验 | B-lifestyle.jpg | 场景图代入感强,点击率更高 | | | | | |
**结论**:
**下一步**:
「假设」必须在跑之前写。 事后编理由是复盘最常见的自欺。
| 现象 | 原因 | 怎么办 |
|---|---|---|
| 两组差异很小 | 变量选得太弱(比如只调了一点色温) | 换更有区分度的变量 |
| 数据看着 B 赢但不确定 | 曝光量太小 | 每组至少几千次曝光再看;差异小于 10% 时更要谨慎 |
| 点击率涨了转化率掉了 | 主图过度承诺 | 主图要准确,别为点击率牺牲一致性 |
| 组间不止一个变量不同 | prompt 改动没控制住 | 两条 prompt diff 一遍,确认只差一处 |
examples/brand.yaml (opens in a new tab)references/platform-specs.md (opens in a new tab)references/provider-cli.md (opens in a new tab)scripts/brand.mjs (opens in a new tab)scripts/check_listing.py (opens in a new tab)scripts/gen.mjs (opens in a new tab)scripts/lib/miniyaml.mjs (opens in a new tab)scripts/lib/providers.mjs (opens in a new tab)scripts/lib/tasks.json (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
/ecommerce-skills:listing-optimizerfrom ecommerce-skills
npx claudepluginhub dlazy-ai/ecommerce-skills --plugin ecommerce-skills26 skills in this plugin
/batch-image多商品批量生图流水线。商品清单 CSV → 整批统一视觉的商拍图,带并发、重试、断点续跑、成本熔断与挑图联系表。当用户说「批量生图」「一批商品」「跑整个 SKU 表」「几百个商品出图」时使用。/brand-kit店铺品牌视觉锁定。一份 brand.yaml 定义模特、色温、构图、留白与文案语气,所有生图技能读它,保证跨 SKU 视觉统一。当用户说「统一风格」「同一个模特」「店铺调性」「品牌规范」「几百个 SKU 看起来像一家店」时使用。/clothing-detail服装工艺细节放大图。服装图 → 面料纹理、走线、织法的微距特写。当用户说「细节图」「特写」「面料放大」「工艺展示」「近景细节」时使用。/clothing-extraction从任意图提取干净商品平铺图。真人图 / 街拍图 → 白底平铺商品图。当用户说「提取衣服」「扒图」「转平铺」「抠成商品图」「从买家秀提取」时使用。/clothing-grass-planting同款穿搭换模特换场景做种草图。穿搭图 → 社交平台风格的种草图。当用户说「种草图」「小红书风格」「换场景发帖」「达人图」时使用。/creative-scene从零创意生图,也可定向改模特、姿势、搭配。一句描述(可选参考图)→ 图。当用户说「创意生图」「生成一张」「改个姿势」「换模板」「随便来张图」时使用。Other plugins' skills for the same job