1688 Distributor

v1.0.0

Automate 1688.com product search, AI selection, batch distribution to your shop, and view distribution logs in one seamless workflow.

6· 746·3 current·4 all-time
Security Scan
VirusTotalVirusTotal
Benign
View report →
OpenClawOpenClaw
Suspicious
medium confidence
Purpose & Capability
The name/description (automate 1688 product search and distribution) aligns with the instructions: the SKILL.md contains step-by-step JavaScript for the 1688 AI selection and distribution workflow. It does not request unrelated credentials or binaries. However, it implicitly requires the ability to run page-context JavaScript in a browser (and an authenticated 1688 session), which is not declared explicitely in the metadata — a minor mismatch that should be documented for users.
!
Instruction Scope
The instructions direct executing DOM-manipulating JavaScript that will act with the user's authenticated 1688 session (clicking buttons, selecting shops, submitting distribution). That's expected for this feature, but the code uses extremely broad selectors (document.querySelectorAll('*') and text matching). Those heuristics can click unexpected elements or perform unintended operations if page text/structure differs or malicious UI elements exist. There is no explicit caution about running in a test account, nor clear error-handling or safeguards before destructive actions.
Install Mechanism
This is an instruction-only skill with no install spec and no code files — lowest install risk. Nothing is downloaded or written to disk by the skill metadata.
Credentials
The skill declares no environment variables or credentials, which is proportional. However, functioning requires an authenticated 1688 web session and the ability to run/inject JS into that page (e.g., browser console, extension, or automation environment). That required runtime capability and privileged access to the user's 1688/shop account are not called out in the metadata.
Persistence & Privilege
The skill does not request persistent or elevated platform privileges (always is false). It does not modify agent/system configs per the metadata.
What to consider before installing
This skill will run JavaScript inside the 1688 web UI and perform actions as whoever is logged in. Before using it: (1) Understand it requires a browser or automation environment that can inject/run the provided JS and you must be signed in to your 1688 account; (2) Review the JS carefully — it uses broad text-based selectors (document.querySelectorAll('*')) that can click the wrong buttons on page changes, so prefer running step-by-step rather than fully automated; (3) Test on a non-production/test shop or with a small batch to confirm behavior; (4) Do not paste or run these snippets if you don't trust the source — there is no server-side component, but the snippets run with your account privileges; (5) Disable autonomous/always-on execution for this skill and keep manual control so you can confirm actions before submission.

Like a lobster shell, security has layers — review code before you run it.

latestvk974s04yqtndrfdss274593dmh82em14
746downloads
6stars
1versions
Updated 1mo ago
v1.0.0
MIT-0

1688 Distributor - AI选品铺货自动化

自动化完成1688分销AI工作台的选品、铺货和日志查看全流程。

使用场景

当你说类似以下内容时触发:

  • "1688铺货" / "1688代发" / "1688分销"
  • "1688选品" / "AI选品"
  • "去1688找点货"
  • 提供店铺名和选品条件时

准备信息

执行前需要你提供:

  1. 店铺名称 - 例如:kyeshop小店
  2. 选品条件(可选,使用默认值如果不提供)
    • 一件起批
    • 48小时发货
    • 7天无理由退货
    • 包邮
    • 价格范围:10-30元(可自定义)
    • 退货率低于10%
    • 最近好卖的商品

示例:

去1688帮我铺货20个商品到kyeshop小店,条件是:一件起批,48小时发货,7天无理由,包邮,价格10-30元,退货率低于10%

自动化流程

步骤1:访问1688 AI选品页面

导航至:https://air.1688.com/app/channel-fe/distribution-work/ai-assistant.html#/multi-agent

步骤2:AI选品搜索

使用JavaScript执行以下操作:

// 点击AI选品按钮
const aiSelectBtn = [...document.querySelectorAll('*')].find(el => el.textContent.includes('ai选品'));
if(aiSelectBtn) aiSelectBtn.click();

// 输入选品条件(可替换)
const searchBox = document.querySelector('[placeholder*="一句提问"], [placeholder*="秒级解答"]');
if(searchBox) {
  searchBox.value = "一件起批,48小时发货,7天无理由,包邮,价格在10-30元,退货率低于10%,最近好卖的商品";
  searchBox.dispatchEvent(new Event('input', { bubbles: true }));
}

// 等待AI生成(检查"查看详情"按钮)
await new Promise(resolve => {
  const checkBtn = setInterval(() => {
    const btn = [...document.querySelectorAll('*')].find(el => el.textContent.includes('查看详情'));
    if(btn && btn.offsetParent !== null) {
      clearInterval(checkBtn);
      resolve(btn);
    }
  }, 500);
  setTimeout(() => clearInterval(checkBtn), 30000); // 30秒超时
}).then(btn => btn?.click());

