微算力 · API 导航与自营网关
API 接入 EN
未登录登录
🛒

Shopee套装优惠智能管理专家

Shopee-店铺捆绑优惠 · v1.0.4
入口已确认,内容待校验 文件树里有 SKILL.md,但正文还没采回,frontmatter 未核对。
专业技能 安全 S 级 作者 linkfox-ai 公开目录收录
432 下载 0 安装 1k 收藏 7 浏览

简介

基于Shopee官方Open API的Bundle Deal模块全套管理能力,支持10个核心接口,助力跨境电商卖家高效创建、运营和优化满件优惠活动。

原始描述

Shopee(虾皮)套装优惠 Bundle Deal(与 linkfox-shopee-store-auth 同系列),经 /shopee/developerProxy 转发 Shopee Open API Bundle Deal 模块全部 10 个接口:add_bundle_deal、get_bundle_deal_list、add_bundle_deal_item、update_bundle_deal、end_bundle_deal 等。当用户提到 Shopee 套装优惠、Bundle Deal、组合促销、add_bundle_deal、bundle_deal_id、满件优惠 时触发。即使未明确提及"套装",只要涉及已授权 Shopee 店铺的 Bundle Deal 活动管理,也应触发。

通过你的 Agent 添加

安装目录:shopee-168752/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。

点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。

或者手动安装

Claude Code~/.claude/skills/shopee-168752/
Codex CLI~/.codex/skills/shopee-168752/
DeepSeek Harness~/.agents/skills/shopee-168752/

包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可; 目录名不用换,也不要把包直接解压到 skills 根目录。 技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。

中文使用说明 来自收录源

核心用法

本技能是LinkFox系列中专为Shopee(虾皮)平台设计的套装优惠管理工具,完整覆盖Shopee Open Platform Bundle Deal模块的全部10个API接口。用户需先安装linkfox-shopee-store-auth完成店铺授权,通过POST /shopee/developerProxy端点,传入shopId或merchantId,由服务端自动解析token并转发请求至Shopee官方API(路径须为api/v2/bundle_deal/...)。

支持的操作包括:创建套装优惠(add_bundle_deal)、添加商品到套装(add_bundle_deal_item)、获取套装列表(get_bundle_deal_list)、查询单个套装详情(get_bundle_deal)、查询套装商品(get_bundle_deal_item)、更新套装信息(update_bundle_deal)、更新套装商品(update_bundle_deal_item)、结束套装优惠(end_bundle_deal)、删除套装(delete_bundle_deal)、删除套装商品(delete_bundle_deal_item)。所有操作均提供Python脚本化执行能力,响应数据自动落盘存储,支持摘要/全量两种输出模式。

显著优点

官方API直连:基于Shopee官方Open Platform,数据实时同步,操作合规安全,避免第三方爬虫风险。

全功能覆盖:完整封装10个Bundle Deal接口,从创建到结束、从商品管理到状态查询,满足套装优惠全生命周期管理需求。

多店铺支持:通过linkfox-shopee-store-auth实现多店铺授权切换,单技能即可管理多个Shopee店铺的促销活动。

脚本化自动化:提供10个独立Python脚本,支持参数化调用和批量操作,便于集成到自动化运营流程中。

智能输出策略:响应体≤8KB时输出完整JSON,>8KB时自动输出摘要(含关键计数和前3条样本),兼顾可读性与性能。

潜在缺点与局限性

强依赖前置技能:必须安装并配置linkfox-shopee-store-auth完成店铺授权,否则无法使用,增加了部署复杂度。

平台局限性:仅支持Shopee平台,无法用于Lazada、TikTok Shop等其他跨境电商平台。

接口粒度较细:单个套装的创建、商品添加、状态确认需分步调用多个接口,复杂场景下需编写组合逻辑。

数据存储约束:强制落盘到<cwd>/linkfox/...路径,当前目录不可写会直接报错,对容器化/无盘环境不够友好。

触发词敏感:需精确识别"Bundle Deal""满件优惠""bundle_deal_id"等关键词,口语化描述(如"搞个组合促销")可能无法触发。

适合的目标群体

  • Shopee跨境卖家:需要批量管理多店铺套装优惠活动的运营人员。
  • 电商代运营团队:为多个Shopee店铺客户提供促销策略执行的代理服务商。
  • 自动化运营开发者:希望将套装优惠管理集成到ERP、RPA或自研运营系统的技术团队。
  • 数据分析师:需要定期导出套装优惠数据用于效果复盘和策略优化的电商数据人员。

使用风险

认证失效风险:API Key未配置或店铺授权过期会导致401/402错误,需按references/onboarding.md重新引导授权流程。

平台政策风险:Shopee官方API规则和字段可能调整,需关注官方文档更新,避免接口变更导致调用失败。

操作不可逆风险:end_bundle_deal和delete_bundle_deal为终态操作,误操作可能导致促销活动提前终止或数据丢失,建议先调用get类接口确认状态。

