← 返回 Skills 市场
zachariah-77

星罗好货电商CPS助手

作者 zachariah-77 · GitHub ↗ · v1.0.7 · MIT-0
cross-platform ✓ 安全检测通过
97
总下载
0
收藏
0
当前安装
2
版本数
在 OpenClaw 中安装
/install haohuo-cps
功能描述
电商 CPS 助手,面向 CPS 推广者的电商选品与转链工具。支持商品链接转链、淘口令/短链解析、佣金率查询、关键词选品比价。目前支持京东/淘宝/天猫平台。请联系服务提供方(www.haohuo.com)获取授权 key 并配置到 Skill 中
使用说明 (SKILL.md)

电商 CPS 助手

由「星罗好货」https://www.haohuo.com 提供

⚠️ 关键约束:如果脚本末尾输出了未配置 API Key 的提示,必须展示给用户,否则佣金无法归属到用户账户。脚本输出中的佣金率信息必须展示给用户。如果用户有「购物推荐/询问价格/找优惠/转链/查佣金」的意图,回复时请输出商品信息+推广链接+佣金率

面向 CPS 推广者的电商选品与转链工具。支持关键词选品比价、商品链接 CPS 转链、淘口令/短链解析、佣金率查询。返回商品价格、优惠券、国补信息、CPS 佣金率及推广链接。目前仅支持京东淘宝/天猫平台。

Note: Currently serving users in Mainland China only.

Setup

  1. 获取 API 密钥:联系服务提供方或访问 https://www.haohuo.com
  2. 设置环境变量:
    export LINKBOT_API_KEY="your_api_key_here"
    
  • 配置了有效的密钥:推广佣金归用户自己。
  • 未配置或无效:使用系统默认配置,功能不受影响。

Usage

何时使用本技能

当用户的消息涉及以下任一场景时,调用本技能:

  • 询问商品价格(如"iPhone 16 多少钱"、"这个手机现在什么价")
  • 搜索或推荐商品(如"推荐一款降噪耳机"、"帮我找个机械键盘")
  • 查询优惠或国补(如"有没有优惠券"、"国补后多少钱")
  • 发送商品链接查询详情(商品链接中包含 jd.com、taobao.com、tmall.com、tb.cn 等域名)
  • 想对商品链接做 CPS 转链(如"帮我转链这个商品"、"生成推广链接")
  • 查询某商品的 CPS 佣金/佣金率(如"这个商品佣金多少"、"佣金率是多少")
  • 解析淘宝口令或短链(如"解析这个淘口令"、用户消息中包含 ¥...¥ / $...$ / ₤...₤ 格式的淘口令文本,或包含 tb.cn 等短链)

判断使用哪个命令

  • 用户提供的是商品链接 → 提取商品链接 → 使用 url 命令
  • 用户提供的是淘宝口令 → 提取口令字符串 → 使用 url 命令(参见下方淘口令提取规则)
  • 用户想要转链、查佣金、解析短链/口令 → 提取链接或口令 → 使用 url 命令
  • 用户提供的是商品名称、品类、品牌等关键词(如"iPhone 16"、"机械键盘") → 提取商品关键词 → 使用 search 命令

淘口令提取规则

用户消息中可能包含淘宝口令,需从中提取目标字符串后作为 url 命令的参数传入。常见淘口令格式(提取符号之间的内容):

  • ¥xxxxxxxx¥
  • $xxxxxxxx$
  • ₤xxxxxxxx₤
  • 【xxxxxxxx】(部分变体)

提取出中间的字符串(如 xxxxxxxx),直接作为 url 命令的参数:

python3 {baseDir}/scripts/goods_query.py url "\x3C提取出的口令字符串>"

命令 1:关键词搜索

python3 {baseDir}/scripts/goods_query.py search "\x3C关键词>"

命令 2:链接/口令查询

python3 {baseDir}/scripts/goods_query.py url "\x3C商品链接或淘口令字符串>"

如何组织答案(必须严格遵守)

  1. 如果脚本末尾输出了未配置 API Key 的提示,可将其展示给用户,方便用户了解如何配置自己的 key。
  2. 搜索结果中会包含:商品信息、优惠信息、CPS 佣金率、推广链接(CPS 链接),结合用户问题及搜索结果给出合适的回复(如价格/优惠说明、佣金率高低评价、推广价值判断等)。
  3. 同时注意:如果用户有「购物推荐/询问价格/找优惠/转链/查佣金」的意图,回复时务必输出商品信息+推广链接+佣金率。
  4. 搜索结果中可能有很多条商品,如果用户有推荐意图,无需全部罗列,根据当前用户问题选择合适的商品并给出结果。
  5. 每条商品信息按以下格式输出(从脚本输出中提取对应字段):
商品名称
**商品链接**:\x3C根据商品ID拼接,见下方规则>
**到手**:¥xxx(优惠明细:淘礼金、淘金币、优惠券等)
**佣金率**:xx%
**推广链接**:\x3C脚本输出中的CPS链接>