步骤3:查看并全选商品

// 等待商品表格加载
await new Promise(resolve => setTimeout(resolve, 3000));

// 点击"本页全选"
const selectAllCheckbox = document.querySelector('[aria-label="Select all"], input[type="checkbox"][aria-label*="all"]');
if(selectAllCheckbox && !selectAllCheckbox.checked) {
  selectAllCheckbox.click();
}

// 确认全选成功(检查20个商品)
const checkedCount = document.querySelectorAll('table input[type="checkbox"]:checked').length;
console.log(`已选择 ${checkedCount} 个商品`);

步骤4:立即铺货

// 查找并点击"立即铺货"按钮
const distributeBtn = [...document.querySelectorAll('button, div[role="button"]')].find(el => 
  el.textContent && el.textContent.includes('立即铺货') && el.offsetParent !== null
);

if(distributeBtn) {
  distributeBtn.scrollIntoView({ behavior: 'smooth', block: 'center' });
  distributeBtn.click();
} else {
  console.error('未找到"立即铺货"按钮');
}

步骤5:选择店铺并确认

如果弹出店铺选择框,选择目标店铺:

// 查找并点击目标店铺(替换店铺名)
const targetShop = "kyeshop小店"; // 从用户输入获取
const shopElements = [...document.querySelectorAll('*')].filter(el => 
  el.textContent && el.textContent.includes(targetShop) && el.offsetParent !== null
);

if(shopElements.length > 0) {
  shopElements[shopElements.length - 1].click();
}

// 查找并点击确认按钮
const confirmBtn = [...document.querySelectorAll('*')].find(el => 
  el.textContent && el.textContent.includes('立即铺货') && el.offsetParent !== null
);
if(confirmBtn) confirmBtn.click();

步骤6:查看铺货日志

// 方式一:点击弹窗中的"铺货日志"按钮
const logBtn = [...document.querySelectorAll('*')].find(el => 
  el.textContent && el.textContent.includes('铺货日志') && el.offsetParent !== null
);
if(logBtn) logBtn.click();

// 方式二:通过导航菜单进入
const distributeMenu = [...document.querySelectorAll('*')].find(el => 
  el.textContent && el.textContent.includes('铺货') && el.offsetParent !== null
);
if(distributeMenu) distributeMenu.click();

// 等待后点击"复制日志"
await new Promise(resolve => setTimeout(resolve, 2000));
const copyLogBtn = [...document.querySelectorAll('*')].find(el => 
  el.textContent && el.textContent.includes('复制日志') && el.offsetParent !== null
);
if(copyLogBtn) copyLogBtn.click();

执行输出

执行完成后返回以下信息:

✅ AI选品完成 - 找到 [数量] 个商品
✅ 已全选 [数量] 个商品
✅ 铺货提交成功
📦 目标店铺:[店铺名]
📊 铺货数量:[数量]
📝 铺货状态:正在铺货中...

常见问题

Q: 如果"立即铺货"按钮找不到怎么办? A: 等待3-5秒让页面完全加载,然后使用快照查看页面状态,确认按钮位置。

Q: 店铺选择框没有自动弹出? A: 检查是否已经有默认店铺被选中,或手动点击铺货按钮后等待弹窗。

Q: 铺货日志页面一直在加载? A: 等待5-10秒,系统需要时间处理铺货请求。如果超过30秒仍无响应,检查是否有错误提示。

关键页面元素

功能元素标识
AI选品按钮文本包含"ai选品"
搜索框placeholder包含"一句提问"
查看详情文本包含"查看详情"
本页全选aria-label="Select all"
立即铺货文本包含"立即铺货"
铺货日志文本包含"铺货日志"
复制日志文本包含"复制日志"
kyeshop小店文本包含"kyeshop小店"

优化技巧

  1. 批量执行:将所有JavaScript操作合并到一个命令中,减少页面交互次数
  2. 快速等待:使用短间隔轮询(500ms)检查元素出现,而不是固定等待
  3. 错误重试:对关键操作(如点击"立即铺货")添加自动重试机制
  4. 日志确认:每次操作后console.log状态,便于调试

示例调用

请去1688帮我选品,铺货到kyeshop小店,价格10-30元,其他条件默认

执行结果:

🔍 正在访问1688 AI选品...
🤖 AI选品条件:一件起批,48小时发货,7天无理由,包邮,价格在10-30元,退货率低于10%,最近好卖的商品
⏳ 等待AI生成结果...
✅ 找到563个商品
📋 正在全选商品...
✅ 已全选20个商品
🚀 正在提交铺货...
✅ 铺货提交成功
📦 目标店铺:kyeshop小店
📊 铺货数量:20个商品
📝 铺货状态:正在铺货中...可在铺货日志中查看详情

Comments

Loading comments...