Preface¶
Cross-border e-commerce product listing images often require white background main images or transparent PNGs. Local batch background removal usually involves launching Photoshop, scripts, or third-party web pages separately, which creates a fragmented workflow compared to the conversational code-editing flow in tools like Cursor or Claude Code. This article introduces the SkillHub community Skill “Miaoyan Xiaozhi (PicTech.cc) - Cross-border E-commerce Image Background Removal/White Background Image”: it delegates background removal, transparent backgrounds, white backgrounds, and solid color backgrounds to an Agent. It utilizes the RMBG capability of PicTech.cc via a unified call to index.js within the skill directory, rather than hand-writing API calls or piecing together temporary scripts during the conversation.
What is this¶
This is an Agent Skill designed for design-media tasks, identified as @user_587a311a/myxz-rmbg-skill. The current SkillHub version is 1.0.1, sourced from the community and maintained by the publisher user_587a311a. The capability belongs to Miaoyan Xiaozhi (PicTech.cc): the official website is https://www.pictech.cc, and the API service domain noted in the Skill documentation is https://stableai.com.cn. The SkillHub page is marked requires_api_key=true, requiring the configuration of a Miaoyan Xiaozhi VK (API Key). The access entry point is documented within the Skill: https://www.pictech.cc/newpictech/skills/openclaw-image-translation-skill.
Core Features¶
The following capabilities are sourced from the SKILL.md within the Skill package and the SkillHub description, and have been verified:
- Input formats: Local single image path, image URL, folder path, as well as arrays or comma-separated strings of the above forms.
- Output formats: Default is transparent background PNG; can fill with solid color backgrounds as required (e.g., white background
#ffffff, black background#000000, or other CSS color values). - Batch processing: Batch background removal for multiple images, folders, or mixed local and URL inputs; returns a success list, failure list, and save directory.
- Caching: If a successful record exists for the same image hash and the local file is present, the cached result may be reused directly (
cached: true). - Agent Constraints: The Agent should call the default export
run(params)ofindex.jsin this skill directory. Do not call the RMBG API directly in the reply, and do not implement polling and download logic manually.
Explicitly not applicable scenarios include ordinary retouching, compression, cropping, upscaling, style transfer, object replacement, and other edits unrelated to background removal.
Installation and Activation¶
1. Install SkillHub CLI (if not already installed)¶
Check the CLI according to the SkillHub installation instructions:
command -v skillhub && skillhub --version
If not installed, run the full installation (CLI + default Skills):
curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash
2. Install this Skill to the current Agent’s skills directory¶
During installation, you must use --dir to point to the actual skills directory read by the Agent; otherwise, the default location ./skills/ might not be recognized. The installation prompt given on the official page is: Install @user_587a311a/myxz-rmbg-skill according to https://skillhub.cn/install/skillhub.md. The equivalent command shown in CLI search results is:
skillhub install myxz-rmbg-skill --namespace user_587a311a --dir <your skills directory>
Common path examples (from SkillHub installation docs):
- Cursor:
~/.cursor/skills/ - Claude Code:
~/.claude/skills/ - Codex:
~/.codex/skills/or.agents/skills/under the project
After installation, install Node dependencies within the skill directory (package.json declares axios, form-data, @seald-io/nedb, etc.):
cd <skills directory>/@user_587a311a/myxz-rmbg-skill
npm install
A Node.js environment capable of running ES Modules is required (the skill’s package.json contains "type": "module").
3. Configure VK (API Key)¶
The Skill supports the following ways to provide the VK (choose one, do not leak in conversation or logs):
- Environment variable:
RMBG_VK - Call parameter:
vkorconfig.vk - Skill configuration item:
config.properties.vkinskill.json(Title: “API Key (VK)”)
If not configured for the first time, the Agent should guide the user to apply for one at PicTech.cc; locally, the VK may be persisted to a config file (do not expose the key content in replies).
Typical Usage¶
On the Agent side, import the entry from the skill directory and call run. Minimal single image removal (transparent background, defaults to saving in myxz-result/bgremove-v2 under the working directory unless saveDir is specified):
import run from './index.js';
const result = await run({
input: '/path/to/image.jpg'
});
Common white background main image for cross-border e-commerce:
const result = await run({
input: '/path/to/image.jpg',
backgroundColor: '#ffffff'
});
Batch mix local paths and URLs, and specify output directory:
const result = await run({
input: [
'/path/to/1.jpg',
'/path/to/2.png',
'https://example.com/image.jpg'
],
saveDir: '/path/to/output'
});
The return structure includes success, partialSuccess, message, and optional data (batchId, saveDir, successCount, failedCount, results, failures, etc.). On success, explain the quantity and data.saveDir to the user; for single images, data.results[0].localPath can be provided directly.
Natural language examples in conversation (consistent with the direction in the Skill documentation, parsed by the Agent and converted to the above calls):
- “Remove the background of
/path/to/鞋子.jpgand change it to a white background.” - “Remove backgrounds for all images in the desktop folder
Logo备份, output transparent PNGs.” - “Remove background for
https://example.com/phone.png, change background to#F5F5F5.”
Applicable Scenarios and Notes¶
Suitable for: Amazon etc. platform main image white backgrounds, batch export of product transparent assets, batch background removal for folders or URLs, handling images in the same context as copywriting and listing scripts within Agent workflows like OpenClaw / Cursor.
Limitations and Notes (from SKILL.md):
- Single local image must not exceed 15 MB.
- Folder input only processes image files passing built-in format validation.
- URL relies on remote accessibility; service timeout or network failure will result in
failures. - Output is PNG; do not pass
backgroundColorif a solid color background is not explicitly requested, to avoid accidental background color addition. - SkillHub statistics (based on community index): Rating 100000, Downloads 1157; please assess the security and compliance requirements of community Skills yourself before use.
Conclusion¶
If you are already handling code and documentation within an Agent but still switch tools repeatedly for background removal and white background images, you can install @user_587a311a/myxz-rmbg-skill into your current environment’s skills directory. After configuring RMBG_VK, use run() to unify the PicTech.cc background removal pipeline. Official Skill address: https://api.skillhub.cn/user_587a311a/myxz-rmbg-skill; SkillHub display page: https://www.skillhub.cn/skills/user_587a311a/myxz-rmbg-skill.