← 返回 Skills 市场
chenyongzhen

1688 Shopkeeper.Bak

作者 CHENYONGZHEN · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
94
总下载
0
收藏
1
当前安装
1
版本数
在 OpenClaw 中安装
/install 1688-shopkeeper-bak
功能描述
1688选品铺货 + 商机趋势专家。用于:(1) 在1688搜索商品/选品找货源 (2) 查询已绑定的下游店铺 (3) 将商品铺货到抖音/拼多多/小红书/淘宝等平台 (4) 配置1688 AK密钥 (5) 查看即时商机热榜 (6) 查看类目/行业趋势与价格分布 (7) 生成店铺经营日报并输出主营商品选品建议。 触...
使用说明 (SKILL.md)

1688-shopkeeper

统一入口:python3 {baseDir}/cli.py \x3Ccommand> [options]

命令速查

命令 说明 示例
search 找商品 cli.py search --query "帮我找1688上支持一件代发包邮的露营椅,100元以内" --channel douyin
prod_detail 商品详情 cli.py prod_detail --item-ids "991122553819,894138137003"
shops 查绑定店铺 cli.py shops
publish 铺货 cli.py publish --shop-code CODE --data-id ID
opportunities 商机热榜 cli.py opportunities
trend 趋势洞察 cli.py trend --query "大码女装"
shop_daily 店铺经营日报 cli.py shop_daily
configure 配置 AK cli.py configure YOUR_AK
check 检查配置状态 cli.py check

所有命令输出 JSON:{"success": bool, "markdown": str, "data": {...}} 展示时直接输出 markdown 字段,Agent 分析追加在后面,不得混入其中。

使用流程

Agent 根据用户意图直接执行对应命令,无需每次先执行 check。 各命令在 AK 缺失、店铺异常等情况下会自行返回明确错误,Agent 按下方「异常处理」应对即可。

选品铺货典型路径search → 用户筛选 → shops(确认目标店铺) → publish

商品详情使用指引

  • prod_detail:用户想看商品标题、价格、类目、SKU、CPV 属性、商家信息时使用。

商机/趋势使用指引

  • opportunities:用户想看“此刻/近1小时/热榜/趋势商机”。
  • trend:用户询问某宽泛类目/行业的周期趋势、价格分布、热品概况;关键词过长或过细时先按用户原词尝试,若空结果再提示用户换更宽泛/拆分词后重试。
  • shop_daily:用户想看“店铺经营日报/今日动销/渠道经营诊断/主营商品选品建议”。

安全声明

风险级别 命令 Agent 行为
只读 search, shops, check, opportunities, trend, shop_daily 直接执行
配置 configure 提示影响范围后执行
写入 publish 必须先 dry-run 预检查;仅当写入目标不唯一时追问,目标唯一则直接执行

全局写入规则(适用于所有写操作)

  1. 必须先执行 dry-run。
  2. 仅当写入目标不唯一(商品或店铺存在多个候选)时,才向用户追问一次做歧义消解。
  3. 目标唯一时,dry-run 成功后直接执行正式写入,不再二次确认。

异常处理

任何命令输出 success: false 时:

  1. 先输出 markdown 字段(已包含用户可读的错误描述)
  2. 再根据关键词追加引导
markdown 关键词 Agent 额外动作
"AK 未配置" 或 "签名无效"/"401" 输出下方 AK 引导话术
"授权过期" 提示用户在 1688 AI版 APP 中重新授权
"店铺未绑定" 或 shops 返回 0 个店铺 输出下方 开店引导话术
"限流"/"429" 建议用户等待 1-2 分钟后重试
其他 仅输出 markdown 即可

详细错误码说明见 references/common/error-handling.md

执行前置(首次命中能力时必须)

  • 首次执行 search 前:先完整阅读 references/capabilities/search.md
  • 首次执行 prod_detail 前:先完整阅读 references/capabilities/prod_detail.md
  • 首次执行 shops 前:先完整阅读 references/capabilities/shops.md
  • 首次执行 publish 前:先完整阅读 references/capabilities/publish.md
  • 首次执行 configure 前:先完整阅读 references/capabilities/configure.md
  • 首次执行 opportunities 前:先完整阅读 references/capabilities/opportunities.md
  • 首次执行 trend 前:先完整阅读 references/capabilities/trend.md
  • 首次执行 shop_daily 前:先完整阅读 references/capabilities/shop_daily.md
  • 同一会话内后续重复调用同一能力可复用已加载知识;仅在规则冲突或文档更新时重读。

