{"id":"8fab7ad6-3048-4b25-9051-333d9fadc6bc","entityType":"agent","slug":"clawhub-1688aiinfra-1688-item-image-optimizer","name":"1688-item-image-optimizer","canonicalUrl":"https://www.xpersona.co/agent/clawhub-1688aiinfra-1688-item-image-optimizer","canonicalPath":"/agent/clawhub-1688aiinfra-1688-item-image-optimizer","generatedAt":"2026-10-15T02:25:41.357Z","source":"CLAWHUB","claimStatus":"UNCLAIMED","verificationTier":"NONE","summary":{"evidence":{"source":"CLAWHUB","verified":false,"confidence":"medium","updatedAt":"2026-10-12T00:50:00.136Z","emptyReason":null},"description":"商品图片制作统一入口：主图优化、轮播图、详情图、背景替换、数字模特。 核心能力：verify_permission（高级版权限校验）、build_tool_url（构建工具页 URL）、configure（AK 配置）。 触发词：做一套图、做图、出图、优化主图、主图优化、轮播图、详情图、背景替换、数字模特、商品图片、改图、图片优化。 不应触发：新品发布/批量上架（走发品 skill）、品牌VI/海报/店铺装修、图片规范问答。 本 Skill 的图片制作流程已由 workflow 编排覆盖，命中触发词时直接执行 workflow。如果 workflow 无法完成任务（如纯能力问答、单命令调用、探索性使用），加载本 SKILL.md 进行推理。","descriptionLabel":"Source description","evidenceSummary":"Capability contract not published. No trust telemetry is available yet. 965 downloads reported by the source. Last updated 10/12/2026.","installCommand":"clawhub skill install s177df9srv6z2y0gd1kw90rern83hzxb:1688-item-image-optimizer","sourceUrl":"https://clawhub.ai/1688aiinfra/1688-item-image-optimizer","homepage":"https://clawhub.ai/1688aiinfra/skills/1688-item-image-optimizer","primaryLinks":[{"label":"View on ClawHub","url":"https://clawhub.ai/1688aiinfra/1688-item-image-optimizer","kind":"source"},{"label":"Homepage","url":"https://clawhub.ai/1688aiinfra/skills/1688-item-image-optimizer","kind":"homepage"}],"safetyScore":84,"overallRank":62,"popularityScore":60,"trustScore":null,"claimedByName":null,"isOwner":false,"seoDescription":"1688-item-image-optimizer 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-12T00:50:00.136Z","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-12T00:50:00.136Z","emptyReason":null},"stars":null,"forks":null,"downloads":965,"likes":null,"task":null,"library":null,"packageName":null,"latestVersion":"0.51.0","tractionLabel":"965 downloads"},"release":{"evidence":{"source":"CLAWHUB","verified":false,"confidence":"medium","updatedAt":"2026-10-12T00:50:00.033Z","emptyReason":null},"lastUpdatedAt":"2026-10-12T00:50:00.136Z","lastCrawledAt":"2026-10-12T00:50:00.033Z","lastIndexedAt":null,"nextCrawlAt":"2026-10-13T00:50:00.033Z","lastVerifiedAt":null,"highlights":[{"version":"0.51.0","createdAt":"2026-09-04T02:58:32.302Z","changelog":"**Major update: Introduces workflow orchestration and new capabilities for multi-image tools and permission checks.** - Added workflow/1688-item-image-optimizer.js for workflow-driven orchestration (intent recognition → permission check → entry construction → open_tab). - Introduced two new core CLI capabilities: verify_permission (digital model permission check) and build_tool_url (tool page URL builder). - Expanded image tool types: now supports main image, carousel, detail, background replacement, and digital model workflows. - Enhanced error handling and clarified strict permission rules: digital model access always checked via verify_permission; all other tools bypass permission checks. - Added interactive cards for image type and image selection when user intent or image count is ambiguous. - Deprecated and removed legacy content (e.g., skill-card.md); documentation significantly updated for new workflow and CLI commands.","fileCount":25,"zipByteSize":35181},{"version":"0.1.0","createdAt":"2026-05-09T09:54:11.527Z","changelog":"Initial release of 1688-item-image-optimizer: - Opens the product image optimization page for 1688 items, automatically adding \"hot sale\" elements to main images. - Triggers on keywords like \"优化图片\", \"主图优化\", or \"商品图片\". - Returns a JSON to open the optimization page with or without the offerId parameter, based on context. - No follow-up questions or additional logic executed; strictly one-step interaction.","fileCount":16,"zipByteSize":15240}]},"execution":{"evidence":{"source":"CLAWHUB","verified":false,"confidence":"low","updatedAt":null,"emptyReason":"No published capability contract is available yet."},"installCommand":"clawhub skill install s177df9srv6z2y0gd1kw90rern83hzxb:1688-item-image-optimizer","setupComplexity":"low","setupSteps":["Install using `clawhub skill install s177df9srv6z2y0gd1kw90rern83hzxb:1688-item-image-optimizer` 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/1688aiinfra/1688-item-image-optimizer 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-1688aiinfra-1688-item-image-optimizer/snapshot","contractUrl":"https://www.xpersona.co/api/v1/agents/clawhub-1688aiinfra-1688-item-image-optimizer/contract","trustUrl":"https://www.xpersona.co/api/v1/agents/clawhub-1688aiinfra-1688-item-image-optimizer/trust"},"curlExamples":["curl -s \"https://www.xpersona.co/api/v1/agents/clawhub-1688aiinfra-1688-item-image-optimizer/snapshot\"","curl -s \"https://www.xpersona.co/api/v1/agents/clawhub-1688aiinfra-1688-item-image-optimizer/contract\"","curl -s \"https://www.xpersona.co/api/v1/agents/clawhub-1688aiinfra-1688-item-image-optimizer/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-15T02:25:41.357Z"}},"retryPolicy":{"maxAttempts":3,"backoffMs":[500,1500,3500],"retryableConditions":["HTTP_429","HTTP_503","NETWORK_TIMEOUT"]}},"endpoints":{"dossierUrl":"https://www.xpersona.co/api/v1/agents/clawhub-1688aiinfra-1688-item-image-optimizer/dossier","snapshotUrl":"https://www.xpersona.co/api/v1/agents/clawhub-1688aiinfra-1688-item-image-optimizer/snapshot","contractUrl":"https://www.xpersona.co/api/v1/agents/clawhub-1688aiinfra-1688-item-image-optimizer/contract","trustUrl":"https://www.xpersona.co/api/v1/agents/clawhub-1688aiinfra-1688-item-image-optimizer/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-12T00:50:00.136Z","emptyReason":null},"readme":"Skill: 1688-item-image-optimizer\n\nOwner: 1688aiinfra\n\nSummary: 商品图片制作统一入口：主图优化、轮播图、详情图、背景替换、数字模特。 核心能力：verify_permission（高级版权限校验）、build_tool_url（构建工具页 URL）、configure（AK 配置）。 触发词：做一套图、做图、出图、优化主图、主图优化、轮播图、详情图、背景替换、数字模特、商品图片、改图、图片优化。 不应触发：新品发布/批量上架（走发品 skill）、品牌VI/海报/店铺装修、图片规范问答。 本 Skill 的图片制作流程已由 workflow 编排覆盖，命中触发词时直接执行 workflow。如果 workflow 无法完成任务（如纯能力问答、单命令调用、探索性使用），加载本 SKILL.md 进行推理。\n\nTags: latest:0.51.0\n\nVersion history:\n\nv0.51.0 | 2026-09-04T02:58:32.302Z | auto\n\n**Major update: Introduces workflow orchestration and new capabilities for multi-image tools and permission checks.**\n\n- Added workflow/1688-item-image-optimizer.js for workflow-driven orchestration (intent recognition → permission check → entry construction → open_tab).\n- Introduced two new core CLI capabilities: verify_permission (digital model permission check) and build_tool_url (tool page URL builder).\n- Expanded image tool types: now supports main image, carousel, detail, background replacement, and digital model workflows.\n- Enhanced error handling and clarified strict permission rules: digital model access always checked via verify_permission; all other tools bypass permission checks.\n- Added interactive cards for image type and image selection when user intent or image count is ambiguous.\n- Deprecated and removed legacy content (e.g., skill-card.md); documentation significantly updated for new workflow and CLI commands.\n\nv0.1.0 | 2026-05-09T09:54:11.527Z | auto\n\nInitial release of 1688-item-image-optimizer:\n\n- Opens the product image optimization page for 1688 items, automatically adding \"hot sale\" elements to main images.\n- Triggers on keywords like \"优化图片\", \"主图优化\", or \"商品图片\".\n- Returns a JSON to open the optimization page with or without the offerId parameter, based on context.\n- No follow-up questions or additional logic executed; strictly one-step interaction.\n\nArchive index:\n\nArchive v0.51.0: 25 files, 35181 bytes\n\nFiles: cli.py (2497b), references/interaction-specs.md (4857b), scripts/__init__.py (0b), scripts/_auth.py (4996b), scripts/_const.py (670b), scripts/_errors.py (1212b), scripts/_http.py (4561b), scripts/_output.py (1037b), scripts/_tracker.py (2433b), scripts/capabilities/__init__.py (0b), scripts/capabilities/build_tool_url/__init__.py (0b), scripts/capabilities/build_tool_url/cmd.py (1710b), scripts/capabilities/build_tool_url/service.py (4064b), scripts/capabilities/configure/__init__.py (0b), scripts/capabilities/configure/cmd.py (2144b), scripts/capabilities/configure/service.py (3211b), scripts/capabilities/verify_permission/__init__.py (0b), scripts/capabilities/verify_permission/cmd.py (931b), scripts/capabilities/verify_permission/service.py (859b), skill-card.md (2782b), SKILL.md (8459b), tests/test_build_tool_url.py (7012b), tests/test_verify_permission.py (2379b), workflow/1688-item-image-optimizer.js (22255b), _meta.json (145b)\n\nFile v0.51.0:SKILL.md\n\n---\nname: 1688-item-image-optimizer\nversion: 1.0.0\ndescription: >-\n  商品图片制作统一入口：主图优化、轮播图、详情图、背景替换、数字模特。\n  核心能力：verify_permission（高级版权限校验）、build_tool_url（构建工具页 URL）、configure（AK 配置）。\n  触发词：做一套图、做图、出图、优化主图、主图优化、轮播图、详情图、背景替换、数字模特、商品图片、改图、图片优化。\n  不应触发：新品发布/批量上架（走发品 skill）、品牌VI/海报/店铺装修、图片规范问答。\n  本 Skill 的图片制作流程已由 workflow 编排覆盖，命中触发词时直接执行 workflow。如果 workflow 无法完成任务（如纯能力问答、单命令调用、探索性使用），加载本 SKILL.md 进行推理。\nmetadata:\n  engine: false\n  openclaw:\n    emoji: \"🖼\"\ninteractions:\n  - name: open_tab_image_optimize\n    type: open_tab\n    selectionType: shop_backend\n    description: \"路由到商品图片工具页面（主图优化/轮播图/详情图/背景替换/数字模特），URL 由 build_tool_url capability 构建\"\n    required_data:\n      url: \"完整工具页面 URL（由 build_tool_url 返回的 data.open_tab.url）\"\n      title: \"页面标题（主图优化/轮播图制作/详情图制作/背景替换/数字模特）\"\n  - name: select_image_type\n    type: card\n    selectionType: image_type\n    description: \"用户意图模糊时，引导选择要制作的图片类型\"\n    required_data:\n      questions: \"图片类型选项数组\"\n  - name: select_images\n    type: card\n    selectionType: image\n    description: \"上传图片超出工具限制时，引导用户选择要处理的图片子集\"\n    required_data:\n      questions: \"图片选项数组（多选）\"\n---\n\n# 1688-item-image-optimizer — 商品图片制作统一入口\n\n> 编排流程（意图识别 → 权限校验 → 构建入口 → open_tab）由 `workflow/1688-item-image-optimizer.js` 确定性执行。本文件只描述**能力**：有哪些 CLI 命令、各自怎么调、返回什么、业务约束是什么。供纯问答 / 单命令调用 / 引擎委托时参考。\n\n统一入口：`python3 {baseDir}/cli.py <command> [options]`\n所有命令输出 JSON：`{\"success\": bool, \"markdown\": str, \"data\": {...}}`\n\n## 命令速查\n\n| 命令 | 必填参数 | 说明 |\n|------|---------|------|\n| `verify_permission` | 无 | 校验数字模特权限（返回 isAi/digitalModel/faceFix） |\n| `build_tool_url` | `--type` | 构建图片工具页面 URL，返回 open_tab 透传对象 |\n| `configure` | （AK 位置参数，可选） | 配置/查看 AK；无参看状态 |\n\n## 能力详述\n\n### verify_permission\n\n- **签名**：`cli.py verify_permission`（无参，商家身份由 AK 网关签名自动识别）\n- **返回结构**：业务数据嵌套在 `data.data` 内 —— `{\"success\": true, \"data\": {\"data\": {\"isAi\": bool, \"digitalModel\": bool, \"faceFix\": bool}}}`\n- **关键字段**：\n  - `isAi`：是否高级版（保留字段，当前 skill 不做权限判断）\n  - `digitalModel`：是否有数字模特权限（决定 digitalModel 能否使用）\n  - `faceFix`：脸部修复权限（暂未使用）\n- **业务含义**：仅数字模特（digitalModel）路由前必须校验；一次会话内结果可复用。\n\n### build_tool_url\n\n- **签名**：`cli.py build_tool_url --type <type> [--offer-id ID] [--img-url URL] [--img-url-list URL1,URL2]`\n- **返回结构**：`{\"success\": bool, \"markdown\": str, \"data\": {\"open_tab\": {\"type\": \"open_tab\", \"url\": \"...\", \"title\": \"...\"}}}`\n- **`--type` 取值**（CLI 支持 7 个；前 5 个为当前业务动线类型，后 2 个 CLI 支持但编排动线未独立暴露）：\n\n  | type | 中文标题 | 图片参数 | 业务动线 |\n  |------|---------|---------|---------|\n  | `main` | 主图优化 | `--img-url`（单图） | ✅ |\n  | `carousel` | 轮播图制作 | `--img-url-list`（多图） | ✅ |\n  | `detail` | 详情图制作 | `--img-url-list`（多图） | ✅ |\n  | `replaceSubject` | 背景替换 | `--img-url`（单图） | ✅ |\n  | `digitalModel` | 数字模特 | `--img-url`（单图） | ✅ |\n  | `matting` | 白底图 | `--img-url`（单图） | CLI 支持 |\n  | `outpainting` | 一键扩图 | `--img-url`（单图） | CLI 支持 |\n\n- **图片参数与工具类型必须匹配**：单图工具传 `--img-url`、多图工具传 `--img-url-list`，错配 CLI 直接报错（让上游自纠）。空字符串视为无效图片报错；不传则跳过（工具页自带上传入口）。\n- **业务含义**：URL 由 CLI 构建（已 URL encode），**禁止 LLM 编造/拼接**。`success=false` 时禁止触发 open_tab。\n\n### configure\n\n- **签名**：`cli.py configure [YOUR_AK]` — 无参看状态，带 AK 写入配置\n- **返回**：`data.configured`（bool）\n- AK 由 OpenClaw 配置注入，写入后需新开会话或 `openclaw secrets reload` 生效。\n\n## 权限要求\n\n| type | 权限要求 | 校验依据 |\n|------|---------|---------|\n| main / replaceSubject / carousel / detail / matting / outpainting | 基础功能 | 免校验 |\n| digitalModel | 需数字模特权限 | `digitalModel == true` |\n\n## 图片参数规则\n\n- **附件 path 即公网 URL**：用户消息携带的图片以附件对象 `{name, mime, path}` 传入，`path` 即图片公网 URL（img.alicdn.com CDN）。**有图必带**——单图工具用 `--img-url`，多图工具用 `--img-url-list`（多张逗号分隔）。\n- **无图不阻断**：未识别到图片直接构建 URL，工具页自带上传入口。\n- **图片超限阈值**（超出需让用户选子集）：\n\n  | 工具 | 上限 |\n  |------|------|\n  | 主图优化 / 背景替换 / 数字模特 | 1 张 |\n  | 轮播图 | 9 张 |\n  | 详情图 | 20 张 |\n\n## 触发词 → type 映射\n\n| 触发词 | → type |\n|--------|--------|\n| 主图优化、优化主图、生成更好的商品主图、主图哪里有问题 | main |\n| 轮播图、做轮播图 | carousel |\n| 详情图、做详情图 | detail |\n| 背景替换、换背景 | replaceSubject |\n| 数字模特、模特图、生成模特、换模特、AI模特 | digitalModel |\n| 做图、做一套图、商品图片、商品图制作、提升转化的图、优化图片、改图（**意图模糊**） | 走 select_image_type 卡片，按权限平铺 |\n\n## 安全声明\n\n| 风险级别 | 命令 | Agent 行为 |\n|---------|------|-----------|\n| 只读 | `verify_permission` | 直接执行 |\n| 只读 | `build_tool_url` | 直接执行（仅构建 URL，不写数据） |\n| 写入 | `configure` | 写 AK 配置，需用户提供凭证 |\n\n- open_tab 的 URL 必须来自 `build_tool_url` 返回，**禁止编造/拼接**；触发 open_tab 即为终态，不追加引导话术。\n- 端侧工具页承担文件类型/大小/安全校验与上传后处理。\n\n## 异常处理\n\n> **铁律（最高优先级，覆盖下表所有行）**\n> 1. **权限结论只能来自 `verify_permission` 的 `digitalModel` 字段，严禁凭感觉编。** carousel / detail / main / replaceSubject / matting / outpainting 为基础功能，直接放行；只有 `digitalModel==false` 时才可按下表给出对应话术。严禁输出\"权限校验未通过 / 未开通高级版 / 账号无权限\"等任何未经 verify_permission 证实的措辞。\n> 2. **main / replaceSubject / carousel / detail / matting / outpainting 是基础功能，从不校验权限。** 任何情况下都不得对它们提\"高级版 / 权限 / 权益\"。\n> 3. **拿不到真实错误就别编原因。** 只说\"暂时无法完成，请稍后重试\"，禁止虚构\"权限 / 权益 / 账号状态 / 服务过期\"等具体理由。\n> 4. **不许救场。** workflow 已渲染的卡片 / 页面不要手动重开、重贴 URL 或 JSON；workflow 已是终态。\n\n| 错误关键词 | Agent 动作 |\n|-----------|-----------|\n| `verify_permission` 返回 `success=false`（AK 未配置/网络失败/限流） | **fail-closed**：一律按\"无权限\"拦截，禁止 open_tab；AK 未配置则提示 `cli.py configure YOUR_AK` |\n| 数字模特无权限（`digitalModel==false`） | 输出「数字模特功能暂未对你的账号开放～」，禁止 open_tab |\n| `build_tool_url` 返回 `success=false` | 禁止 open_tab，输出 markdown 中的错误提示 |\n\n## 参考文档\n\n- `references/interaction-specs.md` — 三个交互组件（open_tab / select_image_type / select_images）的字段结构与映射规则\n\nFile v0.51.0:_meta.json\n\n{\n  \"ownerId\": \"kn76msg8cwkep3b08z7zffx9fx82p5wj\",\n  \"slug\": \"1688-item-image-optimizer\",\n  \"version\": \"0.51.0\",\n  \"publishedAt\": 1788490712302\n}\n\nFile v0.51.0:references/interaction-specs.md\n\n# 交互组件详细规范 — 1688-item-image-optimizer\n\n本文档定义了本 Skill 中所有交互组件的具体数据结构与映射规则。大模型在调用 `show_interaction` 前需查阅本文档，确保数据结构正确。\n\n---\n\n## 1. open_tab_image_optimize（open_tab 组件）\n\n### 组件类型\n`type: open_tab`\n\n### 数据槽位\n\n| 字段 | 类型 | 必填 | 说明 |\n|------|------|------|------|\n| `type` | string | ✅ | 固定 `\"open_tab\"` |\n| `selectionType` | string | ✅ | 固定 `\"shop_backend\"` |\n| `url` | string | ✅ | 由 `build_tool_url` capability 返回的完整 URL（已经过 URL encode） |\n| `title` | string | ✅ | 页面标题：`主图优化` / `轮播图制作` / `详情图制作` / `背景替换` / `数字模特` |\n\n### 完整调用示例\n\n**主图优化（main）：**\n```json\n{\n  \"type\": \"open_tab\",\n  \"selectionType\": \"shop_backend\",\n  \"url\": \"https://pre-air.1688.com/app/CSBC-modules/csbc-ai-component-loader/picture-optimize.html?__mtop_subdomain__=wapa&type=oneOptimization&imgUrl=%2FUsers%2Fseller%2FDesktop%2Fproduct.jpg\",\n  \"title\": \"主图优化\"\n}\n```\n\n**轮播图（多图）：**\n```json\n{\n  \"type\": \"open_tab\",\n  \"selectionType\": \"shop_backend\",\n  \"url\": \"https://pre-air.1688.com/app/CSBC-modules/csbc-ai-component-loader/picture-optimize.html?__mtop_subdomain__=wapa&type=carouselImage&imgUrlList=%2Fpath%2F1.jpg%2C%2Fpath%2F2.jpg\",\n  \"title\": \"轮播图制作\"\n}\n```\n\n**详情图（商品 ID）：**\n```json\n{\n  \"type\": \"open_tab\",\n  \"selectionType\": \"shop_backend\",\n  \"url\": \"https://pre-air.1688.com/app/CSBC-modules/csbc-ai-component-loader/picture-optimize.html?__mtop_subdomain__=wapa&type=detailImage&offerId=1016555587352\",\n  \"title\": \"详情图制作\"\n}\n```\n\n**背景替换（replaceSubject，单图）：**\n```json\n{\n  \"type\": \"open_tab\",\n  \"selectionType\": \"shop_backend\",\n  \"url\": \"https://pre-air.1688.com/app/CSBC-modules/csbc-ai-component-loader/picture-optimize.html?__mtop_subdomain__=wapa&type=replaceSubject&imgUrl=%2Fpath%2Fproduct.jpg\",\n  \"title\": \"背景替换\"\n}\n```\n\n> 其余单图工具——数字模特（`type=digitalModel` / 标题`数字模特`）——URL 结构同背景替换，仅 `type` 与 `title` 不同，均用 `imgUrl` 单图参数。\n\n### 注意事项\n- URL 必须来自 `build_tool_url` 返回，**禁止 LLM 编造/拼接**\n- `build_tool_url` 返回 `success=false` 时禁止触发\n- 触发即为 skill 终态，不追加文字引导\n\n---\n\n## 2. select_image_type（card 组件）\n\n### 组件类型\n`type: card`\n\n### 触发时机\n触发词命中但 LLM 无法确定具体图片类型时（如\"帮我做一套图\"）\n\n### ⚠️ 有权限的所有 type 全部平铺 + 先校验权限\n\n1. 弹出前**先执行** `python3 {baseDir}/cli.py verify_permission` 拿权限（`data.data.isAi` / `data.data.digitalModel`），`success=false` 时按铁律 6 fail-closed 拦截。\n2. 按权限把**有权限的所有 type 全部平铺**进 `options`（不做收纳/Top3/「其他功能」）：\n\n| 权限 | `options`（全平铺） | 项数 |\n|------|--------------------|------|\n| `isAi=false`（基础版） | 主图优化、背景替换 | **2** |\n| `isAi=true, digitalModel=false`（高级版无数字模特） | ＋轮播图、详情图 | **4** |\n| `isAi=true, digitalModel=true`（高级版全权限） | ＋数字模特 | **5** |\n\n### 完整调用示例\n\n**基础版（2 项全平铺）：**\n```json\n{\n  \"type\": \"card\",\n  \"selectionType\": \"image_type\",\n  \"questions\": [\n    { \"question\": \"你想制作哪种商品图片？\", \"options\": [\"主图优化\", \"背景替换\"], \"allowMultiple\": false, \"required\": true }\n  ]\n}\n```\n\n**高级版全权限（5 项全平铺）：**\n```json\n{\n  \"type\": \"card\",\n  \"selectionType\": \"image_type\",\n  \"questions\": [\n    { \"question\": \"你想制作哪种商品图片？\", \"options\": [\"主图优化\", \"轮播图\", \"详情图\", \"背景替换\", \"数字模特\"], \"allowMultiple\": false, \"required\": true }\n  ]\n}\n```\n\n### 回传映射\n\n| 用户选择 | 对应 --type 参数 |\n|---------|----------------|\n| 主图优化 | `main` |\n| 轮播图 | `carousel` |\n| 详情图 | `detail` |\n| 背景替换 | `replaceSubject` |\n| 数字模特 | `digitalModel` |\n\n---\n\n## 3. select_images（card 组件）\n\n### 组件类型\n`type: card`\n\n### 触发时机\n用户上传图片数量超出工具限制时\n\n### 图片超限阈值\n\n| 工具类型 | 上限 |\n|---------|------|\n| 主图优化 | 1 张 |\n| 轮播图 | 9 张 |\n| 详情图 | 20 张 |\n| 背景替换 / 数字模特 | 1 张 |\n\n### 完整调用示例\n\n```json\n{\n  \"type\": \"card\",\n  \"selectionType\": \"image\",\n  \"questions\": [\n    {\n      \"question\": \"你上传了 15 张图片，轮播图工具最多支持 9 张。请选择要处理的图片：\",\n      \"options\": [\"图片1.jpg\", \"图片2.jpg\", \"图片3.jpg\", \"...\"],\n      \"allowMultiple\": true,\n      \"required\": true\n    }\n  ]\n}\n```\n\nFile v0.51.0:skill-card.md\n\n## Description:\n\nRoutes 1688 sellers to product image workflows for main image optimization, carousel images, detail images, background replacement, and digital model generation through permission checks and tool-page URL construction.\n\nThis skill is ready for commercial/non-commercial use.\n\n## Publisher:\n\n[1688aiinfra](https://clawhub.ai/user/1688aiinfra)\n\n### License/Terms of Use:\n\nMIT-0\n\n## Use Case:\n\nExternal 1688 sellers use this skill to choose and open the correct product-image creation tool for main images, carousels, detail images, background replacement, or digital model generation. The skill can also configure access credentials and verify digital model permission before routing restricted workflows.\n\n### Deployment Geography for Use:\n\nGlobal\n\n## Known Risks and Mitigations:\n\nRisk: The skill can persist a 1688 access key in local OpenClaw configuration.\n\nMitigation: Install only where local credential persistence is permitted; use scoped credentials where available and rotate or remove the key when the skill is no longer needed.\n\nRisk: The skill sends authenticated usage telemetry through the 1688 gateway after CLI commands.\n\nMitigation: Review telemetry acceptability before installation and deploy only in environments where this reporting is allowed.\n\nRisk: Opened tool URLs may include a session identifier and image or offer parameters.\n\nMitigation: Avoid sharing generated tool URLs or logs that contain them, and confirm that session handling matches the account's data-handling policy.\n\nRisk: Workflow instructions can limit what the parent agent says after execution.\n\nMitigation: Review and test workflow behavior before deployment so suppressed responses do not hide errors or unexpected outcomes.\n\n## Reference(s):\n\n- [ClawHub skill page](https://clawhub.ai/1688aiinfra/skills/1688-item-image-optimizer)\n- [Interaction specs](references/interaction-specs.md)\n- [1688 image tool entrypoint](https://air.1688.com/app/CSBC-modules/csbc-ai-component-loader/picture-optimize.html)\n\n## Skill Output:\n\n**Output Type(s):** [text, markdown, shell commands, configuration, guidance]\n\n**Output Format:** [JSON command results, Markdown messages, and OpenClaw interaction payloads.]\n\n**Output Parameters:** [1D]\n\n**Other Properties Related to Output:** [May open 1688 tool pages, show image-type or image-selection cards, and return fail-closed guidance when permission checks fail.]\n\n## Skill Version(s):\n\n0.51.0 (source: ClawHub release metadata; artifact frontmatter declares 1.0.0)\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\nArchive v0.1.0: 16 files, 15240 bytes\n\nFiles: cli.py (2710b), references/interaction-specs.md (1783b), scripts/__init__.py (0b), scripts/_auth.py (4996b), scripts/_const.py (670b), scripts/_errors.py (1212b), scripts/_http.py (4661b), scripts/_output.py (957b), scripts/_tracker.py (2414b), scripts/capabilities/__init__.py (0b), scripts/capabilities/configure/__init__.py (0b), scripts/capabilities/configure/cmd.py (2144b), scripts/capabilities/configure/service.py (3211b), skill-card.md (2253b), SKILL.md (1367b), _meta.json (144b)\n\nFile v0.1.0:SKILL.md\n\n---\nname: 1688-item-image-optimizer\ndescription: |\n  1688 商品图片智能优化助手 —— 打开图片优化页面，为商品主图增加热卖元素。\n  触发词：优化图片、图片优化、主图优化、商品图片、改图。\nmetadata:\n  openclaw:\n    emoji: \"🖼️\"\n  interactions:\n    - name: open_tab_image_optimize\n      type: open_tab\n      selectionType: shop_backend\n      description: \"根据上下文是否包含商品ID，输出对应的open_tab JSON唤起图片优化页面，流程结束，禁止反问用户\"\n      required_data:\n        url: \"图片优化页面URL，有商品ID时拼接offerId参数\"\n        pageTitle: \"图片优化\"\n        pageDescription: \"自动为商品主图增加热卖元素，以获取更多的买家点击与下单\"\n        icon: \"图标URL\"\n---\n\n# 1688-item-image-optimizer — 商品图片智能优化\n\n## 技能概述\n\n1688 商品图片智能优化助手。根据上下文是否包含商品 ID，打开对应的图片优化页面。\n\n## Agent 执行规范\n\n**禁止反问用户、禁止调用任何 CLI 命令、禁止执行任何额外逻辑。** 仅根据上下文判断是否包含商品 ID，直接按 [`references/interaction-specs.md`](./references/interaction-specs.md) 中 `open_tab_image_optimize` 的数据结构返回对应的 JSON 即可，流程到此结束，无需任何后续步骤。\n\nFile v0.1.0:_meta.json\n\n{\n  \"ownerId\": \"kn76msg8cwkep3b08z7zffx9fx82p5wj\",\n  \"slug\": \"1688-item-image-optimizer\",\n  \"version\": \"0.1.0\",\n  \"publishedAt\": 1778320451527\n}\n\nFile v0.1.0:references/interaction-specs.md\n\n# 交互组件详细规范\n\n本文档定义了 1688-item-image-optimizer Skill 中所有交互组件的具体数据结构与映射规则。大模型在调用 `show_interaction` 前需查阅本文档，确保数据结构正确。\n\n---\n\n## 0. open_tab_image_optimize (Open Tab 组件)\n\n### 组件类型\n\n`type: open_tab` — 根据上下文是否包含商品 ID，输出对应的 JSON 唤起图片优化页面，**流程到此结束，禁止反问用户，禁止调用任何 CLI 命令，禁止执行任何额外逻辑。**\n\n### 分支 A — 上下文中未包含商品 ID\n\n直接返回以下 JSON：\n\n```json\n{\n  \"type\": \"open_tab\",\n  \"selectionType\": \"shop_backend\",\n  \"url\": \"https://air.1688.com/app/CSBC-modules/csbc-ai-component-loader/picture-optimize.html\",\n  \"pageTitle\": \"图片优化\",\n  \"pageDescription\": \"自动为商品主图增加热卖元素，以获取更多的买家点击与下单\",\n  \"icon\": \"https://img.alicdn.com/imgextra/i4/O1CN01mrO0tG29hOrSoKhyr_!!6000000008099-2-tps-80-80.png\"\n}\n```\n\n### 分支 B — 上下文中包含商品 ID\n\n将商品 ID 拼接到 URL 的 `offerId` 参数中，返回以下 JSON（示例中 `123123` 替换为实际商品 ID）：\n\n```json\n{\n  \"type\": \"open_tab\",\n  \"selectionType\": \"shop_backend\",\n  \"url\": \"https://air.1688.com/app/CSBC-modules/csbc-ai-component-loader/picture-optimize.html?offerId=123123\",\n  \"pageTitle\": \"图片优化\",\n  \"pageDescription\": \"自动为商品主图增加热卖元素，以获取更多的买家点击与下单\",\n  \"icon\": \"https://img.alicdn.com/imgextra/i4/O1CN01mrO0tG29hOrSoKhyr_!!6000000008099-2-tps-80-80.png\"\n}\n```\n\n### 行为说明\n\n- 该交互为 **fire-and-forget** 模式，输出 JSON 后流程即结束，无需任何后续步骤\n- 聊天区会同步出现一张只读气泡卡片\n\n---\n\nFile v0.1.0:skill-card.md\n\n## Description: <br>\nOpens the 1688 product image optimization page and, when a product ID is present, includes it in the page URL. <br>\n\nThis skill is ready for commercial/non-commercial use. <br>\n\n## Publisher: <br>\n[1688aiinfra](https://clawhub.ai/user/1688aiinfra) <br>\n\n### License/Terms of Use: <br>\nMIT-0 <br>\n\n\n## Use Case: <br>\nExternal users and 1688 shop operators use this skill to open a product image optimization workflow for main product images, optionally scoped to a detected offer ID. <br>\n\n### Deployment Geography for Use: <br>\nGlobal <br>\n\n## Known Risks and Mitigations: <br>\nRisk: The released package includes CLI configuration behavior for a 1688 access key, even though the advertised workflow is a simple page opener. <br>\nMitigation: Use the open_tab interaction only unless API-key configuration is intentionally needed and reviewed. <br>\nRisk: Providing a 1688 access key may store it in local OpenClaw configuration or send it to a configured OpenClaw gateway. <br>\nMitigation: Review the configured gateway and local OpenClaw settings before entering credentials. <br>\nRisk: CLI use may report usage metadata. <br>\nMitigation: Avoid running the bundled CLI in environments where usage telemetry is not acceptable. <br>\n\n\n## Reference(s): <br>\n- [ClawHub skill page](https://clawhub.ai/1688aiinfra/1688-item-image-optimizer) <br>\n- [Publisher profile](https://clawhub.ai/user/1688aiinfra) <br>\n- [Interaction component specification](references/interaction-specs.md) <br>\n- [1688 image optimization page](https://air.1688.com/app/CSBC-modules/csbc-ai-component-loader/picture-optimize.html) <br>\n\n\n## Skill Output: <br>\n**Output Type(s):** [JSON, guidance] <br>\n**Output Format:** [JSON open_tab interaction payload] <br>\n**Output Parameters:** [1D] <br>\n**Other Properties Related to Output:** [May include an offerId query parameter when a product ID is available.] <br>\n\n## Skill Version(s): <br>\n0.1.0 (source: server release evidence) <br>\n\n## Ethical Considerations: <br>\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. <br>","readmeExcerpt":"Skill: 1688-item-image-optimizer Owner: 1688aiinfra Summary: 商品图片制作统一入口：主图优化、轮播图、详情图、背景替换、数字模特。 核心能力：verify_permission（高级版权限校验）、build_tool_url（构建工具页 URL）、configure（AK 配置）。 触发词：做一套图、做图、出图、优化主图、主图优化、轮播图、详情图、背景替换、数字模特、商品图片、改图、图片优化。 不应触发：新品发布/批量上架（走发品 skill）、品牌VI/海报/店铺装修、图片规范问答。 本 Skill 的图片制作流程已由 workflow 编排覆盖，命中触发词时直接执行 workflow。如果 workflow 无法完成任务（如纯能力问答、单命令调用、探索性使用），加载本 SKILL.md 进行推理。 Tags: latest:0.51.0 Version histor","codeSnippets":[],"executableExamples":[{"language":"json","snippet":"{\n  \"type\": \"open_tab\",\n  \"selectionType\": \"shop_backend\",\n  \"url\": \"https://pre-air.1688.com/app/CSBC-modules/csbc-ai-component-loader/picture-optimize.html?__mtop_subdomain__=wapa&type=oneOptimization&imgUrl=%2FUsers%2Fseller%2FDesktop%2Fproduct.jpg\",\n  \"title\": \"主图优化\"\n}"},{"language":"json","snippet":"{\n  \"type\": \"open_tab\",\n  \"selectionType\": \"shop_backend\",\n  \"url\": \"https://pre-air.1688.com/app/CSBC-modules/csbc-ai-component-loader/picture-optimize.html?__mtop_subdomain__=wapa&type=carouselImage&imgUrlList=%2Fpath%2F1.jpg%2C%2Fpath%2F2.jpg\",\n  \"title\": \"轮播图制作\"\n}"},{"language":"json","snippet":"{\n  \"type\": \"open_tab\",\n  \"selectionType\": \"shop_backend\",\n  \"url\": \"https://pre-air.1688.com/app/CSBC-modules/csbc-ai-component-loader/picture-optimize.html?__mtop_subdomain__=wapa&type=detailImage&offerId=1016555587352\",\n  \"title\": \"详情图制作\"\n}"},{"language":"json","snippet":"{\n  \"type\": \"open_tab\",\n  \"selectionType\": \"shop_backend\",\n  \"url\": \"https://pre-air.1688.com/app/CSBC-modules/csbc-ai-component-loader/picture-optimize.html?__mtop_subdomain__=wapa&type=replaceSubject&imgUrl=%2Fpath%2Fproduct.jpg\",\n  \"title\": \"背景替换\"\n}"},{"language":"json","snippet":"{\n  \"type\": \"card\",\n  \"selectionType\": \"image_type\",\n  \"questions\": [\n    { \"question\": \"你想制作哪种商品图片？\", \"options\": [\"主图优化\", \"背景替换\"], \"allowMultiple\": false, \"required\": true }\n  ]\n}"},{"language":"json","snippet":"{\n  \"type\": \"card\",\n  \"selectionType\": \"image_type\",\n  \"questions\": [\n    { \"question\": \"你想制作哪种商品图片？\", \"options\": [\"主图优化\", \"轮播图\", \"详情图\", \"背景替换\", \"数字模特\"], \"allowMultiple\": false, \"required\": true }\n  ]\n}"}],"parameters":null,"dependencies":[],"permissions":[],"extractedFiles":[{"path":"SKILL.md","content":"---\nname: 1688-item-image-optimizer\nversion: 1.0.0\ndescription: >-\n  商品图片制作统一入口：主图优化、轮播图、详情图、背景替换、数字模特。\n  核心能力：verify_permission（高级版权限校验）、build_tool_url（构建工具页 URL）、configure（AK 配置）。\n  触发词：做一套图、做图、出图、优化主图、主图优化、轮播图、详情图、背景替换、数字模特、商品图片、改图、图片优化。\n  不应触发：新品发布/批量上架（走发品 skill）、品牌VI/海报/店铺装修、图片规范问答。\n  本 Skill 的图片制作流程已由 workflow 编排覆盖，命中触发词时直接执行 workflow。如果 workflow 无法完成任务（如纯能力问答、单命令调用、探索性使用），加载本 SKILL.md 进行推理。\nmetadata:\n  engine: false\n  openclaw:\n    emoji: \"🖼\"\ninteractions:\n  - name: open_tab_image_optimize\n    type: open_tab\n    selectionType: shop_backend\n    description: \"路由到商品图片工具页面（主图优化/轮播图/详情图/背景替换/数字模特），URL 由 build_tool_url capability 构建\"\n    required_data:\n      url: \"完整工具页面 URL（由 build_tool_url 返回的 data.open_tab.url）\"\n      title: \"页面标题（主图优化/轮播图制作/详情图制作/背景替换/数字模特）\"\n  - name: select_image_type\n    type: card\n    selectionType: image_type\n    description: \"用户意图模糊时，引导选择要制作的图片类型\"\n    required_data:\n      questions: \"图片类型选项数组\"\n  - name: select_images\n    type: card\n    selectionType: image\n    description: \"上传图片超出工具限制时，引导用户选择要处理的图片子集\"\n    required_data:\n      questions: \"图片选项数组（多选）\"\n---\n\n# 1688-item-image-optimizer — 商品图片制作统一入口\n\n> 编排流程（意图识别 → 权限校验 → 构建入口 → open_tab）由 `workflow/1688-item-image-optimizer.js` 确定性执行。本文件只描述**能力**：有哪些 CLI 命令、各自怎么调、返回什么、业务约束是什么。供纯问答 / 单命令调用 / 引擎委托时参考。\n\n统一入口：`python3 {baseDir}/cli.py <command> [options]`\n所有命令输出 JSON：`{\"success\": bool, \"markdown\": str, \"data\": {...}}`\n\n## 命令速查\n\n| 命令 | 必填参数 | 说明 |\n|------|---------|------|\n| `verify_permission` | 无 | 校验数字模特权限（返回 isAi/digitalModel/faceFix） |\n| `build_tool_url` | `--type` | 构建图片工具页面 URL，返回 open_tab 透传对象 |\n| `configure` | （AK 位置参数，可选） | 配置/查看 AK；无参看状态 |\n\n## 能力详述\n\n### verify_permission\n\n- **签名**：`cli.py verify_permission`（无参，商家身份由 AK 网关签名自动识别）\n- **返回结构**：业务数据嵌套在 `data.data` 内 —— `{\"success\": true, \"data\": {\"data\": {\"isAi\": bool, \"digitalModel\": bool, \"faceFix\": bool}}}`\n- **关键字段**：\n  - `isAi`：是否高级版（保留字段，当前 skill 不做权限判断）\n  - `digitalModel`：是否有数字模特权限（决定 digitalModel 能否使用）\n  - `faceFix`：脸部修复权限（暂未使用）\n- **业务含义**：仅数字模特（digitalModel）路由前必须校验；一次会话内结果可复用。\n\n### build_tool_url\n\n- **签名**：`cli.py build_tool_url --type <type> [--offer-id ID] [--img-url URL] [--img-url-list URL1,URL2]`\n- **返回结构**：`{\"success\": bool, \"markdown\": str, \"data\": {\"open_tab\": {\"type\": \"open_tab\", \"url\": \"...\", \"title\": \"...\"}}}`\n- **`--type` 取值**（CLI 支持 7 个；前 5 个为当前业务动线类型，后 2 个 CLI 支持但编排动线未独立暴露）：\n\n  | type | 中文标题 | 图片参数 | 业务动线 |\n  |------|---------|---------|---------|\n  | `main` | 主图优化 | `--img-url`（单图） | ✅ |\n  | `carousel` | 轮播图制作 | `--img-url-list`（多图） | ✅ |\n  | `detail` | 详情图制作 | `--img-url-list`（多图） | ✅ |\n  | `replaceSubject` | 背景替换 | `--img-url`（单图） | ✅ |\n  | `digitalModel` | 数字模特 | `--img-url`（单图） | ✅ |\n  | `matting` | 白底图 | `--img-url`（单图） | CLI 支持 |\n  | `outpainting` | 一键扩图 | `--img-url`（单图） | CLI 支持 |\n\n- **图片参数与工具类型必须匹配**：单图工具传 `--img-url`、多图工具传 `--img-url-list`，错配 CLI 直接报错（让上游自纠）。空字符串视为无效图片报错；不传则跳过（工具页自带上传入口）。\n- **业务含义**：URL 由 CLI 构建（已 URL encode），**禁止 LLM 编造/拼接**。`success=false` 时禁止触发 open_tab。\n\n### configure"},{"path":"_meta.json","content":"{\n  \"ownerId\": \"kn76msg8cwkep3b08z7zffx9fx82p5wj\",\n  \"slug\": \"1688-item-image-optimizer\",\n  \"version\": \"0.51.0\",\n  \"publishedAt\": 1788490712302\n}"},{"path":"references/interaction-specs.md","content":"# 交互组件详细规范 — 1688-item-image-optimizer\n\n本文档定义了本 Skill 中所有交互组件的具体数据结构与映射规则。大模型在调用 `show_interaction` 前需查阅本文档，确保数据结构正确。\n\n---\n\n## 1. open_tab_image_optimize（open_tab 组件）\n\n### 组件类型\n`type: open_tab`\n\n### 数据槽位\n\n| 字段 | 类型 | 必填 | 说明 |\n|------|------|------|------|\n| `type` | string | ✅ | 固定 `\"open_tab\"` |\n| `selectionType` | string | ✅ | 固定 `\"shop_backend\"` |\n| `url` | string | ✅ | 由 `build_tool_url` capability 返回的完整 URL（已经过 URL encode） |\n| `title` | string | ✅ | 页面标题：`主图优化` / `轮播图制作` / `详情图制作` / `背景替换` / `数字模特` |\n\n### 完整调用示例\n\n**主图优化（main）：**\n```json\n{\n  \"type\": \"open_tab\",\n  \"selectionType\": \"shop_backend\",\n  \"url\": \"https://pre-air.1688.com/app/CSBC-modules/csbc-ai-component-loader/picture-optimize.html?__mtop_subdomain__=wapa&type=oneOptimization&imgUrl=%2FUsers%2Fseller%2FDesktop%2Fproduct.jpg\",\n  \"title\": \"主图优化\"\n}\n```\n\n**轮播图（多图）：**\n```json\n{\n  \"type\": \"open_tab\",\n  \"selectionType\": \"shop_backend\",\n  \"url\": \"https://pre-air.1688.com/app/CSBC-modules/csbc-ai-component-loader/picture-optimize.html?__mtop_subdomain__=wapa&type=carouselImage&imgUrlList=%2Fpath%2F1.jpg%2C%2Fpath%2F2.jpg\",\n  \"title\": \"轮播图制作\"\n}\n```\n\n**详情图（商品 ID）：**\n```json\n{\n  \"type\": \"open_tab\",\n  \"selectionType\": \"shop_backend\",\n  \"url\": \"https://pre-air.1688.com/app/CSBC-modules/csbc-ai-component-loader/picture-optimize.html?__mtop_subdomain__=wapa&type=detailImage&offerId=1016555587352\",\n  \"title\": \"详情图制作\"\n}\n```\n\n**背景替换（replaceSubject，单图）：**\n```json\n{\n  \"type\": \"open_tab\",\n  \"selectionType\": \"shop_backend\",\n  \"url\": \"https://pre-air.1688.com/app/CSBC-modules/csbc-ai-component-loader/picture-optimize.html?__mtop_subdomain__=wapa&type=replaceSubject&imgUrl=%2Fpath%2Fproduct.jpg\",\n  \"title\": \"背景替换\"\n}\n```\n\n> 其余单图工具——数字模特（`type=digitalModel` / 标题`数字模特`）——URL 结构同背景替换，仅 `type` 与 `title` 不同，均用 `imgUrl` 单图参数。\n\n### 注意事项\n- URL 必须来自 `build_tool_url` 返回，**禁止 LLM 编造/拼接**\n- `build_tool_url` 返回 `success=false` 时禁止触发\n- 触发即为 skill 终态，不追加文字引导\n\n---\n\n## 2. select_image_type（card 组件）\n\n### 组件类型\n`type: card`\n\n### 触发时机\n触发词命中但 LLM 无法确定具体图片类型时（如\"帮我做一套图\"）\n\n### ⚠️ 有权限的所有 type 全部平铺 + 先校验权限\n\n1. 弹出前**先执行** `python3 {baseDir}/cli.py verify_permission` 拿权限（`data.data.isAi` / `data.data.digitalModel`），`success=false` 时按铁律 6 fail-closed 拦截。\n2. 按权限把**有权限的所有 type 全部平铺**进 `options`（不做收纳/Top3/「其他功能」）：\n\n| 权限 | `options`（全平铺） | 项数 |\n|------|--------------------|------|\n| `isAi=false`（基础版） | 主图优化、背景替换 | **2** |\n| `isAi=true, digitalModel=false`（高级版无数字模特） | ＋轮播图、详情图 | **4** |\n| `isAi=true, digitalModel=true`（高级版全权限） | ＋数字模特 | **5** |\n\n### 完整调用示例\n\n**基础版（2 项全平铺）：**\n```json\n{\n  \"type\": \"card\",\n  \"selectionType\": \"image_type\",\n  \"questions\": [\n    { \"question\": \"你想制作哪种商品图片？\", \"options\": [\"主图优化\", \"背景替换\"], \"allowMultiple\": false, \"required\": true }\n  ]\n}\n```\n\n**高级版全权限（5 项全平铺）：**\n```json\n{\n  \"type\": \"card\",\n  \"selectionType\": \"image_type\",\n  \"questions\": [\n    { \"question\": \"你想制作哪种商品图片？\", \"options\": [\"主图优化\", \"轮播图\", \"详情图\", \"背景替换\", \"数字模特\"], \"allowMultiple\": false, \"required\": true }\n  ]\n}\n```\n\n### 回传映射\n\n| 用户选择 | 对应 --type 参数 |\n|---------|"},{"path":"skill-card.md","content":"## Description:\n\nRoutes 1688 sellers to product image workflows for main image optimization, carousel images, detail images, background replacement, and digital model generation through permission checks and tool-page URL construction.\n\nThis skill is ready for commercial/non-commercial use.\n\n## Publisher:\n\n[1688aiinfra](https://clawhub.ai/user/1688aiinfra)\n\n### License/Terms of Use:\n\nMIT-0\n\n## Use Case:\n\nExternal 1688 sellers use this skill to choose and open the correct product-image creation tool for main images, carousels, detail images, background replacement, or digital model generation. The skill can also configure access credentials and verify digital model permission before routing restricted workflows.\n\n### Deployment Geography for Use:\n\nGlobal\n\n## Known Risks and Mitigations:\n\nRisk: The skill can persist a 1688 access key in local OpenClaw configuration.\n\nMitigation: Install only where local credential persistence is permitted; use scoped credentials where available and rotate or remove the key when the skill is no longer needed.\n\nRisk: The skill sends authenticated usage telemetry through the 1688 gateway after CLI commands.\n\nMitigation: Review telemetry acceptability before installation and deploy only in environments where this reporting is allowed.\n\nRisk: Opened tool URLs may include a session identifier and image or offer parameters.\n\nMitigation: Avoid sharing generated tool URLs or logs that contain them, and confirm that session handling matches the account's data-handling policy.\n\nRisk: Workflow instructions can limit what the parent agent says after execution.\n\nMitigation: Review and test workflow behavior before deployment so suppressed responses do not hide errors or unexpected outcomes.\n\n## Reference(s):\n\n- [ClawHub skill page](https://clawhub.ai/1688aiinfra/skills/1688-item-image-optimizer)\n- [Interaction specs](references/interaction-specs.md)\n- [1688 image tool entrypoint](https://air.1688.com/app/CSBC-modules/csbc-ai-component-loader/picture-optimize.html)\n\n## Skill Output:\n\n**Output Type(s):** [text, markdown, shell commands, configuration, guidance]\n\n**Output Format:** [JSON command results, Markdown messages, and OpenClaw interaction payloads.]\n\n**Output Parameters:** [1D]\n\n**Other Properties Related to Output:** [May open 1688 tool pages, show image-type or image-selection cards, and return fail-closed guidance when permission checks fail.]\n\n## Skill Version(s):\n\n0.51.0 (source: ClawHub release metadata; artifact frontmatter declares 1.0.0)\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."}],"languages":[],"docsSourceLabel":"CLAWHUB","editorialOverview":null,"editorialQuality":{"score":100,"threshold":65,"status":"thin","wordCount":1224,"uniquenessScore":44,"reasons":["uniqueness-below-45"]}},"media":{"evidence":{"source":"no-media","verified":false,"confidence":"low","updatedAt":"2026-10-12T00:50:00.136Z","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-12T00:50:00.136Z","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-15T02:25:41.357Z","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"}]}}}