用于 PicWish(佐糖)图像处理的根路由技能,路由至 picwish-segmentation、picwish-face-cutout、picwish-upscale、picwish-object-removal
This is the top-level routing skill for PicWish image processing. It routes user intents to the appropriate sub-skill. Each sub-skill maps to exactly one PicWish API endpoint.
User IntentRoutes ToRemove background / transparent PNG / cutoutpicwish-segmentationFace/avatar cutoutpicwish-face-cutoutSharpen / upscale / enhance resolutionpicwish-upscaleErase object with mask / inpaintpicwish-object-removalAuto watermark removalpicwish-watermark-removeID photo / passport / visa photopicwish-id-photoColorize B&W photopicwish-colorizeCompress / reduce file size / resizepicwish-compressOCR / extract textpicwish-ocrStraighten document / crop / perspective correctionpicwish-smart-cropClothing segmentation / fashion parsingpicwish-clothing-seg
Before routing to a sub-skill, resolve the image source using the following priority:
URL in message — User provided https://... link → pass as image_url (or url for watermark-remove)
Local path in message — User provided an absolute/relative file path → pass as image_file (or file for watermark-remove)
File attachment — User uploaded/attached an image file:
image_fileimage_urlimage_base64 in --input-json (optionally set image_ext for the file extension, defaults to png); run_task.mjs handles the decoding internally via Node.js without any shell commandsNo image found — Ask user: "Please provide an image (URL, local file path, or attach a file)."
All sub-skills follow this same resolution order. The resolved
image_urlorimage_fileis passed into--input-json.
file_read covers the OpenClaw config, project files in the current workspace, shared visual memory under ~/.openclaw/workspace/visual/, and helper scripts under ~/.openclaw/workspace/scripts/.file_write covers project-mode output ( ./output/) and one-off outputs under ~/.openclaw/workspace/visual/output/.exec covers node for run_task.mjs execution and optional oc-workspace.mjs helper.oc-workspace.mjs is only looked up at ~/.openclaw/workspace/scripts/oc-workspace.mjs — a fixed path fully managed by the user.node if it already exists.When intent is unclear: