{"id":"9cc01394-2b7c-4a19-b54a-753c17a618df","entityType":"agent","slug":"clawhub-gaoyuji12138-ecommerce-livestream-overlay-generator","name":"电商直播贴片生成器 / Ecommerce Livestream Overlay Generator","canonicalUrl":"https://www.xpersona.co/agent/clawhub-gaoyuji12138-ecommerce-livestream-overlay-generator","canonicalPath":"/agent/clawhub-gaoyuji12138-ecommerce-livestream-overlay-generator","generatedAt":"2026-10-10T22:51:09.530Z","source":"CLAWHUB","claimStatus":"UNCLAIMED","verificationTier":"NONE","summary":{"evidence":{"source":"CLAWHUB","verified":false,"confidence":"medium","updatedAt":"2026-10-10T20:20:02.046Z","emptyReason":null},"description":"电商直播贴片生成器 / 电商直播视觉包装工具。 适用于淘宝直播、抖音直播带货、拼多多直播、快手直播等电商直播场景。 输入品牌、产品、促销信息或产品照片，自动生成完整电商直播视觉包装： 背景、标题栏、主播形象、价格卡、产品货架、福利条、促销贴片。 支持绿幕抠图、自动合成预览、打包交付。 E-commerce liv...","descriptionLabel":"Source description","evidenceSummary":"Capability contract not published. No trust telemetry is available yet. 1.3K downloads reported by the source. Last updated 10/10/2026.","installCommand":"clawhub skill install s1772j8ad7n605nf7mc2twgj61840611:ecommerce-livestream-overlay-generator","sourceUrl":"https://clawhub.ai/gaoyuji12138/ecommerce-livestream-overlay-generator","homepage":"https://clawhub.ai/gaoyuji12138/skills/ecommerce-livestream-overlay-generator","primaryLinks":[{"label":"View on ClawHub","url":"https://clawhub.ai/gaoyuji12138/ecommerce-livestream-overlay-generator","kind":"source"},{"label":"Homepage","url":"https://clawhub.ai/gaoyuji12138/skills/ecommerce-livestream-overlay-generator","kind":"homepage"}],"safetyScore":84,"overallRank":62,"popularityScore":62,"trustScore":null,"claimedByName":null,"isOwner":false,"seoDescription":"电商直播贴片生成器 / Ecommerce Livestream Overlay Generator technical dossier on Xpersona with agent coverage, OPENCLEW support, and live trust metadata."},"coverage":{"evidence":{"source":"public-profile","verified":false,"confidence":"medium","updatedAt":"2026-10-10T20:20:02.046Z","emptyReason":null},"protocols":[{"protocol":"OPENCLEW","label":"OpenClaw","status":"self-declared","notes":"Declared in the public agent profile."}],"capabilities":[],"verifiedCount":0,"selfDeclaredCount":1,"capabilityMatrix":{"rows":[{"key":"OPENCLEW","type":"protocol","support":"unknown","confidenceSource":"profile","notes":"Listed on profile"}],"flattenedTokens":"protocol:OPENCLEW|unknown|profile"}},"adoption":{"evidence":{"source":"CLAWHUB","verified":false,"confidence":"medium","updatedAt":"2026-10-10T20:20:02.046Z","emptyReason":null},"stars":null,"forks":null,"downloads":1268,"packageName":null,"latestVersion":"2.0.0","tractionLabel":"1.3K downloads"},"release":{"evidence":{"source":"CLAWHUB","verified":false,"confidence":"medium","updatedAt":"2026-10-10T20:20:02.046Z","emptyReason":null},"lastUpdatedAt":"2026-10-10T20:20:02.046Z","lastCrawledAt":"2026-10-10T20:20:02.046Z","lastIndexedAt":null,"nextCrawlAt":"2026-10-11T20:20:02.046Z","lastVerifiedAt":null,"highlights":[{"version":"2.0.0","createdAt":"2026-04-28T10:01:09.013Z","changelog":"V2: Full Chinese SKILL.md. Bilingual metadata, data privacy section, scanner-compatible format. Prompt templates slightly shortened to fit 8192 token limit.","fileCount":7,"zipByteSize":43324},{"version":"1.0.13","createdAt":"2026-04-28T09:32:01.990Z","changelog":"Shorten display name to pure Chinese for higher search ranking on keyword '电商'.","fileCount":2,"zipByteSize":11094},{"version":"1.0.12","createdAt":"2026-04-28T09:29:40.891Z","changelog":"Optimize description with high-frequency e-commerce keywords for search ranking.","fileCount":2,"zipByteSize":11094},{"version":"1.0.11","createdAt":"2026-04-28T09:23:28.312Z","changelog":"Add bilingual CN+EN display name for search discoverability.","fileCount":2,"zipByteSize":10986},{"version":"1.0.10","createdAt":"2026-04-28T09:16:18.970Z","changelog":"Add bilingual CN+EN description for search discoverability. Update tags.","fileCount":2,"zipByteSize":10986},{"version":"1.0.9","createdAt":"2026-04-28T09:14:52.730Z","changelog":"Add bilingual CN+EN description with keywords for better search discoverability. Update tags.","fileCount":2,"zipByteSize":10985},{"version":"1.0.8","createdAt":"2026-04-28T08:32:18.696Z","changelog":"Fix metadata format: use top-level homepage field and metadata JSON string format matching ClawHub scan expectations. Fix 'no storage' claim to clarify generated images are saved locally.","fileCount":2,"zipByteSize":10825},{"version":"1.0.7","createdAt":"2026-04-28T08:23:30.757Z","changelog":"Add openclaw metadata block to SKILL.md frontmatter: declare primaryEnv (VOLCENGINE_ARK_API_KEY), homepage (GitHub repo), and requires (env + bins)","fileCount":2,"zipByteSize":10739}]},"execution":{"evidence":{"source":"CLAWHUB","verified":false,"confidence":"low","updatedAt":null,"emptyReason":"No published capability contract is available yet."},"installCommand":"clawhub skill install s1772j8ad7n605nf7mc2twgj61840611:ecommerce-livestream-overlay-generator","setupComplexity":"low","setupSteps":["Install using `clawhub skill install s1772j8ad7n605nf7mc2twgj61840611:ecommerce-livestream-overlay-generator` in an isolated environment before connecting it to live workloads.","No published capability contract is available yet, so validate auth and request/response behavior manually.","Review the upstream CLAWHUB listing at https://clawhub.ai/gaoyuji12138/ecommerce-livestream-overlay-generator before using production credentials."],"contract":{"contractStatus":"missing","authModes":[],"requires":[],"forbidden":[],"supportsMcp":false,"supportsA2a":false,"supportsStreaming":false,"inputSchemaRef":null,"outputSchemaRef":null,"dataRegion":null,"contractUpdatedAt":null,"sourceUpdatedAt":null,"freshnessSeconds":null},"invocationGuide":{"preferredApi":{"snapshotUrl":"https://www.xpersona.co/api/v1/agents/clawhub-gaoyuji12138-ecommerce-livestream-overlay-generator/snapshot","contractUrl":"https://www.xpersona.co/api/v1/agents/clawhub-gaoyuji12138-ecommerce-livestream-overlay-generator/contract","trustUrl":"https://www.xpersona.co/api/v1/agents/clawhub-gaoyuji12138-ecommerce-livestream-overlay-generator/trust"},"curlExamples":["curl -s \"https://www.xpersona.co/api/v1/agents/clawhub-gaoyuji12138-ecommerce-livestream-overlay-generator/snapshot\"","curl -s \"https://www.xpersona.co/api/v1/agents/clawhub-gaoyuji12138-ecommerce-livestream-overlay-generator/contract\"","curl -s \"https://www.xpersona.co/api/v1/agents/clawhub-gaoyuji12138-ecommerce-livestream-overlay-generator/trust\""],"jsonRequestTemplate":{"query":"summarize this repo","constraints":{"maxLatencyMs":2000,"protocolPreference":["OPENCLEW"]}},"jsonResponseTemplate":{"ok":true,"result":{"summary":"...","confidence":0.9},"meta":{"source":"CLAWHUB","generatedAt":"2026-10-10T22:51:09.528Z"}},"retryPolicy":{"maxAttempts":3,"backoffMs":[500,1500,3500],"retryableConditions":["HTTP_429","HTTP_503","NETWORK_TIMEOUT"]}},"endpoints":{"dossierUrl":"https://www.xpersona.co/api/v1/agents/clawhub-gaoyuji12138-ecommerce-livestream-overlay-generator/dossier","snapshotUrl":"https://www.xpersona.co/api/v1/agents/clawhub-gaoyuji12138-ecommerce-livestream-overlay-generator/snapshot","contractUrl":"https://www.xpersona.co/api/v1/agents/clawhub-gaoyuji12138-ecommerce-livestream-overlay-generator/contract","trustUrl":"https://www.xpersona.co/api/v1/agents/clawhub-gaoyuji12138-ecommerce-livestream-overlay-generator/trust"}},"reliability":{"evidence":{"source":"runtime-metrics","verified":false,"confidence":"low","updatedAt":null,"emptyReason":"No trust, reliability, or runtime telemetry is available."},"trust":{"status":"unavailable","handshakeStatus":"UNKNOWN","verificationFreshnessHours":null,"reputationScore":null,"p95LatencyMs":null,"successRate30d":null,"fallbackRate":null,"attempts30d":null,"trustUpdatedAt":null,"trustConfidence":"unknown","sourceUpdatedAt":null,"freshnessSeconds":null},"decisionGuardrails":{"doNotUseIf":["Contract metadata is missing or unavailable for deterministic execution."],"safeUseWhen":[],"riskFlags":["missing_or_unavailable_contract","trust_data_unavailable","schema_references_missing"],"operationalConfidence":"low"},"executionMetrics":{"observedLatencyMsP50":null,"observedLatencyMsP95":null,"estimatedCostUsd":null,"uptime30d":null,"rateLimitRpm":null,"rateLimitBurst":null,"lastVerifiedAt":null,"verificationSource":null},"runtimeMetrics":{"successRate":null,"avgLatencyMs":null,"avgCostUsd":null,"hallucinationRate":null,"retryRate":null,"disputeRate":null,"p50Latency":null,"p95Latency":null,"lastUpdated":null}},"benchmarks":{"evidence":{"source":"no-benchmark-data","verified":false,"confidence":"low","updatedAt":null,"emptyReason":"No benchmark suites or observed failure patterns are available."},"suites":[],"failurePatterns":[]},"artifacts":{"evidence":{"source":"CLAWHUB","verified":false,"confidence":"medium","updatedAt":"2026-10-10T20:20:02.046Z","emptyReason":null},"readme":"Skill: 电商直播贴片生成器 / Ecommerce Livestream Overlay Generator\n\nOwner: gaoyuji12138\n\nSummary: 电商直播贴片生成器 / 电商直播视觉包装工具。 适用于淘宝直播、抖音直播带货、拼多多直播、快手直播等电商直播场景。 输入品牌、产品、促销信息或产品照片，自动生成完整电商直播视觉包装： 背景、标题栏、主播形象、价格卡、产品货架、福利条、促销贴片。 支持绿幕抠图、自动合成预览、打包交付。 E-commerce liv...\n\nTags: AI image generation:1.0.0, commerce graphics:1.0.0, douyin:2.0.0, ecommerce:2.0.0, ecommerce livestream overlay:1.0.0, green screen removal:1.0.0, image-generation:2.0.0, latest:2.0.0, livestream:2.0.0, livestream background:1.0.0, overlay:2.0.0, pdd:2.0.0, pricing card:1.0.0, product display:1.0.0, product-display:2.0.0, stream decoration generator:1.0.0, streaming:2.0.0, taobao:2.0.0, volcano-engine:2.0.0\n\nVersion history:\n\nv2.0.0 | 2026-04-28T10:01:09.013Z | user\n\nV2: Full Chinese SKILL.md. Bilingual metadata, data privacy section, scanner-compatible format. Prompt templates slightly shortened to fit 8192 token limit.\n\nv1.0.13 | 2026-04-28T09:32:01.990Z | user\n\nShorten display name to pure Chinese for higher search ranking on keyword '电商'.\n\nv1.0.12 | 2026-04-28T09:29:40.891Z | user\n\nOptimize description with high-frequency e-commerce keywords for search ranking.\n\nv1.0.11 | 2026-04-28T09:23:28.312Z | user\n\nAdd bilingual CN+EN display name for search discoverability.\n\nv1.0.10 | 2026-04-28T09:16:18.970Z | user\n\nAdd bilingual CN+EN description for search discoverability. Update tags.\n\nv1.0.9 | 2026-04-28T09:14:52.730Z | user\n\nAdd bilingual CN+EN description with keywords for better search discoverability. Update tags.\n\nv1.0.8 | 2026-04-28T08:32:18.696Z | user\n\nFix metadata format: use top-level homepage field and metadata JSON string format matching ClawHub scan expectations. Fix 'no storage' claim to clarify generated images are saved locally.\n\nv1.0.7 | 2026-04-28T08:23:30.757Z | user\n\nAdd openclaw metadata block to SKILL.md frontmatter: declare primaryEnv (VOLCENGINE_ARK_API_KEY), homepage (GitHub repo), and requires (env + bins)\n\nv1.0.6 | 2026-04-28T07:11:14.553Z | user\n\nFix privacy statement: accurately declare that user product photos ARE sent to Volcano Engine API as reference image input. Fix confirmation flow: clarify that product identification uses AI agent's built-in vision capability, not a local model.\n\nv1.0.5 | 2026-04-28T07:01:01.925Z | user\n\nCorrect privacy statement: user product photos are processed entirely locally (OpenCV+Pillow) and are never uploaded to any external API. Only text prompts are sent to Volcano Engine.\n\nv1.0.4 | 2026-04-28T06:50:26.072Z | user\n\nFix privacy statement: explicitly declare that user product photos may be sent to Volcano Engine API, remove contradictory 'text-only' claims, link to Volcano Engine privacy policy\n\nv1.0.3 | 2026-04-28T06:28:28.532Z | user\n\nMigrate API key to standard env var declaration (VOLCENGINE_ARK_API_KEY), align with ClawHub metadata format used by similar skills\n\nv1.0.2 | 2026-04-28T06:15:46.337Z | user\n\nAdd data privacy & transparency section, declare API key requirements in YAML frontmatter, add security annotations to code blocks\n\nv1.0.1 | 2026-04-27T03:55:03.977Z | user\n\necommerce-livestream-overlay-generator v1.0.1\n\n- Updated host persona prompt guidelines: the background color should be described as \"pure solid green\" (not \"#00FF00\") rather than \"pure deep green\".\n- Aligned language for background color requirements for consistency in both background and host persona prompts.\n- No code changes; documentation update only.\n\nv1.0.0 | 2026-04-23T11:10:08.566Z | user\n\nGive your AI Agent a single sentence, and it will automatically generate a complete set of livestream overlay graphics.\n\nFor example, just say:\n\nCreate a full FILA livestream overlay set. Featured products: Cat Paw Shoes and Mars Shoes. ¥150 off every ¥1,100. Buy 2 pairs, get a free collab bucket hat. VIP exclusive limited gift box packaging.\n\nYou can also upload a product photo, and the AI will recognize it and auto-generate everything.\n\nIn about 1 minute, you'll receive: Preview example (Chow Tai Fook): https://metagc-cdn.aminer.cn/baolian/975be8203ef511f196c2ea516938c8a791.jpg\n\nA complete set of livestream overlays: background, title banner, host persona, pricing card, product shelf, benefits bar, plus a composite preview image. Each component is delivered as a separate PNG with transparency, ready for editing and repositioning.\n\nFor any questions, contact the developer on WeChat: gyj20010114\n\nArchive index:\n\nArchive v2.0.0: 7 files, 43324 bytes\n\nFiles: diff_cn.txt (3442b), SKILL_V1_EN_BACKUP.md (26902b), SKILL_V2_CN_BASE.md (22001b), SKILL_V2_CN_MODIFIED.md (24139b), skill-card.md (2767b), SKILL.md (18625b), _meta.json (157b)\n\nFile v2.0.0:SKILL.md\n\n---\nname: ecommerce-livestream-overlay-generator\ndescription: >\n  电商直播贴片生成器 / 电商直播视觉包装工具。\n  适用于淘宝直播、抖音直播带货、拼多多直播、快手直播等电商直播场景。\n  输入品牌、产品、促销信息或产品照片，自动生成完整电商直播视觉包装：\n  背景、标题栏、主播形象、价格卡、产品货架、福利条、促销贴片。\n  支持绿幕抠图、自动合成预览、打包交付。\n  E-commerce livestream overlay generator for Taobao, Douyin, PDD, Kuaishou streaming.\n  Generate background, title banner, host persona, pricing card, product shelf, benefits bar.\n  Supports green screen removal, auto-composite preview, and packaged delivery.\nhomepage: https://github.com/gaoyuji12138/e-commerce-livestream-overlay-skill\nuser-invocable: true\nmetadata: '{\"openclaw\":{\"emoji\":\"🎨\",\"primaryEnv\":\"VOLCENGINE_ARK_API_KEY\",\"requires\":{\"env\":[\"VOLCENGINE_ARK_API_KEY\"],\"bins\":[\"python3\",\"pip3\"]}}}'\n---\n\n# 直播间装修贴片生成 Skill\n\n## 一、前置条件\n\n### 依赖\n- Python 3 + Pillow + opencv-python-headless + numpy\n- 火山方舟 API Key\n\n### API Key 获取\n\n1. 前往 [火山引擎控制台](https://console.volcengine.com/ark) 注册并登录\n2. 在「模型推理」页面开通豆包视觉模型\n3. 在控制台凭证页面创建 API Key\n\n> **每个用户需要自己的 API Key**：使用时从环境变量 `VOLCENGINE_ARK_API_KEY` 读取。\n\n### 安装依赖\n```bash\npip3 install Pillow==12.2.0 opencv-python-headless==4.13.0 numpy==2.3.2\n```\n\n## 二、数据隐私与透明度\n\n### 数据流向\n\n| 数据类型 | 发送目标 | 用途 | 是否持久化 |\n|----------|----------|------|-----------|\n| 文本 Prompt（品牌/促销文案等） | 火山引擎 API | 图像生成请求 | ❌ 仅传输，不存储 |\n| 用户产品照片 | 火山引擎 API | 作为图像生成参考输入 | ❌ 仅传输，不存储 |\n| 生成的图片 | 本地磁盘 | 交付给用户 | ✅ 保存到本地输出目录 |\n\n> **AI 内置视觉能力**：当用户仅提供产品照片未附文字说明时，由 AI Agent 内置视觉能力识别图中商品信息（本地运行），无需额外 API 调用。\n\n**本 Skill 不会做的事：**\n- ❌ 在本地或远程存储、记录或缓存用户输入数据（文本 Prompt、产品照片）\n- ❌ 将数据转发到火山引擎以外的任何第三方\n- ❌ 进行任何购买、支付或金融操作\n- ❌ 进行任何加密货币或区块链操作\n\n> ⚠️ 用户产品照片和文本 Prompt 会发送至火山引擎 API。上传敏感或专有产品图片前，请阅读[火山引擎隐私政策](https://www.volcengine.com/docs/6369/71845)。API 返回的生成图片会保存到本地输出目录。\n\n## 三、需求确认（正式生成前必须执行）\n\n> ⚠️ 收到用户生成请求后，不要立即开始生成图片。先确认以下信息，确保一次性出图到位。\n\n### 2.1 必须确认的信息\n\n| 信息 | 说明 | 必填 |\n|------|------|------|\n| 品牌 | 如 戴森、茅台、三只松鼠等 | ✅ |\n| 主推商品 | 具体品名和型号 | ✅ |\n| 促销活动 | 满减、买赠、积分兑换等具体内容 | ✅ |\n| 风格偏好 | 如有特殊要求（颜色、氛围、调性） | ❌ |\n\n### 2.2 确认流程\n\n1. **用户已提供完整信息** → 列出理解的需求摘要，请用户确认后直接开始\n2. **用户信息不完整** → 只追问缺失的必要信息，其他自动推导\n3. **用户只发了商品图片没文字** → 识别图中商品，推测品牌和品类，列出理解的需求摘要请用户确认\n4. **用户说\"按案例来\"/\"照着做\"** → 直接用下方案例的需求生成\n\n\n\n### 2.4 需求描述案例（首次触发时主动展示）\n\n> 收到用户的生成请求后，主动展示以下案例，让用户可以照着描述或直接要求按案例生成。\n\n**示例需求描述**：\n> 做一套戴森吹风机直播间贴片，主品是戴森Supersonic HD16吹风机和Airwrap多功能美发棒，买吹风机送两支造型风嘴，满3000减300，直播间限定礼盒包装\n\n**首次回复模板**：\n```\n你可以直接告诉我你的品牌和促销信息，比如：\n\n> 做一套戴森吹风机直播间贴片，主品是戴森Supersonic HD16吹风机和Airwrap多功能美发棒，买吹风机送两支造型风嘴，满3000减300，直播间限定礼盒包装\n\n也可以直接说「按戴森案例来」，我就直接用这个需求生成。\n\n你的需求是什么？\n```\n\n**最低限度只需提供**：品牌 + 主推商品 + 促销活动（三个核心信息）\n**文案、风格色调、人物造型、权益**均由 AI 自动推导生成，用户可选择性修改。\n\n## 四、文案自动生成规则\n\n### 3.1 主标题\n- 必须含品牌名并具有氛围感\n- **禁用**\"官方\"\"旗舰\"等字样\n- 不能直接写商品名，要有宣传感和下单欲望\n\n### 3.2 副标题\n- 核心利益点（福利/功效/场景）或正在进行的活动\n- 简洁有力\n\n### 3.3 促销竖卡\n- 根据促销活动拆分为 2-3 层\n- 每层包含：金额/权益 + 使用条件\n\n### 3.4 权益文案\n- 通常 3 个：赠品相关 + 正品保障 + 物流/售后\n- ⚠️ 避免使用\"正品\"\"保障\"等触发审核的词，替换为\"品质\"\"保证\"\n\n## 五、组件清单与尺寸\n\n> ⚠️ 尺寸已根据 `doubao-seedream-4-5-251128` 的最低像素限制调整\n\n| # | 组件 | 尺寸 | 绿幕 | 说明 |\n|---|------|------|------|------|\n| 1 | 背景图 | **1440×2560** | ❌ | C4D 场景 |\n| 2 | 标题横卡 | **3328×1109** | ✅ | 异形贴纸 |\n| 3 | 人物 | **1440×2560** | ✅ | 素颜+幼态脸+精致造型（不用手持商品） |\n| 4 | 促销竖卡 | **1920×1920** | ✅ | 正方形异形贴纸 |\n| 5 | 桌面商品贴 | **3328×1109** | ✅ | 40+单品密集排列 |\n| 6 | 权益下贴 | **3328×1109** | ❌ | 铺满底部 |\n\n## 六、Prompt 写法标准\n\n### 核心原则\n- 所有组件使用统一风格前缀确保色调一致\n- 必须包含反向约束条件\n- 背景图使用\"纯色均匀绿色背景\"（不是#00FF00）\n\n### 5.1 背景图 Prompt\n**约束**：无文字、无人物、无产品。\n\n**模板**：\n```\n融合[风格描述]的C4D商业空间场景。[主色调]为主色调，[辅助色]辅助，[点缀色]点缀，[中性色]平衡。空间结构[结构描述]，[氛围]氛围。灯光[灯光描述]，突显质感与层次。材质[材质]，展现[风格]魅力。布局上[元素1]、[元素2]、[元素3]等抽象展示元素散落，营造[整体感受]空间体验。\n```\n\n### 5.2 标题横卡 Prompt\n**模板**：\n```\n纯色均匀绿色背景#00FF00。画面正中是一个[颜色]渐变的异形横条卡片，卡片有[边框质感]，四边是不规则的艺术形状。卡片内部左侧[文字区域底色]，大字「[主标题]」用[字体描述]，下方「[副标题]」用[字体描述]。卡片右侧是[产品插画描述]。整个卡片颜色浓郁厚重，绝对没有白色底色区域，不要任何绿色青色蓝绿色。卡片是一个完整的实体贴纸，边界清晰。\n```\n\n### 5.3 人物 Prompt\n\n> ⚠️ 核心规则（v2 更新）：\n> 1. **人物模型用 `doubao-seedream-5-0-260128`**（其他组件仍用 `doubao-seedream-4-5-251128`）\n> 2. **完全不化妆的素颜**（不是\"清透裸妆\"）\n> 3. **不手持商品**，双手自然下垂微曲（v2 取消了手持商品）\n> 4. **网红幼态脸短中庭**，眼部轮廓深邃有水润感，唇部有果冻感水润饱满\n> 5. **服装必须提前设计好**，prompt 中完整描述上衣+下装（不含鞋子）+ 配饰\n> 6. **发色尽量黑色**，发质柔顺有光泽，发型精致可加配饰，符合品牌调性\n> 7. 背景用\"纯色均匀绿色\"（不是#00FF00）\n\n**模板**：\n```\n纯色均匀绿色背景（无渐变无纹理）。竖版人像，头顶到大腿中段，人物居中占满画面。25岁年轻女主播，完全素颜，冷白皮，网红幼态脸短中庭，{眼型描述}，眼部深邃有水润感，{眼周描述}，唇部{唇型描述}有果冻感水润{唇色描述}，{气质描述}。面部无任何妆容。身穿{上衣描述}，下身{下装描述}，{配饰描述}。{发型发色描述}，{发型配饰描述}。正面柔和灯光，双手自然下垂微曲。\n```\n\n\n**人物造型设计示例（v2 版）**：\n\n兰蔻菁纯：\n```\n网红幼态脸短中庭，眼型圆眼微微下垂显无辜感，眼部轮廓深邃有水润感，眼周皮肤细腻透亮，唇部饱满嘟嘟唇有果冻感水润透亮，五官精致甜美亲和。身穿白色细针织短款开衫，内搭米白色蕾丝吊带，下身穿高腰浅粉色百褶缎面半裙，胸前戴一条玫瑰金细锁骨链，左手腕戴一只玫瑰金细手镯，右手戴一枚简约珍珠戒指。黑色长直发柔顺有光泽披落至锁骨下方，头顶偏右侧夹一个珍珠小发夹，几缕碎发自然垂落在脸颊两侧修饰脸型。\n```\n\n### 5.4 促销竖卡 Prompt\n> ⚠️ 尺寸从 896×1344 改为 **1920×1920**（正方形）\n\n**模板**：\n```\n纯色均匀绿色背景#00FF00。画面正中是一个紧凑的竖向异形标签贴纸，整体为[深色系]实心底色，没有任何白色区域、没有任何浅色区域、没有任何渐变到白色的部分，不要任何绿色青色蓝绿色。贴纸形状为圆角矩形加顶部弧形装饰。顶部有[装饰元素]。大字「[大标题]」用[字体描述]；下方分三层：「[内容1]」「[内容2]」「[内容3]」。整个贴纸颜色浓郁深实，边界清晰锐利，是一个实心异形贴纸。贴纸占据画面约40%面积，紧凑不松散。\n```\n\n### 5.5 桌面商品贴 Prompt（⚠️ 与原始 skill 完全不同）\n\n> ⚠️ 关键区别：\n> 1. **白色哑光大理石展示桌面**（不是纯绿底+白平面）\n> 2. **分层聚核+左右镜像+前后递进**布局逻辑\n> 3. **商品总数至少40个以上单品**（不是\"丰富一些\"）\n> 4. 中层核心区分左中右三块，中心区视觉焦点\n\n**模板**：\n```\n纯色均匀绿色背景。画面下方白色哑光大理石展示桌面（占画面底部40%），产品按分层聚核+左右镜像+前后递进布局，≥40单品密集排列。【中层核心区】左中右三块，中心视觉焦点：{产品布局描述}。所有产品竖立正面朝向观众，阶梯状层次。除商品和白色金属陈列架外无其他内容，禁止出现人体任何部位。光线均匀自然，纯静物陈列。\n```\n\n> ⚠️ prod_layout 里**不能出现\"最前方留手持位\"**——手持商品是人物图的事，桌面商品贴是纯产品陈列\n\n### 5.7 用户商品图（可选）\n\n当用户提供真实商品照片时：\n\n**a) 去背景**：根据商品图的背景类型选择策略\n\n| 商品背景 | 去背景方法 |\n|---------|-----------|\n| 白色/浅色纯色背景 | HSV 阈值去除白色区域 |\n| 深色纯色背景 | HSV 阈值去除对应深色 |\n| 复杂场景背景 | GrabCut 或 Rembg |\n\n```python\nimport cv2, numpy as np\ndef remove_white_bg(img_path, output_path):\n    \"\"\"HSV 阈值去除白色/浅色背景，输出 RGBA PNG\"\"\"\n    img = cv2.imread(img_path)\n    hsv = cv2.cvtColor(img, cv2.COLOR_BGR2HSV)\n    mask = cv2.bitwise_or(\n        cv2.inRange(hsv, np.array([0,0,200]), np.array([180,30,255])),\n        cv2.inRange(hsv, np.array([0,0,160]), np.array([180,50,240])))\n    k = cv2.getStructuringElement(cv2.MORPH_ELLIPSE, (7,7))\n    mask = cv2.GaussianBlur(cv2.morphologyEx(cv2.morphologyEx(mask, cv2.MORPH_CLOSE, k, 5), cv2.MORPH_OPEN, k, 3), (5,5), 0)\n    mask = (mask > 200).astype(np.uint8) * 255\n    b, g, r = cv2.split(img)\n    cv2.imwrite(output_path, cv2.merge([b, g, r, 255 - mask]))\n```\n\n**b) 桌面商品贴 Prompt 调整**：中心区留白，供用户商品图叠加\n\n```\n在原有的桌面商品贴 prompt 中，将中心区描述改为：\n\"中心区域留出足够的空白空间用于放置主推商品（大约占中心30%面积保持干净），\n周边按分层聚核加左右镜像加前后递进逻辑摆放配套产品\"\n```\n\n**c) 合成时叠加**：用户商品图缩放后放在产品区域中心偏上\n\n\n\n**d) 新增交付物**：\n\n| 文件名 | 说明 |\n|--------|------|\n| 用户商品图.png | 去背景后的用户商品图，已定位到画布坐标 |\n\n### 5.6 权益下贴 Prompt\n**模板**：\n```\n左右对称构图，平视视角。核心元素呈现在上半部分：三个简单权益图标，下方对应文字「[权益1] / [权益2] / [权益3]」。背景[背景描述]。风格：平面，光影简约。色彩：[主色]，简洁大方。\n```\n\n## 七、生图 API\n\n| 项目 | 内容 |\n|------|------|\n| 地址 | `https://ark.cn-beijing.volces.com/api/v3/images/generations` |\n| 方式 | POST |\n| Content-Type | application/json |\n| **通用模型** | **`doubao-seedream-4-5-251128`** |\n| **人物模型** | **`doubao-seedream-5-0-260128`**（仅人物组件用此模型） |\n\n### 请求参数\n```json\n{\n  \"model\": \"doubao-seedream-4-5-251128\",\n  \"stream\": false,\n  \"watermark\": false,\n  \"sequential_image_generation\": \"disabled\",\n  \"prompt\": \"<中文prompt>\",\n  \"size\": \"<宽>x<高>\"\n}\n```\n\n### 请求示例\n\n\n## 八、绿幕抠图\n\n对组件 2（标题横卡）、3（人物）、4（促销竖卡）、5（桌面商品贴）执行绿幕去除。\n\n```python\nimport cv2, numpy as np\ndef remove_green(img_path, output_path):\n    \"\"\"HSV 阈值去除绿幕背景，输出 RGBA PNG\"\"\"\n    img = cv2.imread(img_path)\n    hsv = cv2.cvtColor(img, cv2.COLOR_BGR2HSV)\n    mask = cv2.bitwise_or(\n        cv2.inRange(hsv, np.array([35,80,80]), np.array([85,255,255])),\n        cv2.inRange(hsv, np.array([30,40,120]), np.array([90,255,255])))\n    k = cv2.getStructuringElement(cv2.MORPH_ELLIPSE, (5,5))\n    mask = cv2.GaussianBlur(cv2.morphologyEx(cv2.morphologyEx(mask, cv2.MORPH_CLOSE, k, 3), cv2.MORPH_OPEN, k, 2), (3,3), 0)\n    mask = (mask > 127).astype(np.uint8) * 255\n    b, g, r = cv2.split(img)\n    cv2.imwrite(output_path, cv2.merge([b, g, r, 255 - mask]))\n```\n\n## 九、合成预览\n\n> ⚠️ 布局参数与原始 skill 完全不同\n\n### 布局参数\n\n```python\nlayout = {\n    \"title\":   {\"scale\": 0.95, \"pos\": \"center-top\", \"y_pct\": 0.07},\n    \"person\":  {\"scale\": 0.70, \"pos\": \"left\", \"x_pct\": 0.15, \"y_pct\": 0.14},\n    \"promo\":   {\"scale\": 0.40, \"pos\": \"right\", \"x_pct\": 0.55, \"y_pct\": 0.22},\n    \"product\": {\"zoom\": 1.2,  \"pos\": \"bottom-full\", \"above\": \"benefit\"},\n    \"benefit\": {\"scale\": 1.0,  \"pos\": \"bottom-full\"},\n}\n```\n\n### 合成代码\n\n```python\nfrom PIL import Image\ndef compose_preview(bg_path, person_nobg, title_nobg, promo_nobg, product_nobg, benefit_path, output_path):\n    bg = Image.open(bg_path).convert(\"RGBA\"); cw, ch = bg.size\n    def fit(img, w_ratio, center=True):\n        w = int(cw * w_ratio); s = w / img.width\n        r = img.resize((w, int(img.height * s)), Image.LANCZOS)\n        return r, (cw - w) // 2 if center else cw - w\n    def fit_full(img):\n        s = cw / img.width; return img.resize((cw, int(img.height * s)), Image.LANCZOS)\n    def zoom_crop(img, zoom):\n        w = int(cw * zoom); s = w / img.width; h = int(img.height * s)\n        r = img.resize((w, h), Image.LANCZOS); cx = (w - cw) // 2\n        return r.crop((cx, 0, cx + cw, h))\n    title = Image.open(title_nobg).convert(\"RGBA\")\n    person = Image.open(person_nobg).convert(\"RGBA\")\n    promo = Image.open(promo_nobg).convert(\"RGBA\")\n    product = Image.open(product_nobg).convert(\"RGBA\")\n    benefit = Image.open(benefit_path).convert(\"RGBA\")\n    tr, tx = fit(title, 0.95); ty = int(ch * 0.07)\n    prr, prx = fit(promo, 0.40, center=False); prx = int(cw * 0.55); pry = int(ch * 0.22)\n    per, perx = fit(person, 0.70); perx = int(cw * 0.15); pery = int(ch * 0.14)\n    pdr = zoom_crop(product, 1.2); pdy = ch - fit_full(benefit).height - pdr.height\n    bfr = fit_full(benefit); bfy = ch - bfr.height\n    canvas = bg.copy()\n    for img, pos in [(prr,(prx,pry)),(per,(perx,pery)),(pdr,(0,pdy)),(tr,(tx,ty)),(bfr,(0,bfy))]:\n        canvas.paste(img, pos, img)\n    canvas.convert(\"RGB\").save(output_path, \"JPEG\", quality=95)\n```\n\n### 后处理：人物提亮\n\n合成前对人物图层单独提亮，避免合成后人物偏暗：\n\n```python\nfrom PIL import ImageEnhance\nperson_bright = ImageEnhance.Brightness(person).enhance(1.17)\n```\n\n> ⚠️ 只提亮人物图层（17%），不动其他图层。最终交付的人物.png 也使用提亮后的版本。\n\n## 十、打包交付\n\n### 交付文件（固定7个）\n\n| 文件名 | 格式 | 说明 |\n|--------|------|------|\n| 背景.png | PNG 1440×2560 | 全铺 |\n| 标题横卡.png | PNG 1440×2560 透明 | 内容在预览位置 |\n| 人物.png | PNG 1440×2560 透明 | 已提亮处理（不标注\"提亮\"） |\n| 促销竖卡.png | PNG 1440×2560 透明 | 内容在预览位置 |\n| 桌面商品贴.png | PNG 1440×2560 透明 | 内容在预览位置 |\n| 权益下贴.png | PNG 1440×2560 透明 | 内容在预览位置 |\n| 预览.jpg | JPG 1440×2560 | 合成预览效果 |\n\n若提供了用户商品图，该商品图会合成到桌面商品贴的中心区域，不单独输出。\n\n### 交付方式（二选一，自动判断）\n\n**方式一：对话内直接发送（当通道支持文件发送时）**\n1. 先发送预览图（`预览.jpg`）到对话\n2. 再发送压缩包（命名为「{品牌名}直播间_全套贴图.zip」，内含上述7个文件）\n\n\n\n**方式二：桌面文件夹（当通道不支持文件发送时）**\n1. 在用户桌面创建文件夹，命名为「{品牌名}直播间贴片」\n2. 文件夹内只放上述7个文件，不包含中间文件、不包含压缩包\n3. 用 `open` 命令直接打开预览图，让用户看到效果\n4. 用 `open` 命令直接打开文件夹，让用户浏览文件\n\n> ⚠️ 注意：webchat（Control UI）当前不支持文件发送，走方式二。飞书、微信等走方式一。\n\n## 十、完整工作流\n\n```\n1. 收集需求（品牌、促销活动、可选：用户商品图）\n2. 分析品牌风格 → 确定色调\n3. 为人物设计造型（幼态脸+水润眼+果冻唇+服装+发型发色+配饰）\n4. 自动生成缺失文案\n5. 编写 6 个组件的 prompt（人物用 v2 模板，不用手持商品）\n   - 若有用户商品图：桌面商品贴 prompt 中心区留白\n6. 通用组件调用 doubao-seedream-4-5-251128，人物组件调用 doubao-seedream-5-0-260128\n7. 对组件 2/3/4/5 执行绿幕抠图\n8. 对人物图层提亮17%（ImageEnhance.Brightness 1.17）\n9. [可选] 对用户商品图执行去背景（白底/浅色背景用HSV阈值）\n10. 合成预览图（使用提亮后的人物图层，用户商品图叠加在桌面产品区中央）\n11. 打包交付\n```\n\nFile v2.0.0:_meta.json\n\n{\n  \"ownerId\": \"kn72d297ct1e0cjjbnarj42ag9841d6c\",\n  \"slug\": \"ecommerce-livestream-overlay-generator\",\n  \"version\": \"2.0.0\",\n  \"publishedAt\": 1777370469013\n}\n\nFile v2.0.0:SKILL_V1_EN_BACKUP.md\n\n---\nname: ecommerce-livestream-overlay-generator\ndescription: >\n  电商直播贴片生成器 / 电商直播视觉包装工具。\n  适用于淘宝直播、抖音直播带货、拼多多直播、快手直播等电商直播场景。\n  输入品牌、产品、促销信息或产品照片，自动生成完整电商直播视觉包装：\n  背景、标题栏、主播形象、价格卡、产品货架、福利条、促销贴片。\n  支持绿幕抠图、自动合成预览、打包交付。\n  E-commerce livestream overlay generator for Taobao, Douyin, PDD, Kuaishou streaming.\n  Generate background, title banner, host persona, pricing card, product shelf, benefits bar.\n  Supports green screen removal, auto-composite preview, and packaged delivery.\nhomepage: https://github.com/gaoyuji12138/e-commerce-livestream-overlay-skill\nuser-invocable: true\nmetadata: '{\"openclaw\":{\"emoji\":\"🎨\",\"primaryEnv\":\"VOLCENGINE_ARK_API_KEY\",\"requires\":{\"env\":[\"VOLCENGINE_ARK_API_KEY\"],\"bins\":[\"python3\",\"pip3\"]}}}'\n---\n\n# E-Commerce Livestream Overlay Generator Skill\n\n## I. Prerequisites\n\n### Dependencies\n- Python 3 + Pillow + opencv-python-headless + numpy\n\n### Environment Variables\n\n- `VOLCENGINE_ARK_API_KEY` - Volcano Engine (Doubao) Ark API Key（必填）\n\n**获取方式**：\n1. 登录 [火山引擎控制台](https://console.volcengine.com/ark/region:ark+cn-beijing/model)\n2. 进入 Ark 模型平台，启用以下模型：\n   - `doubao-seedream-4-5-251128`（通用组件）\n   - `doubao-seedream-5-0-260128`（主播人像组件）\n3. 在控制台凭证页面创建 API Key\n\n> **每个用户需要自己的 API Key**：使用时从环境变量 `VOLCENGINE_ARK_API_KEY` 读取。\n\n### Install dependencies\n```bash\npip3 install Pillow==12.2.0 opencv-python-headless==4.13.0 numpy==2.3.2\n```\n\n## II. Data Privacy & Transparency\n\nThis skill sends **text prompts** and **optionally user-supplied product photos** to the Volcano Engine (Doubao) image generation API. All subsequent processing (green screen removal, compositing, packaging) runs **entirely locally**.\n\n| What is sent | Where | Purpose |\n|-------------|-------|---------|\n| Text prompts (brand/product/style descriptions) | `https://ark.cn-beijing.volces.com/api/v3/images/generations` | Generate overlay component images (background, title, host persona, pricing card, product shelf, benefits bar) |\n| User-supplied product photos (optional) | `https://ark.cn-beijing.volces.com/api/v3/images/generations` | Used as reference image input for product shelf generation |\n\n**Data handling details:**\n- **Text prompts** and **user product photos** (when provided) are sent to the Volcano Engine API endpoint listed above. No data is forwarded to any other third party.\n- **Generated images** are returned from the API and saved locally. They are not re-uploaded anywhere.\n- **All post-processing** (green screen removal, compositing, brightness adjustment, packaging) runs **entirely locally** on the user's machine using Python (OpenCV + Pillow).\n\n**What this skill does NOT do:**\n- ❌ Store, log, or cache user input data (text prompts, product photos) locally or remotely\n- ❌ Forward data to any third party beyond the Volcano Engine API\n- ❌ Make purchases, handle payments, or interact with any financial services\n- ❌ Perform any cryptocurrency or blockchain operations\n\n> Generated images returned from the API are saved to the local output directory for your use.\n\n> ⚠️ User product photos and text prompts are sent to Volcano Engine's API. Please review [Volcano Engine's privacy policy](https://www.volcengine.com/docs/6369/71845) before uploading sensitive or proprietary product images.\n\n## III. Requirement Confirmation (Must Complete Before Generation)\n\n> ⚠️ Upon receiving a generation request, do NOT start generating images immediately. Confirm the following info first to ensure one-pass success.\n\n### 3.1 Required Information\n\n| Info | Description | Required |\n|------|-------------|----------|\n| Brand | e.g. Dyson, Moutai, Three Squirrels | ✅ |\n| Featured Product | Specific product name and model | ✅ |\n| Promotion | Discounts, gifts, loyalty points, etc. | ✅ |\n| Style Preference | Special requirements (color, mood, tone) | ❌ |\n\n### 3.2 Confirmation Flow\n\n1. **User provides complete info** → Summarize understanding, ask user to confirm, then start\n2. **User info is incomplete** → Only ask for missing required fields, auto-infer the rest\n3. **User sends a product photo with no text** → AI agent identifies the product using its built-in vision capability, infers brand & category, summarizes and asks user to confirm\n4. **User says \"use the example\"** → Generate directly using the Dyson example below\n\n### 3.3 Confirmation Example Reply\n\n```\nLet me confirm the requirements:\n\n📋 **Brand**: Dyson\n📋 **Featured Product**: Dyson Supersonic HD16 Hair Dryer + Airwrap Multi-Styler\n📋 **Promotion**: ¥300 off every ¥3,000 spent\n📋 **Gift**: Free 2 styling nozzle attachments with hair dryer purchase\n📋 **Packaging**: Livestream-exclusive gift box\n📋 **Style**: Tech-luxury (inferred from Dyson brand)\n\nHere's my copy design:\n- Main title: \"Dyson · Salon-Grade Styling\"\n- Subtitle: \"Limited Edition · Luxe Experience\"\n- Pricing card: \"¥300 off ¥3,000+ / Free styling nozzles with hair dryer / Exclusive gift box\"\n- Benefits: \"2-year warranty / Free shipping / Premium gift packaging\"\n\nIf this looks good I'll start generating. Let me know if you want any changes 👇\n```\n\n### 3.4 Example Requirement (Show Proactively on First Trigger)\n\n> When receiving a generation request, proactively show the example below so the user can follow it or ask to use it directly.\n\n**Example requirement:**\n> Generate a full Dyson livestream overlay set. Featured products: Dyson Supersonic HD16 Hair Dryer and Airwrap Multi-Styler. Free 2 styling nozzle attachments with hair dryer purchase. ¥300 off every ¥3,000 spent. Livestream-exclusive gift box.\n\n**First reply template:**\n```\nYou can just tell me your brand and promo info, like:\n\n> Generate a full Dyson livestream overlay set. Featured products: Dyson Supersonic HD16 Hair Dryer and Airwrap Multi-Styler. Free 2 styling nozzle attachments with hair dryer purchase. ¥300 off every ¥3,000 spent. Livestream-exclusive gift box.\n\nOr just say \"use the Dyson example\" and I'll generate with that spec.\n\nWhat's your requirement?\n```\n\n**Minimum needed**: Brand + Featured Product + Promotion (3 core fields)\n**Copy, style, host design, benefits** are all auto-generated by AI. User can optionally modify.\n\n## IV. Auto Copywriting Rules\n\n### 4.1 Main Title\n- Must include brand name with atmospheric feel\n- **NEVER use** \"official\" or \"flagship\" or similar words\n- Don't just write the product name — it needs marketing appeal and purchase desire\n\n### 4.2 Subtitle\n- Core benefit (perks / efficacy / scenario) or current campaign\n- Concise and impactful\n\n### 4.3 Pricing Card\n- Split promotion into 2-3 tiers\n- Each tier: amount/benefit + conditions\n\n### 4.4 Benefits Copy\n- Usually 3 items: gift-related + authenticity guarantee + logistics/after-sales\n- ⚠️ Avoid audit-triggering words like \"authentic\" or \"guarantee\" — use \"quality\" and \"assured\" instead\n\n## V. Component List & Dimensions\n\n> ⚠️ Dimensions calibrated for `doubao-seedream-4-5-251128` minimum pixel limits\n\n| # | Component | Size | Green Screen | Notes |\n|---|-----------|------|-------------|-------|\n| 1 | Background | **1440×2560** | ❌ | C4D scene |\n| 2 | Title Banner | **3328×1109** | ✅ | Die-cut sticker |\n| 3 | Host Persona | **1440×2560** | ✅ | Bare-faced + youthful face + styled look (no product in hand) |\n| 4 | Pricing Card | **1920×1920** | ✅ | Square die-cut sticker |\n| 5 | Product Shelf | **3328×1109** | ✅ | 40+ items dense arrangement |\n| 6 | Benefits Bar | **3328×1109** | ❌ | Full-width bottom |\n\n## VI. Prompt Writing Standards\n\n### Core Principles\n- All components use a unified style prefix for color consistency\n- Must include negative constraints\n- Background uses \"pure solid green\" (not #00FF00)\n\n### 6.1 Background Prompt\n**Constraint**: No text, no people, no products.\n\n**Template**:\n```\nA C4D commercial space scene blending [style description]. The space uses [primary color] as the dominant tone, complemented by [secondary color], with [accent color] details, all balanced by [neutral color]. The spatial structure presents [structure description], creating a [atmosphere]. Lighting design [lighting description] highlights texture and depth. Materials include [materials], showcasing the charm of [style]. Modular abstract display elements are scattered throughout, such as [element 1], [element 2], and [element 3], together creating a [overall feeling] spatial experience.\n```\n\n### 6.2 Title Banner Prompt\n**Template**:\n```\nSolid uniform green background #00FF00. Center of frame is a [color] gradient die-cut horizontal card with [border texture], irregular artistic edges on all four sides. Inside the card, left side has [text area background color], large text \"[MAIN TITLE]\" in [font description], below it \"[SUBTITLE]\" in [font description]. Right side of card shows [product illustration description]. The entire card has rich deep colors with absolutely no white background areas, no green/cyan/teal. The card is a complete solid sticker with crisp sharp edges.\n```\n\n### 6.3 Host Persona Prompt\n\n> ⚠️ Core rules (v2 update):\n> 1. **Use `doubao-seedream-5-0-260128` for host persona** (other components still use `doubao-seedream-4-5-251128`)\n> 2. **Completely bare-faced, no makeup** (not \"natural nude makeup\")\n> 3. **Do NOT hold products** — hands hang naturally, slightly bent (v2 removed hand-held product)\n> 4. **Internet-celebrity youthful face with short midface**, deep watery eyes, jelly-glossy lips\n> 5. **Outfit must be pre-designed** — fully describe top + bottom (no shoes) + accessories in prompt\n> 6. **Hair color preferably black**, silky smooth, styled with possible accessories matching brand tone\n> 7. Background uses \"pure solid green\" (not #00FF00)\n\n**Template**:\n```\nPure solid green uniform background, absolutely uniform pure color with no gradients, no texture, no shadows, no light spots, no impurities. Vertical portrait, person standing facing camera, framed from top of head to mid-thigh, person centered and occupying most of the frame, top of head very close to frame top. 25-year-old beautiful young female host, completely bare-faced with no makeup, cool-toned fair skin that is clear and translucent, internet-celebrity youthful face with short midface, {eye type description}, deep watery eyes, {eye area description}, lips {lip shape description} with jelly-glossy {lip color description}, {temperament description}. Completely bare-faced, no makeup on face whatsoever, no eyeshadow, eyeliner, mascara, blush, lipstick, or foundation. Wearing {top description}, {bottom description}, {accessories description}. {hair style and color description}, {hair accessories description}. Soft even front lighting. Person standing naturally, both arms hanging naturally with slight bend, relaxed elegant posture.\n```\n\n**Face Differentiation (Must specify these dimensions each time)**:\n\n| Dimension | Description | Examples |\n|-----------|-------------|----------|\n| Face shape | Internet-celebrity youthful face, short midface (fixed) | Heart/oval/melon/square-round |\n| Eye type | Round/almond/peach-blossom/phoenix | Describe \"slightly downturned for innocent look\" or \"slightly upturned for elegance\" |\n| Eye hydration | Fixed requirement | \"Deep watery eyes, delicate translucent skin around eyes\" |\n| Lip jelly feel | Fixed requirement | \"Full pouty lips with jelly-glossy translucent shine\" / \"Thin lips natural pale pink with jelly feel\" |\n| Temperament | Sweet & approachable / cool & premium / elegant & intellectual / energetic / confident | Varies by brand |\n| Outfit | Must be pre-designed, top + bottom + accessories | No shoes |\n| Hairstyle | Must be pre-designed, primarily black + accessories | Silky smooth, refined with design sense |\n\n**Host Design Examples (v2)**:\n\nLancôme Absolue:\n```\nInternet-celebrity youthful face with short midface, round eyes slightly downturned for innocent look, deep watery eyes, delicate translucent skin around eyes, full pouty lips with jelly-glossy translucent shine, refined sweet and approachable features. Wearing white fine-knit cropped cardigan, layered over cream-white lace camisole, high-waisted light pink pleated satin midi skirt, rose-gold delicate collarbone chain on chest, rose-gold thin bracelet on left wrist, simple pearl ring on right hand. Long straight black hair silky smooth falling to below collarbone, a small pearl hair clip clipped on the right side of crown, a few wispy strands naturally framing the face.\n```\n\nHelena Rubinstein Re-Plasty:\n```\nInternet-celebrity youthful face with short midface, phoenix eyes slightly upturned, deep watery eyes with natural cool-premium feel at outer corners, thin lips natural pale pink with jelly-glossy hydration, refined cool-premium features. Wearing black high-neck slim-fit silk shirt, sleeves rolled up to elbows revealing slender wrists, black high-waisted wide-leg suit pants, a 2-carat diamond stud on left earlobe, ultra-fine silver chain bracelet on right wrist. Long straight black hair silky smooth with center part falling naturally to center of back, a minimalist black ultra-thin hairpin placed near right temple for clean structured look.\n```\n\nLa Mer:\n```\nInternet-celebrity youthful face with short midface, bright large almond eyes, deep watery eyes with warm soulful gaze, standard lips with jelly-glossy natural pink full hydration, refined soft and clear features. Wearing pearl-white silk satin loose shirt with top button undone revealing delicate collarbone, puffy bubble sleeve design, champagne high-waisted satin wide-leg trousers, ultra-fine champagne-gold necklace with small pearl pendant on neck, white jade thin bracelet on left wrist. Long curly black hair silky smooth with natural large waves falling to shoulder blades, a loose refined French braid woven from left side of crown, tiny pearl hairpins scattered through the braid.\n```\n\n### 6.4 Pricing Card Prompt\n> ⚠️ Size changed from 896×1344 to **1920×1920** (square)\n\n**Template**:\n```\nSolid uniform green background #00FF00. Center of frame is a compact vertical die-cut label sticker, entirely [dark color scheme] solid background, absolutely no white areas, no light-colored areas, no gradients to white, no green/cyan/teal. Sticker shape is rounded rectangle with arched top decoration. Top has [decorative elements]. Large text \"[HEADLINE]\" in [font description]; below divided into three tiers: \"[TIER 1]\" \"[TIER 2]\" \"[TIER 3]\". The entire sticker has rich deep solid colors with crisp sharp edges, a solid die-cut sticker. Sticker occupies about 40% of frame area, compact not sparse.\n```\n\n### 6.5 Product Shelf Prompt (⚠️ Different from original skill)\n\n> ⚠️ Key differences:\n> 1. **White matte marble display tabletop** (not pure green + white plane)\n> 2. **Layered cluster + left-right mirror + front-back progression** layout logic\n> 3. **At least 40+ individual product units** (not \"make it rich\")\n> 4. Middle core zone split into left-center-right sections, center as visual focal point\n\n**Template**:\n```\nBackground is pure solid green uniform. At the bottom of frame is a front-facing flat white premium display tabletop (white matte marble texture), completely horizontal with no tilt, occupying bottom 40% of frame height. Products arranged by layered cluster plus left-right mirror plus front-back progression logic, at least 40+ individual product units densely covering most tabletop area: [Middle core display zone split into left-center-right] Center visual focal point: {product layout description} [Overall layout requirements] All products standing upright facing the viewer. Height differences create stepped layering. Appropriate blank spacing between left/right zones and center zone for breathing room. Dense and full product arrangement, at least 40+ individual units. Nothing else besides products and white matte metal display stands, absolutely no hands, fingers, arms, or any human body parts. Even lighting. Pure still-life product display photo with no human presence whatsoever.\n```\n\n> ⚠️ Do NOT include \"leave hand-holding space at front\" in the layout — hand-held products are for the host persona image; the product shelf is pure product display.\n\n### 6.6 User Product Photo (Optional)\n\nWhen the user provides a real product photo:\n\n**a) Background removal**: Select strategy based on product photo background\n\n| Product Background | Removal Method |\n|-------------------|----------------|\n| White/light solid background | HSV threshold to remove white areas |\n| Dark solid background | HSV threshold to remove corresponding dark color |\n| Complex scene background | GrabCut or Rembg |\n\n```python\nimport cv2\nimport numpy as np\n\ndef remove_white_bg(img_path, output_path):\n    \"\"\"Remove white/light background — runs entirely locally\"\"\"\n    img = cv2.imread(img_path)\n    hsv = cv2.cvtColor(img, cv2.COLOR_BGR2HSV)\n    mask_w = cv2.inRange(hsv, np.array([0, 0, 200]), np.array([180, 30, 255]))\n    mask_g = cv2.inRange(hsv, np.array([0, 0, 160]), np.array([180, 50, 240]))\n    mask = cv2.bitwise_or(mask_w, mask_g)\n    k = cv2.getStructuringElement(cv2.MORPH_ELLIPSE, (7, 7))\n    mask = cv2.morphologyEx(mask, cv2.MORPH_CLOSE, k, iterations=5)\n    mask = cv2.morphologyEx(mask, cv2.MORPH_OPEN, k, iterations=3)\n    mask = cv2.GaussianBlur(mask, (5, 5), 0)\n    mask = (mask > 200).astype(np.uint8) * 255\n    b, g, r = cv2.split(img)\n    cv2.imwrite(output_path, cv2.merge([b, g, r, 255 - mask]))\n```\n\n**b) Product Shelf Prompt adjustment**: Leave center area blank for user's product\n\n```\nIn the product shelf prompt, change the center zone description to:\n\"Leave sufficient blank space in the center area for the main featured product\n(about 30% of center area kept clean), surrounding products arranged by\nlayered cluster plus left-right mirror plus front-back progression logic\"\n```\n\n**c) Composite overlay**: User product photo scaled and placed at center of product area\n\n```python\n# User product: scale to 25% of canvas width, center of product area\nup_target_w = int(cw * 0.25)\nups = up_target_w / user_product.width\nup_resized = user_product.resize((int(user_product.width * ups), int(user_product.height * ups)), Image.LANCZOS)\nupx = (cw - up_resized.width) // 2\nupy = pdy + int(pdr.height * 0.05)\n\n# Paste order: user product after product shelf, before title banner\ncanvas.paste(pdr, (0, pdy), pdr)\ncanvas.paste(up_resized, (upx, upy), up_resized)  # ← user product\ncanvas.paste(tr, (tx, ty), tr)\n```\n\n### 6.7 Benefits Bar Prompt\n**Template**:\n```\nSymmetrical left-right composition, eye-level view. Core elements in upper half: three simple benefit icons, with corresponding text below: \"[BENEFIT 1] / [BENEFIT 2] / [BENEFIT 3]\". Background [background description]. Style: flat design, minimalist lighting. Color: [primary color], clean and elegant.\n```\n\n## VII. Image Generation API\n\n| Item | Content |\n|------|---------|\n| Endpoint | `https://ark.cn-beijing.volces.com/api/v3/images/generations` |\n| Method | POST |\n| Content-Type | application/json |\n| **General model** | **`doubao-seedream-4-5-251128`** |\n| **Persona model** | **`doubao-seedream-5-0-260128`** (host persona component only) |\n\n> 📋 The API key is obtained from the [Volcano Engine Ark Console](https://console.volcengine.com/ark/region:ark+cn-beijing/model). Text prompts are sent to this endpoint; no images or personal data are transmitted.\n\n### Request parameters\n```json\n{\n  \"model\": \"doubao-seedream-4-5-251128\",\n  \"stream\": false,\n  \"watermark\": false,\n  \"sequential_image_generation\": \"disabled\",\n  \"prompt\": \"<prompt in Chinese>\",\n  \"size\": \"<width>x<height>\"\n}\n```\n\n### Request example\n```bash\ncurl -s \"https://ark.cn-beijing.volces.com/api/v3/images/generations\" \\\n  -H \"Content-Type: application/json\" \\\n  -H \"Authorization: Bearer $VOLCENGINE_ARK_API_KEY\" \\\n  -d '{\n    \"model\": \"doubao-seedream-4-5-251128\",\n    \"stream\": false,\n    \"watermark\": false,\n    \"sequential_image_generation\": \"disabled\",\n    \"prompt\": \"prompt content\",\n    \"size\": \"1440x2560\"\n  }'\n```\n\n> 📋 The API key is read from the environment variable `VOLCENGINE_ARK_API_KEY`. Text prompts are sent to this endpoint; no images or personal data are transmitted.\n\n## VIII. Green Screen Removal\n\nExecute green screen removal on components 2 (Title Banner), 3 (Host Persona), 4 (Pricing Card), and 5 (Product Shelf).\n\n> 🔒 This processing runs **entirely locally** — no data leaves the machine.\n\n```python\nimport cv2\nimport numpy as np\n\ndef remove_green(img_path, output_path):\n    img = cv2.imread(img_path)\n    hsv = cv2.cvtColor(img, cv2.COLOR_BGR2HSV)\n    mask1 = cv2.inRange(hsv, np.array([35, 80, 80]), np.array([85, 255, 255]))\n    mask2 = cv2.inRange(hsv, np.array([30, 40, 120]), np.array([90, 255, 255]))\n    mask = cv2.bitwise_or(mask1, mask2)\n    k = cv2.getStructuringElement(cv2.MORPH_ELLIPSE, (5, 5))\n    mask = cv2.morphologyEx(mask, cv2.MORPH_CLOSE, k, iterations=3)\n    mask = cv2.morphologyEx(mask, cv2.MORPH_OPEN, k, iterations=2)\n    mask = cv2.GaussianBlur(mask, (3, 3), 0)\n    mask = (mask > 127).astype(np.uint8) * 255\n    b, g, r = cv2.split(img)\n    rgba = cv2.merge([b, g, r, 255 - mask])\n    cv2.imwrite(output_path, rgba)\n```\n\n## IX. Composite Preview\n\n> ⚠️ Layout parameters differ from original skill\n> 🔒 All compositing runs **entirely locally** — no data leaves the machine.\n\n### Layout Parameters\n\n```python\nlayout = {\n    \"title\":   {\"scale\": 0.95, \"pos\": \"center-top\", \"y_pct\": 0.07},\n    \"person\":  {\"scale\": 0.70, \"pos\": \"left\", \"x_pct\": 0.15, \"y_pct\": 0.14},\n    \"promo\":   {\"scale\": 0.40, \"pos\": \"right\", \"x_pct\": 0.55, \"y_pct\": 0.22},\n    \"product\": {\"zoom\": 1.2,  \"pos\": \"bottom-full\", \"above\": \"benefit\"},\n    \"benefit\": {\"scale\": 1.0,  \"pos\": \"bottom-full\"},\n}\n```\n\n### Composite Code\n\n```python\nfrom PIL import Image\n\ndef compose_preview(bg_path, person_nobg, title_nobg, promo_nobg, product_nobg, benefit_path, output_path):\n    bg = Image.open(bg_path).convert(\"RGBA\")\n    cw, ch = bg.size\n\n    def fit(img, w_ratio, center=True):\n        w = int(cw * w_ratio)\n        s = w / img.width\n        r = img.resize((w, int(img.height * s)), Image.LANCZOS)\n        x = (cw - w) // 2 if center else cw - w\n        return r, x\n\n    def fit_full(img):\n        s = cw / img.width\n        return img.resize((cw, int(img.height * s)), Image.LANCZOS)\n\n    def zoom_crop(img, zoom):\n        w = int(cw * zoom)\n        s = w / img.width\n        h = int(img.height * s)\n        r = img.resize((w, h), Image.LANCZOS)\n        cx = (w - cw) // 2\n        return r.crop((cx, 0, cx + cw, h))\n\n    title = Image.open(title_nobg).convert(\"RGBA\")\n    person = Image.open(person_nobg).convert(\"RGBA\")\n    promo = Image.open(promo_nobg).convert(\"RGBA\")\n    product = Image.open(product_nobg).convert(\"RGBA\")\n    benefit = Image.open(benefit_path).convert(\"RGBA\")\n\n    tr, tx = fit(title, 0.95); ty = int(ch * 0.07)\n    prr, prx = fit(promo, 0.40, center=False); prx = int(cw * 0.55); pry = int(ch * 0.22)\n    per, perx = fit(person, 0.70); perx = int(cw * 0.15); pery = int(ch * 0.14)\n    pdr = zoom_crop(product, 1.2); pdy = ch - fit_full(benefit).height - pdr.height\n    bfr = fit_full(benefit); bfy = ch - bfr.height\n\n    # Layer order: background → pricing card → host → product shelf → title banner → benefits bar\n    # To place title behind host, move tr paste before per paste\n    canvas = bg.copy()\n    canvas.paste(prr, (prx, pry), prr)\n    canvas.paste(per, (perx, pery), per)\n    canvas.paste(pdr, (0, pdy), pdr)\n    canvas.paste(tr, (tx, ty), tr)\n    canvas.paste(bfr, (0, bfy), bfr)\n\n    canvas.convert(\"RGB\").save(output_path, \"JPEG\", quality=95)\n```\n\n### Post-processing: Host Brightness Boost\n\nBoost the host layer brightness before compositing to prevent dark appearance:\n\n```python\nfrom PIL import ImageEnhance\n\n# Boost host layer by 17% before compositing\nperson_bright = ImageEnhance.Brightness(person).enhance(1.17)\n# Use person_bright instead of person in compositing\n```\n\n> ⚠️ Only boost the host layer (17%). Do NOT touch other layers. The delivered 人物.png should also use the boosted version.\n\n## X. Delivery & Packaging\n\n### Deliverables (Fixed 7 files)\n\n| Filename | Format | Notes |\n|----------|--------|-------|\n| 背景.png | PNG 1440×2560 | Full-bleed |\n| 标题横卡.png | PNG 1440×2560 transparent | Content at preview position |\n| 人物.png | PNG 1440×2560 transparent | Brightness boosted (don't label \"boosted\") |\n| 促销竖卡.png | PNG 1440×2560 transparent | Content at preview position |\n| 桌面商品贴.png | PNG 1440×2560 transparent | Content at preview position |\n| 权益下贴.png | PNG 1440×2560 transparent | Content at preview position |\n| 预览.jpg | JPG 1440×2560 | Composite preview |\n\nIf a user product photo is provided, it will be composited into the center of the product shelf — not delivered separately.\n\n### Delivery Methods (Auto-select based on channel)\n\n**Method 1: Send in chat (when channel supports file sending)**\n1. Send preview image (`预览.jpg`) to chat first\n2. Send zip archive (named `{Brand}_livestream_overlays.zip`, containing all 7 files)\n\n```bash\ncd output/\nzip -j \"../{Brand}_livestream_overlays.zip\" 背景.png 标题横卡.png 人物.png 促销竖卡.png 桌面商品贴.png 权益下贴.png 预览.jpg\n```\n\n**Method 2: Desktop folder (when channel doesn't support file sending)**\n1. Create folder on user's desktop named `{Brand}_overlays`\n2. Put only the 7 files inside — no intermediate files, no zip\n3. Use `open` command to show the preview image\n4. Use `open` command to open the folder\n\n> ⚠️ Note: webchat (Control UI) does not support file sending — use Method 2. Feishu, WeChat etc. use Method 1.\n\n## XI. Complete Workflow\n\n```\n1. Collect requirements (brand, promotion, optional: user product photo)\n2. Analyze brand style → determine color palette\n3. Design host appearance (youthful face + watery eyes + jelly lips + outfit + hairstyle + accessories)\n4. Auto-generate missing copy\n5. Write prompts for all 6 components (host uses v2 template, no hand-held products)\n   - If user product photo: leave center blank in product shelf prompt\n6. General components → doubao-seedream-4-5-251128, host → doubao-seedream-5-0-260128\n7. Green screen removal on components 2/3/4/5\n8. Boost host layer brightness by 17% (ImageEnhance.Brightness 1.17)\n9. [Optional] Remove background from user product photo (white/light bg → HSV threshold)\n10. Composite preview (use boosted host, user product overlaid at center of product area)\n11. Package and deliver\n```\n\nFile v2.0.0:SKILL_V2_CN_BASE.md\n\n---\nname: 生成电商带货直播间全套贴片\ndescription: >\n  直播间装修贴片全自动生成。\n  根据品牌、商品和活动信息，或直接根据商品图片，自动生成完整直播间视觉套装：\n  背景图、标题横卡、人物、促销竖卡、桌面商品贴、权益下贴。\n  支持绿幕抠图、自动合成预览、打包交付。\n---\n\n# 直播间装修贴片生成 Skill\n\n## 一、前置条件\n\n### 依赖\n- Python 3 + Pillow + opencv-python-headless + numpy\n- 火山方舟 API Key\n\n### 安装依赖\n```bash\npip3 install Pillow==12.2.0 opencv-python-headless==4.13.0 numpy==2.3.2\n```\n\n## 二、需求确认（正式生成前必须执行）\n\n> ⚠️ 收到用户生成请求后，不要立即开始生成图片。先确认以下信息，确保一次性出图到位。\n\n### 2.1 必须确认的信息\n\n| 信息 | 说明 | 必填 |\n|------|------|------|\n| 品牌 | 如 戴森、茅台、三只松鼠等 | ✅ |\n| 主推商品 | 具体品名和型号 | ✅ |\n| 促销活动 | 满减、买赠、积分兑换等具体内容 | ✅ |\n| 风格偏好 | 如有特殊要求（颜色、氛围、调性） | ❌ |\n\n### 2.2 确认流程\n\n1. **用户已提供完整信息** → 列出理解的需求摘要，请用户确认后直接开始\n2. **用户信息不完整** → 只追问缺失的必要信息，其他自动推导\n3. **用户只发了商品图片没文字** → 识别图中商品，推测品牌和品类，列出理解的需求摘要请用户确认\n4. **用户说\"按案例来\"/\"照着做\"** → 直接用下方案例的需求生成\n\n### 2.3 需求确认示例回复\n\n```\n我确认一下需求：\n\n📋 **品牌**：戴森\n📋 **主推商品**：戴森Supersonic HD16吹风机 + Airwrap多功能美发棒\n📋 **促销活动**：满3000减300\n📋 **买赠**：买吹风机送两支造型风嘴\n📋 **包装**：直播间限定礼盒包装\n📋 **风格**：科技奢华风（根据戴森品牌推导）\n\n文案我这样设计：\n- 主标题：「Dyson·沙龙级造型」\n- 副标题：「限定礼盒·奢宠体验」\n- 促销竖卡：「满3000立减300 / 买吹风机送造型风嘴 / 直播间限定礼盒」\n- 权益：「两年质保无忧 / 顺丰包邮到家 / 专属礼盒包装」\n\n确认OK的话我就开始生成了，有想调整的随时说 👇\n```\n\n### 2.4 需求描述案例（首次触发时主动展示）\n\n> 收到用户的生成请求后，主动展示以下案例，让用户可以照着描述或直接要求按案例生成。\n\n**示例需求描述**：\n> 做一套戴森吹风机直播间贴片，主品是戴森Supersonic HD16吹风机和Airwrap多功能美发棒，买吹风机送两支造型风嘴，满3000减300，直播间限定礼盒包装\n\n**首次回复模板**：\n```\n你可以直接告诉我你的品牌和促销信息，比如：\n\n> 做一套戴森吹风机直播间贴片，主品是戴森Supersonic HD16吹风机和Airwrap多功能美发棒，买吹风机送两支造型风嘴，满3000减300，直播间限定礼盒包装\n\n也可以直接说「按戴森案例来」，我就直接用这个需求生成。\n\n你的需求是什么？\n```\n\n**最低限度只需提供**：品牌 + 主推商品 + 促销活动（三个核心信息）\n**文案、风格色调、人物造型、权益**均由 AI 自动推导生成，用户可选择性修改。\n\n## 三、文案自动生成规则\n\n### 3.1 主标题\n- 必须含品牌名并具有氛围感\n- **禁用**\"官方\"\"旗舰\"等字样\n- 不能直接写商品名，要有宣传感和下单欲望\n\n### 3.2 副标题\n- 核心利益点（福利/功效/场景）或正在进行的活动\n- 简洁有力\n\n### 3.3 促销竖卡\n- 根据促销活动拆分为 2-3 层\n- 每层包含：金额/权益 + 使用条件\n\n### 3.4 权益文案\n- 通常 3 个：赠品相关 + 正品保障 + 物流/售后\n- ⚠️ 避免使用\"正品\"\"保障\"等触发审核的词，替换为\"品质\"\"保证\"\n\n## 四、组件清单与尺寸\n\n> ⚠️ 尺寸已根据 `doubao-seedream-4-5-251128` 的最低像素限制调整\n\n| # | 组件 | 尺寸 | 绿幕 | 说明 |\n|---|------|------|------|------|\n| 1 | 背景图 | **1440×2560** | ❌ | C4D 场景 |\n| 2 | 标题横卡 | **3328×1109** | ✅ | 异形贴纸 |\n| 3 | 人物 | **1440×2560** | ✅ | 素颜+幼态脸+精致造型（不用手持商品） |\n| 4 | 促销竖卡 | **1920×1920** | ✅ | 正方形异形贴纸 |\n| 5 | 桌面商品贴 | **3328×1109** | ✅ | 40+单品密集排列 |\n| 6 | 权益下贴 | **3328×1109** | ❌ | 铺满底部 |\n\n## 五、Prompt 写法标准\n\n### 核心原则\n- 所有组件使用统一风格前缀确保色调一致\n- 必须包含反向约束条件\n- 背景图使用\"纯色均匀绿色背景\"（不是#00FF00）\n\n### 5.1 背景图 Prompt\n**约束**：无文字、无人物、无产品。\n\n**模板**：\n```\n这是一幅融合[风格描述]的C4D商业空间场景。空间以[主色调]为主色调，搭配[辅助色]作为辅助色，点缀以[点缀色]的细节元素，整体被[中性色]所平衡。空间结构呈现出[结构描述]，营造出[氛围]的氛围。灯光设计[灯光描述]，突显出空间的质感与层次。材质上运用了[材质]，展现出[风格]的魅力。布局上，模块化的抽象展示元素散落其中，如[元素1]、[元素2]和[元素3]，共同营造出一种[整体感受]的空间体验。\n```\n\n### 5.2 标题横卡 Prompt\n**模板**：\n```\n纯色均匀绿色背景#00FF00。画面正中是一个[颜色]渐变的异形横条卡片，卡片有[边框质感]，四边是不规则的艺术形状。卡片内部左侧[文字区域底色]，大字「[主标题]」用[字体描述]，下方「[副标题]」用[字体描述]。卡片右侧是[产品插画描述]。整个卡片颜色浓郁厚重，绝对没有白色底色区域，不要任何绿色青色蓝绿色。卡片是一个完整的实体贴纸，边界清晰。\n```\n\n### 5.3 人物 Prompt\n\n> ⚠️ 核心规则（v2 更新）：\n> 1. **人物模型用 `doubao-seedream-5-0-260128`**（其他组件仍用 `doubao-seedream-4-5-251128`）\n> 2. **完全不化妆的素颜**（不是\"清透裸妆\"）\n> 3. **不手持商品**，双手自然下垂微曲（v2 取消了手持商品）\n> 4. **网红幼态脸短中庭**，眼部轮廓深邃有水润感，唇部有果冻感水润饱满\n> 5. **服装必须提前设计好**，prompt 中完整描述上衣+下装（不含鞋子）+ 配饰\n> 6. **发色尽量黑色**，发质柔顺有光泽，发型精致可加配饰，符合品牌调性\n> 7. 背景用\"纯色均匀绿色\"（不是#00FF00）\n\n**模板**：\n```\n纯色均匀绿色背景，颜色绝对均匀纯净无渐变无纹理无阴影无光斑无杂色。竖版人像，人物站立面对镜头，取景从头顶到大腿中段，人物位于画面中央且占据画面大部分面积，头顶距画面顶部很近。25岁年轻漂亮女主播，完全不化妆的素颜，冷白皮白皙通透肌肤，网红幼态脸短中庭，{眼型描述}，眼部轮廓深邃有水润感，{眼周描述}，唇部{唇型描述}有果冻感水润{唇色描述}，{气质描述}。完全不化妆素颜出镜，面部没有任何妆容，没有任何眼影眼线睫毛膏腮红口红粉底，完全素净的面容。身穿{上衣描述}，下身穿{下装描述}，{配饰描述}。{发型发色描述}，{发型配饰描述}。正面柔和均匀灯光。人物自然站立，双手自然下垂微曲，姿态放松优雅。\n```\n\n**面孔差异化（必须每次指定以下维度）**：\n\n| 维度 | 说明 | 示例 |\n|------|------|------|\n| 脸型 | 网红幼态脸短中庭（固定） | 心形脸/鹅蛋脸/瓜子脸/方圆脸 |\n| 眼型 | 圆眼/丹凤眼/杏眼/桃花眼 | 需描述\"微微下垂显无辜感\"或\"细长微微上挑\"等 |\n| 眼部水润感 | 固定要求 | \"眼部轮廓深邃有水润感，眼周皮肤细腻透亮\" |\n| 唇部果冻感 | 固定要求 | \"饱满嘟嘟唇有果冻感水润透亮\" / \"薄唇自然淡粉色有果冻感\" |\n| 气质 | 甜美亲和/清冷高级/知性优雅/元气活泼/自信从容 | 每个品牌不同 |\n| 服装 | 必须提前设计，上衣+下装+配饰 | 不含鞋子 |\n| 发型 | 必须提前设计，黑色为主+配饰 | 柔顺有光泽，精致有设计感 |\n\n**人物造型设计示例（v2 版）**：\n\n兰蔻菁纯：\n```\n网红幼态脸短中庭，眼型圆眼微微下垂显无辜感，眼部轮廓深邃有水润感，眼周皮肤细腻透亮，唇部饱满嘟嘟唇有果冻感水润透亮，五官精致甜美亲和。身穿白色细针织短款开衫，内搭米白色蕾丝吊带，下身穿高腰浅粉色百褶缎面半裙，胸前戴一条玫瑰金细锁骨链，左手腕戴一只玫瑰金细手镯，右手戴一枚简约珍珠戒指。黑色长直发柔顺有光泽披落至锁骨下方，头顶偏右侧夹一个珍珠小发夹，几缕碎发自然垂落在脸颊两侧修饰脸型。\n```\n\n赫莲娜黑绷带：\n```\n网红幼态脸短中庭，丹凤眼细长微微上挑，眼部轮廓深邃有水润感，眼尾自带清冷高级感，唇部薄唇自然淡粉色有果冻感水润，五官偏清冷高级感。身穿黑色高领修身真丝衬衫，袖口挽至手肘处露出纤细手腕，下身穿黑色高腰阔腿西装裤，左侧耳垂戴一颗两克拉钻石耳钉，右手腕戴一条极细银色手链。黑色长直发柔顺有光泽中分后自然垂落至背部中央，右侧太阳穴旁别一枚黑色极细发簪造型简约利落。\n```\n\n海蓝之谜：\n```\n网红幼态脸短中庭，杏眼明亮圆大，眼部轮廓深邃有水润感，眼神温柔灵动有灵气，唇部标准唇有果冻感自然粉润水润饱满，五官柔和清透。身穿珍珠白色丝缎面宽松衬衫，领口微微解开一颗扣子露出精致锁骨，袖口蓬松泡泡袖设计，下身穿香槟色高腰缎面阔腿长裤，颈间戴一条极细香槟金项链配一颗小珍珠吊坠，左手腕戴一只白玉细手镯。黑色长卷发柔顺有光泽自然大波浪卷披落至肩胛骨，头顶编一个松散的精致法式麻花辫从左侧垂落，发间点缀几颗极小的珍珠发扣。\n```\n\n### 5.4 促销竖卡 Prompt\n> ⚠️ 尺寸从 896×1344 改为 **1920×1920**（正方形）\n\n**模板**：\n```\n纯色均匀绿色背景#00FF00。画面正中是一个紧凑的竖向异形标签贴纸，整体为[深色系]实心底色，没有任何白色区域、没有任何浅色区域、没有任何渐变到白色的部分，不要任何绿色青色蓝绿色。贴纸形状为圆角矩形加顶部弧形装饰。顶部有[装饰元素]。大字「[大标题]」用[字体描述]；下方分三层：「[内容1]」「[内容2]」「[内容3]」。整个贴纸颜色浓郁深实，边界清晰锐利，是一个实心异形贴纸。贴纸占据画面约40%面积，紧凑不松散。\n```\n\n### 5.5 桌面商品贴 Prompt（⚠️ 与原始 skill 完全不同）\n\n> ⚠️ 关键区别：\n> 1. **白色哑光大理石展示桌面**（不是纯绿底+白平面）\n> 2. **分层聚核+左右镜像+前后递进**布局逻辑\n> 3. **商品总数至少40个以上单品**（不是\"丰富一些\"）\n> 4. 中层核心区分左中右三块，中心区视觉焦点\n\n**模板**：\n```\n背景为纯色均匀绿色背景。画面正下方是一张正面平放的白色高级展示桌面（白色哑光大理石质感），桌面完全水平不倾斜，桌面宽阔占满画面底部40%高度。桌面上产品按分层聚核加左右镜像加前后递进逻辑摆放，商品总数至少40个以上单品，密集排列覆盖绝大部分桌面面积：【中层核心展示区分左中右三块】中心区视觉焦点：放置{产品布局描述}【整体布局要求】所有产品竖立放置正面朝向观众。高度差控制形成阶梯状层次。左右区与中心区之间各留适当空白间距保证呼吸感。桌面产品密集饱满，商品总数至少40个以上单品。除了商品和白色哑光金属陈列架外不要出现任何其他内容，绝对不要出现人的手、手指、手臂、人体任何部位，不要出现人和手。光线均匀自然。这是一个纯静物产品陈列照片，没有任何人参与。\n```\n\n> ⚠️ prod_layout 里**不能出现\"最前方留手持位\"**——手持商品是人物图的事，桌面商品贴是纯产品陈列\n\n### 5.7 用户商品图（可选）\n\n当用户提供真实商品照片时：\n\n**a) 去背景**：根据商品图的背景类型选择策略\n\n| 商品背景 | 去背景方法 |\n|---------|-----------|\n| 白色/浅色纯色背景 | HSV 阈值去除白色区域 |\n| 深色纯色背景 | HSV 阈值去除对应深色 |\n| 复杂场景背景 | GrabCut 或 Rembg |\n\n```python\nimport cv2\nimport numpy as np\n\ndef remove_white_bg(img_path, output_path):\n    \"\"\"去除白色/浅色背景\"\"\"\n    img = cv2.imread(img_path)\n    hsv = cv2.cvtColor(img, cv2.COLOR_BGR2HSV)\n    mask_w = cv2.inRange(hsv, np.array([0, 0, 200]), np.array([180, 30, 255]))\n    mask_g = cv2.inRange(hsv, np.array([0, 0, 160]), np.array([180, 50, 240]))\n    mask = cv2.bitwise_or(mask_w, mask_g)\n    k = cv2.getStructuringElement(cv2.MORPH_ELLIPSE, (7, 7))\n    mask = cv2.morphologyEx(mask, cv2.MORPH_CLOSE, k, iterations=5)\n    mask = cv2.morphologyEx(mask, cv2.MORPH_OPEN, k, iterations=3)\n    mask = cv2.GaussianBlur(mask, (5, 5), 0)\n    mask = (mask > 200).astype(np.uint8) * 255\n    b, g, r = cv2.split(img)\n    cv2.imwrite(output_path, cv2.merge([b, g, r, 255 - mask]))\n```\n\n**b) 桌面商品贴 Prompt 调整**：中心区留白，供用户商品图叠加\n\n```\n在原有的桌面商品贴 prompt 中，将中心区描述改为：\n\"中心区域留出足够的空白空间用于放置主推商品（大约占中心30%面积保持干净），\n周边按分层聚核加左右镜像加前后递进逻辑摆放配套产品\"\n```\n\n**c) 合成时叠加**：用户商品图缩放后放在产品区域中心偏上\n\n```python\n# 用户商品图：缩放到画面宽度25%，放在产品区域中心\nup_target_w = int(cw * 0.25)\nups = up_target_w / user_product.width\nup_resized = user_product.resize((int(user_product.width * ups), int(user_product.height * ups)), Image.LANCZOS)\nupx = (cw - up_resized.width) // 2\nupy = pdy + int(pdr.height * 0.05)  # 略高于产品区域顶部\n\n# 在 paste 顺序中，用户商品图在桌面商品贴之后、标题横卡之前\ncanvas.paste(pdr, (0, pdy), pdr)\ncanvas.paste(up_resized, (upx, upy), up_resized)  # ← 用户商品图\ncanvas.paste(tr, (tx, ty), tr)\n```\n\n**d) 新增交付物**：\n\n| 文件名 | 说明 |\n|--------|------|\n| 用户商品图.png | 去背景后的用户商品图，已定位到画布坐标 |\n\n### 5.6 权益下贴 Prompt\n**模板**：\n```\n左右对称构图，平视视角。核心元素呈现在上半部分：三个简单权益图标，下方对应文字「[权益1] / [权益2] / [权益3]」。背景[背景描述]。风格：平面，光影简约。色彩：[主色]，简洁大方。\n```\n\n## 六、生图 API\n\n| 项目 | 内容 |\n|------|------|\n| 地址 | `https://ark.cn-beijing.volces.com/api/v3/images/generations` |\n| 方式 | POST |\n| Content-Type | application/json |\n| **通用模型** | **`doubao-seedream-4-5-251128`** |\n| **人物模型** | **`doubao-seedream-5-0-260128`**（仅人物组件用此模型） |\n\n### 请求参数\n```json\n{\n  \"model\": \"doubao-seedream-4-5-251128\",\n  \"stream\": false,\n  \"watermark\": false,\n  \"sequential_image_generation\": \"disabled\",\n  \"prompt\": \"<中文prompt>\",\n  \"size\": \"<宽>x<高>\"\n}\n```\n\n### 请求示例\n```bash\ncurl -s \"https://ark.cn-beijing.volces.com/api/v3/images/generations\" \\\n  -H \"Content-Type: application/json\" \\\n  -H \"Authorization: Bearer <API_KEY>\" \\\n  -d '{\n    \"model\": \"doubao-seedream-4-5-251128\",\n    \"stream\": false,\n    \"watermark\": false,\n    \"sequential_image_generation\": \"disabled\",\n    \"prompt\": \"prompt内容\",\n    \"size\": \"1440x2560\"\n  }'\n```\n\n## 七、绿幕抠图\n\n对组件 2（标题横卡）、3（人物）、4（促销竖卡）、5（桌面商品贴）执行绿幕去除。\n\n```python\nimport cv2\nimport numpy as np\n\ndef remove_green(img_path, output_path):\n    img = cv2.imread(img_path)\n    hsv = cv2.cvtColor(img, cv2.COLOR_BGR2HSV)\n    mask1 = cv2.inRange(hsv, np.array([35, 80, 80]), np.array([85, 255, 255]))\n    mask2 = cv2.inRange(hsv, np.array([30, 40, 120]), np.array([90, 255, 255]))\n    mask = cv2.bitwise_or(mask1, mask2)\n    k = cv2.getStructuringElement(cv2.MORPH_ELLIPSE, (5, 5))\n    mask = cv2.morphologyEx(mask, cv2.MORPH_CLOSE, k, iterations=3)\n    mask = cv2.morphologyEx(mask, cv2.MORPH_OPEN, k, iterations=2)\n    mask = cv2.GaussianBlur(mask, (3, 3), 0)\n    mask = (mask > 127).astype(np.uint8) * 255\n    b, g, r = cv2.split(img)\n    rgba = cv2.merge([b, g, r, 255 - mask])\n    cv2.imwrite(output_path, rgba)\n```\n\n## 八、合成预览\n\n> ⚠️ 布局参数与原始 skill 完全不同\n\n### 布局参数\n\n```python\nlayout = {\n    \"title\":   {\"scale\": 0.95, \"pos\": \"center-top\", \"y_pct\": 0.07},\n    \"person\":  {\"scale\": 0.70, \"pos\": \"left\", \"x_pct\": 0.15, \"y_pct\": 0.14},\n    \"promo\":   {\"scale\": 0.40, \"pos\": \"right\", \"x_pct\": 0.55, \"y_pct\": 0.22},\n    \"product\": {\"zoom\": 1.2,  \"pos\": \"bottom-full\", \"above\": \"benefit\"},\n    \"benefit\": {\"scale\": 1.0,  \"pos\": \"bottom-full\"},\n}\n```\n\n### 合成代码\n\n```python\nfrom PIL import Image\n\ndef compose_preview(bg_path, person_nobg, title_nobg, promo_nobg, product_nobg, benefit_path, output_path):\n    bg = Image.open(bg_path).convert(\"RGBA\")\n    cw, ch = bg.size\n\n    def fit(img, w_ratio, center=True):\n        w = int(cw * w_ratio)\n        s = w / img.width\n        r = img.resize((w, int(img.height * s)), Image.LANCZOS)\n        x = (cw - w) // 2 if center else cw - w\n        return r, x\n\n    def fit_full(img):\n        s = cw / img.width\n        return img.resize((cw, int(img.height * s)), Image.LANCZOS)\n\n    def zoom_crop(img, zoom):\n        w = int(cw * zoom)\n        s = w / img.width\n        h = int(img.height * s)\n        r = img.resize((w, h), Image.LANCZOS)\n        cx = (w - cw) // 2\n        return r.crop((cx, 0, cx + cw, h))\n\n    title = Image.open(title_nobg).convert(\"RGBA\")\n    person = Image.open(person_nobg).convert(\"RGBA\")\n    promo = Image.open(promo_nobg).convert(\"RGBA\")\n    product = Image.open(product_nobg).convert(\"RGBA\")\n    benefit = Image.open(benefit_path).convert(\"RGBA\")\n\n    tr, tx = fit(title, 0.95); ty = int(ch * 0.07)\n    prr, prx = fit(promo, 0.40, center=False); prx = int(cw * 0.55); pry = int(ch * 0.22)\n    per, perx = fit(person, 0.70); perx = int(cw * 0.15); pery = int(ch * 0.14)\n    pdr = zoom_crop(product, 1.2); pdy = ch - fit_full(benefit).height - pdr.height\n    bfr = fit_full(benefit); bfy = ch - bfr.height\n\n    # 图层顺序：背景 → 促销竖卡 → 人物 → 桌面商品贴 → 标题横卡 → 权益下贴\n    # 若需标题在人物下层，将 tr 的 paste 调到 per 之前即可\n    # 示例（标题在人物下方）：canvas.paste(prr,...); canvas.paste(tr,...); canvas.paste(per,...)\n    canvas = bg.copy()\n    canvas.paste(prr, (prx, pry), prr)\n    canvas.paste(per, (perx, pery), per)\n    canvas.paste(pdr, (0, pdy), pdr)\n    canvas.paste(tr, (tx, ty), tr)\n    canvas.paste(bfr, (0, bfy), bfr)\n\n    canvas.convert(\"RGB\").save(output_path, \"JPEG\", quality=95)\n```\n\n### 后处理：人物提亮\n\n合成前对人物图层单独提亮，避免合成后人物偏暗：\n\n```python\nfrom PIL import ImageEnhance\n\n# 在合成前对人物图层提亮17%\nperson_bright = ImageEnhance.Brightness(person).enhance(1.17)\n# 后续合成使用 person_bright 代替 person\n```\n\n> ⚠️ 只提亮人物图层（17%），不动其他图层。最终交付的人物.png 也使用提亮后的版本。\n\n## 九、打包交付\n\n### 交付文件（固定7个）\n\n| 文件名 | 格式 | 说明 |\n|--------|------|------|\n| 背景.png | PNG 1440×2560 | 全铺 |\n| 标题横卡.png | PNG 1440×2560 透明 | 内容在预览位置 |\n| 人物.png | PNG 1440×2560 透明 | 已提亮处理（不标注\"提亮\"） |\n| 促销竖卡.png | PNG 1440×2560 透明 | 内容在预览位置 |\n| 桌面商品贴.png | PNG 1440×2560 透明 | 内容在预览位置 |\n| 权益下贴.png | PNG 1440×2560 透明 | 内容在预览位置 |\n| 预览.jpg | JPG 1440×2560 | 合成预览效果 |\n\n若提供了用户商品图，该商品图会合成到桌面商品贴的中心区域，不单独输出。\n\n### 交付方式（二选一，自动判断）\n\n**方式一：对话内直接发送（当通道支持文件发送时）**\n1. 先发送预览图（`预览.jpg`）到对话\n2. 再发送压缩包（命名为「{品牌名}直播间_全套贴图.zip」，内含上述7个文件）\n\n```bash\ncd output/\nzip -j \"../{品牌名}直播间_全套贴图.zip\" 背景.png 标题横卡.png 人物.png 促销竖卡.png 桌面商品贴.png 权益下贴.png 预览.jpg\n```\n\n**方式二：桌面文件夹（当通道不支持文件发送时）**\n1. 在用户桌面创建文件夹，命名为「{品牌名}直播间贴片」\n2. 文件夹内只放上述7个文件，不包含中间文件、不包含压缩包\n3. 用 `open` 命令直接打开预览图，让用户看到效果\n4. 用 `open` 命令直接打开文件夹，让用户浏览文件\n\n> ⚠️ 注意：webchat（Control UI）当前不支持文件发送，走方式二。飞书、微信等走方式一。\n\n## 十、完整工作流\n\n```\n1. 收集需求（品牌、促销活动、可选：用户商品图）\n2. 分析品牌风格 → 确定色调\n3. 为人物设计造型（幼态脸+水润眼+果冻唇+服装+发型发色+配饰）\n4. 自动生成缺失文案\n5. 编写 6 个组件的 prompt（人物用 v2 模板，不用手持商品）\n   - 若有用户商品图：桌面商品贴 prompt 中心区留白\n6. 通用组件调用 doubao-seedream-4-5-251128，人物组件调用 doubao-seedream-5-0-260128\n7. 对组件 2/3/4/5 执行绿幕抠图\n8. 对人物图层提亮17%（ImageEnhance.Brightness 1.17）\n9. [可选] 对用户商品图执行去背景（白底/浅色背景用HSV阈值）\n10. 合成预览图（使用提亮后的人物图层，用户商品图叠加在桌面产品区中央）\n11. 打包交付\n```\n\nFile v2.0.0:SKILL_V2_CN_MODIFIED.md\n\n---\nname: ecommerce-livestream-overlay-generator\ndescription: >\n  电商直播贴片生成器 / 电商直播视觉包装工具。\n  适用于淘宝直播、抖音直播带货、拼多多直播、快手直播等电商直播场景。\n  输入品牌、产品、促销信息或产品照片，自动生成完整电商直播视觉包装：\n  背景、标题栏、主播形象、价格卡、产品货架、福利条、促销贴片。\n  支持绿幕抠图、自动合成预览、打包交付。\n  E-commerce livestream overlay generator for Taobao, Douyin, PDD, Kuaishou streaming.\n  Generate background, title banner, host persona, pricing card, product shelf, benefits bar.\n  Supports green screen removal, auto-composite preview, and packaged delivery.\nhomepage: https://github.com/gaoyuji12138/e-commerce-livestream-overlay-skill\nuser-invocable: true\nmetadata: '{\"openclaw\":{\"emoji\":\"🎨\",\"primaryEnv\":\"VOLCENGINE_ARK_API_KEY\",\"requires\":{\"env\":[\"VOLCENGINE_ARK_API_KEY\"],\"bins\":[\"python3\",\"pip3\"]}}}'\n---\n\n# 直播间装修贴片生成 Skill\n\n## 一、前置条件\n\n### 依赖\n- Python 3 + Pillow + opencv-python-headless + numpy\n- 火山方舟 API Key\n\n### API Key 获取\n\n1. 前往 [火山引擎控制台](https://console.volcengine.com/ark) 注册并登录\n2. 在「模型推理」页面开通豆包视觉模型\n3. 在控制台凭证页面创建 API Key\n\n> **每个用户需要自己的 API Key**：使用时从环境变量 `VOLCENGINE_ARK_API_KEY` 读取。\n\n### 安装依赖\n```bash\npip3 install Pillow==12.2.0 opencv-python-headless==4.13.0 numpy==2.3.2\n```\n\n## 二、数据隐私与透明度\n\n### 数据流向\n\n| 数据类型 | 发送目标 | 用途 | 是否持久化 |\n|----------|----------|------|-----------|\n| 文本 Prompt（品牌/促销文案等） | 火山引擎 API | 图像生成请求 | ❌ 仅传输，不存储 |\n| 用户产品照片 | 火山引擎 API | 作为图像生成参考输入 | ❌ 仅传输，不存储 |\n| 生成的图片 | 本地磁盘 | 交付给用户 | ✅ 保存到本地输出目录 |\n\n> **AI 内置视觉能力**：当用户仅提供产品照片未附文字说明时，由 AI Agent 内置视觉能力识别图中商品信息（本地运行），无需额外 API 调用。\n\n**本 Skill 不会做的事：**\n- ❌ 在本地或远程存储、记录或缓存用户输入数据（文本 Prompt、产品照片）\n- ❌ 将数据转发到火山引擎以外的任何第三方\n- ❌ 进行任何购买、支付或金融操作\n- ❌ 进行任何加密货币或区块链操作\n\n> ⚠️ 用户产品照片和文本 Prompt 会发送至火山引擎 API。上传敏感或专有产品图片前，请阅读[火山引擎隐私政策](https://www.volcengine.com/docs/6369/71845)。API 返回的生成图片会保存到本地输出目录。\n\n## 三、需求确认（正式生成前必须执行）\n\n> ⚠️ 收到用户生成请求后，不要立即开始生成图片。先确认以下信息，确保一次性出图到位。\n\n### 2.1 必须确认的信息\n\n| 信息 | 说明 | 必填 |\n|------|------|------|\n| 品牌 | 如 戴森、茅台、三只松鼠等 | ✅ |\n| 主推商品 | 具体品名和型号 | ✅ |\n| 促销活动 | 满减、买赠、积分兑换等具体内容 | ✅ |\n| 风格偏好 | 如有特殊要求（颜色、氛围、调性） | ❌ |\n\n### 2.2 确认流程\n\n1. **用户已提供完整信息** → 列出理解的需求摘要，请用户确认后直接开始\n2. **用户信息不完整** → 只追问缺失的必要信息，其他自动推导\n3. **用户只发了商品图片没文字** → 识别图中商品，推测品牌和品类，列出理解的需求摘要请用户确认\n4. **用户说\"按案例来\"/\"照着做\"** → 直接用下方案例的需求生成\n\n### 2.3 需求确认示例回复\n\n```\n我确认一下需求：\n\n📋 **品牌**：戴森\n📋 **主推商品**：戴森Supersonic HD16吹风机 + Airwrap多功能美发棒\n📋 **促销活动**：满3000减300\n📋 **买赠**：买吹风机送两支造型风嘴\n📋 **包装**：直播间限定礼盒包装\n📋 **风格**：科技奢华风（根据戴森品牌推导）\n\n文案我这样设计：\n- 主标题：「Dyson·沙龙级造型」\n- 副标题：「限定礼盒·奢宠体验」\n- 促销竖卡：「满3000立减300 / 买吹风机送造型风嘴 / 直播间限定礼盒」\n- 权益：「两年质保无忧 / 顺丰包邮到家 / 专属礼盒包装」\n\n确认OK的话我就开始生成了，有想调整的随时说 👇\n```\n\n### 2.4 需求描述案例（首次触发时主动展示）\n\n> 收到用户的生成请求后，主动展示以下案例，让用户可以照着描述或直接要求按案例生成。\n\n**示例需求描述**：\n> 做一套戴森吹风机直播间贴片，主品是戴森Supersonic HD16吹风机和Airwrap多功能美发棒，买吹风机送两支造型风嘴，满3000减300，直播间限定礼盒包装\n\n**首次回复模板**：\n```\n你可以直接告诉我你的品牌和促销信息，比如：\n\n> 做一套戴森吹风机直播间贴片，主品是戴森Supersonic HD16吹风机和Airwrap多功能美发棒，买吹风机送两支造型风嘴，满3000减300，直播间限定礼盒包装\n\n也可以直接说「按戴森案例来」，我就直接用这个需求生成。\n\n你的需求是什么？\n```\n\n**最低限度只需提供**：品牌 + 主推商品 + 促销活动（三个核心信息）\n**文案、风格色调、人物造型、权益**均由 AI 自动推导生成，用户可选择性修改。\n\n## 四、文案自动生成规则\n\n### 3.1 主标题\n- 必须含品牌名并具有氛围感\n- **禁用**\"官方\"\"旗舰\"等字样\n- 不能直接写商品名，要有宣传感和下单欲望\n\n### 3.2 副标题\n- 核心利益点（福利/功效/场景）或正在进行的活动\n- 简洁有力\n\n### 3.3 促销竖卡\n- 根据促销活动拆分为 2-3 层\n- 每层包含：金额/权益 + 使用条件\n\n### 3.4 权益文案\n- 通常 3 个：赠品相关 + 正品保障 + 物流/售后\n- ⚠️ 避免使用\"正品\"\"保障\"等触发审核的词，替换为\"品质\"\"保证\"\n\n## 五、组件清单与尺寸\n\n> ⚠️ 尺寸已根据 `doubao-seedream-4-5-251128` 的最低像素限制调整\n\n| # | 组件 | 尺寸 | 绿幕 | 说明 |\n|---|------|------|------|------|\n| 1 | 背景图 | **1440×2560** | ❌ | C4D 场景 |\n| 2 | 标题横卡 | **3328×1109** | ✅ | 异形贴纸 |\n| 3 | 人物 | **1440×2560** | ✅ | 素颜+幼态脸+精致造型（不用手持商品） |\n| 4 | 促销竖卡 | **1920×1920** | ✅ | 正方形异形贴纸 |\n| 5 | 桌面商品贴 | **3328×1109** | ✅ | 40+单品密集排列 |\n| 6 | 权益下贴 | **3328×1109** | ❌ | 铺满底部 |\n\n## 六、Prompt 写法标准\n\n### 核心原则\n- 所有组件使用统一风格前缀确保色调一致\n- 必须包含反向约束条件\n- 背景图使用\"纯色均匀绿色背景\"（不是#00FF00）\n\n### 5.1 背景图 Prompt\n**约束**：无文字、无人物、无产品。\n\n**模板**：\n```\n这是一幅融合[风格描述]的C4D商业空间场景。空间以[主色调]为主色调，搭配[辅助色]作为辅助色，点缀以[点缀色]的细节元素，整体被[中性色]所平衡。空间结构呈现出[结构描述]，营造出[氛围]的氛围。灯光设计[灯光描述]，突显出空间的质感与层次。材质上运用了[材质]，展现出[风格]的魅力。布局上，模块化的抽象展示元素散落其中，如[元素1]、[元素2]和[元素3]，共同营造出一种[整体感受]的空间体验。\n```\n\n### 5.2 标题横卡 Prompt\n**模板**：\n```\n纯色均匀绿色背景#00FF00。画面正中是一个[颜色]渐变的异形横条卡片，卡片有[边框质感]，四边是不规则的艺术形状。卡片内部左侧[文字区域底色]，大字「[主标题]」用[字体描述]，下方「[副标题]」用[字体描述]。卡片右侧是[产品插画描述]。整个卡片颜色浓郁厚重，绝对没有白色底色区域，不要任何绿色青色蓝绿色。卡片是一个完整的实体贴纸，边界清晰。\n```\n\n### 5.3 人物 Prompt\n\n> ⚠️ 核心规则（v2 更新）：\n> 1. **人物模型用 `doubao-seedream-5-0-260128`**（其他组件仍用 `doubao-seedream-4-5-251128`）\n> 2. **完全不化妆的素颜**（不是\"清透裸妆\"）\n> 3. **不手持商品**，双手自然下垂微曲（v2 取消了手持商品）\n> 4. **网红幼态脸短中庭**，眼部轮廓深邃有水润感，唇部有果冻感水润饱满\n> 5. **服装必须提前设计好**，prompt 中完整描述上衣+下装（不含鞋子）+ 配饰\n> 6. **发色尽量黑色**，发质柔顺有光泽，发型精致可加配饰，符合品牌调性\n> 7. 背景用\"纯色均匀绿色\"（不是#00FF00）\n\n**模板**：\n```\n纯色均匀绿色背景，颜色绝对均匀纯净无渐变无纹理无阴影无光斑无杂色。竖版人像，人物站立面对镜头，取景从头顶到大腿中段，人物位于画面中央且占据画面大部分面积，头顶距画面顶部很近。25岁年轻漂亮女主播，完全不化妆的素颜，冷白皮白皙通透肌肤，网红幼态脸短中庭，{眼型描述}，眼部轮廓深邃有水润感，{眼周描述}，唇部{唇型描述}有果冻感水润{唇色描述}，{气质描述}。完全不化妆素颜出镜，面部没有任何妆容，没有任何眼影眼线睫毛膏腮红口红粉底，完全素净的面容。身穿{上衣描述}，下身穿{下装描述}，{配饰描述}。{发型发色描述}，{发型配饰描述}。正面柔和均匀灯光。人物自然站立，双手自然下垂微曲，姿态放松优雅。\n```\n\n**面孔差异化（必须每次指定以下维度）**：\n\n| 维度 | 说明 | 示例 |\n|------|------|------|\n| 脸型 | 网红幼态脸短中庭（固定） | 心形脸/鹅蛋脸/瓜子脸/方圆脸 |\n| 眼型 | 圆眼/丹凤眼/杏眼/桃花眼 | 需描述\"微微下垂显无辜感\"或\"细长微微上挑\"等 |\n| 眼部水润感 | 固定要求 | \"眼部轮廓深邃有水润感，眼周皮肤细腻透亮\" |\n| 唇部果冻感 | 固定要求 | \"饱满嘟嘟唇有果冻感水润透亮\" / \"薄唇自然淡粉色有果冻感\" |\n| 气质 | 甜美亲和/清冷高级/知性优雅/元气活泼/自信从容 | 每个品牌不同 |\n| 服装 | 必须提前设计，上衣+下装+配饰 | 不含鞋子 |\n| 发型 | 必须提前设计，黑色为主+配饰 | 柔顺有光泽，精致有设计感 |\n\n**人物造型设计示例（v2 版）**：\n\n兰蔻菁纯：\n```\n网红幼态脸短中庭，眼型圆眼微微下垂显无辜感，眼部轮廓深邃有水润感，眼周皮肤细腻透亮，唇部饱满嘟嘟唇有果冻感水润透亮，五官精致甜美亲和。身穿白色细针织短款开衫，内搭米白色蕾丝吊带，下身穿高腰浅粉色百褶缎面半裙，胸前戴一条玫瑰金细锁骨链，左手腕戴一只玫瑰金细手镯，右手戴一枚简约珍珠戒指。黑色长直发柔顺有光泽披落至锁骨下方，头顶偏右侧夹一个珍珠小发夹，几缕碎发自然垂落在脸颊两侧修饰脸型。\n```\n\n赫莲娜黑绷带：\n```\n网红幼态脸短中庭，丹凤眼细长微微上挑，眼部轮廓深邃有水润感，眼尾自带清冷高级感，唇部薄唇自然淡粉色有果冻感水润，五官偏清冷高级感。身穿黑色高领修身真丝衬衫，袖口挽至手肘处露出纤细手腕，下身穿黑色高腰阔腿西装裤，左侧耳垂戴一颗两克拉钻石耳钉，右手腕戴一条极细银色手链。黑色长直发柔顺有光泽中分后自然垂落至背部中央，右侧太阳穴旁别一枚黑色极细发簪造型简约利落。\n```\n\n海蓝之谜：\n```\n网红幼态脸短中庭，杏眼明亮圆大，眼部轮廓深邃有水润感，眼神温柔灵动有灵气，唇部标准唇有果冻感自然粉润水润饱满，五官柔和清透。身穿珍珠白色丝缎面宽松衬衫，领口微微解开一颗扣子露出精致锁骨，袖口蓬松泡泡袖设计，下身穿香槟色高腰缎面阔腿长裤，颈间戴一条极细香槟金项链配一颗小珍珠吊坠，左手腕戴一只白玉细手镯。黑色长卷发柔顺有光泽自然大波浪卷披落至肩胛骨，头顶编一个松散的精致法式麻花辫从左侧垂落，发间点缀几颗极小的珍珠发扣。\n```\n\n### 5.4 促销竖卡 Prompt\n> ⚠️ 尺寸从 896×1344 改为 **1920×1920**（正方形）\n\n**模板**：\n```\n纯色均匀绿色背景#00FF00。画面正中是一个紧凑的竖向异形标签贴纸，整体为[深色系]实心底色，没有任何白色区域、没有任何浅色区域、没有任何渐变到白色的部分，不要任何绿色青色蓝绿色。贴纸形状为圆角矩形加顶部弧形装饰。顶部有[装饰元素]。大字「[大标题]」用[字体描述]；下方分三层：「[内容1]」「[内容2]」「[内容3]」。整个贴纸颜色浓郁深实，边界清晰锐利，是一个实心异形贴纸。贴纸占据画面约40%面积，紧凑不松散。\n```\n\n### 5.5 桌面商品贴 Prompt（⚠️ 与原始 skill 完全不同）\n\n> ⚠️ 关键区别：\n> 1. **白色哑光大理石展示桌面**（不是纯绿底+白平面）\n> 2. **分层聚核+左右镜像+前后递进**布局逻辑\n> 3. **商品总数至少40个以上单品**（不是\"丰富一些\"）\n> 4. 中层核心区分左中右三块，中心区视觉焦点\n\n**模板**：\n```\n背景为纯色均匀绿色背景。画面正下方是一张正面平放的白色高级展示桌面（白色哑光大理石质感），桌面完全水平不倾斜，桌面宽阔占满画面底部40%高度。桌面上产品按分层聚核加左右镜像加前后递进逻辑摆放，商品总数至少40个以上单品，密集排列覆盖绝大部分桌面面积：【中层核心展示区分左中右三块】中心区视觉焦点：放置{产品布局描述}【整体布局要求】所有产品竖立放置正面朝向观众。高度差控制形成阶梯状层次。左右区与中心区之间各留适当空白间距保证呼吸感。桌面产品密集饱满，商品总数至少40个以上单品。除了商品和白色哑光金属陈列架外不要出现任何其他内容，绝对不要出现人的手、手指、手臂、人体任何部位，不要出现人和手。光线均匀自然。这是一个纯静物产品陈列照片，没有任何人参与。\n```\n\n> ⚠️ prod_layout 里**不能出现\"最前方留手持位\"**——手持商品是人物图的事，桌面商品贴是纯产品陈列\n\n### 5.7 用户商品图（可选）\n\n当用户提供真实商品照片时：\n\n**a) 去背景**：根据商品图的背景类型选择策略\n\n| 商品背景 | 去背景方法 |\n|---------|-----------|\n| 白色/浅色纯色背景 | HSV 阈值去除白色区域 |\n| 深色纯色背景 | HSV 阈值去除对应深色 |\n| 复杂场景背景 | GrabCut 或 Rembg |\n\n```python\nimport cv2\nimport numpy as np\n\ndef remove_white_bg(img_path, output_path):\n    \"\"\"去除白色/浅色背景\"\"\"\n    img = cv2.imread(img_path)\n    hsv = cv2.cvtColor(img, cv2.COLOR_BGR2HSV)\n    mask_w = cv2.inRange(hsv, np.array([0, 0, 200]), np.array([180, 30, 255]))\n    mask_g = cv2.inRange(hsv, np.array([0, 0, 160]), np.array([180, 50, 240]))\n    mask = cv2.bitwise_or(mask_w, mask_g)\n    k = cv2.getStructuringElement(cv2.MORPH_ELLIPSE, (7, 7))\n    mask = cv2.morphologyEx(mask, cv2.MORPH_CLOSE, k, iterations=5)\n    mask = cv2.morphologyEx(mask, cv2.MORPH_OPEN, k, iterations=3)\n    mask = cv2.GaussianBlur(mask, (5, 5), 0)\n    mask = (mask > 200).astype(np.uint8) * 255\n    b, g, r = cv2.split(img)\n    cv2.imwrite(output_path, cv2.merge([b, g, r, 255 - mask]))\n```\n\n**b) 桌面商品贴 Prompt 调整**：中心区留白，供用户商品图叠加\n\n```\n在原有的桌面商品贴 prompt 中，将中心区描述改为：\n\"中心区域留出足够的空白空间用于放置主推商品（大约占中心30%面积保持干净），\n周边按分层聚核加左右镜像加前后递进逻辑摆放配套产品\"\n```\n\n**c) 合成时叠加**：用户商品图缩放后放在产品区域中心偏上\n\n```python\n# 用户商品图：缩放到画面宽度25%，放在产品区域中心\nup_target_w = int(cw * 0.25)\nups = up_target_w / user_product.width\nup_resized = user_product.resize((int(user_product.width * ups), int(user_product.height * ups)), Image.LANCZOS)\nupx = (cw - up_resized.width) // 2\nupy = pdy + int(pdr.height * 0.05)  # 略高于产品区域顶部\n\n# 在 paste 顺序中，用户商品图在桌面商品贴之后、标题横卡之前\ncanvas.paste(pdr, (0, pdy), pdr)\ncanvas.paste(up_resized, (upx, upy), up_resized)  # ← 用户商品图\ncanvas.paste(tr, (tx, ty), tr)\n```\n\n**d) 新增交付物**：\n\n| 文件名 | 说明 |\n|--------|------|\n| 用户商品图.png | 去背景后的用户商品图，已定位到画布坐标 |\n\n### 5.6 权益下贴 Prompt\n**模板**：\n```\n左右对称构图，平视视角。核心元素呈现在上半部分：三个简单权益图标，下方对应文字「[权益1] / [权益2] / [权益3]」。背景[背景描述]。风格：平面，光影简约。色彩：[主色]，简洁大方。\n```\n\n## 七、生图 API\n\n| 项目 | 内容 |\n|------|------|\n| 地址 | `https://ark.cn-beijing.volces.com/api/v3/images/generations` |\n| 方式 | POST |\n| Content-Type | application/json |\n| **通用模型** | **`doubao-seedream-4-5-251128`** |\n| **人物模型** | **`doubao-seedream-5-0-260128`**（仅人物组件用此模型） |\n\n### 请求参数\n```json\n{\n  \"model\": \"doubao-seedream-4-5-251128\",\n  \"stream\": false,\n  \"watermark\": false,\n  \"sequential_image_generation\": \"disabled\",\n  \"prompt\": \"<中文prompt>\",\n  \"size\": \"<宽>x<高>\"\n}\n```\n\n### 请求示例\n```bash\ncurl -s \"https://ark.cn-beijing.volces.com/api/v3/images/generations\" \\\n  -H \"Content-Type: application/json\" \\\n  -H \"Authorization: Bearer <API_KEY>\" \\\n  -d '{\n    \"model\": \"doubao-seedream-4-5-251128\",\n    \"stream\": false,\n    \"watermark\": false,\n    \"sequential_image_generation\": \"disabled\",\n    \"prompt\": \"prompt内容\",\n    \"size\": \"1440x2560\"\n  }'\n```\n\n## 八、绿幕抠图\n\n对组件 2（标题横卡）、3（人物）、4（促销竖卡）、5（桌面商品贴）执行绿幕去除。\n\n```python\nimport cv2\nimport numpy as np\n\ndef remove_green(img_path, output_path):\n    img = cv2.imread(img_path)\n    hsv = cv2.cvtColor(img, cv2.COLOR_BGR2HSV)\n    mask1 = cv2.inRange(hsv, np.array([35, 80, 80]), np.array([85, 255, 255]))\n    mask2 = cv2.inRange(hsv, np.array([30, 40, 120]), np.array([90, 255, 255]))\n    mask = cv2.bitwise_or(mask1, mask2)\n    k = cv2.getStructuringElement(cv2.MORPH_ELLIPSE, (5, 5))\n    mask = cv2.morphologyEx(mask, cv2.MORPH_CLOSE, k, iterations=3)\n    mask = cv2.morphologyEx(mask, cv2.MORPH_OPEN, k, iterations=2)\n    mask = cv2.GaussianBlur(mask, (3, 3), 0)\n    mask = (mask > 127).astype(np.uint8) * 255\n    b, g, r = cv2.split(img)\n    rgba = cv2.merge([b, g, r, 255 - mask])\n    cv2.imwrite(output_path, rgba)\n```\n\n## 九、合成预览\n\n> ⚠️ 布局参数与原始 skill 完全不同\n\n### 布局参数\n\n```python\nlayout = {\n    \"title\":   {\"scale\": 0.95, \"pos\": \"center-top\", \"y_pct\": 0.07},\n    \"person\":  {\"scale\": 0.70, \"pos\": \"left\", \"x_pct\": 0.15, \"y_pct\": 0.14},\n    \"promo\":   {\"scale\": 0.40, \"pos\": \"right\", \"x_pct\": 0.55, \"y_pct\": 0.22},\n    \"product\": {\"zoom\": 1.2,  \"pos\": \"bottom-full\", \"above\": \"benefit\"},\n    \"benefit\": {\"scale\": 1.0,  \"pos\": \"bottom-full\"},\n}\n```\n\n### 合成代码\n\n```python\nfrom PIL import Image\n\ndef compose_preview(bg_path, person_nobg, title_nobg, promo_nobg, product_nobg, benefit_path, output_path):\n    bg = Image.open(bg_path).convert(\"RGBA\")\n    cw, ch = bg.size\n\n    def fit(img, w_ratio, center=True):\n        w = int(cw * w_ratio)\n        s = w / img.width\n        r = img.resize((w, int(img.height * s)), Image.LANCZOS)\n        x = (cw - w) // 2 if center else cw - w\n        return r, x\n\n    def fit_full(img):\n        s = cw / img.width\n        return img.resize((cw, int(img.height * s)), Image.LANCZOS)\n\n    def zoom_crop(img, zoom):\n        w = int(cw * zoom)\n        s = w / img.width\n        h = int(img.height * s)\n        r = img.resize((w, h), Image.LANCZOS)\n        cx = (w - cw) // 2\n        return r.crop((cx, 0, cx + cw, h))\n\n    title = Image.open(title_nobg).convert(\"RGBA\")\n    person = Image.open(person_nobg).convert(\"RGBA\")\n    promo = Image.open(promo_nobg).convert(\"RGBA\")\n    product = Image.open(product_nobg).convert(\"RGBA\")\n    benefit = Image.open(benefit_path).convert(\"RGBA\")\n\n    tr, tx = fit(title, 0.95); ty = int(ch * 0.07)\n    prr, prx = fit(promo, 0.40, center=False); prx = int(cw * 0.55); pry = int(ch * 0.22)\n    per, perx = fit(person, 0.70); perx = int(cw * 0.15); pery = int(ch * 0.14)\n    pdr = zoom_crop(product, 1.2); pdy = ch - fit_full(benefit).height - pdr.height\n    bfr = fit_full(benefit); bfy = ch - bfr.height\n\n    # 图层顺序：背景 → 促销竖卡 → 人物 → 桌面商品贴 → 标题横卡 → 权益下贴\n    # 若需标题在人物下层，将 tr 的 paste 调到 per 之前即可\n    # 示例（标题在人物下方）：canvas.paste(prr,...); canvas.paste(tr,...); canvas.paste(per,...)\n    canvas = bg.copy()\n    canvas.paste(prr, (prx, pry), prr)\n    canvas.paste(per, (perx, pery), per)\n    canvas.paste(pdr, (0, pdy), pdr)\n    canvas.paste(tr, (tx, ty), tr)\n    canvas.paste(bfr, (0, bfy), bfr)\n\n    canvas.convert(\"RGB\").save(output_path, \"JPEG\", quality=95)\n```\n\n### 后处理：人物提亮\n\n合成前对人物图层单独提亮，避免合成后人物偏暗：\n\n```python\nfrom PIL import ImageEnhance\n\n# 在合成前对人物图层提亮17%\nperson_bright = ImageEnhance.Brightness(person).enhance(1.17)\n# 后续合成使用 person_bright 代替 person\n```\n\n> ⚠️ 只提亮人物图层（17%），不动其他图层。最终交付的人物.png 也使用提亮后的版本。\n\n## 十、打包交付\n\n### 交付文件（固定7个）\n\n| 文件名 | 格式 | 说明 |\n|--------|------|------|\n| 背景.png | PNG 1440×2560 | 全铺 |\n| 标题横卡.png | PNG 1440×2560 透明 | 内容在预览位置 |\n| 人物.png | PNG 1440×2560 透明 | 已提亮处理（不标注\"提亮\"） |\n| 促销竖卡.png | PNG 1440×2560 透明 | 内容在预览位置 |\n| 桌面商品贴.png | PNG 1440×2560 透明 | 内容在预览位置 |\n| 权益下贴.png | PNG 1440×2560 透明 | 内容在预览位置 |\n| 预览.jpg | JPG 1440×2560 | 合成预览效果 |\n\n若提供了用户商品图，该商品图会合成到桌面商品贴的中心区域，不单独输出。\n\n### 交付方式（二选一，自动判断）\n\n**方式一：对话内直接发送（当通道支持文件发送时）**\n1. 先发送预览图（`预览.jpg`）到对话\n2. 再发送压缩包（命名为「{品牌名}直播间_全套贴图.zip」，内含上述7个文件）\n\n```bash\ncd output/\nzip -j \"../{品牌名}直播间_全套贴图.zip\" 背景.png 标题横卡.png 人物.png 促销竖卡.png 桌面商品贴.png 权益下贴.png 预览.jpg\n```\n\n**方式二：桌面文件夹（当通道不支持文件发送时）**\n1. 在用户桌面创建文件夹，命名为「{品牌名}直播间贴片」\n2. 文件夹内只放上述7个文件，不包含中间文件、不包含压缩包\n3. 用 `open` 命令直接打开预览图，让用户看到效果\n4. 用 `open` 命令直接打开文件夹，让用户浏览文件\n\n> ⚠️ 注意：webchat（Control UI）当前不支持文件发送，走方式二。飞书、微信等走方式一。\n\n## 十、完整工作流\n\n```\n1. 收集需求（品牌、促销活动、可选：用户商品图）\n2. 分析品牌风格 → 确定色调\n3. 为人物设计造型（幼态脸+水润眼+果冻唇+服装+发型发色+配饰）\n4. 自动生成缺失文案\n5. 编写 6 个组件的 prompt（人物用 v2 模板，不用手持商品）\n   - 若有用户商品图：桌面商品贴 prompt 中心区留白\n6. 通用组件调用 doubao-seedream-4-5-251128，人物组件调用 doubao-seedream-5-0-260128\n7. 对组件 2/3/4/5 执行绿幕抠图\n8. 对人物图层提亮17%（ImageEnhance.Brightness 1.17）\n9. [可选] 对用户商品图执行去背景（白底/浅色背景用HSV阈值）\n10. 合成预览图（使用提亮后的人物图层，用户商品图叠加在桌面产品区中央）\n11. 打包交付\n```\n\nFile v2.0.0:skill-card.md\n\n## Description:\n\nGenerates ecommerce livestream visual overlay packages from brand, product, promotion, and optional product-photo inputs, including backgrounds, title banners, host imagery, price cards, product shelves, benefits bars, transparent assets, previews, and packaged delivery.\n\nThis skill is ready for commercial/non-commercial use.\n\n## Publisher:\n\n[gaoyuji12138](https://clawhub.ai/user/gaoyuji12138)\n\n### License/Terms of Use:\n\nMIT-0\n\n## Use Case:\n\nExternal creators, livestream operators, and ecommerce teams use this skill to turn product and promotion details into a ready-to-use livestream overlay kit. The agent helps gather required campaign information, generate prompts, call the image generation API, remove green-screen backgrounds, compose a preview, and deliver local assets.\n\n### Deployment Geography for Use:\n\nGlobal\n\n## Known Risks and Mitigations:\n\nRisk: Prompts and product photos may be sent to Volcano Engine for image generation.\n\nMitigation: Use the skill only when that third-party processing is acceptable, and avoid uploading unreleased, confidential, or sensitive product imagery.\n\nRisk: Python image-processing dependencies are installed and executed locally.\n\nMitigation: Install dependencies in a dedicated virtual environment before running the workflow.\n\nRisk: Generated images are saved to local disk and may be placed in a desktop folder when direct file delivery is unavailable.\n\nMitigation: Review the output location and remove generated assets when they are no longer needed.\n\n## Reference(s):\n\n- [ClawHub skill page](https://clawhub.ai/gaoyuji12138/skills/ecommerce-livestream-overlay-generator)\n- [Volcano Engine Ark console](https://console.volcengine.com/ark)\n- [Volcano Engine privacy policy](https://www.volcengine.com/docs/6369/71845)\n- [Volcano Engine Ark image generation endpoint](https://ark.cn-beijing.volces.com/api/v3/images/generations)\n\n## Skill Output:\n\n**Output Type(s):** [text, markdown, code, shell commands, configuration, guidance, files]\n\n**Output Format:** [Markdown guidance with inline shell commands, Python snippets, image prompts, PNG assets, JPG preview, and optional ZIP package]\n\n**Output Parameters:** [1D]\n\n**Other Properties Related to Output:** [Produces a fixed seven-file overlay package: six PNG assets and one JPG preview; prompts and optional product photos are sent to Volcano Engine under the user's API key, and generated assets are saved locally.]\n\n## Skill Version(s):\n\n2.0.0 (source: release evidence)\n\n## Ethical Considerations:\n\nUsers should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.\n\nFile v2.0.0:diff_cn.txt\n\n2c2\n< name: 生成电商带货直播间全套贴片\n---\n> name: ecommerce-livestream-overlay-generator\n4,6c4,7\n<   直播间装修贴片全自动生成。\n<   根据品牌、商品和活动信息，或直接根据商品图片，自动生成完整直播间视觉套装：\n<   背景图、标题横卡、人物、促销竖卡、桌面商品贴、权益下贴。\n---\n>   电商直播贴片生成器 / 电商直播视觉包装工具。\n>   适用于淘宝直播、抖音直播带货、拼多多直播、快手直播等电商直播场景。\n>   输入品牌、产品、促销信息或产品照片，自动生成完整电商直播视觉包装：\n>   背景、标题栏、主播形象、价格卡、产品货架、福利条、促销贴片。\n7a9,14\n>   E-commerce livestream overlay generator for Taobao, Douyin, PDD, Kuaishou streaming.\n>   Generate background, title banner, host persona, pricing card, product shelf, benefits bar.\n>   Supports green screen removal, auto-composite preview, and packaged delivery.\n> homepage: https://github.com/gaoyuji12138/e-commerce-livestream-overlay-skill\n> user-invocable: true\n> metadata: '{\"openclaw\":{\"emoji\":\"🎨\",\"primaryEnv\":\"VOLCENGINE_ARK_API_KEY\",\"requires\":{\"env\":[\"VOLCENGINE_ARK_API_KEY\"],\"bins\":[\"python3\",\"pip3\"]}}}'\n17a25,32\n> ### API Key 获取\n> \n> 1. 前往 [火山引擎控制台](https://console.volcengine.com/ark) 注册并登录\n> 2. 在「模型推理」页面开通豆包视觉模型\n> 3. 在控制台凭证页面创建 API Key\n> \n> > **每个用户需要自己的 API Key**：使用时从环境变量 `VOLCENGINE_ARK_API_KEY` 读取。\n> \n23c38\n< ## 二、需求确认（正式生成前必须执行）\n---\n> ## 二、数据隐私与透明度\n24a40,59\n> ### 数据流向\n> \n> | 数据类型 | 发送目标 | 用途 | 是否持久化 |\n> |----------|----------|------|-----------|\n> | 文本 Prompt（品牌/促销文案等） | 火山引擎 API | 图像生成请求 | ❌ 仅传输，不存储 |\n> | 用户产品照片 | 火山引擎 API | 作为图像生成参考输入 | ❌ 仅传输，不存储 |\n> | 生成的图片 | 本地磁盘 | 交付给用户 | ✅ 保存到本地输出目录 |\n> \n> > **AI 内置视觉能力**：当用户仅提供产品照片未附文字说明时，由 AI Agent 内置视觉能力识别图中商品信息（本地运行），无需额外 API 调用。\n> \n> **本 Skill 不会做的事：**\n> - ❌ 在本地或远程存储、记录或缓存用户输入数据（文本 Prompt、产品照片）\n> - ❌ 将数据转发到火山引擎以外的任何第三方\n> - ❌ 进行任何购买、支付或金融操作\n> - ❌ 进行任何加密货币或区块链操作\n> \n> > ⚠️ 用户产品照片和文本 Prompt 会发送至火山引擎 API。上传敏感或专有产品图片前，请阅读[火山引擎隐私政策](https://www.volcengine.com/docs/6369/71845)。API 返回的生成图片会保存到本地输出目录。\n> \n> ## 三、需求确认（正式生成前必须执行）\n> \n85c120\n< ## 三、文案自动生成规则\n---\n> ## 四、文案自动生成规则\n104c139\n< ## 四、组件清单与尺寸\n---\n> ## 五、组件清单与尺寸\n117c152\n< ## 五、Prompt 写法标准\n---\n> ## 六、Prompt 写法标准\n274c309\n< ## 六、生图 API\n---\n> ## 七、生图 API\n311c346\n< ## 七、绿幕抠图\n---\n> ## 八、绿幕抠图\n335c370\n< ## 八、合成预览\n---\n> ## 九、合成预览\n418c453\n< ## 九、打包交付\n---\n> ## 十、打包交付\n\nArchive v1.0.13: 2 files, 11094 bytes\n\nFiles: SKILL.md (26902b), _meta.json (158b)\n\nFile v1.0.13:SKILL.md\n\n---\nname: ecommerce-livestream-overlay-generator\ndescription: >\n  电商直播贴片生成器 / 电商直播视觉包装工具。\n  适用于淘宝直播、抖音直播带货、拼多多直播、快手直播等电商直播场景。\n  输入品牌、产品、促销信息或产品照片，自动生成完整电商直播视觉包装：\n  背景、标题栏、主播形象、价格卡、产品货架、福利条、促销贴片。\n  支持绿幕抠图、自动合成预览、打包交付。\n  E-commerce livestream overlay generator for Taobao, Douyin, PDD, Kuaishou streaming.\n  Generate background, title banner, host persona, pricing card, product shelf, benefits bar.\n  Supports green screen removal, auto-composite preview, and packaged delivery.\nhomepage: https://github.com/gaoyuji12138/e-commerce-livestream-overlay-skill\nuser-invocable: true\nmetadata: '{\"openclaw\":{\"emoji\":\"🎨\",\"primaryEnv\":\"VOLCENGINE_ARK_API_KEY\",\"requires\":{\"env\":[\"VOLCENGINE_ARK_API_KEY\"],\"bins\":[\"python3\",\"pip3\"]}}}'\n---\n\n# E-Commerce Livestream Overlay Generator Skill\n\n## I. Prerequisites\n\n### Dependencies\n- Python 3 + Pillow + opencv-python-headless + numpy\n\n### Environment Variables\n\n- `VOLCENGINE_ARK_API_KEY` - Volcano Engine (Doubao) Ark API Key（必填）\n\n**获取方式**：\n1. 登录 [火山引擎控制台](https://console.volcengine.com/ark/region:ark+cn-beijing/model)\n2. 进入 Ark 模型平台，启用以下模型：\n   - `doubao-seedream-4-5-251128`（通用组件）\n   - `doubao-seedream-5-0-260128`（主播人像组件）\n3. 在控制台凭证页面创建 API Key\n\n> **每个用户需要自己的 API Key**：使用时从环境变量 `VOLCENGINE_ARK_API_KEY` 读取。\n\n### Install dependencies\n```bash\npip3 install Pillow==12.2.0 opencv-python-headless==4.13.0 numpy==2.3.2\n```\n\n## II. Data Privacy & Transparency\n\nThis skill sends **text prompts** and **optionally user-supplied product photos** to the Volcano Engine (Doubao) image generation API. All subsequent processing (green screen removal, compositing, packaging) runs **entirely locally**.\n\n| What is sent | Where | Purpose |\n|-------------|-------|---------|\n| Text prompts (brand/product/style descriptions) | `https://ark.cn-beijing.volces.com/api/v3/images/generations` | Generate overlay component images (background, title, host persona, pricing card, product shelf, benefits bar) |\n| User-supplied product photos (optional) | `https://ark.cn-beijing.volces.com/api/v3/images/generations` | Used as reference image input for product shelf generation |\n\n**Data handling details:**\n- **Text prompts** and **user product photos** (when provided) are sent to the Volcano Engine API endpoint listed above. No data is forwarded to any other third party.\n- **Generated images** are returned from the API and saved locally. They are not re-uploaded anywhere.\n- **All post-processing** (green screen removal, compositing, brightness adjustment, packaging) runs **entirely locally** on the user's machine using Python (OpenCV + Pillow).\n\n**What this skill does NOT do:**\n- ❌ Store, log, or cache user input data (text prompts, product photos) locally or remotely\n- ❌ Forward data to any third party beyond the Volcano Engine API\n- ❌ Make purchases, handle payments, or interact with any financial services\n- ❌ Perform any cryptocurrency or blockchain operations\n\n> Generated images returned from the API are saved to the local output directory for your use.\n\n> ⚠️ User product photos and text prompts are sent to Volcano Engine's API. Please review [Volcano Engine's privacy policy](https://www.volcengine.com/docs/6369/71845) before uploading sensitive or proprietary product images.\n\n## III. Requirement Confirmation (Must Complete Before Generation)\n\n> ⚠️ Upon receiving a generation request, do NOT start generating images immediately. Confirm the following info first to ensure one-pass success.\n\n### 3.1 Required Information\n\n| Info | Description | Required |\n|------|-------------|----------|\n| Brand | e.g. Dyson, Moutai, Three Squirrels | ✅ |\n| Featured Product | Specific product name and model | ✅ |\n| Promotion | Discounts, gifts, loyalty points, etc. | ✅ |\n| Style Preference | Special requirements (color, mood, tone) | ❌ |\n\n### 3.2 Confirmation Flow\n\n1. **User provides complete info** → Summarize understanding, ask user to confirm, then start\n2. **User info is incomplete** → Only ask for missing required fields, auto-infer the rest\n3. **User sends a product photo with no text** → AI agent identifies the product using its built-in vision capability, infers brand & category, summarizes and asks user to confirm\n4. **User says \"use the example\"** → Generate directly using the Dyson example below\n\n### 3.3 Confirmation Example Reply\n\n```\nLet me confirm the requirements:\n\n📋 **Brand**: Dyson\n📋 **Featured Product**: Dyson Supersonic HD16 Hair Dryer + Airwrap Multi-Styler\n📋 **Promotion**: ¥300 off every ¥3,000 spent\n📋 **Gift**: Free 2 styling nozzle attachments with hair dryer purchase\n📋 **Packaging**: Livestream-exclusive gift box\n📋 **Style**: Tech-luxury (inferred from Dyson brand)\n\nHere's my copy design:\n- Main title: \"Dyson · Salon-Grade Styling\"\n- Subtitle: \"Limited Edition · Luxe Experience\"\n- Pricing card: \"¥300 off ¥3,000+ / Free styling nozzles with hair dryer / Exclusive gift box\"\n- Benefits: \"2-year warranty / Free shipping / Premium gift packaging\"\n\nIf this looks good I'll start generating. Let me know if you want any changes 👇\n```\n\n### 3.4 Example Requirement (Show Proactively on First Trigger)\n\n> When receiving a generation request, proactively show the example below so the user can follow it or ask to use it directly.\n\n**Example requirement:**\n> Generate a full Dyson livestream overlay set. Featured products: Dyson Supersonic HD16 Hair Dryer and Airwrap Multi-Styler. Free 2 styling nozzle attachments with hair dryer purchase. ¥300 off every ¥3,000 spent. Livestream-exclusive gift box.\n\n**First reply template:**\n```\nYou can just tell me your brand and promo info, like:\n\n> Generate a full Dyson livestream overlay set. Featured products: Dyson Supersonic HD16 Hair Dryer and Airwrap Multi-Styler. Free 2 styling nozzle attachments with hair dryer purchase. ¥300 off every ¥3,000 spent. Livestream-exclusive gift box.\n\nOr just say \"use the Dyson example\" and I'll generate with that spec.\n\nWhat's your requirement?\n```\n\n**Minimum needed**: Brand + Featured Product + Promotion (3 core fields)\n**Copy, style, host design, benefits** are all auto-generated by AI. User can optionally modify.\n\n## IV. Auto Copywriting Rules\n\n### 4.1 Main Title\n- Must include brand name with atmospheric feel\n- **NEVER use** \"official\" or \"flagship\" or similar words\n- Don't just write the product name — it needs marketing appeal and purchase desire\n\n### 4.2 Subtitle\n- Core benefit (perks / efficacy / scenario) or current campaign\n- Concise and impactful\n\n### 4.3 Pricing Card\n- Split promotion into 2-3 tiers\n- Each tier: amount/benefit + conditions\n\n### 4.4 Benefits Copy\n- Usually 3 items: gift-related + authenticity guarantee + logistics/after-sales\n- ⚠️ Avoid audit-triggering words like \"authentic\" or \"guarantee\" — use \"quality\" and \"assured\" instead\n\n## V. Component List & Dimensions\n\n> ⚠️ Dimensions calibrated for `doubao-seedream-4-5-251128` minimum pixel limits\n\n| # | Component | Size | Green Screen | Notes |\n|---|-----------|------|-------------|-------|\n| 1 | Background | **1440×2560** | ❌ | C4D scene |\n| 2 | Title Banner | **3328×1109** | ✅ | Die-cut sticker |\n| 3 | Host Persona | **1440×2560** | ✅ | Bare-faced + youthful face + styled look (no product in hand) |\n| 4 | Pricing Card | **1920×1920** | ✅ | Square die-cut sticker |\n| 5 | Product Shelf | **3328×1109** | ✅ | 40+ items dense arrangement |\n| 6 | Benefits Bar | **3328×1109** | ❌ | Full-width bottom |\n\n## VI. Prompt Writing Standards\n\n### Core Principles\n- All components use a unified style prefix for color consistency\n- Must include negative constraints\n- Background uses \"pure solid green\" (not #00FF00)\n\n### 6.1 Background Prompt\n**Constraint**: No text, no people, no products.\n\n**Template**:\n```\nA C4D commercial space scene blending [style description]. The space uses [primary color] as the dominant tone, complemented by [secondary color], with [accent color] details, all balanced by [neutral color]. The spatial structure presents [structure description], creating a [atmosphere]. Lighting design [lighting description] highlights texture and depth. Materials include [materials], showcasing the charm of [style]. Modular abstract display elements are scattered throughout, such as [element 1], [element 2], and [element 3], together creating a [overall feeling] spatial experience.\n```\n\n### 6.2 Title Banner Prompt\n**Template**:\n```\nSolid uniform green background #00FF00. Center of frame is a [color] gradient die-cut horizontal card with [border texture], irregular artistic edges on all four sides. Inside the card, left side has [text area background color], large text \"[MAIN TITLE]\" in [font description], below it \"[SUBTITLE]\" in [font description]. Right side of card shows [product illustration description]. The entire card has rich deep colors with absolutely no white background areas, no green/cyan/teal. The card is a complete solid sticker with crisp sharp edges.\n```\n\n### 6.3 Host Persona Prompt\n\n> ⚠️ Core rules (v2 update):\n> 1. **Use `doubao-seedream-5-0-260128` for host persona** (other components still use `doubao-seedream-4-5-251128`)\n> 2. **Completely bare-faced, no makeup** (not \"natural nude makeup\")\n> 3. **Do NOT hold products** — hands hang naturally, slightly bent (v2 removed hand-held product)\n> 4. **Internet-celebrity youthful face with short midface**, deep watery eyes, jelly-glossy lips\n> 5. **Outfit must be pre-designed** — fully describe top + bottom (no shoes) + accessories in prompt\n> 6. **Hair color preferably black**, silky smooth, styled with possible accessories matching brand tone\n> 7. Background uses \"pure solid green\" (not #00FF00)\n\n**Template**:\n```\nPure solid green uniform background, absolutely uniform pure color with no gradients, no texture, no shadows, no light spots, no impurities. Vertical portrait, person standing facing camera, framed from top of head to mid-thigh, person centered and occupying most of the frame, top of head very close to frame top. 25-year-old beautiful young female host, completely bare-faced with no makeup, cool-toned fair skin that is clear and translucent, internet-celebrity youthful face with short midface, {eye type description}, deep watery eyes, {eye area description}, lips {lip shape description} with jelly-glossy {lip color description}, {temperament description}. Completely bare-faced, no makeup on face whatsoever, no eyeshadow, eyeliner, mascara, blush, lipstick, or foundation. Wearing {top description}, {bottom description}, {accessories description}. {hair style and color description}, {hair accessories description}. Soft even front lighting. Person standing naturally, both arms hanging naturally with slight bend, relaxed elegant posture.\n```\n\n**Face Differentiation (Must specify these dimensions each time)**:\n\n| Dimension | Description | Examples |\n|-----------|-------------|----------|\n| Face shape | Internet-celebrity youthful face, short midface (fixed) | Heart/oval/melon/square-round |\n| Eye type | Round/almond/peach-blossom/phoenix | Describe \"slightly downturned for innocent look\" or \"slightly upturned for elegance\" |\n| Eye hydration | Fixed requirement | \"Deep watery eyes, delicate translucent skin around eyes\" |\n| Lip jelly feel | Fixed requirement | \"Full pouty lips with jelly-glossy translucent shine\" / \"Thin lips natural pale pink with jelly feel\" |\n| Temperament | Sweet & approachable / cool & premium / elegant & intellectual / energetic / confident | Varies by brand |\n| Outfit | Must be pre-designed, top + bottom + accessories | No shoes |\n| Hairstyle | Must be pre-designed, primarily black + accessories | Silky smooth, refined with design sense |\n\n**Host Design Examples (v2)**:\n\nLancôme Absolue:\n```\nInternet-celebrity youthful face with short midface, round eyes slightly downturned for innocent look, deep watery eyes, delicate translucent skin around eyes, full pouty lips with jelly-glossy translucent shine, refined sweet and approachable features. Wearing white fine-knit cropped cardigan, layered over cream-white lace camisole, high-waisted light pink pleated satin midi skirt, rose-gold delicate collarbone chain on chest, rose-gold thin bracelet on left wrist, simple pearl ring on right hand. Long straight black hair silky smooth falling to below collarbone, a small pearl hair clip clipped on the right side of crown, a few wispy strands naturally framing the face.\n```\n\nHelena Rubinstein Re-Plasty:\n```\nInternet-celebrity youthful face with short midface, phoenix eyes slightly upturned, deep watery eyes with natural cool-premium feel at outer corners, thin lips natural pale pink with jelly-glossy hydration, refined cool-premium features. Wearing black high-neck slim-fit silk shirt, sleeves rolled up to elbows revealing slender wrists, black high-waisted wide-leg suit pants, a 2-carat diamond stud on left earlobe, ultra-fine silver chain bracelet on right wrist. Long straight black hair silky smooth with center part falling naturally to center of back, a minimalist black ultra-thin hairpin placed near right temple for clean structured look.\n```\n\nLa Mer:\n```\nInternet-celebrity youthful face with short midface, bright large almond eyes, deep watery eyes with warm soulful gaze, standard lips with jelly-glossy natural pink full hydration, refined soft and clear features. Wearing pearl-white silk satin loose shirt with top button undone revealing delicate collarbone, puffy bubble sleeve design, champagne high-waisted satin wide-leg trousers, ultra-fine champagne-gold necklace with small pearl pendant on neck, white jade thin bracelet on left wrist. Long curly black hair silky smooth with natural large waves falling to shoulder blades, a loose refined French braid woven from left side of crown, tiny pearl hairpins scattered through the braid.\n```\n\n### 6.4 Pricing Card Prompt\n> ⚠️ Size changed from 896×1344 to **1920×1920** (square)\n\n**Template**:\n```\nSolid uniform green background #00FF00. Center of frame is a compact vertical die-cut label sticker, entirely [dark color scheme] solid background, absolutely no white areas, no light-colored areas, no gradients to white, no green/cyan/teal. Sticker shape is rounded rectangle with arched top decoration. Top has [decorative elements]. Large text \"[HEADLINE]\" in [font description]; below divided into three tiers: \"[TIER 1]\" \"[TIER 2]\" \"[TIER 3]\". The entire sticker has rich deep solid colors with crisp sharp edges, a solid die-cut sticker. Sticker occupies about 40% of frame area, compact not sparse.\n```\n\n### 6.5 Product Shelf Prompt (⚠️ Different from original skill)\n\n> ⚠️ Key differences:\n> 1. **White matte marble display tabletop** (not pure green + white plane)\n> 2. **Layered cluster + left-right mirror + front-back progression** layout logic\n> 3. **At least 40+ individual product units** (not \"make it rich\")\n> 4. Middle core zone split into left-center-right sections, center as visual focal point\n\n**Template**:\n```\nBackground is pure solid green uniform. At the bottom of frame is a front-facing flat white premium display tabletop (white matte marble texture), completely horizontal with no tilt, occupying bottom 40% of frame height. Products arranged by layered cluster plus left-right mirror plus front-back progression logic, at least 40+ individual product units densely covering most tabletop area: [Middle core display zone split into left-center-right] Center visual focal point: {product layout description} [Overall layout requirements] All products standing upright facing the viewer. Height differences create stepped layering. Appropriate blank spacing between left/right zones and center zone for breathing room. Dense and full product arrangement, at least 40+ individual units. Nothing else besides products and white matte metal display stands, absolutely no hands, fingers, arms, or any human body parts. Even lighting. Pure still-life product display photo with no human presence whatsoever.\n```\n\n> ⚠️ Do NOT include \"leave hand-holding space at front\" in the layout — hand-held products are for the host persona image; the product shelf is pure product display.\n\n### 6.6 User Product Photo (Optional)\n\nWhen the user provides a real product photo:\n\n**a) Background removal**: Select strategy based on product photo background\n\n| Product Background | Removal Method |\n|-------------------|----------------|\n| White/light solid background | HSV threshold to remove white areas |\n| Dark solid background | HSV threshold to remove corresponding dark color |\n| Complex scene background | GrabCut or Rembg |\n\n```python\nimport cv2\nimport numpy as np\n\ndef remove_white_bg(img_path, output_path):\n    \"\"\"Remove white/light background — runs entirely locally\"\"\"\n    img = cv2.imread(img_path)\n    hsv = cv2.cvtColor(img, cv2.COLOR_BGR2HSV)\n    mask_w = cv2.inRange(hsv, np.array([0, 0, 200]), np.array([180, 30, 255]))\n    mask_g = cv2.inRange(hsv, np.array([0, 0, 160]), np.array([180, 50, 240]))\n    mask = cv2.bitwise_or(mask_w, mask_g)\n    k = cv2.getStructuringElement(cv2.MORPH_ELLIPSE, (7, 7))\n    mask = cv2.morphologyEx(mask, cv2.MORPH_CLOSE, k, iterations=5)\n    mask = cv2.morphologyEx(mask, cv2.MORPH_OPEN, k, iterations=3)\n    mask = cv2.GaussianBlur(mask, (5, 5), 0)\n    mask = (mask > 200).astype(np.uint8) * 255\n    b, g, r = cv2.split(img)\n    cv2.imwrite(output_path, cv2.merge([b, g, r, 255 - mask]))\n```\n\n**b) Product Shelf Prompt adjustment**: Leave center area blank for user's product\n\n```\nIn the product shelf prompt, change the center zone description to:\n\"Leave sufficient blank space in the center area for the main featured product\n(about 30% of center area kept clean), surrounding products arranged by\nlayered cluster plus left-right mirror plus front-back progression logic\"\n```\n\n**c) Composite overlay**: User product photo scaled and placed at center of product area\n\n```python\n# User product: scale to 25% of canvas width, center of product area\nup_target_w = int(cw * 0.25)\nups = up_target_w / user_product.width\nup_resized = user_product.resize((int(user_product.width * ups), int(user_product.height * ups)), Image.LANCZOS)\nupx = (cw - up_resized.width) // 2\nupy = pdy + int(pdr.height * 0.05)\n\n# Paste order: user product after product shelf, before title banner\ncanvas.paste(pdr, (0, pdy), pdr)\ncanvas.paste(up_resized, (upx, upy), up_resized)  # ← user product\ncanvas.paste(tr, (tx, ty), tr)\n```\n\n### 6.7 Benefits Bar Prompt\n**Template**:\n```\nSymmetrical left-right composition, eye-level view. Core elements in upper half: three simple benefit icons, with corresponding text below: \"[BENEFIT 1] / [BENEFIT 2] / [BENEFIT 3]\". Background [background description]. Style: flat design, minimalist lighting. Color: [primary color], clean and elegant.\n```\n\n## VII. Image Generation API\n\n| Item | Content |\n|------|---------|\n| Endpoint | `https://ark.cn-beijing.volces.com/api/v3/images/generations` |\n| Method | POST |\n| Content-Type | application/json |\n| **General model** | **`doubao-seedream-4-5-251128`** |\n| **Persona model** | **`doubao-seedream-5-0-260128`** (host persona component only) |\n\n> 📋 The API key is obtained from the [Volcano Engine Ark Console](https://console.volcengine.com/ark/region:ark+cn-beijing/model). Text prompts are sent to this endpoint; no images or personal data are transmitted.\n\n### Request parameters\n```json\n{\n  \"model\": \"doubao-seedream-4-5-251128\",\n  \"stream\": false,\n  \"watermark\": false,\n  \"sequential_image_generation\": \"disabled\",\n  \"prompt\": \"<prompt in Chinese>\",\n  \"size\": \"<width>x<height>\"\n}\n```\n\n### Request example\n```bash\ncurl -s \"https://ark.cn-beijing.volces.com/api/v3/images/generations\" \\\n  -H \"Content-Type: application/json\" \\\n  -H \"Authorization: Bearer $VOLCENGINE_ARK_API_KEY\" \\\n  -d '{\n    \"model\": \"doubao-seedream-4-5-251128\",\n    \"stream\": false,\n    \"watermark\": false,\n    \"sequential_image_generation\": \"disabled\",\n    \"prompt\": \"prompt content\",\n    \"size\": \"1440x2560\"\n  }'\n```\n\n> 📋 The API key is read from the environment variable `VOLCENGINE_ARK_API_KEY`. Text prompts are sent to this endpoint; no images or personal data are transmitted.\n\n## VIII. Green Screen Removal\n\nExecute green screen removal on components 2 (Title Banner), 3 (Host Persona), 4 (Pricing Card), and 5 (Product Shelf).\n\n> 🔒 This processing runs **entirely locally** — no data leaves the machine.\n\n```python\nimport cv2\nimport numpy as np\n\ndef remove_green(img_path, output_path):\n    img = cv2.imread(img_path)\n    hsv = cv2.cvtColor(img, cv2.COLOR_BGR2HSV)\n    mask1 = cv2.inRange(hsv, np.array([35, 80, 80]), np.array([85, 255, 255]))\n    mask2 = cv2.inRange(hsv, np.array([30, 40, 120]), np.array([90, 255, 255]))\n    mask = cv2.bitwise_or(mask1, mask2)\n    k = cv2.getStructuringElement(cv2.MORPH_ELLIPSE, (5, 5))\n    mask = cv2.morphologyEx(mask, cv2.MORPH_CLOSE, k, iterations=3)\n    mask = cv2.morphologyEx(mask, cv2.MORPH_OPEN, k, iterations=2)\n    mask = cv2.GaussianBlur(mask, (3, 3), 0)\n    mask = (mask > 127).astype(np.uint8) * 255\n    b, g, r = cv2.split(img)\n    rgba = cv2.merge([b, g, r, 255 - mask])\n    cv2.imwrite(output_path, rgba)\n```\n\n## IX. Composite Preview\n\n> ⚠️ Layout parameters differ from original skill\n> 🔒 All compositing runs **entirely locally** — no data leaves the machine.\n\n### Layout Parameters\n\n```python\nlayout = {\n    \"title\":   {\"scale\": 0.95, \"pos\": \"center-top\", \"y_pct\": 0.07},\n    \"person\":  {\"scale\": 0.70, \"pos\": \"left\", \"x_pct\": 0.15, \"y_pct\": 0.14},\n    \"promo\":   {\"scale\": 0.40, \"pos\": \"right\", \"x_pct\": 0.55, \"y_pct\": 0.22},\n    \"product\": {\"zoom\": 1.2,  \"pos\": \"bottom-full\", \"above\": \"benefit\"},\n    \"benefit\": {\"scale\": 1.0,  \"pos\": \"bottom-full\"},\n}\n```\n\n### Composite Code\n\n```python\nfrom PIL import Image\n\ndef compose_preview(bg_path, person_nobg, title_nobg, promo_nobg, product_nobg, benefit_path, output_path):\n    bg = Image.open(bg_path).convert(\"RGBA\")\n    cw, ch = bg.size\n\n    def fit(img, w_ratio, center=True):\n        w = int(cw * w_ratio)\n        s = w / img.width\n        r = img.resize((w, int(img.height * s)), Image.LANCZOS)\n        x = (cw - w) // 2 if center else cw - w\n        return r, x\n\n    def fit_full(img):\n        s = cw / img.width\n        return img.resize((cw, int(img.height * s)), Image.LANCZOS)\n\n    def zoom_crop(img, zoom):\n        w = int(cw * zoom)\n        s = w / img.width\n        h = int(img.height * s)\n        r = img.resize((w, h), Image.LANCZOS)\n        cx = (w - cw) // 2\n        return r.crop((cx, 0, cx + cw, h))\n\n    title = Image.open(title_nobg).convert(\"RGBA\")\n    person = Image.open(person_nobg).convert(\"RGBA\")\n    promo = Image.open(promo_nobg).convert(\"RGBA\")\n    product = Image.open(product_nobg).convert(\"RGBA\")\n    benefit = Image.open(benefit_path).convert(\"RGBA\")\n\n    tr, tx = fit(title, 0.95); ty = int(ch * 0.07)\n    prr, prx = fit(promo, 0.40, center=False); prx = int(cw * 0.55); pry = int(ch * 0.22)\n    per, perx = fit(person, 0.70); perx = int(cw * 0.15); pery = int(ch * 0.14)\n    pdr = zoom_crop(product, 1.2); pdy = ch - fit_full(benefit).height - pdr.height\n    bfr = fit_full(benefit); bfy = ch - bfr.height\n\n    # Layer order: background → pricing card → host → product shelf → title banner → benefits bar\n    # To place title behind host, move tr paste before per paste\n    canvas = bg.copy()\n    canvas.paste(prr, (prx, pry), prr)\n    canvas.paste(per, (perx, pery), per)\n    canvas.paste(pdr, (0, pdy), pdr)\n    canvas.paste(tr, (tx, ty), tr)\n    canvas.paste(bfr, (0, bfy), bfr)\n\n    canvas.convert(\"RGB\").save(output_path, \"JPEG\", quality=95)\n```\n\n### Post-processing: Host Brightness Boost\n\nBoost the host layer brightness before compositing to prevent dark appearance:\n\n```python\nfrom PIL import ImageEnhance\n\n# Boost host layer by 17% before compositing\nperson_bright = ImageEnhance.Brightness(person).enhance(1.17)\n# Use person_bright instead of person in compositing\n```\n\n> ⚠️ Only boost the host layer (17%). Do NOT touch other layers. The delivered 人物.png should also use the boosted version.\n\n## X. Delivery & Packaging\n\n### Deliverables (Fixed 7 files)\n\n| Filename | Format | Notes |\n|----------|--------|-------|\n| 背景.png | PNG 1440×2560 | Full-bleed |\n| 标题横卡.png | PNG 1440×2560 transparent | Content at preview position |\n| 人物.png | PNG 1440×2560 transparent | Brightness boosted (don't label \"boosted\") |\n| 促销竖卡.png | PNG 1440×2560 transparent | Content at preview position |\n| 桌面商品贴.png | PNG 1440×2560 transparent | Content at preview position |\n| 权益下贴.png | PNG 1440×2560 transparent | Content at preview position |\n| 预览.jpg | JPG 1440×2560 | Composite preview |\n\nIf a user product photo is provided, it will be composited into the center of the product shelf — not delivered separately.\n\n### Delivery Methods (Auto-select based on channel)\n\n**Method 1: Send in chat (when channel supports file sending)**\n1. Send preview image (`预览.jpg`) to chat first\n2. Send zip archive (named `{Brand}_livestream_overlays.zip`, containing all 7 files)\n\n```bash\ncd output/\nzip -j \"../{Brand}_livestream_overlays.zip\" 背景.png 标题横卡.png 人物.png 促销竖卡.png 桌面商品贴.png 权益下贴.png 预览.jpg\n```\n\n**Method 2: Desktop folder (when channel doesn't support file sending)**\n1. Create folder on user's desktop named `{Brand}_overlays`\n2. Put only the 7 files inside — no intermediate files, no zip\n3. Use `open` command to show the preview image\n4. Use `open` command to open the folder\n\n> ⚠️ Note: webchat (Control UI) does not support file sending — use Method 2. Feishu, WeChat etc. use Method 1.\n\n## XI. Complete Workflow\n\n```\n1. Collect requirements (brand, promotion, optional: user product photo)\n2. Analyze brand style → determine color palette\n3. Design host appearance (youthful face + watery eyes + jelly lips + outfit + hairstyle + accessories)\n4. Auto-generate missing copy\n5. Write prompts for all 6 components (host uses v2 template, no hand-held products)\n   - If user product photo: leave center blank in product shelf prompt\n6. General components → doubao-seedream-4-5-251128, host → doubao-seedream-5-0-260128\n7. Green screen removal on components 2/3/4/5\n8. Boost host layer brightness by 17% (ImageEnhance.Brightness 1.17)\n9. [Optional] Remove background from user product photo (white/light bg → HSV threshold)\n10. Composite preview (use boosted host, user product overlaid at center of product area)\n11. Package and deliver\n```\n\nFile v1.0.13:_meta.json\n\n{\n  \"ownerId\": \"kn72d297ct1e0cjjbnarj42ag9841d6c\",\n  \"slug\": \"ecommerce-livestream-overlay-generator\",\n  \"version\": \"1.0.13\",\n  \"publishedAt\": 1777368721990\n}\n\nArchive v1.0.12: 2 files, 11094 bytes\n\nFiles: SKILL.md (26902b), _meta.json (158b)\n\nFile v1.0.12:SKILL.md\n\n---\nname: ecommerce-livestream-overlay-generator\ndescription: >\n  电商直播贴片生成器 / 电商直播视觉包装工具。\n  适用于淘宝直播、抖音直播带货、拼多多直播、快手直播等电商直播场景。\n  输入品牌、产品、促销信息或产品照片，自动生成完整电商直播视觉包装：\n  背景、标题栏、主播形象、价格卡、产品货架、福利条、促销贴片。\n  支持绿幕抠图、自动合成预览、打包交付。\n  E-commerce livestream overlay generator for Taobao, Douyin, PDD, Kuaishou streaming.\n  Generate background, title banner, host persona, pricing card, product shelf, benefits bar.\n  Supports green screen removal, auto-composite preview, and packaged delivery.\nhomepage: https://github.com/gaoyuji12138/e-commerce-livestream-overlay-skill\nuser-invocable: true\nmetadata: '{\"openclaw\":{\"emoji\":\"🎨\",\"primaryEnv\":\"VOLCENGINE_ARK_API_KEY\",\"requires\":{\"env\":[\"VOLCENGINE_ARK_API_KEY\"],\"bins\":[\"python3\",\"pip3\"]}}}'\n---\n\n# E-Commerce Livestream Overlay Generator Skill\n\n## I. Prerequisites\n\n### Dependencies\n- Python 3 + Pillow + opencv-python-headless + numpy\n\n### Environment Variables\n\n- `VOLCENGINE_ARK_API_KEY` - Volcano Engine (Doubao) Ark API Key（必填）\n\n**获取方式**：\n1. 登录 [火山引擎控制台](https://console.volcengine.com/ark/region:ark+cn-beijing/model)\n2. 进入 Ark 模型平台，启用以下模型：\n   - `doubao-seedream-4-5-251128`（通用组件）\n   - `doubao-seedream-5-0-260128`（主播人像组件）\n3. 在控制台凭证页面创建 API Key\n\n> **每个用户需要自己的 API Key**：使用时从环境变量 `VOLCENGINE_ARK_API_KEY` 读取。\n\n### Install dependencies\n```bash\npip3 install Pillow==12.2.0 opencv-python-headless==4.13.0 numpy==2.3.2\n```\n\n## II. Data Privacy & Transparency\n\nThis skill sends **text prompts** and **optionally user-supplied product photos** to the Volcano Engine (Doubao) image generation API. All subsequent processing (green screen removal, compositing, packaging) runs **entirely locally**.\n\n| What is sent | Where | Purpose |\n|-------------|-------|---------|\n| Text prompts (brand/product/style descriptions) | `https://ark.cn-beijing.volces.com/api/v3/images/generations` | Generate overlay component images (background, title, host persona, pricing card, product shelf, benefits bar) |\n| User-supplied product photos (optional) | `https://ark.cn-beijing.volces.com/api/v3/images/generations` | Used as reference image input for product shelf generation |\n\n**Data handling details:**\n- **Text prompts** and **user product photos** (when provided) are sent to the Volcano Engine API endpoint listed above. No data is forwarded to any other third party.\n- **Generated images** are returned from the API and saved locally. They are not re-uploaded anywhere.\n- **All post-processing** (green screen removal, compositing, brightness adjustment, packaging) runs **entirely locally** on the user's machine using Python (OpenCV + Pillow).\n\n**What this skill does NOT do:**\n- ❌ Store, log, or cache user input data (text prompts, product photos) locally or remotely\n- ❌ Forward data to any third party beyond the Volcano Engine API\n- ❌ Make purchases, handle payments, or interact with any financial services\n- ❌ Perform any cryptocurrency or blockchain operations\n\n> Generated images returned from the API are saved to the local output directory for your use.\n\n> ⚠️ User product photos and text prompts are sent to Volcano Engine's API. Please review [Volcano Engine's privacy policy](https://www.volcengine.com/docs/6369/71845) before uploading sensitive or proprietary product images.\n\n## III. Requirement Confirmation (Must Complete Before Generation)\n\n> ⚠️ Upon receiving a generation request, do NOT start generating images immediately. Confirm the following info first to ensure one-pass success.\n\n### 3.1 Required Information\n\n| Info | Description | Required |\n|------|-------------|----------|\n| Brand | e.g. Dyson, Moutai, Three Squirrels | ✅ |\n| Featured Product | Specific product name and model | ✅ |\n| Promotion | Discounts, gifts, loyalty points, etc. | ✅ |\n| Style Preference | Special requirements (color, mood, tone) | ❌ |\n\n### 3.2 Confirmation Flow\n\n1. **User provides complete info** → Summarize understanding, ask user to confirm, then start\n2. **User info is incomplete** → Only ask for missing required fields, auto-infer the rest\n3. **User sends a product photo with no text** → AI agent identifies the product using its built-in vision capability, infers brand & category, summarizes and asks user to confirm\n4. **User says \"use the example\"** → Generate directly using the Dyson example below\n\n### 3.3 Confirmation Example Reply\n\n```\nLet me confirm the requirements:\n\n📋 **Brand**: Dyson\n📋 **Featured Product**: Dyson Supersonic HD16 Hair Dryer + Airwrap Multi-Styler\n📋 **Promotion**: ¥300 off every ¥3,000 spent\n📋 **Gift**: Free 2 styling nozzle attachments with hair dryer purchase\n📋 **Packaging**: Livestream-exclusive gift box\n📋 **Style**: Tech-luxury (inferred from Dyson brand)\n\nHere's my copy design:\n- Main title: \"Dyson · Salon-Grade Styling\"\n- Subtitle: \"Limited Edition · Luxe Experience\"\n- Pricing card: \"¥300 off ¥3,000+ / Free styling nozzles with hair dryer / Exclusive gift box\"\n- Benefits: \"2-year warranty / Free shipping / Premium gift packaging\"\n\nIf this looks good I'll start generating. Let me know if you want any changes 👇\n```\n\n### 3.4 Example Requirement (Show Proactively on First Trigger)\n\n> When receiving a generation request, proactively show the example below so the user can follow it or ask to use it directly.\n\n**Example requirement:**\n> Generate a full Dyson livestream overlay set. Featured products: Dyson Supersonic HD16 Hair Dryer and Airwrap Multi-Styler. Free 2 styling nozzle attachments with hair dryer purchase. ¥300 off every ¥3,000 spent. Livestream-exclusive gift box.\n\n**First reply template:**\n```\nYou can just tell me your brand and promo info, like:\n\n> Generate a full Dyson livestream overlay set. Featured products: Dyson Supersonic HD16 Hair Dryer and Airwrap Multi-Styler. Free 2 styling nozzle attachments with hair dryer purchase. ¥300 off every ¥3,000 spent. Livestream-exclusive gift box.\n\nOr just say \"use the Dyson example\" and I'll generate with that spec.\n\nWhat's your requirement?\n```\n\n**Minimum needed**: Brand + Featured Product + Promotion (3 core fields)\n**Copy, style, host design, benefits** are all auto-generated by AI. User can optionally modify.\n\n## IV. Auto Copywriting Rules\n\n### 4.1 Main Title\n- Must include brand name with atmospheric feel\n- **NEVER use** \"official\" or \"flagship\" or similar words\n- Don't just write the product name — it needs marketing appeal and purchase desire\n\n### 4.2 Subtitle\n- Core benefit (perks / efficacy / scenario) or current campaign\n- Concise and impactful\n\n### 4.3 Pricing Card\n- Split promotion into 2-3 tiers\n- Each tier: amount/benefit + conditions\n\n### 4.4 Benefits Copy\n- Usually 3 items: gift-related + authenticity guarantee + logistics/after-sales\n- ⚠️ Avoid audit-triggering words like \"authentic\" or \"guarantee\" — use \"quality\" and \"assured\" instead\n\n## V. Component List & Dimensions\n\n> ⚠️ Dimensions calibrated for `doubao-seedream-4-5-251128` minimum pixel limits\n\n| # | Component | Size | Green Screen | Notes |\n|---|-----------|------|-------------|-------|\n| 1 | Background | **1440×2560** | ❌ | C4D scene |\n| 2 | Title Banner | **3328×1109** | ✅ | Die-cut sticker |\n| 3 | Host Persona | **1440×2560** | ✅ | Bare-faced + youthful face + styled look (no product in hand) |\n| 4 | Pricing Card | **1920×1920** | ✅ | Square die-cut sticker |\n| 5 | Product Shelf | **3328×1109** | ✅ | 40+ items dense arrangement |\n| 6 | Benefits Bar | **3328×1109** | ❌ | Full-width bottom |\n\n## VI. Prompt Writing Standards\n\n### Core Principles\n- All components use a unified style prefix for color consistency\n- Must include negative constraints\n- Background uses \"pure solid green\" (not #00FF00)\n\n### 6.1 Background Prompt\n**Constraint**: No text, no people, no products.\n\n**Template**:\n```\nA C4D commercial space scene blending [style description]. The space uses [primary color] as the dominant tone, complemented by [secondary color], with [accent color] details, all balanced by [neutral color]. The spatial structure presents [structure description], creating a [atmosphere]. Lighting design [lighting description] highlights texture and depth. Materials include [materials], showcasing the charm of [style]. Modular abstract display elements are scattered throughout, such as [element 1], [element 2], and [element 3], together creating a [overall feeling] spatial experience.\n```\n\n### 6.2 Title Banner Prompt\n**Template**:\n```\nSolid uniform green background #00FF00. Center of frame is a [color] gradient die-cut horizontal card with [border texture], irregular artistic edges on all four sides. Inside the card, left side has [text area background color], large text \"[MAIN TITLE]\" in [font description], below it \"[SUBTITLE]\" in [font description]. Right side of card shows [product illustration description]. The entire card has rich deep colors with absolutely no white background areas, no green/cyan/teal. The card is a complete solid sticker with crisp sharp edges.\n```\n\n### 6.3 Host Persona Prompt\n\n> ⚠️ Core rules (v2 update):\n> 1. **Use `doubao-seedream-5-0-260128` for host persona** (other components still use `doubao-seedream-4-5-251128`)\n> 2. **Completely bare-faced, no makeup** (not \"natural nude makeup\")\n> 3. **Do NOT hold products** — hands hang naturally, slightly bent (v2 removed hand-held product)\n> 4. **Internet-celebrity youthful face with short midface**, deep watery eyes, jelly-glossy lips\n> 5. **Outfit must be pre-designed** — fully describe top + bottom (no shoes) + accessories in prompt\n> 6. **Hair color preferably black**, silky smooth, styled with possible accessories matching brand tone\n> 7. Background uses \"pure solid green\" (not #00FF00)\n\n**Template**:\n```\nPure solid green uniform background, absolutely uniform pure color with no gradients, no texture, no shadows, no light spots, no impurities. Vertical portrait, person standing facing camera, framed from top of head to mid-thigh, person centered and occupying most of the frame, top of head very close to frame top. 25-year-old beautiful young female host, completely bare-faced with no makeup, cool-toned fair skin that is clear and translucent, internet-celebrity youthful face with short midface, {eye type description}, deep watery eyes, {eye area description}, lips {lip shape description} with jelly-glossy {lip color description}, {temperament description}. Completely bare-faced, no makeup on face whatsoever, no eyeshadow, eyeliner, mascara, blush, lipstick, or foundation. Wearing {top description}, {bottom description}, {accessories description}. {hair style and color description}, {hair accessories description}. Soft even front lighting. Person standing naturally, both arms hanging naturally with slight bend, relaxed elegant posture.\n```\n\n**Face Differentiation (Must specify these dimensions each time)**:\n\n| Dimension | Description | Examples |\n|-----------|-------------|----------|\n| Face shape | Internet-celebrity youthful face, short midface (fixed) | Heart/oval/melon/square-round |\n| Eye type | Round/almond/peach-blossom/phoenix | Describe \"slightly downturned for innocent look\" or \"slightly upturned for elegance\" |\n| Eye hydration | Fixed requirement | \"Deep watery eyes, delicate translucent skin around eyes\" |\n| Lip jelly feel | Fixed requirement | \"Full pouty lips with jelly-glossy translucent shine\" / \"Thin lips natural pale pink with jelly feel\" |\n| Temperament | Sweet & approachable / cool & premium / elegant & intellectual / energetic / confident | Varies by brand |\n| Outfit | Must be pre-designed, top + bottom + accessories | No shoes |\n| Hairstyle | Must be pre-designed, primarily black + accessories | Silky smooth, refined with design sense |\n\n**Host Design Examples (v2)**:\n\nLancôme Absolue:\n```\nInternet-celebrity youthful face with short midface, round eyes slightly downturned for innocent look, deep watery eyes, delicate translucent skin around eyes, full pouty lips with jelly-glossy translucent shine, refined sweet and approachable features. Wearing white fine-knit cropped cardigan, layered over cream-white lace camisole, high-waisted light pink pleated satin midi skirt, rose-gold delicate collarbone chain on chest, rose-gold thin bracelet on left wrist, simple pearl ring on right hand. Long straight black hair silky smooth falling to below collarbone, a small pearl hair clip clipped on the right side of crown, a few wispy strands naturally framing the face.\n```\n\nHelena Rubinstein Re-Plasty:\n```\nInternet-celebrity youthful face with short midface, phoenix eyes slightly upturned, deep watery eyes with natural cool-premium feel at outer corners, thin lips natural pale pink with jelly-glossy hydration, refined cool-premium features. Wearing black high-neck slim-fit silk shirt, sleeves rolled up to elbows revealing slender wrists, black high-waisted wide-leg suit pants, a 2-carat diamond stud on left earlobe, ultra-fine silver chain bracelet on right wrist. Long straight black hair silky smooth with center part falling naturally to center of back, a minimalist black ultra-thin hairpin placed near right temple for clean structured look.\n```\n\nLa Mer:\n```\nInternet-celebrity youthful face with short midface, bright large almond eyes, deep watery eyes with warm soulful gaze, standard lips with jelly-glossy natural pink full hydration, refined soft and clear features. Wearing pearl-white silk satin loose shirt with top button undone revealing delicate collarbone, puffy bubble sleeve design, champagne high-waisted satin wide-leg trousers, ultra-fine champagne-gold necklace with small pearl pendant on neck, white jade thin bracelet on left wrist. Long curly black hair silky smooth with natural large waves falling to shoulder blades, a loose refined French braid woven from left side of crown, tiny pearl hairpins scattered through the braid.\n```\n\n### 6.4 Pricing Card Prompt\n> ⚠️ Size changed from 896×1344 to **1920×1920** (square)\n\n**Template**:\n```\nSolid uniform green background #00FF00. Center of frame is a compact vertical die-cut label sticker, entirely [dark color scheme] solid background, absolutely no white areas, no light-colored areas, no gradients to white, no green/cyan/teal. Sticker shape is rounded rectangle with arched top decoration. Top has [decorative elements]. Large text \"[HEADLINE]\" in [font description]; below divided into three tiers: \"[TIER 1]\" \"[TIER 2]\" \"[TIER 3]\". The entire sticker has rich deep solid colors with crisp sharp edges, a solid die-cut sticker. Sticker occupies about 40% of frame area, compact not sparse.\n```\n\n### 6.5 Product Shelf Prompt (⚠️ Different from original skill)\n\n> ⚠️ Key differences:\n> 1. **White matte marble display tabletop** (not pure green + white plane)\n> 2. **Layered cluster + left-right mirror + front-back progression** layout logic\n> 3. **At least 40+ individual product units** (not \"make it rich\")\n> 4. Middle core zone split into left-center-right sections, center as visual focal point\n\n**Template**:\n```\nBackground is pure solid green uniform. At the bottom of frame is a front-facing flat white premium display tabletop (white matte marble texture), completely horizontal with no tilt, occupying bottom 40% of frame height. Products arranged by layered cluster plus left-right mirror plus front-back progression logic, at least 40+ individual product units densely covering most tabletop area: [Middle core display zone split into left-center-right] Center visual focal point: {product layout description} [Overall layout requirements] All products standing upright facing the viewer. Height differences create stepped layering. Appropriate blank spacing between left/right zones and center zone for breathing room. Dense and full product arrangement, at least 40+ individual units. Nothing else besides products and white matte metal display stands, absolutely no hands, fingers, arms, or any human body parts. Even lighting. Pure still-life product display photo with no human presence whatsoever.\n```\n\n> ⚠️ Do NOT include \"leave hand-holding space at front\" in the layout — hand-held products are for the host persona image; the product shelf is pure product display.\n\n### 6.6 User Product Photo (Optional)\n\nWhen the user provides a real product photo:\n\n**a) Background removal**: Select strategy based on product photo background\n\n| Product Background | Removal Method |\n|-------------------|----------------|\n| White/light solid background | HSV threshold to remove white areas |\n| Dark solid background | HSV threshold to remove corresponding dark color |\n| Complex scene background | GrabCut or Rembg |\n\n```python\nimport cv2\nimport numpy as np\n\ndef remove_white_bg(img_path, output_path):\n    \"\"\"Remove white/light background — runs entirely locally\"\"\"\n    img = cv2.imread(img_path)\n    hsv = cv2.cvtColor(img, cv2.COLOR_BGR2HSV)\n    mask_w = cv2.inRange(hsv, np.array([0, 0, 200]), np.array([180, 30, 255]))\n    mask_g = cv2.inRange(hsv, np.array([0, 0, 160]), np.array([180, 50, 240]))\n    mask = cv2.bitwise_or(mask_w, mask_g)\n    k = cv2.getStructuringElement(cv2.MORPH_ELLIPSE, (7, 7))\n    mask = cv2.morphologyEx(mask, cv2.MORPH_CLOSE, k, iterations=5)\n    mask = cv2.morphologyEx(mask, cv2.MORPH_OPEN, k, iterations=3)\n    mask = cv2.GaussianBlur(mask, (5, 5), 0)\n    mask = (mask > 200).astype(np.uint8) * 255\n    b, g, r = cv2.split(img)\n    cv2.imwrite(output_path, cv2.merge([b, g, r, 255 - mask]))\n```\n\n**b) Product Shelf Prompt adjustment**: Leave center area blank for user's product\n\n```\nIn the product shelf prompt, change the center zone description to:\n\"Leave sufficient blank space in the center area for the main featured product\n(about 30% of center area kept clean), surrounding products arranged by\nlayered cluster plus left-right mirror plus front-back progression logic\"\n```\n\n**c) Composite overlay**: User product photo scaled and placed at center of product area\n\n```python\n# User product: scale to 25% of canvas width, center of product area\nup_target_w = int(cw * 0.25)\nups = up_target_w / user_product.width\nup_resized = user_product.resize((int(user_product.width * ups), int(user_product.height * ups)), Image.LANCZOS)\nupx = (cw - up_resized.width) // 2\nupy = pdy + int(pdr.height * 0.05)\n\n# Paste order: user product after product shelf, before title banner\ncanvas.paste(pdr, (0, pdy), pdr)\ncanvas.paste(up_resized, (upx, upy), up_resized)  # ← user product\ncanvas.paste(tr, (tx, ty), tr)\n```\n\n### 6.7 Benefits Bar Prompt\n**Template**:\n```\nSymmetrical left-right composition, eye-level view. Core elements in upper half: three simple benefit icons, with corresponding text below: \"[BENEFIT 1] / [BENEFIT 2] / [BENEFIT 3]\". Background [background description]. Style: flat design, minimalist lighting. Color: [primary color], clean and elegant.\n```\n\n## VII. Image Generation API\n\n| Item | Content |\n|------|---------|\n| Endpoint | `https://ark.cn-beijing.volces.com/api/v3/images/generations` |\n| Method | POST |\n| Content-Type | application/json |\n| **General model** | **`doubao-seedream-4-5-251128`** |\n| **Persona model** | **`doubao-seedream-5-0-260128`** (host persona component only) |\n\n> 📋 The API key is obtained from the [Volcano Engine Ark Console](https://console.volcengine.com/ark/region:ark+cn-beijing/model). Text prompts are sent to this endpoint; no images or personal data are transmitted.\n\n### Request parameters\n```json\n{\n  \"model\": \"doubao-seedream-4-5-251128\",\n  \"stream\": false,\n  \"watermark\": false,\n  \"sequential_image_generation\": \"disabled\",\n  \"prompt\": \"<prompt in Chinese>\",\n  \"size\": \"<width>x<height>\"\n}\n```\n\n### Request example\n```bash\ncurl -s \"https://ark.cn-beijing.volces.com/api/v3/images/generations\" \\\n  -H \"Content-Type: application/json\" \\\n  -H \"Authorization: Bearer $VOLCENGINE_ARK_API_KEY\" \\\n  -d '{\n    \"model\": \"doubao-seedream-4-5-251128\",\n    \"stream\": false,\n    \"watermark\": false,\n    \"sequential_image_generation\": \"disabled\",\n    \"prompt\": \"prompt content\",\n    \"size\": \"1440x2560\"\n  }'\n```\n\n> 📋 The API key is read from the environment variable `VOLCENGINE_ARK_API_KEY`. Text prompts are sent to this endpoint; no images or personal data are transmitted.\n\n## VIII. Green Screen Removal\n\nExecute green screen removal on components 2 (Title Banner), 3 (Host Persona), 4 (Pricing Card), and 5 (Product Shelf).\n\n> 🔒 This processing runs **entirely locally** — no data leaves the machine.\n\n```python\nimport cv2\nimport numpy as np\n\ndef remove_green(img_path, output_path):\n    img = cv2.imread(img_path)\n    hsv = cv2.cvtColor(img, cv2.COLOR_BGR2HSV)\n    mask1 = cv2.inRange(hsv, np.array([35, 80, 80]), np.array([85, 255, 255]))\n    mask2 = cv2.inRange(hsv, np.array([30, 40, 120]), np.array([90, 255, 255]))\n    mask = cv2.bitwise_or(mask1, mask2)\n    k = cv2.getStructuringElement(cv2.MORPH_ELLIPSE, (5, 5))\n    mask = cv2.morphologyEx(mask, cv2.MORPH_CLOSE, k, iterations=3)\n    mask = cv2.morphologyEx(mask, cv2.MORPH_OPEN, k, iterations=2)\n    mask = cv2.GaussianBlur(mask, (3, 3), 0)\n    mask = (mask > 127).astype(np.uint8) * 255\n    b, g, r = cv2.split(img)\n    rgba = cv2.merge([b, g, r, 255 - mask])\n    cv2.imwrite(output_path, rgba)\n```\n\n## IX. Composite Preview\n\n> ⚠️ Layout parameters differ from original skill\n> 🔒 All compositing runs **entirely locally** — no data leaves the machine.\n\n### Layout Parameters\n\n```python\nlayout = {\n    \"title\":   {\"scale\": 0.95, \"pos\": \"center-top\", \"y_pct\": 0.07},\n    \"person\":  {\"scale\": 0.70, \"pos\": \"left\", \"x_pct\": 0.15, \"y_pct\": 0.14},\n    \"promo\":   {\"scale\": 0.40, \"pos\": \"right\", \"x_pct\": 0.55, \"y_pct\": 0.22},\n    \"product\": {\"zoom\": 1.2,  \"pos\": \"bottom-full\", \"above\": \"benefit\"},\n    \"benefit\": {\"scale\": 1.0,  \"pos\": \"bottom-full\"},\n}\n```\n\n### Composite Code\n\n```python\nfrom PIL import Image\n\ndef compose_preview(bg_path, person_nobg, title_nobg, promo_nobg, product_nobg, benefit_path, output_path):\n    bg = Image.open(bg_path).convert(\"RGBA\")\n    cw, ch = bg.size\n\n    def fit(img, w_ratio, center=True):\n        w = int(cw * w_ratio)\n        s = w / img.width\n        r = img.resize((w, int(img.height * s)), Image.LANCZOS)\n        x = (cw - w) // 2 if center else cw - w\n        return r, x\n\n    def fit_full(img):\n        s = cw / img.width\n        return img.resize((cw, int(img.height * s)), Image.LANCZOS)\n\n    def zoom_crop(img, zoom):\n        w = int(cw * zoom)\n        s = w / img.width\n        h = int(img.height * s)\n        r = img.resize((w, h), Image.LANCZOS)\n        cx = (w - cw) // 2\n        return r.crop((cx, 0, cx + cw, h))\n\n    title = Image.open(title_nobg).convert(\"RGBA\")\n    person = Image.open(person_nobg).convert(\"RGBA\")\n    promo = Image.open(promo_nobg).convert(\"RGBA\")\n    product = Image.open(product_nobg).convert(\"RGBA\")\n    benefit = Image.open(benefit_path).convert(\"RGBA\")\n\n    tr, tx = fit(title, 0.95); ty = int(ch * 0.07)\n    prr, prx = fit(promo, 0.40, center=False); prx = int(cw * 0.55); pry = int(ch * 0.22)\n    per, perx = fit(person, 0.70); perx = int(cw * 0.15); pery = int(ch * 0.14)\n    pdr = zoom_crop(product, 1.2); pdy = ch - fit_full(benefit).height - pdr.height\n    bfr = fit_full(benefit); bfy = ch - bfr.height\n\n    # Layer order: background → pricing card → host → product shelf → title banner → benefits bar\n    # To place title behind host, move tr paste before per paste\n    canvas = bg.copy()\n    canvas.paste(prr, (prx, pry), prr)\n    canvas.paste(per, (perx, pery), per)\n    canvas.paste(pdr, (0, pdy), pdr)\n    canvas.paste(tr, (tx, ty), tr)\n    canvas.paste(bfr, (0, bfy), bfr)\n\n    canvas.convert(\"RGB\").save(output_path, \"JPEG\", quality=95)\n```\n\n### Post-processing: Host Brightness Boost\n\nBoost the host layer brightness before compositing to prevent dark appearance:\n\n```python\nfrom PIL import ImageEnhance\n\n# Boost host layer by 17% before compositing\nperson_bright = ImageEnhance.Brightness(person).enhance(1.17)\n# Use person_bright instead of person in compositing\n```\n\n> ⚠️ Only boost the host layer (17%). Do NOT touch other layers. The delivered 人物.png should also use the boosted version.\n\n## X. Delivery & Packaging\n\n### Deliverables (Fixed 7 files)\n\n| Filename | Format | Notes |\n|----------|--------|-------|\n| 背景.png | PNG 1440×2560 | Full-bleed |\n| 标题横卡.png | PNG 1440×2560 transparent | Content at preview position |\n| 人物.png | PNG 1440×2560 transparent | Brightness boosted (don't label \"boosted\") |\n| 促销竖卡.png | PNG 1440×2560 transparent | Content at preview position |\n| 桌面商品贴.png | PNG 1440×2560 transparent | Content at preview position |\n| 权益下贴.png | PNG 1440×2560 transparent | Content at preview position |\n| 预览.jpg | JPG 1440×2560 | Composite preview |\n\nIf a user product photo is provided, it will be composited into the center of the product shelf — not delivered separately.\n\n### Delivery Methods (Auto-select based on channel)\n\n**Method 1: Send in chat (when channel supports file sending)**\n1. Send preview image (`预览.jpg`) to chat first\n2. Send zip archive (named `{Brand}_livestream_overlays.zip`, containing all 7 files)\n\n```bash\ncd output/\nzip -j \"../{Brand}_livestream_overlays.zip\" 背景.png 标题横卡.png 人物.png 促销竖卡.png 桌面商品贴.png 权益下贴.png 预览.jpg\n```\n\n**Method 2: Desktop folder (when channel doesn't support file sending)**\n1. Create folder on user's desktop named `{Brand}_overlays`\n2. Put only the 7 files inside — no intermediate files, no zip\n3. Use `open` command to show the preview image\n4. Use `open` command to open the folder\n\n> ⚠️ Note: webchat (Control UI) does not support file sending — use Method 2. Feishu, WeChat etc. use Method 1.\n\n## XI. Complete Workflow\n\n```\n1. Collect requirements (brand, promotion, optional: user product photo)\n2. Analyze brand style → determine color palette\n3. Design host appearance (youthful face + watery eyes + jelly lips + outfit + hairstyle + accessories)\n4. Auto-generate missing copy\n5. Write prompts for all 6 components (host uses v2 template, no hand-held products)\n   - If user product photo: leave center blank in product shelf prompt\n6. General components → doubao-seedream-4-5-251128, host → doubao-seedream-5-0-260128\n7. Green screen removal on components 2/3/4/5\n8. Boost host layer brightness by 17% (ImageEnhance.Brightness 1.17)\n9. [Optional] Remove background from user product photo (white/light bg → HSV threshold)\n10. Composite preview (use boosted host, user product overlaid at center of product area)\n11. Package and deliver\n```\n\nFile v1.0.12:_meta.json\n\n{\n  \"ownerId\": \"kn72d297ct1e0cjjbnarj42ag9841d6c\",\n  \"slug\": \"ecommerce-livestream-overlay-generator\",\n  \"version\": \"1.0.12\",\n  \"publishedAt\": 1777368580891\n}\n\nArchive v1.0.11: 2 files, 10986 bytes\n\nFiles: SKILL.md (26746b), _meta.json (158b)\n\nFile v1.0.11:SKILL.md\n\n---\nname: ecommerce-livestream-overlay-generator\ndescription: >\n  电商直播贴片自动生成 / E-commerce livestream overlay generator.\n  输入品牌、产品、促销信息或产品照片，自动生成完整直播视觉包装：\n  背景、标题栏、主播形象、价格卡、产品货架、福利条。\n  支持绿幕抠图、自动合成预览、打包交付。\n  Generate a complete livestream visual package: background, title banner,\n  host persona, pricing card, product shelf, and benefits bar.\n  Supports green screen removal, auto-composite preview, and packaged delivery.\nhomepage: https://github.com/gaoyuji12138/e-commerce-livestream-overlay-skill\nuser-invocable: true\nmetadata: '{\"openclaw\":{\"emoji\":\"🎨\",\"primaryEnv\":\"VOLCENGINE_ARK_API_KEY\",\"requires\":{\"env\":[\"VOLCENGINE_ARK_API_KEY\"],\"bins\":[\"python3\",\"pip3\"]}}}'\n---\n\n# E-Commerce Livestream Overlay Generator Skill\n\n## I. Prerequisites\n\n### Dependencies\n- Python 3 + Pillow + opencv-python-headless + numpy\n\n### Environment Variables\n\n- `VOLCENGINE_ARK_API_KEY` - Volcano Engine (Doubao) Ark API Key（必填）\n\n**获取方式**：\n1. 登录 [火山引擎控制台](https://console.volcengine.com/ark/region:ark+cn-beijing/model)\n2. 进入 Ark 模型平台，启用以下模型：\n   - `doubao-seedream-4-5-251128`（通用组件）\n   - `doubao-seedream-5-0-260128`（主播人像组件）\n3. 在控制台凭证页面创建 API Key\n\n> **每个用户需要自己的 API Key**：使用时从环境变量 `VOLCENGINE_ARK_API_KEY` 读取。\n\n### Install dependencies\n```bash\npip3 install Pillow==12.2.0 opencv-python-headless==4.13.0 numpy==2.3.2\n```\n\n## II. Data Privacy & Transparency\n\nThis skill sends **text prompts** and **optionally user-supplied product photos** to the Volcano Engine (Doubao) image generation API. All subsequent processing (green screen removal, compositing, packaging) runs **entirely locally**.\n\n| What is sent | Where | Purpose |\n|-------------|-------|---------|\n| Text prompts (brand/product/style descriptions) | `https://ark.cn-beijing.volces.com/api/v3/images/generations` | Generate overlay component images (background, title, host persona, pricing card, product shelf, benefits bar) |\n| User-supplied product photos (optional) | `https://ark.cn-beijing.volces.com/api/v3/images/generations` | Used as reference image input for product shelf generation |\n\n**Data handling details:**\n- **Text prompts** and **user product photos** (when provided) are sent to the Volcano Engine API endpoint listed above. No data is forwarded to any other third party.\n- **Generated images** are returned from the API and saved locally. They are not re-uploaded anywhere.\n- **All post-processing** (green screen removal, compositing, brightness adjustment, packaging) runs **entirely locally** on the user's machine using Python (OpenCV + Pillow).\n\n**What this skill does NOT do:**\n- ❌ Store, log, or cache user input data (text prompts, product photos) locally or remotely\n- ❌ Forward data to any third party beyond the Volcano Engine API\n- ❌ Make purchases, handle payments, or interact with any financial services\n- ❌ Perform any cryptocurrency or blockchain operations\n\n> Generated images returned from the API are saved to the local output directory for your use.\n\n> ⚠️ User product photos and text prompts are sent to Volcano Engine's API. Please review [Volcano Engine's privacy policy](https://www.volcengine.com/docs/6369/71845) before uploading sensitive or proprietary product images.\n\n## III. Requirement Confirmation (Must Complete Before Generation)\n\n> ⚠️ Upon receiving a generation request, do NOT start generating images immediately. Confirm the following info first to ensure one-pass success.\n\n### 3.1 Required Information\n\n| Info | Description | Required |\n|------|-------------|----------|\n| Brand | e.g. Dyson, Moutai, Three Squirrels | ✅ |\n| Featured Product | Specific product name and model | ✅ |\n| Promotion | Discounts, gifts, loyalty points, etc. | ✅ |\n| Style Preference | Special requirements (color, mood, tone) | ❌ |\n\n### 3.2 Confirmation Flow\n\n1. **User provides complete info** → Summarize understanding, ask user to confirm, then start\n2. **User info is incomplete** → Only ask for missing required fields, auto-infer the rest\n3. **User sends a product photo with no text** → AI agent identifies the product using its built-in vision capability, infers brand & category, summarizes and asks user to confirm\n4. **User says \"use the example\"** → Generate directly using the Dyson example below\n\n### 3.3 Confirmation Example Reply\n\n```\nLet me confirm the requirements:\n\n📋 **Brand**: Dyson\n📋 **Featured Product**: Dyson Supersonic HD16 Hair Dryer + Airwrap Multi-Styler\n📋 **Promotion**: ¥300 off every ¥3,000 spent\n📋 **Gift**: Free 2 styling nozzle attachments with hair dryer purchase\n📋 **Packaging**: Livestream-exclusive gift box\n📋 **Style**: Tech-luxury (inferred from Dyson brand)\n\nHere's my copy design:\n- Main title: \"Dyson · Salon-Grade Styling\"\n- Subtitle: \"Limited Edition · Luxe Experience\"\n- Pricing card: \"¥300 off ¥3,000+ / Free styling nozzles with hair dryer / Exclusive gift box\"\n- Benefits: \"2-year warranty / Free shipping / Premium gift packaging\"\n\nIf this looks good I'll start generating. Let me know if you want any changes 👇\n```\n\n### 3.4 Example Requirement (Show Proactively on First Trigger)\n\n> When receiving a generation request, proactively show the example below so the user can follow it or ask to use it directly.\n\n**Example requirement:**\n> Generate a full Dyson livestream overlay set. Featured products: Dyson Supersonic HD16 Hair Dryer and Airwrap Multi-Styler. Free 2 styling nozzle attachments with hair dryer purchase. ¥300 off every ¥3,000 spent. Livestream-exclusive gift box.\n\n**First reply template:**\n```\nYou can just tell me your brand and promo info, like:\n\n> Generate a full Dyson livestream overlay set. Featured products: Dyson Supersonic HD16 Hair Dryer and Airwrap Multi-Styler. Free 2 styling nozzle attachments with hair dryer purchase. ¥300 off every ¥3,000 spent. Livestream-exclusive gift box.\n\nOr just say \"use the Dyson example\" and I'll generate with that spec.\n\nWhat's your requirement?\n```\n\n**Minimum needed**: Brand + Featured Product + Promotion (3 core fields)\n**Copy, style, host design, benefits** are all auto-generated by AI. User can optionally modify.\n\n## IV. Auto Copywriting Rules\n\n### 4.1 Main Title\n- Must include brand name with atmospheric feel\n- **NEVER use** \"official\" or \"flagship\" or similar words\n- Don't just write the product name — it needs marketing appeal and purchase desire\n\n### 4.2 Subtitle\n- Core benefit (perks / efficacy / scenario) or current campaign\n- Concise and impactful\n\n### 4.3 Pricing Card\n- Split promotion into 2-3 tiers\n- Each tier: amount/benefit + conditions\n\n### 4.4 Benefits Copy\n- Usually 3 items: gift-related + authenticity guarantee + logistics/after-sales\n- ⚠️ Avoid audit-triggering words like \"authentic\" or \"guarantee\" — use \"quality\" and \"assured\" instead\n\n## V. Component List & Dimensions\n\n> ⚠️ Dimensions calibrated for `doubao-seedream-4-5-251128` minimum pixel limits\n\n| # | Component | Size | Green Screen | Notes |\n|---|-----------|------|-------------|-------|\n| 1 | Background | **1440×2560** | ❌ | C4D scene |\n| 2 | Title Banner | **3328×1109** | ✅ | Die-cut sticker |\n| 3 | Host Persona | **1440×2560** | ✅ | Bare-faced + youthful face + styled look (no product in hand) |\n| 4 | Pricing Card | **1920×1920** | ✅ | Square die-cut sticker |\n| 5 | Product Shelf | **3328×1109** | ✅ | 40+ items dense arrangement |\n| 6 | Benefits Bar | **3328×1109** | ❌ | Full-width bottom |\n\n## VI. Prompt Writing Standards\n\n### Core Principles\n- All components use a unified style prefix for color consistency\n- Must include negative constraints\n- Background uses \"pure solid green\" (not #00FF00)\n\n### 6.1 Background Prompt\n**Constraint**: No text, no people, no products.\n\n**Template**:\n```\nA C4D commercial space scene blending [style description]. The space uses [primary color] as the dominant tone, complemented by [secondary color], with [accent color] details, all balanced by [neutral color]. The spatial structure presents [structure description], creating a [atmosphere]. Lighting design [lighting description] highlights texture and depth. Materials include [materials], showcasing the charm of [style]. Modular abstract display elements are scattered throughout, such as [element 1], [element 2], and [element 3], together creating a [overall feeling] spatial experience.\n```\n\n### 6.2 Title Banner Prompt\n**Template**:\n```\nSolid uniform green background #00FF00. Center of frame is a [color] gradient die-cut horizontal card with [border texture], irregular artistic edges on all four sides. Inside the card, left side has [text area background color], large text \"[MAIN TITLE]\" in [font description], below it \"[SUBTITLE]\" in [font description]. Right side of card shows [product illustration description]. The entire card has rich deep colors with absolutely no white background areas, no green/cyan/teal. The card is a complete solid sticker with crisp sharp edges.\n```\n\n### 6.3 Host Persona Prompt\n\n> ⚠️ Core rules (v2 update):\n> 1. **Use `doubao-seedream-5-0-260128` for host persona** (other components still use `doubao-seedream-4-5-251128`)\n> 2. **Completely bare-faced, no makeup** (not \"natural nude makeup\")\n> 3. **Do NOT hold products** — hands hang naturally, slightly bent (v2 removed hand-held product)\n> 4. **Internet-celebrity youthful face with short midface**, deep watery eyes, jelly-glossy lips\n> 5. **Outfit must be pre-designed** — fully describe top + bottom (no shoes) + accessories in prompt\n> 6. **Hair color preferably black**, silky smooth, styled with possible accessories matching brand tone\n> 7. Background uses \"pure solid green\" (not #00FF00)\n\n**Template**:\n```\nPure solid green uniform background, absolutely uniform pure color with no gradients, no texture, no shadows, no light spots, no impurities. Vertical portrait, person standing facing camera, framed from top of head to mid-thigh, person centered and occupying most of the frame, top of head very close to frame top. 25-year-old beautiful young female host, completely bare-faced with no makeup, cool-toned fair skin that is clear and translucent, internet-celebrity youthful face with short midface, {eye type description}, deep watery eyes, {eye area description}, lips {lip shape description} with jelly-glossy {lip color description}, {temperament description}. Completely bare-faced, no makeup on face whatsoever, no eyeshadow, eyeliner, mascara, blush, lipstick, or foundation. Wearing {top description}, {bottom description}, {accessories description}. {hair style and color description}, {hair accessories description}. Soft even front lighting. Person standing naturally, both arms hanging naturally with slight bend, relaxed elegant posture.\n```\n\n**Face Differentiation (Must specify these dimensions each time)**:\n\n| Dimension | Description | Examples |\n|-----------|-------------|----------|\n| Face shape | Internet-celebrity youthful face, short midface (fixed) | Heart/oval/melon/square-round |\n| Eye type | Round/almond/peach-blossom/phoenix | Describe \"slightly downturned for innocent look\" or \"slightly upturned for elegance\" |\n| Eye hydration | Fixed requirement | \"Deep watery eyes, delicate translucent skin around eyes\" |\n| Lip jelly feel | Fixed requirement | \"Full pouty lips with jelly-glossy translucent shine\" / \"Thin lips natural pale pink with jelly feel\" |\n| Temperament | Sweet & approachable / cool & premium / elegant & intellectual / energetic / confident | Varies by brand |\n| Outfit | Must be pre-designed, top + bottom + accessories | No shoes |\n| Hairstyle | Must be pre-designed, primarily black + accessories | Silky smooth, refined with design sense |\n\n**Host Design Examples (v2)**:\n\nLancôme Absolue:\n```\nInternet-celebrity youthful face with short midface, round eyes slightly downturned for innocent look, deep watery eyes, delicate translucent skin around eyes, full pouty lips with jelly-glossy translucent shine, refined sweet and approachable features. Wearing white fine-knit cropped cardigan, layered over cream-white lace camisole, high-waisted light pink pleated satin midi skirt, rose-gold delicate collarbone chain on chest, rose-gold thin bracelet on left wrist, simple pearl ring on right hand. Long straight black hair silky smooth falling to below collarbone, a small pearl hair clip clipped on the right side of crown, a few wispy strands naturally framing the face.\n```\n\nHelena Rubinstein Re-Plasty:\n```\nInternet-celebrity youthful face with short midface, phoenix eyes slightly upturned, deep watery eyes with natural cool-premium feel at outer corners, thin lips natural pale pink with jelly-glossy hydration, refined cool-premium features. Wearing black high-neck slim-fit silk shirt, sleeves rolled up to elbows revealing slender wrists, black high-waisted wide-leg suit pants, a 2-carat diamond stud on left earlobe, ultra-fine silver chain bracelet on right wrist. Long straight black hair silky smooth with center part falling naturally to center of back, a minimalist black ultra-thin hairpin placed near right temple for clean structured look.\n```\n\nLa Mer:\n```\nInternet-celebrity youthful face with short midface, bright large almond eyes, deep watery eyes with warm soulful gaze, standard lips with jelly-glossy natural pink full hydration, refined soft and clear features. Wearing pearl-white silk satin loose shirt with top button undone revealing delicate collarbone, puffy bubble sleeve design, champagne high-waisted satin wide-leg trousers, ultra-fine champagne-gold necklace with small pearl pendant on neck, white jade thin bracelet on left wrist. Long curly black hair silky smooth with natural large waves falling to shoulder blades, a loose refined French braid woven from left side of crown, tiny pearl hairpins scattered through the braid.\n```\n\n### 6.4 Pricing Card Prompt\n> ⚠️ Size changed from 896×1344 to **1920×1920** (square)\n\n**Template**:\n```\nSolid uniform green background #00FF00. Center of frame is a compact vertical die-cut label sticker, entirely [dark color scheme] solid background, absolutely no white areas, no light-colored areas, no gradients to white, no green/cyan/teal. Sticker shape is rounded rectangle with arched top decoration. Top has [decorative elements]. Large text \"[HEADLINE]\" in [font description]; below divided into three tiers: \"[TIER 1]\" \"[TIER 2]\" \"[TIER 3]\". The entire sticker has rich deep solid colors with crisp sharp edges, a solid die-cut sticker. Sticker occupies about 40% of frame area, compact not sparse.\n```\n\n### 6.5 Product Shelf Prompt (⚠️ Different from original skill)\n\n> ⚠️ Key differences:\n> 1. **White matte marble display tabletop** (not pure green + white plane)\n> 2. **Layered cluster + left-right mirror + front-back progression** layout logic\n> 3. **At least 40+ individual product units** (not \"make it rich\")\n> 4. Middle core zone split into left-center-right sections, center as visual focal point\n\n**Template**:\n```\nBackground is pure solid green uniform. At the bottom of frame is a front-facing flat white premium display tabletop (white matte marble texture), completely horizontal with no tilt, occupying bottom 40% of frame height. Products arranged by layered cluster plus left-right mirror plus front-back progression logic, at least 40+ individual product units densely covering most tabletop area: [Middle core display zone split into left-center-right] Center visual focal point: {product layout description} [Overall layout requirements] All products standing upright facing the viewer. Height differences create stepped layering. Appropriate blank spacing between left/right zones and center zone for breathing room. Dense and full product arrangement, at least 40+ individual units. Nothing else besides products and white matte metal display stands, absolutely no hands, fingers, arms, or any human body parts. Even lighting. Pure still-life product display photo with no human presence whatsoever.\n```\n\n> ⚠️ Do NOT include \"leave hand-holding space at front\" in the layout — hand-held products are for the host persona image; the product shelf is pure product display.\n\n### 6.6 User Product Photo (Optional)\n\nWhen the user provides a real product photo:\n\n**a) Background removal**: Select strategy based on product photo background\n\n| Product Background | Removal Method |\n|-------------------|----------------|\n| White/light solid background | HSV threshold to remove white areas |\n| Dark solid background | HSV threshold to remove corresponding dark color |\n| Complex scene background | GrabCut or Rembg |\n\n```python\nimport cv2\nimport numpy as np\n\ndef remove_white_bg(img_path, output_path):\n    \"\"\"Remove white/light background — runs entirely locally\"\"\"\n    img = cv2.imread(img_path)\n    hsv = cv2.cvtColor(img, cv2.COLOR_BGR2HSV)\n    mask_w = cv2.inRange(hsv, np.array([0, 0, 200]), np.array([180, 30, 255]))\n    mask_g = cv2.inRange(hsv, np.array([0, 0, 160]), np.array([180, 50, 240]))\n    mask = cv2.bitwise_or(mask_w, mask_g)\n    k = cv2.getStructuringElement(cv2.MORPH_ELLIPSE, (7, 7))\n    mask = cv2.morphologyEx(mask, cv2.MORPH_CLOSE, k, iterations=5)\n    mask = cv2.morphologyEx(mask, cv2.MORPH_OPEN, k, iterations=3)\n    mask = cv2.GaussianBlur(mask, (5, 5), 0)\n    mask = (mask > 200).astype(np.uint8) * 255\n    b, g, r = cv2.split(img)\n    cv2.imwrite(output_path, cv2.merge([b, g, r, 255 - mask]))\n```\n\n**b) Product Shelf Prompt adjustment**: Leave center area blank for user's product\n\n```\nIn the product shelf prompt, change the center zone description to:\n\"Leave sufficient blank space in the center area for the main featured product\n(about 30% of center area kept clean), surrounding products arranged by\nlayered cluster plus left-right mirror plus front-back progression logic\"\n```\n\n**c) Composite overlay**: User product photo scaled and placed at center of product area\n\n```python\n# User product: scale to 25% of canvas width, center of product area\nup_target_w = int(cw * 0.25)\nups = up_target_w / user_product.width\nup_resized = user_product.resize((int(user_product.width * ups), int(user_product.height * ups)), Image.LANCZOS)\nupx = (cw - up_resized.width) // 2\nupy = pdy + int(pdr.height * 0.05)\n\n# Paste order: user product after product shelf, before title banner\ncanvas.paste(pdr, (0, pdy), pdr)\ncanvas.paste(up_resized, (upx, upy), up_resized)  # ← user product\ncanvas.paste(tr, (tx, ty), tr)\n```\n\n### 6.7 Benefits Bar Prompt\n**Template**:\n```\nSymmetrical left-right composition, eye-level view. Core elements in upper half: three simple benefit icons, with corresponding text below: \"[BENEFIT 1] / [BENEFIT 2] / [BENEFIT 3]\". Background [background description]. Style: flat design, minimalist lighting. Color: [primary color], clean and elegant.\n```\n\n## VII. Image Generation API\n\n| Item | Content |\n|------|---------|\n| Endpoint | `https://ark.cn-beijing.volces.com/api/v3/images/generations` |\n| Method | POST |\n| Content-Type | application/json |\n| **General model** | **`doubao-seedr\n\nArchive v1.0.10: 2 files, 10986 bytes\n\nFiles: SKILL.md (26746b), _meta.json (158b)\n\nArchive v1.0.9: 2 files, 10985 bytes\n\nFiles: SKILL.md (26746b), _meta.json (157b)\n\nArchive v1.0.8: 2 files, 10825 bytes\n\nFiles: SKILL.md (26589b), _meta.json (157b)\n\nArchive v1.0.7: 2 files, 10739 bytes\n\nFiles: SKILL.md (26428b), _meta.json (157b)\n\nArchive v1.0.6: 2 files, 10654 bytes\n\nFiles: SKILL.md (26210b), _meta.json (157b)\n\nArchive v1.0.5: 2 files, 10549 bytes\n\nFiles: SKILL.md (25967b), _meta.json (157b)","readmeExcerpt":"Skill: 电商直播贴片生成器 / Ecommerce Livestream Overlay Generator Owner: gaoyuji12138 Summary: 电商直播贴片生成器 / 电商直播视觉包装工具。 适用于淘宝直播、抖音直播带货、拼多多直播、快手直播等电商直播场景。 输入品牌、产品、促销信息或产品照片，自动生成完整电商直播视觉包装： 背景、标题栏、主播形象、价格卡、产品货架、福利条、促销贴片。 支持绿幕抠图、自动合成预览、打包交付。 E-commerce liv... Tags: AI image generation:1.0.0, commerce graphics:1.0.0, douyin:2.0.0, ecommerce:2.0.0, ecommerce livestream overlay:1.0.0, green screen removal:1.0.0, image-generation:2.","codeSnippets":[],"executableExamples":[{"language":"bash","snippet":"pip3 install Pillow==12.2.0 opencv-python-headless==4.13.0 numpy==2.3.2"},{"language":"text","snippet":"你可以直接告诉我你的品牌和促销信息，比如：\n\n> 做一套戴森吹风机直播间贴片，主品是戴森Supersonic HD16吹风机和Airwrap多功能美发棒，买吹风机送两支造型风嘴，满3000减300，直播间限定礼盒包装\n\n也可以直接说「按戴森案例来」，我就直接用这个需求生成。\n\n你的需求是什么？"},{"language":"text","snippet":"融合[风格描述]的C4D商业空间场景。[主色调]为主色调，[辅助色]辅助，[点缀色]点缀，[中性色]平衡。空间结构[结构描述]，[氛围]氛围。灯光[灯光描述]，突显质感与层次。材质[材质]，展现[风格]魅力。布局上[元素1]、[元素2]、[元素3]等抽象展示元素散落，营造[整体感受]空间体验。"},{"language":"text","snippet":"纯色均匀绿色背景#00FF00。画面正中是一个[颜色]渐变的异形横条卡片，卡片有[边框质感]，四边是不规则的艺术形状。卡片内部左侧[文字区域底色]，大字「[主标题]」用[字体描述]，下方「[副标题]」用[字体描述]。卡片右侧是[产品插画描述]。整个卡片颜色浓郁厚重，绝对没有白色底色区域，不要任何绿色青色蓝绿色。卡片是一个完整的实体贴纸，边界清晰。"},{"language":"text","snippet":"纯色均匀绿色背景（无渐变无纹理）。竖版人像，头顶到大腿中段，人物居中占满画面。25岁年轻女主播，完全素颜，冷白皮，网红幼态脸短中庭，{眼型描述}，眼部深邃有水润感，{眼周描述}，唇部{唇型描述}有果冻感水润{唇色描述}，{气质描述}。面部无任何妆容。身穿{上衣描述}，下身{下装描述}，{配饰描述}。{发型发色描述}，{发型配饰描述}。正面柔和灯光，双手自然下垂微曲。"},{"language":"text","snippet":"网红幼态脸短中庭，眼型圆眼微微下垂显无辜感，眼部轮廓深邃有水润感，眼周皮肤细腻透亮，唇部饱满嘟嘟唇有果冻感水润透亮，五官精致甜美亲和。身穿白色细针织短款开衫，内搭米白色蕾丝吊带，下身穿高腰浅粉色百褶缎面半裙，胸前戴一条玫瑰金细锁骨链，左手腕戴一只玫瑰金细手镯，右手戴一枚简约珍珠戒指。黑色长直发柔顺有光泽披落至锁骨下方，头顶偏右侧夹一个珍珠小发夹，几缕碎发自然垂落在脸颊两侧修饰脸型。"}],"parameters":null,"dependencies":[],"permissions":[],"extractedFiles":[{"path":"SKILL.md","content":"---\nname: ecommerce-livestream-overlay-generator\ndescription: >\n  电商直播贴片生成器 / 电商直播视觉包装工具。\n  适用于淘宝直播、抖音直播带货、拼多多直播、快手直播等电商直播场景。\n  输入品牌、产品、促销信息或产品照片，自动生成完整电商直播视觉包装：\n  背景、标题栏、主播形象、价格卡、产品货架、福利条、促销贴片。\n  支持绿幕抠图、自动合成预览、打包交付。\n  E-commerce livestream overlay generator for Taobao, Douyin, PDD, Kuaishou streaming.\n  Generate background, title banner, host persona, pricing card, product shelf, benefits bar.\n  Supports green screen removal, auto-composite preview, and packaged delivery.\nhomepage: https://github.com/gaoyuji12138/e-commerce-livestream-overlay-skill\nuser-invocable: true\nmetadata: '{\"openclaw\":{\"emoji\":\"🎨\",\"primaryEnv\":\"VOLCENGINE_ARK_API_KEY\",\"requires\":{\"env\":[\"VOLCENGINE_ARK_API_KEY\"],\"bins\":[\"python3\",\"pip3\"]}}}'\n---\n\n# 直播间装修贴片生成 Skill\n\n## 一、前置条件\n\n### 依赖\n- Python 3 + Pillow + opencv-python-headless + numpy\n- 火山方舟 API Key\n\n### API Key 获取\n\n1. 前往 [火山引擎控制台](https://console.volcengine.com/ark) 注册并登录\n2. 在「模型推理」页面开通豆包视觉模型\n3. 在控制台凭证页面创建 API Key\n\n> **每个用户需要自己的 API Key**：使用时从环境变量 `VOLCENGINE_ARK_API_KEY` 读取。\n\n### 安装依赖\n```bash\npip3 install Pillow==12.2.0 opencv-python-headless==4.13.0 numpy==2.3.2\n```\n\n## 二、数据隐私与透明度\n\n### 数据流向\n\n| 数据类型 | 发送目标 | 用途 | 是否持久化 |\n|----------|----------|------|-----------|\n| 文本 Prompt（品牌/促销文案等） | 火山引擎 API | 图像生成请求 | ❌ 仅传输，不存储 |\n| 用户产品照片 | 火山引擎 API | 作为图像生成参考输入 | ❌ 仅传输，不存储 |\n| 生成的图片 | 本地磁盘 | 交付给用户 | ✅ 保存到本地输出目录 |\n\n> **AI 内置视觉能力**：当用户仅提供产品照片未附文字说明时，由 AI Agent 内置视觉能力识别图中商品信息（本地运行），无需额外 API 调用。\n\n**本 Skill 不会做的事：**\n- ❌ 在本地或远程存储、记录或缓存用户输入数据（文本 Prompt、产品照片）\n- ❌ 将数据转发到火山引擎以外的任何第三方\n- ❌ 进行任何购买、支付或金融操作\n- ❌ 进行任何加密货币或区块链操作\n\n> ⚠️ 用户产品照片和文本 Prompt 会发送至火山引擎 API。上传敏感或专有产品图片前，请阅读[火山引擎隐私政策](https://www.volcengine.com/docs/6369/71845)。API 返回的生成图片会保存到本地输出目录。\n\n## 三、需求确认（正式生成前必须执行）\n\n> ⚠️ 收到用户生成请求后，不要立即开始生成图片。先确认以下信息，确保一次性出图到位。\n\n### 2.1 必须确认的信息\n\n| 信息 | 说明 | 必填 |\n|------|------|------|\n| 品牌 | 如 戴森、茅台、三只松鼠等 | ✅ |\n| 主推商品 | 具体品名和型号 | ✅ |\n| 促销活动 | 满减、买赠、积分兑换等具体内容 | ✅ |\n| 风格偏好 | 如有特殊要求（颜色、氛围、调性） | ❌ |\n\n### 2.2 确认流程\n\n1. **用户已提供完整信息** → 列出理解的需求摘要，请用户确认后直接开始\n2. **用户信息不完整** → 只追问缺失的必要信息，其他自动推导\n3. **用户只发了商品图片没文字** → 识别图中商品，推测品牌和品类，列出理解的需求摘要请用户确认\n4. **用户说\"按案例来\"/\"照着做\"** → 直接用下方案例的需求生成\n\n\n\n### 2.4 需求描述案例（首次触发时主动展示）\n\n> 收到用户的生成请求后，主动展示以下案例，让用户可以照着描述或直接要求按案例生成。\n\n**示例需求描述**：\n> 做一套戴森吹风机直播间贴片，主品是戴森Supersonic HD16吹风机和Airwrap多功能美发棒，买吹风机送两支造型风嘴，满3000减300，直播间限定礼盒包装\n\n**首次回复模板**：\n```\n你可以直接告诉我你的品牌和促销信息，比如：\n\n> 做一套戴森吹风机直播间贴片，主品是戴森Supersonic HD16吹风机和Airwrap多功能美发棒，买吹风机送两支造型风嘴，满3000减300，直播间限定礼盒包装\n\n也可以直接说「按戴森案例来」，我就直接用这个需求生成。\n\n你的需求是什么？\n```\n\n**最低限度只需提供**：品牌 + 主推商品 + 促销活动（三个核心信息）\n**文案、风格色调、人物造型、权益**均由 AI 自动推导生成，用户可选择性修改。\n\n## 四、文案自动生成规则\n\n### 3.1 主标题\n- 必须含品牌名并具有氛围感\n- **禁用**\"官方\"\"旗舰\"等字样\n- 不能直接写商品名，要有宣传感和下单欲望\n\n### 3.2 副标题\n- 核心利益点（福利/功效/场景）或正在进行的活动\n- 简洁有力\n\n### 3.3 促销竖卡\n- 根据促销活动拆分为 2-3 层\n- 每层包含：金额/权益 + 使用条件\n\n### 3.4 权益文案\n- 通常 3 个：赠品相关 + 正品保障 + 物流/售后\n- ⚠️ 避免使用\"正品\"\"保障\"等触发审核的词，替换为\"品质\"\"保证\"\n\n## 五、组件清单与尺寸\n\n> ⚠️ 尺寸已根据 `doubao-seedream-4-5-251128` 的最低像素限制调整\n\n| # | 组件 | 尺寸 | 绿幕 | 说明 |\n|---|------|------|------|------|\n| 1 | 背景图 | **1440×2560** | ❌ | C4D 场景 |\n| 2 | 标题横卡 | **3328×1109** | ✅ | 异形贴纸 |\n| 3 |"},{"path":"_meta.json","content":"{\n  \"ownerId\": \"kn72d297ct1e0cjjbnarj42ag9841d6c\",\n  \"slug\": \"ecommerce-livestream-overlay-generator\",\n  \"version\": \"2.0.0\",\n  \"publishedAt\": 1777370469013\n}"},{"path":"SKILL_V1_EN_BACKUP.md","content":"---\nname: ecommerce-livestream-overlay-generator\ndescription: >\n  电商直播贴片生成器 / 电商直播视觉包装工具。\n  适用于淘宝直播、抖音直播带货、拼多多直播、快手直播等电商直播场景。\n  输入品牌、产品、促销信息或产品照片，自动生成完整电商直播视觉包装：\n  背景、标题栏、主播形象、价格卡、产品货架、福利条、促销贴片。\n  支持绿幕抠图、自动合成预览、打包交付。\n  E-commerce livestream overlay generator for Taobao, Douyin, PDD, Kuaishou streaming.\n  Generate background, title banner, host persona, pricing card, product shelf, benefits bar.\n  Supports green screen removal, auto-composite preview, and packaged delivery.\nhomepage: https://github.com/gaoyuji12138/e-commerce-livestream-overlay-skill\nuser-invocable: true\nmetadata: '{\"openclaw\":{\"emoji\":\"🎨\",\"primaryEnv\":\"VOLCENGINE_ARK_API_KEY\",\"requires\":{\"env\":[\"VOLCENGINE_ARK_API_KEY\"],\"bins\":[\"python3\",\"pip3\"]}}}'\n---\n\n# E-Commerce Livestream Overlay Generator Skill\n\n## I. Prerequisites\n\n### Dependencies\n- Python 3 + Pillow + opencv-python-headless + numpy\n\n### Environment Variables\n\n- `VOLCENGINE_ARK_API_KEY` - Volcano Engine (Doubao) Ark API Key（必填）\n\n**获取方式**：\n1. 登录 [火山引擎控制台](https://console.volcengine.com/ark/region:ark+cn-beijing/model)\n2. 进入 Ark 模型平台，启用以下模型：\n   - `doubao-seedream-4-5-251128`（通用组件）\n   - `doubao-seedream-5-0-260128`（主播人像组件）\n3. 在控制台凭证页面创建 API Key\n\n> **每个用户需要自己的 API Key**：使用时从环境变量 `VOLCENGINE_ARK_API_KEY` 读取。\n\n### Install dependencies\n```bash\npip3 install Pillow==12.2.0 opencv-python-headless==4.13.0 numpy==2.3.2\n```\n\n## II. Data Privacy & Transparency\n\nThis skill sends **text prompts** and **optionally user-supplied product photos** to the Volcano Engine (Doubao) image generation API. All subsequent processing (green screen removal, compositing, packaging) runs **entirely locally**.\n\n| What is sent | Where | Purpose |\n|-------------|-------|---------|\n| Text prompts (brand/product/style descriptions) | `https://ark.cn-beijing.volces.com/api/v3/images/generations` | Generate overlay component images (background, title, host persona, pricing card, product shelf, benefits bar) |\n| User-supplied product photos (optional) | `https://ark.cn-beijing.volces.com/api/v3/images/generations` | Used as reference image input for product shelf generation |\n\n**Data handling details:**\n- **Text prompts** and **user product photos** (when provided) are sent to the Volcano Engine API endpoint listed above. No data is forwarded to any other third party.\n- **Generated images** are returned from the API and saved locally. They are not re-uploaded anywhere.\n- **All post-processing** (green screen removal, compositing, brightness adjustment, packaging) runs **entirely locally** on the user's machine using Python (OpenCV + Pillow).\n\n**What this skill does NOT do:**\n- ❌ Store, log, or cache user input data (text prompts, product photos) locally or remotely\n- ❌ Forward data to any third party beyond the Volcano Engine API\n- ❌ Make purchases, handle payments, or interact with any financial services\n- ❌ Perform any cryptocurrency or blockchain operations\n\n> Generated images returned from the API are saved to the local output directory for your use.\n\n> ⚠"},{"path":"SKILL_V2_CN_BASE.md","content":"---\nname: 生成电商带货直播间全套贴片\ndescription: >\n  直播间装修贴片全自动生成。\n  根据品牌、商品和活动信息，或直接根据商品图片，自动生成完整直播间视觉套装：\n  背景图、标题横卡、人物、促销竖卡、桌面商品贴、权益下贴。\n  支持绿幕抠图、自动合成预览、打包交付。\n---\n\n# 直播间装修贴片生成 Skill\n\n## 一、前置条件\n\n### 依赖\n- Python 3 + Pillow + opencv-python-headless + numpy\n- 火山方舟 API Key\n\n### 安装依赖\n```bash\npip3 install Pillow==12.2.0 opencv-python-headless==4.13.0 numpy==2.3.2\n```\n\n## 二、需求确认（正式生成前必须执行）\n\n> ⚠️ 收到用户生成请求后，不要立即开始生成图片。先确认以下信息，确保一次性出图到位。\n\n### 2.1 必须确认的信息\n\n| 信息 | 说明 | 必填 |\n|------|------|------|\n| 品牌 | 如 戴森、茅台、三只松鼠等 | ✅ |\n| 主推商品 | 具体品名和型号 | ✅ |\n| 促销活动 | 满减、买赠、积分兑换等具体内容 | ✅ |\n| 风格偏好 | 如有特殊要求（颜色、氛围、调性） | ❌ |\n\n### 2.2 确认流程\n\n1. **用户已提供完整信息** → 列出理解的需求摘要，请用户确认后直接开始\n2. **用户信息不完整** → 只追问缺失的必要信息，其他自动推导\n3. **用户只发了商品图片没文字** → 识别图中商品，推测品牌和品类，列出理解的需求摘要请用户确认\n4. **用户说\"按案例来\"/\"照着做\"** → 直接用下方案例的需求生成\n\n### 2.3 需求确认示例回复\n\n```\n我确认一下需求：\n\n📋 **品牌**：戴森\n📋 **主推商品**：戴森Supersonic HD16吹风机 + Airwrap多功能美发棒\n📋 **促销活动**：满3000减300\n📋 **买赠**：买吹风机送两支造型风嘴\n📋 **包装**：直播间限定礼盒包装\n📋 **风格**：科技奢华风（根据戴森品牌推导）\n\n文案我这样设计：\n- 主标题：「Dyson·沙龙级造型」\n- 副标题：「限定礼盒·奢宠体验」\n- 促销竖卡：「满3000立减300 / 买吹风机送造型风嘴 / 直播间限定礼盒」\n- 权益：「两年质保无忧 / 顺丰包邮到家 / 专属礼盒包装」\n\n确认OK的话我就开始生成了，有想调整的随时说 👇\n```\n\n### 2.4 需求描述案例（首次触发时主动展示）\n\n> 收到用户的生成请求后，主动展示以下案例，让用户可以照着描述或直接要求按案例生成。\n\n**示例需求描述**：\n> 做一套戴森吹风机直播间贴片，主品是戴森Supersonic HD16吹风机和Airwrap多功能美发棒，买吹风机送两支造型风嘴，满3000减300，直播间限定礼盒包装\n\n**首次回复模板**：\n```\n你可以直接告诉我你的品牌和促销信息，比如：\n\n> 做一套戴森吹风机直播间贴片，主品是戴森Supersonic HD16吹风机和Airwrap多功能美发棒，买吹风机送两支造型风嘴，满3000减300，直播间限定礼盒包装\n\n也可以直接说「按戴森案例来」，我就直接用这个需求生成。\n\n你的需求是什么？\n```\n\n**最低限度只需提供**：品牌 + 主推商品 + 促销活动（三个核心信息）\n**文案、风格色调、人物造型、权益**均由 AI 自动推导生成，用户可选择性修改。\n\n## 三、文案自动生成规则\n\n### 3.1 主标题\n- 必须含品牌名并具有氛围感\n- **禁用**\"官方\"\"旗舰\"等字样\n- 不能直接写商品名，要有宣传感和下单欲望\n\n### 3.2 副标题\n- 核心利益点（福利/功效/场景）或正在进行的活动\n- 简洁有力\n\n### 3.3 促销竖卡\n- 根据促销活动拆分为 2-3 层\n- 每层包含：金额/权益 + 使用条件\n\n### 3.4 权益文案\n- 通常 3 个：赠品相关 + 正品保障 + 物流/售后\n- ⚠️ 避免使用\"正品\"\"保障\"等触发审核的词，替换为\"品质\"\"保证\"\n\n## 四、组件清单与尺寸\n\n> ⚠️ 尺寸已根据 `doubao-seedream-4-5-251128` 的最低像素限制调整\n\n| # | 组件 | 尺寸 | 绿幕 | 说明 |\n|---|------|------|------|------|\n| 1 | 背景图 | **1440×2560** | ❌ | C4D 场景 |\n| 2 | 标题横卡 | **3328×1109** | ✅ | 异形贴纸 |\n| 3 | 人物 | **1440×2560** | ✅ | 素颜+幼态脸+精致造型（不用手持商品） |\n| 4 | 促销竖卡 | **1920×1920** | ✅ | 正方形异形贴纸 |\n| 5 | 桌面商品贴 | **3328×1109** | ✅ | 40+单品密集排列 |\n| 6 | 权益下贴 | **3328×1109** | ❌ | 铺满底部 |\n\n## 五、Prompt 写法标准\n\n### 核心原则\n- 所有组件使用统一风格前缀确保色调一致\n- 必须包含反向约束条件\n- 背景图使用\"纯色均匀绿色背景\"（不是#00FF00）\n\n### 5.1 背景图 Prompt\n**约束**：无文字、无人物、无产品。\n\n**模板**：\n```\n这是一幅融合[风格描述]的C4D商业空间场景。空间以[主色调]为主色调，搭配[辅助色]作为辅助色，点缀以[点缀色]的细节元素，整体被[中性色]所平衡。空间结构呈现出[结构描述]，营造出[氛围]的氛围。灯光设计[灯光描述]，突显出空间的质感与层次。材质上运用了[材质]，展现出[风格]的魅力。布局上，模块化的抽象展示元素散落其中，如[元素1]、[元素2]和[元素3]，共同营造出一种[整体感受]的空间体验。\n```\n\n### 5.2 标题横卡 Prompt\n**模板**：\n```\n纯色均匀绿色背景#00FF00。画面正中是一个[颜色]渐变的异形横条卡片，卡片有[边框质感]，四边是不规则的艺术形状。卡片内部左侧[文字区域底色]，大字「[主标题]」用[字体描述]，下方「[副标题]」用[字体描述]。卡片右侧是[产品插画描述]。整个卡片颜色浓郁厚重，绝对没有白色底色区域，不要任何绿色青色蓝绿色。卡片是一个完整的实体贴纸，边界清晰。\n```\n\n### 5.3 人物 Prompt\n\n> ⚠️ 核心规则（v2 更新）：\n> 1. **人物模型用 `doubao-seedream-5-0-260128`**（其他组件仍用 `doubao-seedream-4-5-251128`）\n> 2. **完全不化妆的素颜**（不是\"清透裸妆\"）\n> 3. **不手持商品**，双手自然下垂微曲（v2 取消了手持商品）\n> 4. **网红幼态脸短中庭**，眼部轮廓深邃有水润感，唇部有果冻感水润饱满\n> 5. **服装必须提前设计好**，prompt 中完整描述上衣"},{"path":"SKILL_V2_CN_MODIFIED.md","content":"---\nname: ecommerce-livestream-overlay-generator\ndescription: >\n  电商直播贴片生成器 / 电商直播视觉包装工具。\n  适用于淘宝直播、抖音直播带货、拼多多直播、快手直播等电商直播场景。\n  输入品牌、产品、促销信息或产品照片，自动生成完整电商直播视觉包装：\n  背景、标题栏、主播形象、价格卡、产品货架、福利条、促销贴片。\n  支持绿幕抠图、自动合成预览、打包交付。\n  E-commerce livestream overlay generator for Taobao, Douyin, PDD, Kuaishou streaming.\n  Generate background, title banner, host persona, pricing card, product shelf, benefits bar.\n  Supports green screen removal, auto-composite preview, and packaged delivery.\nhomepage: https://github.com/gaoyuji12138/e-commerce-livestream-overlay-skill\nuser-invocable: true\nmetadata: '{\"openclaw\":{\"emoji\":\"🎨\",\"primaryEnv\":\"VOLCENGINE_ARK_API_KEY\",\"requires\":{\"env\":[\"VOLCENGINE_ARK_API_KEY\"],\"bins\":[\"python3\",\"pip3\"]}}}'\n---\n\n# 直播间装修贴片生成 Skill\n\n## 一、前置条件\n\n### 依赖\n- Python 3 + Pillow + opencv-python-headless + numpy\n- 火山方舟 API Key\n\n### API Key 获取\n\n1. 前往 [火山引擎控制台](https://console.volcengine.com/ark) 注册并登录\n2. 在「模型推理」页面开通豆包视觉模型\n3. 在控制台凭证页面创建 API Key\n\n> **每个用户需要自己的 API Key**：使用时从环境变量 `VOLCENGINE_ARK_API_KEY` 读取。\n\n### 安装依赖\n```bash\npip3 install Pillow==12.2.0 opencv-python-headless==4.13.0 numpy==2.3.2\n```\n\n## 二、数据隐私与透明度\n\n### 数据流向\n\n| 数据类型 | 发送目标 | 用途 | 是否持久化 |\n|----------|----------|------|-----------|\n| 文本 Prompt（品牌/促销文案等） | 火山引擎 API | 图像生成请求 | ❌ 仅传输，不存储 |\n| 用户产品照片 | 火山引擎 API | 作为图像生成参考输入 | ❌ 仅传输，不存储 |\n| 生成的图片 | 本地磁盘 | 交付给用户 | ✅ 保存到本地输出目录 |\n\n> **AI 内置视觉能力**：当用户仅提供产品照片未附文字说明时，由 AI Agent 内置视觉能力识别图中商品信息（本地运行），无需额外 API 调用。\n\n**本 Skill 不会做的事：**\n- ❌ 在本地或远程存储、记录或缓存用户输入数据（文本 Prompt、产品照片）\n- ❌ 将数据转发到火山引擎以外的任何第三方\n- ❌ 进行任何购买、支付或金融操作\n- ❌ 进行任何加密货币或区块链操作\n\n> ⚠️ 用户产品照片和文本 Prompt 会发送至火山引擎 API。上传敏感或专有产品图片前，请阅读[火山引擎隐私政策](https://www.volcengine.com/docs/6369/71845)。API 返回的生成图片会保存到本地输出目录。\n\n## 三、需求确认（正式生成前必须执行）\n\n> ⚠️ 收到用户生成请求后，不要立即开始生成图片。先确认以下信息，确保一次性出图到位。\n\n### 2.1 必须确认的信息\n\n| 信息 | 说明 | 必填 |\n|------|------|------|\n| 品牌 | 如 戴森、茅台、三只松鼠等 | ✅ |\n| 主推商品 | 具体品名和型号 | ✅ |\n| 促销活动 | 满减、买赠、积分兑换等具体内容 | ✅ |\n| 风格偏好 | 如有特殊要求（颜色、氛围、调性） | ❌ |\n\n### 2.2 确认流程\n\n1. **用户已提供完整信息** → 列出理解的需求摘要，请用户确认后直接开始\n2. **用户信息不完整** → 只追问缺失的必要信息，其他自动推导\n3. **用户只发了商品图片没文字** → 识别图中商品，推测品牌和品类，列出理解的需求摘要请用户确认\n4. **用户说\"按案例来\"/\"照着做\"** → 直接用下方案例的需求生成\n\n### 2.3 需求确认示例回复\n\n```\n我确认一下需求：\n\n📋 **品牌**：戴森\n📋 **主推商品**：戴森Supersonic HD16吹风机 + Airwrap多功能美发棒\n📋 **促销活动**：满3000减300\n📋 **买赠**：买吹风机送两支造型风嘴\n📋 **包装**：直播间限定礼盒包装\n📋 **风格**：科技奢华风（根据戴森品牌推导）\n\n文案我这样设计：\n- 主标题：「Dyson·沙龙级造型」\n- 副标题：「限定礼盒·奢宠体验」\n- 促销竖卡：「满3000立减300 / 买吹风机送造型风嘴 / 直播间限定礼盒」\n- 权益：「两年质保无忧 / 顺丰包邮到家 / 专属礼盒包装」\n\n确认OK的话我就开始生成了，有想调整的随时说 👇\n```\n\n### 2.4 需求描述案例（首次触发时主动展示）\n\n> 收到用户的生成请求后，主动展示以下案例，让用户可以照着描述或直接要求按案例生成。\n\n**示例需求描述**：\n> 做一套戴森吹风机直播间贴片，主品是戴森Supersonic HD16吹风机和Airwrap多功能美发棒，买吹风机送两支造型风嘴，满3000减300，直播间限定礼盒包装\n\n**首次回复模板**：\n```\n你可以直接告诉我你的品牌和促销信息，比如：\n\n> 做一套戴森吹风机直播间贴片，主品是戴森Supersonic HD16吹风机和Airwrap多功能美发棒，买吹风机送两支造型风嘴，满3000减300，直播间限定礼盒包装\n\n也可以直接说「按戴森案例来」，我就直接用这个需求生成。\n\n你的需求是什么？\n```\n\n**最低限度只需提供**：品牌 + 主推商品 + 促销活动（三个核心信息）\n**文案、风格色调、人物造型、权益**均由 AI 自动推导生成，用户可选择性修改。\n\n## 四、文案自动生成规则\n\n### 3.1 主标题\n- 必须含品牌名并具有氛围感\n- **禁用**\"官方\"\"旗舰\"等字样\n- 不能直接写商品名，要有宣传感和下单欲望\n\n### 3.2 副标题\n- 核心利益点（福利/功效/场景）或正在进行的活动\n- 简洁有力\n\n### 3.3"}],"languages":[],"docsSourceLabel":"CLAWHUB","editorialOverview":null,"editorialQuality":{"score":100,"threshold":65,"status":"thin","wordCount":1097,"uniquenessScore":44,"reasons":["uniqueness-below-45"]}},"media":{"evidence":{"source":"no-media","verified":false,"confidence":"low","updatedAt":"2026-10-10T20:20:02.046Z","emptyReason":"No screenshots, media assets, or demo links are available."},"primaryImageUrl":null,"mediaAssetCount":0,"assets":[],"demoUrl":null},"ownerResources":{"evidence":{"source":"unclaimed","verified":false,"confidence":"low","updatedAt":"2026-10-10T20:20:02.046Z","emptyReason":"This page has not been claimed by the agent owner."},"hasCustomPage":false,"customPageUpdatedAt":null,"customLinks":[],"structuredLinks":{"docsUrl":null,"demoUrl":null,"supportUrl":null,"pricingUrl":null,"statusUrl":null},"customPage":null},"relatedAgents":{"evidence":{"source":"protocol-neighbors","verified":false,"confidence":"medium","updatedAt":"2026-10-10T22:51:09.530Z","emptyReason":null},"items":[{"id":"8ebccd8e-3863-4187-8355-c3f14e1f9edf","entityType":"agent","canonicalPath":"/agent/iofficeai-aionui","slug":"iofficeai-aionui","name":"AionUi","description":"Free, local, open-source 24/7 Cowork app and OpenClaw for Gemini CLI, Claude Code, Codex, OpenCode, Qwen Code, Goose CLI, Auggie, and more | 🌟 Star if you like it!","url":"https://github.com/iOfficeAI/AionUi","homepage":"https://www.aionui.com","source":"GITHUB_REPOS","protocols":["MCP","OPENCLAW"],"capabilities":[],"safetyScore":100,"overallRank":70,"updatedAt":"2026-10-09T19:11:12.944Z","createdAt":"2026-02-25T03:38:16.584Z","downloads":null},{"id":"b917f68a-ebff-438e-84f8-3f4b2494c0bc","entityType":"agent","canonicalPath":"/agent/activepieces-activepieces","slug":"activepieces-activepieces","name":"activepieces","description":"AI Agents & MCPs & AI Workflow Automation • (~400 MCP servers for AI agents) • AI Automation / AI Agent with MCPs • AI Workflows & AI Agents • MCPs for AI Agents","url":"https://github.com/activepieces/activepieces","homepage":"https://www.activepieces.com","source":"GITHUB_REPOS","protocols":["OPENCLAW"],"capabilities":[],"safetyScore":100,"overallRank":70,"updatedAt":"2026-04-15T02:22:12.426Z","createdAt":"2026-02-25T03:38:12.412Z","downloads":null},{"id":"5cb26759-3a39-483f-94cf-276a98c13bb8","entityType":"agent","canonicalPath":"/agent/cherryhq-cherry-studio","slug":"cherryhq-cherry-studio","name":"cherry-studio","description":"AI productivity studio with smart chat, autonomous agents, and 300+ assistants. Unified access to frontier LLMs","url":"https://github.com/CherryHQ/cherry-studio","homepage":"https://cherry-ai.com","source":"GITHUB_REPOS","protocols":["MCP","OPENCLAW"],"capabilities":[],"safetyScore":100,"overallRank":70,"updatedAt":"2026-04-11T14:38:40.986Z","createdAt":"2026-02-25T03:38:19.379Z","downloads":null},{"id":"6f6582d0-5d76-4f0f-b81d-86520247950b","entityType":"agent","canonicalPath":"/agent/copilotkit-copilotkit","slug":"copilotkit-copilotkit","name":"CopilotKit","description":"The Frontend for Agents & Generative UI. React + Angular","url":"https://github.com/CopilotKit/CopilotKit","homepage":"https://docs.copilotkit.ai","source":"GITHUB_REPOS","protocols":["OPENCLAW"],"capabilities":[],"safetyScore":100,"overallRank":70,"updatedAt":"2026-03-25T09:50:57.846Z","createdAt":"2026-02-25T03:39:14.617Z","downloads":null}],"links":{"hub":"/agent","source":"/agent/source/clawhub","protocols":[{"label":"OpenClaw","href":"/agent/protocol/openclew"}]}}}