中文 · English
ecommerce-skills

一套面向电商视觉生产的 Agent 技能库:把「拍商品图」这件事拆成 26 个可组合的技能,
每个技能是一份可直接执行的 skill.md,配套可执行脚本,底层可切换多家图像 / 视频 / 文本模型。
平铺图 → 模特上身图 → 裂变套图 → 详情页 → 主图视频 → 投前质检 → 平台合规校验,
整条链路不用摄影棚、不约模特。它和「一堆 prompt」的区别在于三件事:
- 不锁后端 —— dLazy 默认,也能用 OpenAI / Gemini / fal / Replicate / 火山方舟,自带 key 即可;没 key 也能
--dry-run 空跑看清要发什么。
- 确定性动作交给脚本 —— 批量、重试、断点续跑、成本熔断、合规校验、闭环重跑都是脚本,不靠模型每次现编。
- 能验收 —— 上架前的平台规格是机检的,不是「看着差不多」。
生成效果示例
下面每一组都是真实执行的结果:左边是输入素材,右边是实际生成的输出图——不是效果图。
每条命令原样照抄即可复现,折叠在图下面。单个技能的示例也内联在它自己的 skills/<name>/skill.md 开头。
商品上身 — 让商品出现在人身上
 输入 · 服装平铺图 800×800 |  输入 · 姿势参考图 768×1024 |  输出 · 1024×1536 · 60 credits |
麻花织法、菱形提花、落肩版型、袖口罗纹与右袖织标均被保留;姿势、景别、光线与浅灰背景照抄参考图。
可复现命令
dlazy gpt-image-2 \
--prompt 'E-commerce on-model product photography. Image 1 is the garment flat-lay: an olive-green cable-knit crewneck sweater. Image 2 is the pose/scene reference. Dress the model from image 2 in the garment from image 1, replacing the grey T-shirt. Keep the garment 100% faithful: identical olive-green color, cable-knit and diamond texture, oversized drop-shoulder fit, ribbed collar and cuffs, and the small woven label on the right cuff. Reproduce the reference exactly for pose, camera angle, crop, body proportions, lighting and the plain light-grey studio wall background. Photorealistic full-frame catalog shot, sharp fabric detail, natural soft light, no text or watermark.' \
--images docs/flat-lay/garment-flatlay.jpg docs/flat-lay/pose-reference.jpg \
--size 1024x1536 --quality high --imageFormat jpeg \
--save docs/flat-lay/example-output.jpg
 输入 · 玳瑁色方框墨镜 768×1024 |  输入 · 夜景街拍参考图 768×1024 |  输出 · 1024×1536 |
墨镜按正确的鼻梁/耳挂关系落位,镜框玳瑁纹理与镜片色保留;模特五官、围巾千鸟格、夜景街道与色调保持原样。
可复现命令
dlazy gpt-image-2 \
--prompt 'On-model accessory product photography. Image 1 is the product: a pair of tortoise-brown rectangular sunglasses with dark grey lenses. Image 2 is the model/scene reference. Put the sunglasses from image 1 onto the face of the model in image 2, correctly seated on the nose bridge and ears with natural perspective, realistic lens reflections and a soft shadow on the cheekbones. Keep the product 100% faithful: identical frame shape, tortoise-brown acetate color and grain, hinge and temple design, lens tint. Change nothing else — face, hair, scarf, coat, bag chain, night street background, colour grading and crop must stay pixel-identical to image 2. Photorealistic, no text, no watermark.' \
--images docs/wear-everything/product-sunglasses.jpg docs/wear-everything/model-reference.jpg \
--size 1024x1536 --quality medium --imageFormat jpeg \
--save docs/wear-everything/example-output.jpg