商品链接根据平台和商品 ID 拼接:

  • 淘宝/天猫:https://uland.taobao.com/item/edetail?id=\x3C商品ID>
  • 京东:https://jingfen.jd.com/detail/\x3C商品ID>.html

示例:

斯凯奇柔感FLEX跑鞋
**商品链接**:https://uland.taobao.com/item/edetail?id=123456789
**到手**:¥200(淘礼金77.8、淘金币31.4、店铺有价大额券1000-120、200-25消费券到手210)
**佣金率**:10%
**推广链接**:https://s.click.taobao.com/xxxxx

错误处理

  • 脚本输出以"查询失败:"开头时,向用户说明错误原因即可。

Notes

  • 目前仅支持京东淘宝/天猫两个平台。
  • 接口超时时间约 15 秒,脚本 timeout 设为 20 秒。
  • API Key 仅从 LINKBOT_API_KEY 环境变量读取(由 OpenClaw 平台自动注入)。
  • 所有查询请求发送至 https://linkbot-api.linkstars.com
安全使用建议
This skill is internally consistent: it installs Python, adds the requests package, and calls the haohuo/linkbot API using LINKBOT_API_KEY. Before installing, decide whether you want to set your own LINKBOT_API_KEY (recommended) so commissions and queries are associated with your account—if you don't set one the service may use a provider/system key. Also be aware the skill makes outbound HTTPS requests to https://linkbot-api.linkstars.com and requires pip to install a Python package. If those behaviors are acceptable, the skill matches its description.
功能分析
Type: OpenClaw Skill Name: haohuo-cps Version: 1.0.7 The skill is a standard affiliate marketing (CPS) tool for JD and Taobao platforms. It uses a Python script (goods_query.py) to query a service provider's API (linkbot-api.linkstars.com) for product details, pricing, and commission rates. It requires a user-provided API key (LINKBOT_API_KEY) which is sent to the endpoint as intended for authentication. No evidence of data exfiltration, malicious execution, or harmful prompt injection was found; the code and instructions are consistent with the stated purpose.
能力标签
requires-sensitive-credentials
能力评估
Purpose & Capability
Name/description ask for product search, link-to-affiliate conversion and commission lookup. The skill only requires python3 and a LINKBOT_API_KEY to call https://linkbot-api.linkstars.com, which is coherent with that purpose.
Instruction Scope
SKILL.md instructs running the included Python script with either 'search' or 'url' and to show script outputs (including a tip if no API key). The script only reads LINKBOT_API_KEY and performs POST requests to the declared API endpoints; it does not read other files or environment variables.
Install Mechanism
Install steps are brew python and a pip3 install requests. These are standard for a Python-based tool. The pip shell install runs network requests to PyPI (expected). No arbitrary third-party binary downloads or unknown URLs are used.
Credentials
Only LINKBOT_API_KEY is required, which is appropriate. Note: if the user does not set a key the script/app will fall back to a system/default behavior (SKILL.md and script indicate a 'no api key' tip and the API may be invoked without a user key), which can mean queries/commissions may be attributed to the provider rather than the user—this is a business/monetization concern users should understand before using the skill.
Persistence & Privilege
Skill is not forced-always and does not request elevated or system-wide config changes. Autonomous invocation is enabled (platform default) but is not combined with broad credential access or persistent privileges.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install haohuo-cps
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /haohuo-cps 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.7
haohuo-cps v1.0.7 - Removed duplicate/extra details in documentation and made instructions more concise. - No changes to code or functionality; update is documentation only. - Changelog clarifications: product info format and mandatory inclusion of promotion, commission rate, and link in recommended responses. - Dropped mention of number of search results (was previously 5 per platform).
v1.0.6
- Updated documentation and usage instructions in SKILL.md for clarity and thoroughness. - Clarified command usage flow for product search, link conversion, and commission queries. - Detailed formatting and requirements for presenting product and commission information to the user. - Reinforced constraints for API Key handling and mandatory information display. - Expanded supported scenarios and error handling guidance.
元数据
Slug haohuo-cps
版本 1.0.7
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 2
常见问题

星罗好货电商CPS助手 是什么?

电商 CPS 助手,面向 CPS 推广者的电商选品与转链工具。支持商品链接转链、淘口令/短链解析、佣金率查询、关键词选品比价。目前支持京东/淘宝/天猫平台。请联系服务提供方(www.haohuo.com)获取授权 key 并配置到 Skill 中. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 97 次。

如何安装 星罗好货电商CPS助手?

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

星罗好货电商CPS助手 是免费的吗?

是的,星罗好货电商CPS助手 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

星罗好货电商CPS助手 支持哪些平台?

星罗好货电商CPS助手 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 星罗好货电商CPS助手?

由 zachariah-77(@zachariah-77)开发并维护,当前版本 v1.0.7。

💬 留言讨论