并发与限流风险:高频调用可能触发Shopee平台限流,批量操作建议增加间隔或失败重试机制。

数据存储风险:输出文件按SESSION_ID聚合,多任务并发时需注意文件路径冲突,重要操作建议备份历史数据。

技能正文


name: linkfox-shopee-store-bundle-deal description: Shopee(虾皮)套装优惠 Bundle Deal(与 linkfox-shopee-store-auth 同系列),经 /shopee/developerProxy 转发 Shopee Open API Bundle Deal 模块全部 10 个接口:add_bundle_deal、get_bundle_deal_list、add_bundle_deal_item、update_bundle_deal、end_bundle_deal 等。当用户提到 Shopee 套装优惠、Bundle Deal、组合促销、add_bundle_deal、bundle_deal_id、满件优惠 时触发。即使未明确提及"套装",只要涉及已授权 Shopee 店铺的 Bundle Deal 活动管理,也应触发。

Shopee 套装优惠 Bundle Deal

Shopee Open Platform Bundle Deal 模块(10 个 API)。依赖 linkfox-shopee-store-auth 选店;经 POST /shopee/developerProxy 传入 shopId(或 merchantId),由服务端解析 token 转发(path 须 api/v2/bundle_deal/...)。

调用方式

  • API 端点:POST /shopee/developerProxy(不同操作通过请求体区分;完整参数/响应/错误码见 references/api.md)
  • Python 脚本:python scripts/<脚本名>.py '<JSON 参数>' [--inline](可用脚本见上文脚本一览)
  • 成本约束:本工具会消耗积分;失败/空结果不得自动换关键词、翻页或连续试探;需要继续检索时先向用户说明会产生额外消耗。

输出策略(脚本默认行为):

  • 始终将完整响应写入 <cwd>/linkfox/<YYYY-MM-DD>/<session>/data/linkfox-shopee-store-bundle-deal-<timestamp>.json(<cwd> 为脚本执行时的工作目录,在 Claude Code 里即当前项目目录;<session> 取自环境变量 SESSION_ID,按用户任务自动聚合;禁止写入 /tmp,当前目录不可写则报错)
  • 响应体 ≤ 8 KB:落盘后把完整 JSON 打印到 stdout
  • 响应体 > 8 KB:落盘后 stdout 只输出摘要(顶层字段、常见计数如 total/costToken、最大列表字段的长度 + 前 3 条样本)
  • 加 --inline 强制全量打印到 stdout(同样落盘)

读数据建议:先看摘要判断是否足够;需要具体字段时优先用 jq或ConvertFrom-Json 从保存的 json 文件按需抽取,避免整份 JSON 进入上下文。

解决认证和积分问题

发生以下异常情况时,采用 references/onboarding.md 引导解决问题:

异常情况

  • 未配置API Key:环境变量未配置 LINKFOX_AGENT_API_KEY,也未配置 LINKFOXAGENT_API_KEY。
  • 响应401或402状态码
  • 响应提示积分或余额不足:消息含"积分余额不足/计费不足/余额不足/quota exceeded/insufficient balance/套餐到期/需充值/请充值",或类似含义的内容。

官方参考

Bundle Deal 模块索引:v2.bundle_deal.add_bundle_deal


Prerequisites

  1. 运行 python scripts/check_auth_dependency.py;exit code 42 → 先安装 linkfox-shopee-store-auth。
  2. 限时折扣 → linkfox-shopee-store-discount;Add-On Deal → linkfox-shopee-store-add-on-deal;Voucher → linkfox-shopee-store-voucher。

可用脚本(10 个 API)

脚本 API Method
add_bundle_deal.py add_bundle_deal POST
add_bundle_deal_item.py add_bundle_deal_item POST
get_bundle_deal_list.py get_bundle_deal_list GET
get_bundle_deal.py get_bundle_deal GET
get_bundle_deal_item.py get_bundle_deal_item GET
update_bundle_deal.py update_bundle_deal POST
update_bundle_deal_item.py update_bundle_deal_item POST
end_bundle_deal.py end_bundle_deal POST
delete_bundle_deal.py delete_bundle_deal POST
delete_bundle_deal_item.py delete_bundle_deal_item POST
bundle_deal_api.py 通用入口 —

接口说明(按 API)

入参与响应细节放在 references/apis/,SKILL 只保留索引。

模块总览 / Feedback 见 references/api.md。

Usage Scenarios

1. 创建套装优惠

  1. add_bundle_deal.py 传完整 body
  2. add_bundle_deal_item.py 添加商品
  3. get_bundle_deal_list.py 确认状态

Not Applicable

  • 店铺授权 → linkfox-shopee-store-auth
  • 限时折扣 Discount → linkfox-shopee-store-discount
  • 商品 listing → linkfox-shopee-store-product

积分消耗规则

不消耗积分。

Feedback: 见 references/api.md。


For more high-quality, professional cross-border e-commerce skills, visit LinkFox Skills.

正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。

标签

apie-commerceautomationoperationsmarketingproduct-management

同类 Skill