DesignKit Skills 公共 ClawHub 包,用于 DesignKit 图像编辑和电商产品图像工作流。实际运行时默认面向中文用户,用简体中文收集参数、确认操作并返回结果。...(由于字符限制,完整内容请参考原文)
Public ClawHub bundle for DesignKit image editing and ecommerce product-image workflows.
实际运行时默认面向中文用户,用简体中文收集参数、确认操作并返回结果。
Purpose
- Route to
designkit-edit-tools for single-image background removal or image restoration.
- Route to
designkit-ecommerce-product-kit for multi-step ecommerce product-image generation.
- Keep the public package description English-friendly for ClawHub, while keeping the actual user conversation natural in Simplified Chinese.
Public Installation Posture
- Explain actions in product terms such as background removal, image restoration, or ecommerce image generation.
- Default user-facing replies to Simplified Chinese unless the user explicitly prefers another language.
- Only process image URLs or local file paths that the user explicitly provides for the requested task.
- If the user supplies a local image path, make clear that the file will be uploaded to the remote DesignKit / OpenClaw service.
- Do not expose credentials, raw request or response payloads, internal headers, or local script paths unless the user explicitly asks for technical details.
Routing Rules
1. designkit-edit-tools
Route here when user intent matches:
- Background removal, cutout, transparent background, white background
- Image restoration, blurry photo fix, image enhancement, sharpening
Common search terms:
抠图, 去背景, 透明底, 白底图, 画质修复, 变清晰, image restoration, background removal
2. designkit-ecommerce-product-kit
Route here when user intent matches:
- Ecommerce listing image sets
- Product hero images and detail images
- Launch-ready marketplace image packs from an existing product photo
Common search terms:
电商套图, 商品套图, 主图详情图, listing images, amazon listing images, product image set
If the request is ambiguous, ask one short clarification question before routing.
Conversation Flow (Required)
- Recognize the user intent and route to the matching sub-skill.
- Ask for the missing image first if the user has not already provided one.
- Ask only the 1-2 most important missing inputs in each turn. Do not turn the conversation into a long form.
- Use defaults for optional parameters unless the user explicitly asks to control them.
- Once enough information is available, briefly restate the action in Chinese and execute it directly.
Execution
For single-image editing:
bash __SKILL_DIR__/scripts/run_command.sh --input-json ''
For ecommerce listing images:
- Read
__SKILL_DIR__/skills/designkit-ecommerce-product-kit/SKILL.md.
- Follow its staged conversation flow exactly.
- Execute
run_ecommerce_kit.sh only after the staged inputs are complete.
These commands are internal execution guidance for the agent. Do not quote command lines to end users unless they explicitly ask for implementation details.
Runtime And Safety
- Requires
DESIGNKIT_OPENCLAW_AK.
- Local file uploads are limited to
JPG/JPEG/PNG/WEBP/GIF image files.
- Local images supplied by the user may be uploaded to the remote DesignKit / OpenClaw API.
- Ecommerce renders are downloaded back to a local output directory after completion.
- Request logging is off by default. Only enable
OPENCLAW_REQUEST_LOG=1 for debugging; sensitive fields are redacted.
- Never reveal credentials, raw internal errors, or unrelated local file contents.
Result Handling
- If the script returns
ok: true, render the returned image URLs for the user.
- If the script returns
ok: false, use user_hint as the user-facing guidance instead of dumping raw JSON.
Privacy Defaults
- Request logging is disabled by default.
- If request logging is enabled manually,
X-Openclaw-AK, signed upload data, and similar sensitive values stay redacted.
- Local images are uploaded only when the user explicitly provides a local file path for the requested task.
- The default runtime conversation language is Simplified Chinese.
Error Types
error_type | Guidance |
|---|
CREDENTIALS_MISSING | Ask the user to configure DESIGNKIT_OPENCLAW_AK |
AUTH_ERROR | Ask the user to verify the API key |
ORDER_REQUIRED | Tell the user to top up credits before retrying |
QPS_LIMIT | Tell the user to retry later |
TEMPORARY_UNAVAILABLE | Tell the user the service is temporarily unavailable |
PARAM_ERROR | Ask the user to provide or correct the missing input |
UPLOAD_ERROR | Ask the user to check the image or network |
API_ERROR | Ask the user to retry or use a different image |