AK 引导话术

"需要先配置 AK。打开 1688 AI版 APP(没装的话点链接下载),首页点击「一键部署开店Claw,全自动化赚钱🦞」,进入页面获取 AK,然后告诉我:'我的AK是 xxx'"

开店引导话术

"还没有绑定店铺。打开 1688 AI版APP → 首页「一键开店」,开好后告诉我。"

FAQ 知识库(按需加载)

用户问经营或技术问题时,先加载对应文件再回答,不凭经验泛泛而谈。

用户话题 加载文件
AK 问题、铺货失败、支持平台、收费 references/faq/base.md
选哪个平台、抖店/拼多多/淘宝 references/faq/platform-selection.md
选品风险、品类、节日选品 references/faq/product-selection.md
运费模板、定价、加价倍率 references/faq/listing-template.md
发货超时、中转费、偏远地区 references/faq/fulfillment.md
退货、仅退款、运费险、售后 references/faq/after-sales.md
新店破零、服务分、推广 references/faq/new-store.md
素材审核、白底图、标题优化 references/faq/content-compliance.md
安全使用建议
What to check before installing/using this skill: 1) Confirm provenance: the package metadata shows 'Source: unknown' but the README references a GitHub repo. Prefer code from a trusted publisher or official repo. Verify the repository content yourself if possible. 2) Be aware it will ask for and persist your ALI_1688_AK (Access Key). The configure command will either call a local OpenClaw Gateway API (OPENCLAW_GATEWAY_URL) or write to your OpenClaw config file (default ~/.openclaw/openclaw.json). If you are uncomfortable with it writing global agent configuration, do not provide the AK or run configure; instead run the CLI locally in an isolated environment. 3) The skill ships Python code but provides no install step for dependencies. Ensure python3 and the 'requests' package are available in the environment where the CLI will run, or the commands may fail. Avoid running arbitrary pip installs suggested by untrusted sources. 4) Environment variables used but not declared: OPENCLAW_GATEWAY_URL, OPENCLAW_GATEWAY_TOKEN, OPENCLAW_CONFIG_DIR, OPENCLAW_WORKSPACE_DIR. Understand their current values (or absence) in your environment — the skill's behavior (e.g., whether it talks to a local gateway or writes files) depends on them. 5) Review the code paths that write files (configure_via_file) and the default data/workspace dirs in scripts/_const.py if you care about where files and snapshots will be stored; consider running in a sandboxed account or container if you want to test. 6) If you accept the above and proceed, provide the ALI_1688_AK only after verifying you trust the skill source and understand that the key will be persisted to your OpenClaw configuration. If you want, I can point out the exact files and lines that perform the config read/write and the HTTP gateway patch so you (or a sysadmin) can inspect them in detail.
功能分析
Type: OpenClaw Skill Name: 1688-shopkeeper-bak Version: 1.0.0 The 1688-shopkeeper skill bundle is a comprehensive tool for managing e-commerce operations on the 1688 platform, including product searching, detail retrieval, and automated publishing to downstream shops (Douyin, Pinduoduo, etc.). The code implements a robust authentication mechanism using HMAC-SHA256 signing for requests sent to the official endpoint (ainext.1688.com). While the skill performs high-privilege actions such as persisting API keys to the local OpenClaw configuration file (~/.openclaw/openclaw.json) and executing 'write' operations for product publishing, these behaviors are explicitly documented and governed by safety instructions in SKILL.md (e.g., mandatory dry-runs). No evidence of malicious intent, unauthorized data exfiltration, or hidden backdoors was found.
能力评估
Purpose & Capability
The skill's name/description (search, product detail, publish, trends, shop daily, AK configuration) align with the code and CLI commands. Requesting ALI_1688_AK as the primary credential is expected. However, metadata says 'instruction-only' / no install spec while the package contains many Python files and a requirements.txt (requests). The skill also reads/writes OpenClaw config files and workspace directories (see _const.OPENCLAW_CONFIG_PATH and WORKSPACE_DIR) which is plausible for a persistent CLI but is not declared in the registry metadata (required config paths are listed as none).
Instruction Scope
The SKILL.md instructs the agent to run the provided cli.py commands (search/publish/configure/etc.), which is consistent. But the runtime code will (a) read environment variable ALI_1688_AK, (b) attempt to read the global OpenClaw JSON config (~/.openclaw/openclaw.json by default) as a fallback, and (c) save configuration back into that same openclaw.json or call a local Gateway REST API to patch global configuration. These file and config modifications go beyond mere API calls and affect global OpenClaw configuration; the SKILL.md does not clearly document the file write behavior or the specific paths used except in scattered docs. The skill also uses additional env vars at runtime (OPENCLAW_GATEWAY_URL, OPENCLAW_GATEWAY_TOKEN, OPENCLAW_WORKSPACE_DIR, OPENCLAW_CONFIG_DIR) that are not declared in the skill manifest or SKILL.md.
Install Mechanism
There is no install spec even though the package ships many Python modules and a requirements.txt listing 'requests'. The skill declares python3 as a required binary but provides no automated way to ensure Python dependencies are installed; running it on a host without 'requests' will fail. The repository README suggests installing from a GitHub URL, but the registry metadata gave 'Source: unknown' and 'Homepage: none'. This mismatch between shipped code and lack of install instructions is sloppy and could lead to runtime errors or manual, risky installation steps by users.
Credentials
Primary credential ALI_1688_AK is appropriate for the described 1688 API integrations. However, the code also reads/writes OpenClaw config and workspace directories and references other environment variables (OPENCLAW_GATEWAY_URL, OPENCLAW_GATEWAY_TOKEN, OPENCLAW_CONFIG_DIR, OPENCLAW_WORKSPACE_DIR) without declaring them. The skill will attempt to persist the provided AK into a global config (openclaw.json) or call a local Gateway API if available; that is functionally reasonable for a 'configure' command but should be explicit in the manifest and install docs since it modifies global agent configuration.
Persistence & Privilege
The skill will persistently write configuration: configure.service.configure_via_gateway calls a local Gateway endpoint (using OPENCLAW_GATEWAY_URL and optional token) to patch config, and configure_via_file writes to the OpenClaw config file path (default ~/.openclaw/openclaw.json). Writing its own skill entry's apiKey is expected behavior for a 'configure' capability, but it still modifies global config files or gateway state. Because the skill can update the agent's OpenClaw configuration, users should be aware this creates persistent state and requires appropriate trust.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install 1688-shopkeeper-bak
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /1688-shopkeeper-bak 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release of 1688-shopkeeper skill. - Supports searching products and sourcing from 1688, with downstream shop querying and direct listing (铺货) to platforms like Douyin, Pinduoduo, Xiaohongshu, Taobao. - Allows configuration of 1688 AK key, and provides clear guides and error handling for missing/invalid AK or shop information. - Includes commands for viewing real-time business opportunities, category/industry trends, price distributions, and generating shop management daily reports with product selection advice. - Implements strict pre-checks and dry-runs for all write actions, following robust safety and ambiguity-handling rules. - Agent integrates markdown output directly from commands, with separate, rule-based user guidance for error handling and shop/AK binding scenarios. - On first use of each capability within a session, requires pre-reading of linked documentation files for reliable execution.
元数据
Slug 1688-shopkeeper-bak
版本 1.0.0
许可证 MIT-0
累计安装 1
当前安装数 1
历史版本数 1
常见问题

1688 Shopkeeper.Bak 是什么?

1688选品铺货 + 商机趋势专家。用于:(1) 在1688搜索商品/选品找货源 (2) 查询已绑定的下游店铺 (3) 将商品铺货到抖音/拼多多/小红书/淘宝等平台 (4) 配置1688 AK密钥 (5) 查看即时商机热榜 (6) 查看类目/行业趋势与价格分布 (7) 生成店铺经营日报并输出主营商品选品建议。 触... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 94 次。

如何安装 1688 Shopkeeper.Bak?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install 1688-shopkeeper-bak」即可一键安装,无需额外配置。

1688 Shopkeeper.Bak 是免费的吗?

是的,1688 Shopkeeper.Bak 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

1688 Shopkeeper.Bak 支持哪些平台?

1688 Shopkeeper.Bak 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 1688 Shopkeeper.Bak?

由 CHENYONGZHEN(@chenyongzhen)开发并维护,当前版本 v1.0.0。

💬 留言讨论