{"id":"db164580-7a78-49f9-8037-847b8e993040","entityType":"agent","slug":"clawhub-linkfox-ai-linkfox-shopee-store-shop-flash-sale","name":"Shopee-店铺限时特卖","canonicalUrl":"https://www.xpersona.co/agent/clawhub-linkfox-ai-linkfox-shopee-store-shop-flash-sale","canonicalPath":"/agent/clawhub-linkfox-ai-linkfox-shopee-store-shop-flash-sale","generatedAt":"2026-10-14T05:56:43.018Z","source":"CLAWHUB","claimStatus":"UNCLAIMED","verificationTier":"NONE","summary":{"evidence":{"source":"CLAWHUB","verified":false,"confidence":"medium","updatedAt":"2026-10-12T00:49:34.196Z","emptyReason":null},"description":"Shopee（虾皮）店铺秒杀 Shop Flash Sale（与 linkfox-shopee-store-auth 同系列），经 /shopee/developerProxy 转发 Shopee Open API Shop Flash Sale 模块全部 11 个接口：get_time_slot_id、create_shop_flash_sale、get_shop_flash_sale_list、add_shop_flash_sale_items、update_shop_flash_sale 等。当用户提到 Shopee 店铺秒杀、Shop Flash Sale、限时秒杀、get_time_slot_id、flash_sale_id、秒杀时段 时触发。即使未明确提及\"秒杀\"，只要涉及已授权 Shopee 店铺的 Flash Sale 活动管理，也应触发。","descriptionLabel":"Source description","evidenceSummary":"Capability contract not published. No trust telemetry is available yet. 965 downloads reported by the source. Last updated 10/12/2026.","installCommand":"clawhub skill install s171g8b6m2khwdy9ye8bxj0wx183vd4z:linkfox-shopee-store-shop-flash-sale","sourceUrl":"https://clawhub.ai/linkfox-ai/linkfox-shopee-store-shop-flash-sale","homepage":"https://clawhub.ai/linkfox-ai/skills/linkfox-shopee-store-shop-flash-sale","primaryLinks":[{"label":"View on ClawHub","url":"https://clawhub.ai/linkfox-ai/linkfox-shopee-store-shop-flash-sale","kind":"source"},{"label":"Homepage","url":"https://clawhub.ai/linkfox-ai/skills/linkfox-shopee-store-shop-flash-sale","kind":"homepage"}],"safetyScore":84,"overallRank":62,"popularityScore":60,"trustScore":null,"claimedByName":null,"isOwner":false,"seoDescription":"Shopee-店铺限时特卖 technical dossier on Xpersona with agent coverage, OPENCLEW support, and live trust metadata."},"coverage":{"evidence":{"source":"public-profile","verified":false,"confidence":"medium","updatedAt":"2026-10-12T00:49:34.196Z","emptyReason":null},"protocols":[{"protocol":"OPENCLEW","label":"OpenClaw","status":"self-declared","notes":"Declared in the public agent profile."}],"capabilities":[],"verifiedCount":0,"selfDeclaredCount":1,"capabilityMatrix":{"rows":[{"key":"OPENCLEW","type":"protocol","support":"unknown","confidenceSource":"profile","notes":"Listed on profile"}],"flattenedTokens":"protocol:OPENCLEW|unknown|profile"}},"adoption":{"evidence":{"source":"CLAWHUB","verified":false,"confidence":"medium","updatedAt":"2026-10-12T00:49:34.196Z","emptyReason":null},"stars":null,"forks":null,"downloads":965,"likes":null,"task":null,"library":null,"packageName":null,"latestVersion":"1.0.5","tractionLabel":"965 downloads"},"release":{"evidence":{"source":"CLAWHUB","verified":false,"confidence":"medium","updatedAt":"2026-10-12T00:49:34.183Z","emptyReason":null},"lastUpdatedAt":"2026-10-12T00:49:34.196Z","lastCrawledAt":"2026-10-12T00:49:34.183Z","lastIndexedAt":null,"nextCrawlAt":"2026-10-13T00:49:34.183Z","lastVerifiedAt":null,"highlights":[{"version":"1.0.5","createdAt":"2026-08-14T15:08:52.271Z","changelog":"Update from 1.0.4 to 1.0.5","fileCount":33,"zipByteSize":42818},{"version":"1.0.4","createdAt":"2026-08-07T11:09:01.168Z","changelog":"Update from 1.0.3 to 1.0.4","fileCount":33,"zipByteSize":42669},{"version":"1.0.3","createdAt":"2026-07-13T12:26:12.354Z","changelog":"Update from 1.0.2 to 1.0.3","fileCount":20,"zipByteSize":21082},{"version":"1.0.2","createdAt":"2026-07-06T11:34:52.147Z","changelog":"Update from 1.0.1 to 1.0.2","fileCount":20,"zipByteSize":20613},{"version":"1.0.1","createdAt":"2026-07-03T08:34:05.603Z","changelog":"Update from 1.0.0 to 1.0.1","fileCount":19,"zipByteSize":19127},{"version":"1.0.0","createdAt":"2026-07-02T15:58:13.916Z","changelog":"Initial release","fileCount":20,"zipByteSize":20483}]},"execution":{"evidence":{"source":"CLAWHUB","verified":false,"confidence":"low","updatedAt":null,"emptyReason":"No published capability contract is available yet."},"installCommand":"clawhub skill install s171g8b6m2khwdy9ye8bxj0wx183vd4z:linkfox-shopee-store-shop-flash-sale","setupComplexity":"low","setupSteps":["Install using `clawhub skill install s171g8b6m2khwdy9ye8bxj0wx183vd4z:linkfox-shopee-store-shop-flash-sale` in an isolated environment before connecting it to live workloads.","No published capability contract is available yet, so validate auth and request/response behavior manually.","Review the upstream CLAWHUB listing at https://clawhub.ai/linkfox-ai/linkfox-shopee-store-shop-flash-sale before using production credentials."],"contract":{"contractStatus":"missing","authModes":[],"requires":[],"forbidden":[],"supportsMcp":false,"supportsA2a":false,"supportsStreaming":false,"inputSchemaRef":null,"outputSchemaRef":null,"dataRegion":null,"contractUpdatedAt":null,"sourceUpdatedAt":null,"freshnessSeconds":null},"invocationGuide":{"preferredApi":{"snapshotUrl":"https://www.xpersona.co/api/v1/agents/clawhub-linkfox-ai-linkfox-shopee-store-shop-flash-sale/snapshot","contractUrl":"https://www.xpersona.co/api/v1/agents/clawhub-linkfox-ai-linkfox-shopee-store-shop-flash-sale/contract","trustUrl":"https://www.xpersona.co/api/v1/agents/clawhub-linkfox-ai-linkfox-shopee-store-shop-flash-sale/trust"},"curlExamples":["curl -s \"https://www.xpersona.co/api/v1/agents/clawhub-linkfox-ai-linkfox-shopee-store-shop-flash-sale/snapshot\"","curl -s \"https://www.xpersona.co/api/v1/agents/clawhub-linkfox-ai-linkfox-shopee-store-shop-flash-sale/contract\"","curl -s \"https://www.xpersona.co/api/v1/agents/clawhub-linkfox-ai-linkfox-shopee-store-shop-flash-sale/trust\""],"jsonRequestTemplate":{"query":"summarize this repo","constraints":{"maxLatencyMs":2000,"protocolPreference":["OPENCLEW"]}},"jsonResponseTemplate":{"ok":true,"result":{"summary":"...","confidence":0.9},"meta":{"source":"CLAWHUB","generatedAt":"2026-10-14T05:56:43.017Z"}},"retryPolicy":{"maxAttempts":3,"backoffMs":[500,1500,3500],"retryableConditions":["HTTP_429","HTTP_503","NETWORK_TIMEOUT"]}},"endpoints":{"dossierUrl":"https://www.xpersona.co/api/v1/agents/clawhub-linkfox-ai-linkfox-shopee-store-shop-flash-sale/dossier","snapshotUrl":"https://www.xpersona.co/api/v1/agents/clawhub-linkfox-ai-linkfox-shopee-store-shop-flash-sale/snapshot","contractUrl":"https://www.xpersona.co/api/v1/agents/clawhub-linkfox-ai-linkfox-shopee-store-shop-flash-sale/contract","trustUrl":"https://www.xpersona.co/api/v1/agents/clawhub-linkfox-ai-linkfox-shopee-store-shop-flash-sale/trust"}},"reliability":{"evidence":{"source":"runtime-metrics","verified":false,"confidence":"low","updatedAt":null,"emptyReason":"No trust, reliability, or runtime telemetry is available."},"trust":{"status":"unavailable","handshakeStatus":"UNKNOWN","verificationFreshnessHours":null,"reputationScore":null,"p95LatencyMs":null,"successRate30d":null,"fallbackRate":null,"attempts30d":null,"trustUpdatedAt":null,"trustConfidence":"unknown","sourceUpdatedAt":null,"freshnessSeconds":null},"decisionGuardrails":{"doNotUseIf":["Contract metadata is missing or unavailable for deterministic execution."],"safeUseWhen":[],"riskFlags":["missing_or_unavailable_contract","trust_data_unavailable","schema_references_missing"],"operationalConfidence":"low"},"executionMetrics":{"observedLatencyMsP50":null,"observedLatencyMsP95":null,"estimatedCostUsd":null,"uptime30d":null,"rateLimitRpm":null,"rateLimitBurst":null,"lastVerifiedAt":null,"verificationSource":null},"runtimeMetrics":{"successRate":null,"avgLatencyMs":null,"avgCostUsd":null,"hallucinationRate":null,"retryRate":null,"disputeRate":null,"p50Latency":null,"p95Latency":null,"lastUpdated":null}},"benchmarks":{"evidence":{"source":"no-benchmark-data","verified":false,"confidence":"low","updatedAt":null,"emptyReason":"No benchmark suites or observed failure patterns are available."},"suites":[],"failurePatterns":[]},"artifacts":{"evidence":{"source":"CLAWHUB","verified":false,"confidence":"medium","updatedAt":"2026-10-12T00:49:34.196Z","emptyReason":null},"readme":"Skill: Shopee-店铺限时特卖\n\nOwner: linkfox-ai\n\nSummary: Shopee（虾皮）店铺秒杀 Shop Flash Sale（与 linkfox-shopee-store-auth 同系列），经 /shopee/developerProxy 转发 Shopee Open API Shop Flash Sale 模块全部 11 个接口：get_time_slot_id、create_shop_flash_sale、get_shop_flash_sale_list、add_shop_flash_sale_items、update_shop_flash_sale 等。当用户提到 Shopee 店铺秒杀、Shop Flash Sale、限时秒杀、get_time_slot_id、flash_sale_id、秒杀时段 时触发。即使未明确提及\"秒杀\"，只要涉及已授权 Shopee 店铺的 Flash Sale 活动管理，也应触发。\n\nTags: latest:1.0.5\n\nVersion history:\n\nv1.0.5 | 2026-08-14T15:08:52.271Z | user\n\nUpdate from 1.0.4 to 1.0.5\n\nv1.0.4 | 2026-08-07T11:09:01.168Z | user\n\nUpdate from 1.0.3 to 1.0.4\n\nv1.0.3 | 2026-07-13T12:26:12.354Z | user\n\nUpdate from 1.0.2 to 1.0.3\n\nv1.0.2 | 2026-07-06T11:34:52.147Z | user\n\nUpdate from 1.0.1 to 1.0.2\n\nv1.0.1 | 2026-07-03T08:34:05.603Z | user\n\nUpdate from 1.0.0 to 1.0.1\n\nv1.0.0 | 2026-07-02T15:58:13.916Z | user\n\nInitial release\n\nArchive index:\n\nArchive v1.0.5: 33 files, 42818 bytes\n\nFiles: references/api.md (4712b), references/apis/add-shop-flash-sale-items.md (1462b), references/apis/create-shop-flash-sale.md (1481b), references/apis/delete-shop-flash-sale-items.md (1496b), references/apis/delete-shop-flash-sale.md (1427b), references/apis/get-item-criteria.md (1448b), references/apis/get-shop-flash-sale-items.md (1460b), references/apis/get-shop-flash-sale-list.md (1510b), references/apis/get-shop-flash-sale.md (1443b), references/apis/get-time-slot-id.md (1427b), references/apis/update-shop-flash-sale-items.md (1502b), references/apis/update-shop-flash-sale.md (1445b), references/onboarding.md (2046b), scripts/_shop_flash_sale_api_runner.py (4393b), scripts/_shop_flash_sale_endpoints.py (3408b), scripts/_shopee_shop_flash_sale_common.py (11620b), scripts/add_shop_flash_sale_items.py (774b), scripts/check_auth_dependency.py (3999b), scripts/create_shop_flash_sale.py (756b), scripts/delete_shop_flash_sale_items.py (792b), scripts/delete_shop_flash_sale.py (756b), scripts/get_item_criteria.py (726b), scripts/get_shop_flash_sale_items.py (774b), scripts/get_shop_flash_sale_list.py (768b), scripts/get_shop_flash_sale.py (738b), scripts/get_time_slot_id.py (720b), scripts/onboarding.py (24089b), scripts/shop_flash_sale_api.py (1057b), scripts/update_shop_flash_sale_items.py (792b), scripts/update_shop_flash_sale.py (756b), skill-card.md (3169b), SKILL.md (6232b), _meta.json (155b)\n\nFile v1.0.5:SKILL.md\n\n---\nname: linkfox-shopee-store-shop-flash-sale\ndescription: Shopee（虾皮）店铺秒杀 Shop Flash Sale（与 linkfox-shopee-store-auth 同系列），经 /shopee/developerProxy 转发 Shopee Open API Shop Flash Sale 模块全部 11 个接口：get_time_slot_id、create_shop_flash_sale、get_shop_flash_sale_list、add_shop_flash_sale_items、update_shop_flash_sale 等。当用户提到 Shopee 店铺秒杀、Shop Flash Sale、限时秒杀、get_time_slot_id、flash_sale_id、秒杀时段 时触发。即使未明确提及\"秒杀\"，只要涉及已授权 Shopee 店铺的 Flash Sale 活动管理，也应触发。\n---\n\n# Shopee 店铺秒杀 Shop Flash Sale\n\nShopee Open Platform **Shop Flash Sale 模块**（11 个 API）。**依赖 `linkfox-shopee-store-auth`** 选店；经 **`POST /shopee/developerProxy`** 传入 `shopId`（或 `merchantId`），由服务端解析 token 转发（`path` 须 `api/v2/shop_flash_sale/...`）。\n\n## 调用方式\n\n- **API 端点**：`POST /shopee/developerProxy`（不同操作通过请求体区分；完整参数/响应/错误码见 `references/api.md`）\n- **Python 脚本**：`python scripts/<脚本名>.py '<JSON 参数>' [--inline]`（可用脚本见上文脚本一览）\n- **成本约束**：本工具会消耗积分；失败/空结果不得自动换关键词、翻页或连续试探；需要继续检索时先向用户说明会产生额外消耗。\n\n**输出策略（脚本默认行为）**：\n- **始终**将完整响应写入 `<cwd>/linkfox/<YYYY-MM-DD>/<session>/data/<skill-name>-<timestamp>.json`（`<cwd>` 为脚本执行时的工作目录，在 Claude Code 里即当前项目目录；`<session>` 取自环境变量 `SESSION_ID`，按用户任务自动聚合；**禁止写入 /tmp**，当前目录不可写则报错）\n- 响应体 ≤ 8 KB：落盘后把完整 JSON 打印到 stdout\n- 响应体 > 8 KB：落盘后 stdout 只输出摘要（顶层字段、常见计数如 `total`/`costToken`、最大列表字段的长度 + 前 3 条样本）\n- 加 `--inline` 强制全量打印到 stdout（同样落盘）\n\n**读数据建议**：先看摘要判断是否足够；需要具体字段时优先用 `jq`或`ConvertFrom-Json` 从保存的 json 文件按需抽取，避免整份 JSON 进入上下文。\n\n## 解决认证和积分问题\n发生以下异常情况时，采用 references/onboarding.md 引导解决问题：\n\n### 异常情况\n- **未配置API Key**：环境变量未配置 `LINKFOX_AGENT_API_KEY`，也未配置 `LINKFOXAGENT_API_KEY`。\n- **响应401或402状态码**\n- **响应提示积分或余额不足**：消息含\"积分余额不足/计费不足/余额不足/quota exceeded/insufficient balance/套餐到期/需充值/请充值\"，或类似含义的内容。\n\n## 官方参考\n\nShop Flash Sale 模块索引：[v2.shop_flash_sale.get_time_slot_id](https://open.shopee.com/documents/v2/v2.shop_flash_sale.get_time_slot_id?module=123&type=1)\n\n---\n\n## Prerequisites\n\n1. 运行 `python scripts/check_auth_dependency.py`；exit code **42** → 先安装 **`linkfox-shopee-store-auth`**。\n2. 其它促销：Discount / Bundle Deal / Voucher / Shop Flash Sale / Follow Prize → 对应促销 skill。\n\n## 可用脚本（11 个 API）\n\n| 脚本 | API | Method |\n|------|-----|--------|\n| `get_time_slot_id.py` | get_time_slot_id | GET |\n| `create_shop_flash_sale.py` | create_shop_flash_sale | POST |\n| `get_item_criteria.py` | get_item_criteria | GET |\n| `add_shop_flash_sale_items.py` | add_shop_flash_sale_items | POST |\n| `get_shop_flash_sale_list.py` | get_shop_flash_sale_list | GET |\n| `get_shop_flash_sale.py` | get_shop_flash_sale | GET |\n| `get_shop_flash_sale_items.py` | get_shop_flash_sale_items | GET |\n| `update_shop_flash_sale.py` | update_shop_flash_sale | POST |\n| `update_shop_flash_sale_items.py` | update_shop_flash_sale_items | POST |\n| `delete_shop_flash_sale.py` | delete_shop_flash_sale | POST |\n| `delete_shop_flash_sale_items.py` | delete_shop_flash_sale_items | POST |\n| `shop_flash_sale_api.py` | 通用入口 | — |\n\n## 接口说明（按 API）\n\n入参与响应细节放在 `references/apis/`，SKILL 只保留索引。\n\n| API | 说明文档 |\n|-----|----------|\n| `add_shop_flash_sale_items` | [references/apis/add-shop-flash-sale-items.md](./references/apis/add-shop-flash-sale-items.md) |\n| `create_shop_flash_sale` | [references/apis/create-shop-flash-sale.md](./references/apis/create-shop-flash-sale.md) |\n| `delete_shop_flash_sale` | [references/apis/delete-shop-flash-sale.md](./references/apis/delete-shop-flash-sale.md) |\n| `delete_shop_flash_sale_items` | [references/apis/delete-shop-flash-sale-items.md](./references/apis/delete-shop-flash-sale-items.md) |\n| `get_item_criteria` | [references/apis/get-item-criteria.md](./references/apis/get-item-criteria.md) |\n| `get_shop_flash_sale` | [references/apis/get-shop-flash-sale.md](./references/apis/get-shop-flash-sale.md) |\n| `get_shop_flash_sale_items` | [references/apis/get-shop-flash-sale-items.md](./references/apis/get-shop-flash-sale-items.md) |\n| `get_shop_flash_sale_list` | [references/apis/get-shop-flash-sale-list.md](./references/apis/get-shop-flash-sale-list.md) |\n| `get_time_slot_id` | [references/apis/get-time-slot-id.md](./references/apis/get-time-slot-id.md) |\n| `update_shop_flash_sale` | [references/apis/update-shop-flash-sale.md](./references/apis/update-shop-flash-sale.md) |\n| `update_shop_flash_sale_items` | [references/apis/update-shop-flash-sale-items.md](./references/apis/update-shop-flash-sale-items.md) |\n\n模块总览 / Feedback 见 [references/api.md](./references/api.md)。\n\n## Usage Scenarios\n\n### 1. 创建店铺秒杀\n1. `get_time_slot_id.py` 获取可用时段\n2. `create_shop_flash_sale.py` 创建活动\n3. `add_shop_flash_sale_items.py` 添加商品\n4. `get_shop_flash_sale_list.py` 确认状态\n\n## Not Applicable\n\n- 店铺授权 → `linkfox-shopee-store-auth`\n- 限时折扣 Discount → `linkfox-shopee-store-discount`\n- 优惠券 Voucher → `linkfox-shopee-store-voucher`\n- 商品 listing → `linkfox-shopee-store-product`\n\n## 积分消耗规则\n\n不消耗积分。\n\n**Feedback:** 见 `references/api.md`。\n\n---\n*For more high-quality, professional cross-border e-commerce skills, visit [LinkFox Skills](https://skill.linkfox.com/).*\n\nFile v1.0.5:_meta.json\n\n{\n  \"ownerId\": \"kn7dmc1t4j28hem1twwyav85p182pb1j\",\n  \"slug\": \"linkfox-shopee-store-shop-flash-sale\",\n  \"version\": \"1.0.5\",\n  \"publishedAt\": 1786720132271\n}\n\nFile v1.0.5:references/api.md\n\n# linkfox-shopee-store-shop-flash-sale — 参数与字段参考\n\n> 单接口入参/响应说明已拆到 **`apis/`**（按 API 一份）；本文件保留模块总览与 Feedback。\nShopee **Shop Flash Sale 模块**全部 11 个 API，经 **`POST /shopee/developerProxy`** 转发。\n\n授权见 **`linkfox-shopee-store-auth`**。官方索引：[v2.shop_flash_sale.get_time_slot_id](https://open.shopee.com/documents/v2/v2.shop_flash_sale.get_time_slot_id?module=123&type=1)\n\n## 通用约定\n\n- **path**：须 `api/v2/shop_flash_sale/...`\n- **标识**：通常传 **`shopId`**\n- **官方文档 URL 规则**：`https://open.shopee.com/documents/v2/v2.shop_flash_sale.{api}?module=123&type=1`\n\n---\n\n## Shop Flash Sale 模块总览\n\n| # | API | Method | path | 脚本 | 官方文档 |\n|---|-----|--------|------|------|----------|\n| 1 | add_shop_flash_sale_items | POST | `api/v2/shop_flash_sale/add_shop_flash_sale_items` | `add_shop_flash_sale_items.py` | [apis/add-shop-flash-sale-items.md](./apis/add-shop-flash-sale-items.md) |\n| 2 | create_shop_flash_sale | POST | `api/v2/shop_flash_sale/create_shop_flash_sale` | `create_shop_flash_sale.py` | [apis/create-shop-flash-sale.md](./apis/create-shop-flash-sale.md) |\n| 3 | delete_shop_flash_sale | POST | `api/v2/shop_flash_sale/delete_shop_flash_sale` | `delete_shop_flash_sale.py` | [apis/delete-shop-flash-sale.md](./apis/delete-shop-flash-sale.md) |\n| 4 | delete_shop_flash_sale_items | POST | `api/v2/shop_flash_sale/delete_shop_flash_sale_items` | `delete_shop_flash_sale_items.py` | [apis/delete-shop-flash-sale-items.md](./apis/delete-shop-flash-sale-items.md) |\n| 5 | get_item_criteria | GET | `api/v2/shop_flash_sale/get_item_criteria` | `get_item_criteria.py` | [apis/get-item-criteria.md](./apis/get-item-criteria.md) |\n| 6 | get_shop_flash_sale | GET | `api/v2/shop_flash_sale/get_shop_flash_sale` | `get_shop_flash_sale.py` | [apis/get-shop-flash-sale.md](./apis/get-shop-flash-sale.md) |\n| 7 | get_shop_flash_sale_items | GET | `api/v2/shop_flash_sale/get_shop_flash_sale_items` | `get_shop_flash_sale_items.py` | [apis/get-shop-flash-sale-items.md](./apis/get-shop-flash-sale-items.md) |\n| 8 | get_shop_flash_sale_list | GET | `api/v2/shop_flash_sale/get_shop_flash_sale_list` | `get_shop_flash_sale_list.py` | [apis/get-shop-flash-sale-list.md](./apis/get-shop-flash-sale-list.md) |\n| 9 | get_time_slot_id | GET | `api/v2/shop_flash_sale/get_time_slot_id` | `get_time_slot_id.py` | [apis/get-time-slot-id.md](./apis/get-time-slot-id.md) |\n| 10 | update_shop_flash_sale | POST | `api/v2/shop_flash_sale/update_shop_flash_sale` | `update_shop_flash_sale.py` | [apis/update-shop-flash-sale.md](./apis/update-shop-flash-sale.md) |\n| 11 | update_shop_flash_sale_items | POST | `api/v2/shop_flash_sale/update_shop_flash_sale_items` | `update_shop_flash_sale_items.py` | [apis/update-shop-flash-sale-items.md](./apis/update-shop-flash-sale-items.md) |\n通用入口：`shop_flash_sale_api.py`（JSON 含 `\"api\": \"<上表 API 名>\"`）。\n\n---\n\n## 常用接口说明\n\n| API | 要点 |\n|-----|------|\n| `get_time_slot_id` | 获取可用秒杀时段 ID — [apis/get-time-slot-id.md](./apis/get-time-slot-id.md) |\n| `create_shop_flash_sale` | 创建店铺秒杀活动；POST `body` — [apis/create-shop-flash-sale.md](./apis/create-shop-flash-sale.md) |\n| `get_item_criteria` | 查询商品参与条件 — [apis/get-item-criteria.md](./apis/get-item-criteria.md) |\n| `add_shop_flash_sale_items` | 添加秒杀商品 — [apis/add-shop-flash-sale-items.md](./apis/add-shop-flash-sale-items.md) |\n| `get_shop_flash_sale_list` | 活动列表 — [apis/get-shop-flash-sale-list.md](./apis/get-shop-flash-sale-list.md) |\n| `get_shop_flash_sale` | 活动详情 — [apis/get-shop-flash-sale.md](./apis/get-shop-flash-sale.md) |\n| `get_shop_flash_sale_items` | 活动内商品 — [apis/get-shop-flash-sale-items.md](./apis/get-shop-flash-sale-items.md) |\n| `update_shop_flash_sale` / `update_shop_flash_sale_items` | 更新活动或商品 |\n| `delete_shop_flash_sale` / `delete_shop_flash_sale_items` | 删除活动或商品 |\n\n---\n\n## curl 示例\n\n```bash\ncurl -X POST ${LINKFOX_TOOL_GATEWAY}/shopee/developerProxy \\\n  -H \"Authorization: ${LINKFOX_AGENT_API_KEY:-$LINKFOXAGENT_API_KEY}\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n    \"path\": \"api/v2/shop_flash_sale/get_time_slot_id\",\n    \"method\": \"GET\",\n    \"accessToken\": \"xxx\",\n    \"shopId\": \"67890\"\n  }'\n```\n\n---\n\n## Feedback API\n\n```bash\ncurl -X POST https://skill-api.linkfox.com/api/v1/public/feedback \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"skillName\":\"linkfox-shopee-store-shop-flash-sale\",\"sentiment\":\"POSITIVE\",\n       \"category\":\"OTHER\",\"content\":\"店铺秒杀查询正常\"}'\n```\n\nFile v1.0.5:references/apis/add-shop-flash-sale-items.md\n\n# add_shop_flash_sale_items\n\n| 项 | 值 |\n|----|-----|\n| 脚本 | `scripts/add_shop_flash_sale_items.py` |\n| Method / path | POST `api/v2/shop_flash_sale/add_shop_flash_sale_items` |\n| 官方文档 | [add_shop_flash_sale_items](https://open.shopee.com/documents/v2/v2.shop_flash_sale.add_shop_flash_sale_items?module=123&type=1) |\n| 用途 | Add items to flash sale |\n\n经 **`POST /shopee/developerProxy`** 转发；依赖 **`linkfox-shopee-store-auth`** 选店（通常传 `shopId` 或 `merchantId`）。\n\n---\n\n## 脚本 JSON 入参\n\n| 字段 | 类型 | 必填 | 说明 |\n|------|------|------|------|\n| `shopId` | string | 与 `merchantId` 二选一 | 店铺 ID（推荐；Public 等无店铺接口可省略） |\n| `merchantId` | string | 与 `shopId` 二选一 | 商户 ID |\n\n- Method：**POST**\n- POST：传 `body` / `requestBody`，或把 `body_fields` 列在 JSON 顶层\n- `shopId` / `merchantId` / `skipDepCheck` 等为网关选店保留字段，不会进 Shopee query/body\n- Registry notes：Add items to flash sale\n\n---\n\n## 调用示例\n\n```bash\nexport LINKFOXAGENT_API_KEY=\"<your-key>\"\n\npython scripts/add_shop_flash_sale_items.py '{\"shopId\": \"67890\"}'\n\n# 通用入口\npython scripts/shop_flash_sale_api.py '{\"api\": \"add_shop_flash_sale_items\", \"shopId\": \"67890\"}'\n```\n\n---\n\n## 响应要点\n\n1. 先看 **`developerProxy.httpStatus`** / `errcode`\n2. 再读 **`addShopFlashSaleItems`**（Shopee `response` 解析结果）\n3. 字段以官方文档为准\n\nFile v1.0.5:references/apis/create-shop-flash-sale.md\n\n# create_shop_flash_sale\n\n| 项 | 值 |\n|----|-----|\n| 脚本 | `scripts/create_shop_flash_sale.py` |\n| Method / path | POST `api/v2/shop_flash_sale/create_shop_flash_sale` |\n| 官方文档 | [create_shop_flash_sale](https://open.shopee.com/documents/v2/v2.shop_flash_sale.create_shop_flash_sale?module=123&type=1) |\n| 用途 | Create shop flash sale event; pass full body |\n\n经 **`POST /shopee/developerProxy`** 转发；依赖 **`linkfox-shopee-store-auth`** 选店（通常传 `shopId` 或 `merchantId`）。\n\n---\n\n## 脚本 JSON 入参\n\n| 字段 | 类型 | 必填 | 说明 |\n|------|------|------|------|\n| `shopId` | string | 与 `merchantId` 二选一 | 店铺 ID（推荐；Public 等无店铺接口可省略） |\n| `merchantId` | string | 与 `shopId` 二选一 | 商户 ID |\n\n- Method：**POST**\n- POST：传 `body` / `requestBody`，或把 `body_fields` 列在 JSON 顶层\n- `shopId` / `merchantId` / `skipDepCheck` 等为网关选店保留字段，不会进 Shopee query/body\n- Registry notes：Create shop flash sale event; pass full body\n\n---\n\n## 调用示例\n\n```bash\nexport LINKFOXAGENT_API_KEY=\"<your-key>\"\n\npython scripts/create_shop_flash_sale.py '{\"shopId\": \"67890\"}'\n\n# 通用入口\npython scripts/shop_flash_sale_api.py '{\"api\": \"create_shop_flash_sale\", \"shopId\": \"67890\"}'\n```\n\n---\n\n## 响应要点\n\n1. 先看 **`developerProxy.httpStatus`** / `errcode`\n2. 再读 **`createShopFlashSale`**（Shopee `response` 解析结果）\n3. 字段以官方文档为准\n\nFile v1.0.5:references/apis/delete-shop-flash-sale-items.md\n\n# delete_shop_flash_sale_items\n\n| 项 | 值 |\n|----|-----|\n| 脚本 | `scripts/delete_shop_flash_sale_items.py` |\n| Method / path | POST `api/v2/shop_flash_sale/delete_shop_flash_sale_items` |\n| 官方文档 | [delete_shop_flash_sale_items](https://open.shopee.com/documents/v2/v2.shop_flash_sale.delete_shop_flash_sale_items?module=123&type=1) |\n| 用途 | Remove items from flash sale |\n\n经 **`POST /shopee/developerProxy`** 转发；依赖 **`linkfox-shopee-store-auth`** 选店（通常传 `shopId` 或 `merchantId`）。\n\n---\n\n## 脚本 JSON 入参\n\n| 字段 | 类型 | 必填 | 说明 |\n|------|------|------|------|\n| `shopId` | string | 与 `merchantId` 二选一 | 店铺 ID（推荐；Public 等无店铺接口可省略） |\n| `merchantId` | string | 与 `shopId` 二选一 | 商户 ID |\n\n- Method：**POST**\n- POST：传 `body` / `requestBody`，或把 `body_fields` 列在 JSON 顶层\n- `shopId` / `merchantId` / `skipDepCheck` 等为网关选店保留字段，不会进 Shopee query/body\n- Registry notes：Remove items from flash sale\n\n---\n\n## 调用示例\n\n```bash\nexport LINKFOXAGENT_API_KEY=\"<your-key>\"\n\npython scripts/delete_shop_flash_sale_items.py '{\"shopId\": \"67890\"}'\n\n# 通用入口\npython scripts/shop_flash_sale_api.py '{\"api\": \"delete_shop_flash_sale_items\", \"shopId\": \"67890\"}'\n```\n\n---\n\n## 响应要点\n\n1. 先看 **`developerProxy.httpStatus`** / `errcode`\n2. 再读 **`deleteShopFlashSaleItems`**（Shopee `response` 解析结果）\n3. 字段以官方文档为准\n\nFile v1.0.5:references/apis/delete-shop-flash-sale.md\n\n# delete_shop_flash_sale\n\n| 项 | 值 |\n|----|-----|\n| 脚本 | `scripts/delete_shop_flash_sale.py` |\n| Method / path | POST `api/v2/shop_flash_sale/delete_shop_flash_sale` |\n| 官方文档 | [delete_shop_flash_sale](https://open.shopee.com/documents/v2/v2.shop_flash_sale.delete_shop_flash_sale?module=123&type=1) |\n| 用途 | Delete flash sale |\n\n经 **`POST /shopee/developerProxy`** 转发；依赖 **`linkfox-shopee-store-auth`** 选店（通常传 `shopId` 或 `merchantId`）。\n\n---\n\n## 脚本 JSON 入参\n\n| 字段 | 类型 | 必填 | 说明 |\n|------|------|------|------|\n| `shopId` | string | 与 `merchantId` 二选一 | 店铺 ID（推荐；Public 等无店铺接口可省略） |\n| `merchantId` | string | 与 `shopId` 二选一 | 商户 ID |\n\n- Method：**POST**\n- POST：传 `body` / `requestBody`，或把 `body_fields` 列在 JSON 顶层\n- `shopId` / `merchantId` / `skipDepCheck` 等为网关选店保留字段，不会进 Shopee query/body\n- Registry notes：Delete flash sale\n\n---\n\n## 调用示例\n\n```bash\nexport LINKFOXAGENT_API_KEY=\"<your-key>\"\n\npython scripts/delete_shop_flash_sale.py '{\"shopId\": \"67890\"}'\n\n# 通用入口\npython scripts/shop_flash_sale_api.py '{\"api\": \"delete_shop_flash_sale\", \"shopId\": \"67890\"}'\n```\n\n---\n\n## 响应要点\n\n1. 先看 **`developerProxy.httpStatus`** / `errcode`\n2. 再读 **`deleteShopFlashSale`**（Shopee `response` 解析结果）\n3. 字段以官方文档为准\n\nFile v1.0.5:references/apis/get-item-criteria.md\n\n# get_item_criteria\n\n| 项 | 值 |\n|----|-----|\n| 脚本 | `scripts/get_item_criteria.py` |\n| Method / path | GET `api/v2/shop_flash_sale/get_item_criteria` |\n| 官方文档 | [get_item_criteria](https://open.shopee.com/documents/v2/v2.shop_flash_sale.get_item_criteria?module=123&type=1) |\n| 用途 | Get item eligibility criteria for flash sale |\n\n经 **`POST /shopee/developerProxy`** 转发；依赖 **`linkfox-shopee-store-auth`** 选店（通常传 `shopId` 或 `merchantId`）。\n\n---\n\n## 脚本 JSON 入参\n\n| 字段 | 类型 | 必填 | 说明 |\n|------|------|------|------|\n| `shopId` | string | 与 `merchantId` 二选一 | 店铺 ID（推荐；Public 等无店铺接口可省略） |\n| `merchantId` | string | 与 `shopId` 二选一 | 商户 ID |\n\n- Method：**GET**\n- GET：业务字段放 JSON **顶层**，runner 拼进 `queryString`（不含 `?`）\n- `shopId` / `merchantId` / `skipDepCheck` 等为网关选店保留字段，不会进 Shopee query/body\n- Registry notes：Get item eligibility criteria for flash sale\n\n---\n\n## 调用示例\n\n```bash\nexport LINKFOXAGENT_API_KEY=\"<your-key>\"\n\npython scripts/get_item_criteria.py '{\"shopId\": \"67890\"}'\n\n# 通用入口\npython scripts/shop_flash_sale_api.py '{\"api\": \"get_item_criteria\", \"shopId\": \"67890\"}'\n```\n\n---\n\n## 响应要点\n\n1. 先看 **`developerProxy.httpStatus`** / `errcode`\n2. 再读 **`getItemCriteria`**（Shopee `response` 解析结果）\n3. 字段以官方文档为准\n\nFile v1.0.5:references/apis/get-shop-flash-sale-items.md\n\n# get_shop_flash_sale_items\n\n| 项 | 值 |\n|----|-----|\n| 脚本 | `scripts/get_shop_flash_sale_items.py` |\n| Method / path | GET `api/v2/shop_flash_sale/get_shop_flash_sale_items` |\n| 官方文档 | [get_shop_flash_sale_items](https://open.shopee.com/documents/v2/v2.shop_flash_sale.get_shop_flash_sale_items?module=123&type=1) |\n| 用途 | Items in flash sale |\n\n经 **`POST /shopee/developerProxy`** 转发；依赖 **`linkfox-shopee-store-auth`** 选店（通常传 `shopId` 或 `merchantId`）。\n\n---\n\n## 脚本 JSON 入参\n\n| 字段 | 类型 | 必填 | 说明 |\n|------|------|------|------|\n| `shopId` | string | 与 `merchantId` 二选一 | 店铺 ID（推荐；Public 等无店铺接口可省略） |\n| `merchantId` | string | 与 `shopId` 二选一 | 商户 ID |\n\n- Method：**GET**\n- GET：业务字段放 JSON **顶层**，runner 拼进 `queryString`（不含 `?`）\n- `shopId` / `merchantId` / `skipDepCheck` 等为网关选店保留字段，不会进 Shopee query/body\n- Registry notes：Items in flash sale\n\n---\n\n## 调用示例\n\n```bash\nexport LINKFOXAGENT_API_KEY=\"<your-key>\"\n\npython scripts/get_shop_flash_sale_items.py '{\"shopId\": \"67890\"}'\n\n# 通用入口\npython scripts/shop_flash_sale_api.py '{\"api\": \"get_shop_flash_sale_items\", \"shopId\": \"67890\"}'\n```\n\n---\n\n## 响应要点\n\n1. 先看 **`developerProxy.httpStatus`** / `errcode`\n2. 再读 **`getShopFlashSaleItems`**（Shopee `response` 解析结果）\n3. 字段以官方文档为准\n\nFile v1.0.5:references/apis/get-shop-flash-sale-list.md\n\n# get_shop_flash_sale_list\n\n| 项 | 值 |\n|----|-----|\n| 脚本 | `scripts/get_shop_flash_sale_list.py` |\n| Method / path | GET `api/v2/shop_flash_sale/get_shop_flash_sale_list` |\n| 官方文档 | [get_shop_flash_sale_list](https://open.shopee.com/documents/v2/v2.shop_flash_sale.get_shop_flash_sale_list?module=123&type=1) |\n| 用途 | List shop flash sales; pagination/status filters |\n\n经 **`POST /shopee/developerProxy`** 转发；依赖 **`linkfox-shopee-store-auth`** 选店（通常传 `shopId` 或 `merchantId`）。\n\n---\n\n## 脚本 JSON 入参\n\n| 字段 | 类型 | 必填 | 说明 |\n|------|------|------|------|\n| `shopId` | string | 与 `merchantId` 二选一 | 店铺 ID（推荐；Public 等无店铺接口可省略） |\n| `merchantId` | string | 与 `shopId` 二选一 | 商户 ID |\n\n- Method：**GET**\n- GET：业务字段放 JSON **顶层**，runner 拼进 `queryString`（不含 `?`）\n- `shopId` / `merchantId` / `skipDepCheck` 等为网关选店保留字段，不会进 Shopee query/body\n- Registry notes：List shop flash sales; pagination/status filters\n\n---\n\n## 调用示例\n\n```bash\nexport LINKFOXAGENT_API_KEY=\"<your-key>\"\n\npython scripts/get_shop_flash_sale_list.py '{\"shopId\": \"67890\"}'\n\n# 通用入口\npython scripts/shop_flash_sale_api.py '{\"api\": \"get_shop_flash_sale_list\", \"shopId\": \"67890\"}'\n```\n\n---\n\n## 响应要点\n\n1. 先看 **`developerProxy.httpStatus`** / `errcode`\n2. 再读 **`getShopFlashSaleList`**（Shopee `response` 解析结果）\n3. 字段以官方文档为准\n\nFile v1.0.5:references/apis/get-shop-flash-sale.md\n\n# get_shop_flash_sale\n\n| 项 | 值 |\n|----|-----|\n| 脚本 | `scripts/get_shop_flash_sale.py` |\n| Method / path | GET `api/v2/shop_flash_sale/get_shop_flash_sale` |\n| 官方文档 | [get_shop_flash_sale](https://open.shopee.com/documents/v2/v2.shop_flash_sale.get_shop_flash_sale?module=123&type=1) |\n| 用途 | Flash sale detail by flash_sale_id |\n\n经 **`POST /shopee/developerProxy`** 转发；依赖 **`linkfox-shopee-store-auth`** 选店（通常传 `shopId` 或 `merchantId`）。\n\n---\n\n## 脚本 JSON 入参\n\n| 字段 | 类型 | 必填 | 说明 |\n|------|------|------|------|\n| `shopId` | string | 与 `merchantId` 二选一 | 店铺 ID（推荐；Public 等无店铺接口可省略） |\n| `merchantId` | string | 与 `shopId` 二选一 | 商户 ID |\n\n- Method：**GET**\n- GET：业务字段放 JSON **顶层**，runner 拼进 `queryString`（不含 `?`）\n- `shopId` / `merchantId` / `skipDepCheck` 等为网关选店保留字段，不会进 Shopee query/body\n- Registry notes：Flash sale detail by flash_sale_id\n\n---\n\n## 调用示例\n\n```bash\nexport LINKFOXAGENT_API_KEY=\"<your-key>\"\n\npython scripts/get_shop_flash_sale.py '{\"shopId\": \"67890\"}'\n\n# 通用入口\npython scripts/shop_flash_sale_api.py '{\"api\": \"get_shop_flash_sale\", \"shopId\": \"67890\"}'\n```\n\n---\n\n## 响应要点\n\n1. 先看 **`developerProxy.httpStatus`** / `errcode`\n2. 再读 **`getShopFlashSale`**（Shopee `response` 解析结果）\n3. 字段以官方文档为准\n\nFile v1.0.5:references/apis/get-time-slot-id.md\n\n# get_time_slot_id\n\n| 项 | 值 |\n|----|-----|\n| 脚本 | `scripts/get_time_slot_id.py` |\n| Method / path | GET `api/v2/shop_flash_sale/get_time_slot_id` |\n| 官方文档 | [get_time_slot_id](https://open.shopee.com/documents/v2/v2.shop_flash_sale.get_time_slot_id?module=123&type=1) |\n| 用途 | Get available flash sale time slot IDs |\n\n经 **`POST /shopee/developerProxy`** 转发；依赖 **`linkfox-shopee-store-auth`** 选店（通常传 `shopId` 或 `merchantId`）。\n\n---\n\n## 脚本 JSON 入参\n\n| 字段 | 类型 | 必填 | 说明 |\n|------|------|------|------|\n| `shopId` | string | 与 `merchantId` 二选一 | 店铺 ID（推荐；Public 等无店铺接口可省略） |\n| `merchantId` | string | 与 `shopId` 二选一 | 商户 ID |\n\n- Method：**GET**\n- GET：业务字段放 JSON **顶层**，runner 拼进 `queryString`（不含 `?`）\n- `shopId` / `merchantId` / `skipDepCheck` 等为网关选店保留字段，不会进 Shopee query/body\n- Registry notes：Get available flash sale time slot IDs\n\n---\n\n## 调用示例\n\n```bash\nexport LINKFOXAGENT_API_KEY=\"<your-key>\"\n\npython scripts/get_time_slot_id.py '{\"shopId\": \"67890\"}'\n\n# 通用入口\npython scripts/shop_flash_sale_api.py '{\"api\": \"get_time_slot_id\", \"shopId\": \"67890\"}'\n```\n\n---\n\n## 响应要点\n\n1. 先看 **`developerProxy.httpStatus`** / `errcode`\n2. 再读 **`getTimeSlotId`**（Shopee `response` 解析结果）\n3. 字段以官方文档为准\n\nArchive v1.0.4: 33 files, 42669 bytes\n\nFiles: references/api.md (4712b), references/apis/add-shop-flash-sale-items.md (1462b), references/apis/create-shop-flash-sale.md (1481b), references/apis/delete-shop-flash-sale-items.md (1496b), references/apis/delete-shop-flash-sale.md (1427b), references/apis/get-item-criteria.md (1448b), references/apis/get-shop-flash-sale-items.md (1460b), references/apis/get-shop-flash-sale-list.md (1510b), references/apis/get-shop-flash-sale.md (1443b), references/apis/get-time-slot-id.md (1427b), references/apis/update-shop-flash-sale-items.md (1502b), references/apis/update-shop-flash-sale.md (1445b), references/onboarding.md (2046b), scripts/_shop_flash_sale_api_runner.py (4393b), scripts/_shop_flash_sale_endpoints.py (3408b), scripts/_shopee_shop_flash_sale_common.py (11620b), scripts/add_shop_flash_sale_items.py (774b), scripts/check_auth_dependency.py (3999b), scripts/create_shop_flash_sale.py (756b), scripts/delete_shop_flash_sale_items.py (792b), scripts/delete_shop_flash_sale.py (756b), scripts/get_item_criteria.py (726b), scripts/get_shop_flash_sale_items.py (774b), scripts/get_shop_flash_sale_list.py (768b), scripts/get_shop_flash_sale.py (738b), scripts/get_time_slot_id.py (720b), scripts/onboarding.py (24089b), scripts/shop_flash_sale_api.py (1057b), scripts/update_shop_flash_sale_items.py (792b), scripts/update_shop_flash_sale.py (756b), skill-card.md (2718b), SKILL.md (6232b), _meta.json (155b)\n\nFile v1.0.4:SKILL.md\n\n---\nname: linkfox-shopee-store-shop-flash-sale\ndescription: Shopee（虾皮）店铺秒杀 Shop Flash Sale（与 linkfox-shopee-store-auth 同系列），经 /shopee/developerProxy 转发 Shopee Open API Shop Flash Sale 模块全部 11 个接口：get_time_slot_id、create_shop_flash_sale、get_shop_flash_sale_list、add_shop_flash_sale_items、update_shop_flash_sale 等。当用户提到 Shopee 店铺秒杀、Shop Flash Sale、限时秒杀、get_time_slot_id、flash_sale_id、秒杀时段 时触发。即使未明确提及\"秒杀\"，只要涉及已授权 Shopee 店铺的 Flash Sale 活动管理，也应触发。\n---\n\n# Shopee 店铺秒杀 Shop Flash Sale\n\nShopee Open Platform **Shop Flash Sale 模块**（11 个 API）。**依赖 `linkfox-shopee-store-auth`** 选店；经 **`POST /shopee/developerProxy`** 传入 `shopId`（或 `merchantId`），由服务端解析 token 转发（`path` 须 `api/v2/shop_flash_sale/...`）。\n\n## 调用方式\n\n- **API 端点**：`POST /shopee/developerProxy`（不同操作通过请求体区分；完整参数/响应/错误码见 `references/api.md`）\n- **Python 脚本**：`python scripts/<脚本名>.py '<JSON 参数>' [--inline]`（可用脚本见上文脚本一览）\n- **成本约束**：本工具会消耗积分；失败/空结果不得自动换关键词、翻页或连续试探；需要继续检索时先向用户说明会产生额外消耗。\n\n**输出策略（脚本默认行为）**：\n- **始终**将完整响应写入 `<cwd>/linkfox/<YYYY-MM-DD>/<session>/data/<skill-name>-<timestamp>.json`（`<cwd>` 为脚本执行时的工作目录，在 Claude Code 里即当前项目目录；`<session>` 取自环境变量 `SESSION_ID`，按用户任务自动聚合；**禁止写入 /tmp**，当前目录不可写则报错）\n- 响应体 ≤ 8 KB：落盘后把完整 JSON 打印到 stdout\n- 响应体 > 8 KB：落盘后 stdout 只输出摘要（顶层字段、常见计数如 `total`/`costToken`、最大列表字段的长度 + 前 3 条样本）\n- 加 `--inline` 强制全量打印到 stdout（同样落盘）\n\n**读数据建议**：先看摘要判断是否足够；需要具体字段时优先用 `jq`或`ConvertFrom-Json` 从保存的 json 文件按需抽取，避免整份 JSON 进入上下文。\n\n## 解决认证和积分问题\n发生以下异常情况时，采用 references/onboarding.md 引导解决问题：\n\n### 异常情况\n- **未配置API Key**：环境变量未配置 `LINKFOX_AGENT_API_KEY`，也未配置 `LINKFOXAGENT_API_KEY`。\n- **响应401或402状态码**\n- **响应提示积分或余额不足**：消息含\"积分余额不足/计费不足/余额不足/quota exceeded/insufficient balance/套餐到期/需充值/请充值\"，或类似含义的内容。\n\n## 官方参考\n\nShop Flash Sale 模块索引：[v2.shop_flash_sale.get_time_slot_id](https://open.shopee.com/documents/v2/v2.shop_flash_sale.get_time_slot_id?module=123&type=1)\n\n---\n\n## Prerequisites\n\n1. 运行 `python scripts/check_auth_dependency.py`；exit code **42** → 先安装 **`linkfox-shopee-store-auth`**。\n2. 其它促销：Discount / Bundle Deal / Voucher / Shop Flash Sale / Follow Prize → 对应促销 skill。\n\n## 可用脚本（11 个 API）\n\n| 脚本 | API | Method |\n|------|-----|--------|\n| `get_time_slot_id.py` | get_time_slot_id | GET |\n| `create_shop_flash_sale.py` | create_shop_flash_sale | POST |\n| `get_item_criteria.py` | get_item_criteria | GET |\n| `add_shop_flash_sale_items.py` | add_shop_flash_sale_items | POST |\n| `get_shop_flash_sale_list.py` | get_shop_flash_sale_list | GET |\n| `get_shop_flash_sale.py` | get_shop_flash_sale | GET |\n| `get_shop_flash_sale_items.py` | get_shop_flash_sale_items | GET |\n| `update_shop_flash_sale.py` | update_shop_flash_sale | POST |\n| `update_shop_flash_sale_items.py` | update_shop_flash_sale_items | POST |\n| `delete_shop_flash_sale.py` | delete_shop_flash_sale | POST |\n| `delete_shop_flash_sale_items.py` | delete_shop_flash_sale_items | POST |\n| `shop_flash_sale_api.py` | 通用入口 | — |\n\n## 接口说明（按 API）\n\n入参与响应细节放在 `references/apis/`，SKILL 只保留索引。\n\n| API | 说明文档 |\n|-----|----------|\n| `add_shop_flash_sale_items` | [references/apis/add-shop-flash-sale-items.md](./references/apis/add-shop-flash-sale-items.md) |\n| `create_shop_flash_sale` | [references/apis/create-shop-flash-sale.md](./references/apis/create-shop-flash-sale.md) |\n| `delete_shop_flash_sale` | [references/apis/delete-shop-flash-sale.md](./references/apis/delete-shop-flash-sale.md) |\n| `delete_shop_flash_sale_items` | [references/apis/delete-shop-flash-sale-items.md](./references/apis/delete-shop-flash-sale-items.md) |\n| `get_item_criteria` | [references/apis/get-item-criteria.md](./references/apis/get-item-criteria.md) |\n| `get_shop_flash_sale` | [references/apis/get-shop-flash-sale.md](./references/apis/get-shop-flash-sale.md) |\n| `get_shop_flash_sale_items` | [references/apis/get-shop-flash-sale-items.md](./references/apis/get-shop-flash-sale-items.md) |\n| `get_shop_flash_sale_list` | [references/apis/get-shop-flash-sale-list.md](./references/apis/get-shop-flash-sale-list.md) |\n| `get_time_slot_id` | [references/apis/get-time-slot-id.md](./references/apis/get-time-slot-id.md) |\n| `update_shop_flash_sale` | [references/apis/update-shop-flash-sale.md](./references/apis/update-shop-flash-sale.md) |\n| `update_shop_flash_sale_items` | [references/apis/update-shop-flash-sale-items.md](./references/apis/update-shop-flash-sale-items.md) |\n\n模块总览 / Feedback 见 [references/api.md](./references/api.md)。\n\n## Usage Scenarios\n\n### 1. 创建店铺秒杀\n1. `get_time_slot_id.py` 获取可用时段\n2. `create_shop_flash_sale.py` 创建活动\n3. `add_shop_flash_sale_items.py` 添加商品\n4. `get_shop_flash_sale_list.py` 确认状态\n\n## Not Applicable\n\n- 店铺授权 → `linkfox-shopee-store-auth`\n- 限时折扣 Discount → `linkfox-shopee-store-discount`\n- 优惠券 Voucher → `linkfox-shopee-store-voucher`\n- 商品 listing → `linkfox-shopee-store-product`\n\n## 积分消耗规则\n\n不消耗积分。\n\n**Feedback:** 见 `references/api.md`。\n\n---\n*For more high-quality, professional cross-border e-commerce skills, visit [LinkFox Skills](https://skill.linkfox.com/).*\n\nFile v1.0.4:_meta.json\n\n{\n  \"ownerId\": \"kn7dmc1t4j28hem1twwyav85p182pb1j\",\n  \"slug\": \"linkfox-shopee-store-shop-flash-sale\",\n  \"version\": \"1.0.4\",\n  \"publishedAt\": 1786100941168\n}\n\nFile v1.0.4:references/api.md\n\n# linkfox-shopee-store-shop-flash-sale — 参数与字段参考\n\n> 单接口入参/响应说明已拆到 **`apis/`**（按 API 一份）；本文件保留模块总览与 Feedback。\nShopee **Shop Flash Sale 模块**全部 11 个 API，经 **`POST /shopee/developerProxy`** 转发。\n\n授权见 **`linkfox-shopee-store-auth`**。官方索引：[v2.shop_flash_sale.get_time_slot_id](https://open.shopee.com/documents/v2/v2.shop_flash_sale.get_time_slot_id?module=123&type=1)\n\n## 通用约定\n\n- **path**：须 `api/v2/shop_flash_sale/...`\n- **标识**：通常传 **`shopId`**\n- **官方文档 URL 规则**：`https://open.shopee.com/documents/v2/v2.shop_flash_sale.{api}?module=123&type=1`\n\n---\n\n## Shop Flash Sale 模块总览\n\n| # | API | Method | path | 脚本 | 官方文档 |\n|---|-----|--------|------|------|----------|\n| 1 | add_shop_flash_sale_items | POST | `api/v2/shop_flash_sale/add_shop_flash_sale_items` | `add_shop_flash_sale_items.py` | [apis/add-shop-flash-sale-items.md](./apis/add-shop-flash-sale-items.md) |\n| 2 | create_shop_flash_sale | POST | `api/v2/shop_flash_sale/create_shop_flash_sale` | `create_shop_flash_sale.py` | [apis/create-shop-flash-sale.md](./apis/create-shop-flash-sale.md) |\n| 3 | delete_shop_flash_sale | POST | `api/v2/shop_flash_sale/delete_shop_flash_sale` | `delete_shop_flash_sale.py` | [apis/delete-shop-flash-sale.md](./apis/delete-shop-flash-sale.md) |\n| 4 | delete_shop_flash_sale_items | POST | `api/v2/shop_flash_sale/delete_shop_flash_sale_items` | `delete_shop_flash_sale_items.py` | [apis/delete-shop-flash-sale-items.md](./apis/delete-shop-flash-sale-items.md) |\n| 5 | get_item_criteria | GET | `api/v2/shop_flash_sale/get_item_criteria` | `get_item_criteria.py` | [apis/get-item-criteria.md](./apis/get-item-criteria.md) |\n| 6 | get_shop_flash_sale | GET | `api/v2/shop_flash_sale/get_shop_flash_sale` | `get_shop_flash_sale.py` | [apis/get-shop-flash-sale.md](./apis/get-shop-flash-sale.md) |\n| 7 | get_shop_flash_sale_items | GET | `api/v2/shop_flash_sale/get_shop_flash_sale_items` | `get_shop_flash_sale_items.py` | [apis/get-shop-flash-sale-items.md](./apis/get-shop-flash-sale-items.md) |\n| 8 | get_shop_flash_sale_list | GET | `api/v2/shop_flash_sale/get_shop_flash_sale_list` | `get_shop_flash_sale_list.py` | [apis/get-shop-flash-sale-list.md](./apis/get-shop-flash-sale-list.md) |\n| 9 | get_time_slot_id | GET | `api/v2/shop_flash_sale/get_time_slot_id` | `get_time_slot_id.py` | [apis/get-time-slot-id.md](./apis/get-time-slot-id.md) |\n| 10 | update_shop_flash_sale | POST | `api/v2/shop_flash_sale/update_shop_flash_sale` | `update_shop_flash_sale.py` | [apis/update-shop-flash-sale.md](./apis/update-shop-flash-sale.md) |\n| 11 | update_shop_flash_sale_items | POST | `api/v2/shop_flash_sale/update_shop_flash_sale_items` | `update_shop_flash_sale_items.py` | [apis/update-shop-flash-sale-items.md](./apis/update-shop-flash-sale-items.md) |\n通用入口：`shop_flash_sale_api.py`（JSON 含 `\"api\": \"<上表 API 名>\"`）。\n\n---\n\n## 常用接口说明\n\n| API | 要点 |\n|-----|------|\n| `get_time_slot_id` | 获取可用秒杀时段 ID — [apis/get-time-slot-id.md](./apis/get-time-slot-id.md) |\n| `create_shop_flash_sale` | 创建店铺秒杀活动；POST `body` — [apis/create-shop-flash-sale.md](./apis/create-shop-flash-sale.md) |\n| `get_item_criteria` | 查询商品参与条件 — [apis/get-item-criteria.md](./apis/get-item-criteria.md) |\n| `add_shop_flash_sale_items` | 添加秒杀商品 — [apis/add-shop-flash-sale-items.md](./apis/add-shop-flash-sale-items.md) |\n| `get_shop_flash_sale_list` | 活动列表 — [apis/get-shop-flash-sale-list.md](./apis/get-shop-flash-sale-list.md) |\n| `get_shop_flash_sale` | 活动详情 — [apis/get-shop-flash-sale.md](./apis/get-shop-flash-sale.md) |\n| `get_shop_flash_sale_items` | 活动内商品 — [apis/get-shop-flash-sale-items.md](./apis/get-shop-flash-sale-items.md) |\n| `update_shop_flash_sale` / `update_shop_flash_sale_items` | 更新活动或商品 |\n| `delete_shop_flash_sale` / `delete_shop_flash_sale_items` | 删除活动或商品 |\n\n---\n\n## curl 示例\n\n```bash\ncurl -X POST ${LINKFOX_TOOL_GATEWAY}/shopee/developerProxy \\\n  -H \"Authorization: ${LINKFOX_AGENT_API_KEY:-$LINKFOXAGENT_API_KEY}\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n    \"path\": \"api/v2/shop_flash_sale/get_time_slot_id\",\n    \"method\": \"GET\",\n    \"accessToken\": \"xxx\",\n    \"shopId\": \"67890\"\n  }'\n```\n\n---\n\n## Feedback API\n\n```bash\ncurl -X POST https://skill-api.linkfox.com/api/v1/public/feedback \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"skillName\":\"linkfox-shopee-store-shop-flash-sale\",\"sentiment\":\"POSITIVE\",\n       \"category\":\"OTHER\",\"content\":\"店铺秒杀查询正常\"}'\n```\n\nFile v1.0.4:references/apis/add-shop-flash-sale-items.md\n\n# add_shop_flash_sale_items\n\n| 项 | 值 |\n|----|-----|\n| 脚本 | `scripts/add_shop_flash_sale_items.py` |\n| Method / path | POST `api/v2/shop_flash_sale/add_shop_flash_sale_items` |\n| 官方文档 | [add_shop_flash_sale_items](https://open.shopee.com/documents/v2/v2.shop_flash_sale.add_shop_flash_sale_items?module=123&type=1) |\n| 用途 | Add items to flash sale |\n\n经 **`POST /shopee/developerProxy`** 转发；依赖 **`linkfox-shopee-store-auth`** 选店（通常传 `shopId` 或 `merchantId`）。\n\n---\n\n## 脚本 JSON 入参\n\n| 字段 | 类型 | 必填 | 说明 |\n|------|------|------|------|\n| `shopId` | string | 与 `merchantId` 二选一 | 店铺 ID（推荐；Public 等无店铺接口可省略） |\n| `merchantId` | string | 与 `shopId` 二选一 | 商户 ID |\n\n- Method：**POST**\n- POST：传 `body` / `requestBody`，或把 `body_fields` 列在 JSON 顶层\n- `shopId` / `merchantId` / `skipDepCheck` 等为网关选店保留字段，不会进 Shopee query/body\n- Registry notes：Add items to flash sale\n\n---\n\n## 调用示例\n\n```bash\nexport LINKFOXAGENT_API_KEY=\"<your-key>\"\n\npython scripts/add_shop_flash_sale_items.py '{\"shopId\": \"67890\"}'\n\n# 通用入口\npython scripts/shop_flash_sale_api.py '{\"api\": \"add_shop_flash_sale_items\", \"shopId\": \"67890\"}'\n```\n\n---\n\n## 响应要点\n\n1. 先看 **`developerProxy.httpStatus`** / `errcode`\n2. 再读 **`addShopFlashSaleItems`**（Shopee `response` 解析结果）\n3. 字段以官方文档为准\n\nFile v1.0.4:references/apis/create-shop-flash-sale.md\n\n# create_shop_flash_sale\n\n| 项 | 值 |\n|----|-----|\n| 脚本 | `scripts/create_shop_flash_sale.py` |\n| Method / path | POST `api/v2/shop_flash_sale/create_shop_flash_sale` |\n| 官方文档 | [create_shop_flash_sale](https://open.shopee.com/documents/v2/v2.shop_flash_sale.create_shop_flash_sale?module=123&type=1) |\n| 用途 | Create shop flash sale event; pass full body |\n\n经 **`POST /shopee/developerProxy`** 转发；依赖 **`linkfox-shopee-store-auth`** 选店（通常传 `shopId` 或 `merchantId`）。\n\n---\n\n## 脚本 JSON 入参\n\n| 字段 | 类型 | 必填 | 说明 |\n|------|------|------|------|\n| `shopId` | string | 与 `merchantId` 二选一 | 店铺 ID（推荐；Public 等无店铺接口可省略） |\n| `merchantId` | string | 与 `shopId` 二选一 | 商户 ID |\n\n- Method：**POST**\n- POST：传 `body` / `requestBody`，或把 `body_fields` 列在 JSON 顶层\n- `shopId` / `merchantId` / `skipDepCheck` 等为网关选店保留字段，不会进 Shopee query/body\n- Registry notes：Create shop flash sale event; pass full body\n\n---\n\n## 调用示例\n\n```bash\nexport LINKFOXAGENT_API_KEY=\"<your-key>\"\n\npython scripts/create_shop_flash_sale.py '{\"shopId\": \"67890\"}'\n\n# 通用入口\npython scripts/shop_flash_sale_api.py '{\"api\": \"create_shop_flash_sale\", \"shopId\": \"67890\"}'\n```\n\n---\n\n## 响应要点\n\n1. 先看 **`developerProxy.httpStatus`** / `errcode`\n2. 再读 **`createShopFlashSale`**（Shopee `response` 解析结果）\n3. 字段以官方文档为准\n\nFile v1.0.4:references/apis/delete-shop-flash-sale-items.md\n\n# delete_shop_flash_sale_items\n\n| 项 | 值 |\n|----|-----|\n| 脚本 | `scripts/delete_shop_flash_sale_items.py` |\n| Method / path | POST `api/v2/shop_flash_sale/delete_shop_flash_sale_items` |\n| 官方文档 | [delete_shop_flash_sale_items](https://open.shopee.com/documents/v2/v2.shop_flash_sale.delete_shop_flash_sale_items?module=123&type=1) |\n| 用途 | Remove items from flash sale |\n\n经 **`POST /shopee/developerProxy`** 转发；依赖 **`linkfox-shopee-store-auth`** 选店（通常传 `shopId` 或 `merchantId`）。\n\n---\n\n## 脚本 JSON 入参\n\n| 字段 | 类型 | 必填 | 说明 |\n|------|------|------|------|\n| `shopId` | string | 与 `merchantId` 二选一 | 店铺 ID（推荐；Public 等无店铺接口可省略） |\n| `merchantId` | string | 与 `shopId` 二选一 | 商户 ID |\n\n- Method：**POST**\n- POST：传 `body` / `requestBody`，或把 `body_fields` 列在 JSON 顶层\n- `shopId` / `merchantId` / `skipDepCheck` 等为网关选店保留字段，不会进 Shopee query/body\n- Registry notes：Remove items from flash sale\n\n---\n\n## 调用示例\n\n```bash\nexport LINKFOXAGENT_API_KEY=\"<your-key>\"\n\npython scripts/delete_shop_flash_sale_items.py '{\"shopId\": \"67890\"}'\n\n# 通用入口\npython scripts/shop_flash_sale_api.py '{\"api\": \"delete_shop_flash_sale_items\", \"shopId\": \"67890\"}'\n```\n\n---\n\n## 响应要点\n\n1. 先看 **`developerProxy.httpStatus`** / `errcode`\n2. 再读 **`deleteShopFlashSaleItems`**（Shopee `response` 解析结果）\n3. 字段以官方文档为准\n\nFile v1.0.4:references/apis/delete-shop-flash-sale.md\n\n# delete_shop_flash_sale\n\n| 项 | 值 |\n|----|-----|\n| 脚本 | `scripts/delete_shop_flash_sale.py` |\n| Method / path | POST `api/v2/shop_flash_sale/delete_shop_flash_sale` |\n| 官方文档 | [delete_shop_flash_sale](https://open.shopee.com/documents/v2/v2.shop_flash_sale.delete_shop_flash_sale?module=123&type=1) |\n| 用途 | Delete flash sale |\n\n经 **`POST /shopee/developerProxy`** 转发；依赖 **`linkfox-shopee-store-auth`** 选店（通常传 `shopId` 或 `merchantId`）。\n\n---\n\n## 脚本 JSON 入参\n\n| 字段 | 类型 | 必填 | 说明 |\n|------|------|------|------|\n| `shopId` | string | 与 `merchantId` 二选一 | 店铺 ID（推荐；Public 等无店铺接口可省略） |\n| `merchantId` | string | 与 `shopId` 二选一 | 商户 ID |\n\n- Method：**POST**\n- POST：传 `body` / `requestBody`，或把 `body_fields` 列在 JSON 顶层\n- `shopId` / `merchantId` / `skipDepCheck` 等为网关选店保留字段，不会进 Shopee query/body\n- Registry notes：Delete flash sale\n\n---\n\n## 调用示例\n\n```bash\nexport LINKFOXAGENT_API_KEY=\"<your-key>\"\n\npython scripts/delete_shop_flash_sale.py '{\"shopId\": \"67890\"}'\n\n# 通用入口\npython scripts/shop_flash_sale_api.py '{\"api\": \"delete_shop_flash_sale\", \"shopId\": \"67890\"}'\n```\n\n---\n\n## 响应要点\n\n1. 先看 **`developerProxy.httpStatus`** / `errcode`\n2. 再读 **`deleteShopFlashSale`**（Shopee `response` 解析结果）\n3. 字段以官方文档为准\n\nFile v1.0.4:references/apis/get-item-criteria.md\n\n# get_item_criteria\n\n| 项 | 值 |\n|----|-----|\n| 脚本 | `scripts/get_item_criteria.py` |\n| Method / path | GET `api/v2/shop_flash_sale/get_item_criteria` |\n| 官方文档 | [get_item_criteria](https://open.shopee.com/documents/v2/v2.shop_flash_sale.get_item_criteria?module=123&type=1) |\n| 用途 | Get item eligibility criteria for flash sale |\n\n经 **`POST /shopee/developerProxy`** 转发；依赖 **`linkfox-shopee-store-auth`** 选店（通常传 `shopId` 或 `merchantId`）。\n\n---\n\n## 脚本 JSON 入参\n\n| 字段 | 类型 | 必填 | 说明 |\n|------|------|------|------|\n| `shopId` | string | 与 `merchantId` 二选一 | 店铺 ID（推荐；Public 等无店铺接口可省略） |\n| `merchantId` | string | 与 `shopId` 二选一 | 商户 ID |\n\n- Method：**GET**\n- GET：业务字段放 JSON **顶层**，runner 拼进 `queryString`（不含 `?`）\n- `shopId` / `merchantId` / `skipDepCheck` 等为网关选店保留字段，不会进 Shopee query/body\n- Registry notes：Get item eligibility criteria for flash sale\n\n---\n\n## 调用示例\n\n```bash\nexport LINKFOXAGENT_API_KEY=\"<your-key>\"\n\npython scripts/get_item_criteria.py '{\"shopId\": \"67890\"}'\n\n# 通用入口\npython scripts/shop_flash_sale_api.py '{\"api\": \"get_item_criteria\", \"shopId\": \"67890\"}'\n```\n\n---\n\n## 响应要点\n\n1. 先看 **`developerProxy.httpStatus`** / `errcode`\n2. 再读 **`getItemCriteria`**（Shopee `response` 解析结果）\n3. 字段以官方文档为准\n\nFile v1.0.4:references/apis/get-shop-flash-sale-items.md\n\n# get_shop_flash_sale_items\n\n| 项 | 值 |\n|----|-----|\n| 脚本 | `scripts/get_shop_flash_sale_items.py` |\n| Method / path | GET `api/v2/shop_flash_sale/get_shop_flash_sale_items` |\n| 官方文档 | [get_shop_flash_sale_items](https://open.shopee.com/documents/v2/v2.shop_flash_sale.get_shop_flash_sale_items?module=123&type=1) |\n| 用途 | Items in flash sale |\n\n经 **`POST /shopee/developerProxy`** 转发；依赖 **`linkfox-shopee-store-auth`** 选店（通常传 `shopId` 或 `merchantId`）。\n\n---\n\n## 脚本 JSON 入参\n\n| 字段 | 类型 | 必填 | 说明 |\n|------|------|------|------|\n| `shopId` | string | 与 `merchantId` 二选一 | 店铺 ID（推荐；Public 等无店铺接口可省略） |\n| `merchantId` | string | 与 `shopId` 二选一 | 商户 ID |\n\n- Method：**GET**\n- GET：业务字段放 JSON **顶层**，runner 拼进 `queryString`（不含 `?`）\n- `shopId` / `merchantId` / `skipDepCheck` 等为网关选店保留字段，不会进 Shopee query/body\n- Registry notes：Items in flash sale\n\n---\n\n## 调用示例\n\n```bash\nexport LINKFOXAGENT_API_KEY=\"<your-key>\"\n\npython scripts/get_shop_flash_sale_items.py '{\"shopId\": \"67890\"}'\n\n# 通用入口\npython scripts/shop_flash_sale_api.py '{\"api\": \"get_shop_flash_sale_items\", \"shopId\": \"67890\"}'\n```\n\n---\n\n## 响应要点\n\n1. 先看 **`developerProxy.httpStatus`** / `errcode`\n2. 再读 **`getShopFlashSaleItems`**（Shopee `response` 解析结果）\n3. 字段以官方文档为准\n\nFile v1.0.4:references/apis/get-shop-flash-sale-list.md\n\n# get_shop_flash_sale_list\n\n| 项 | 值 |\n|----|-----|\n| 脚本 | `scripts/get_shop_flash_sale_list.py` |\n| Method / path | GET `api/v2/shop_flash_sale/get_shop_flash_sale_list` |\n| 官方文档 | [get_shop_flash_sale_list](https://open.shopee.com/documents/v2/v2.shop_flash_sale.get_shop_flash_sale_list?module=123&type=1) |\n| 用途 | List shop flash sales; pagination/status filters |\n\n经 **`POST /shopee/developerProxy`** 转发；依赖 **`linkfox-shopee-store-auth`** 选店（通常传 `shopId` 或 `merchantId`）。\n\n---\n\n## 脚本 JSON 入参\n\n| 字段 | 类型 | 必填 | 说明 |\n|------|------|------|------|\n| `shopId` | string | 与 `merchantId` 二选一 | 店铺 ID（推荐；Public 等无店铺接口可省略） |\n| `merchantId` | string | 与 `shopId` 二选一 | 商户 ID |\n\n- Method：**GET**\n- GET：业务字段放 JSON **顶层**，runner 拼进 `queryString`（不含 `?`）\n- `shopId` / `merchantId` / `skipDepCheck` 等为网关选店保留字段，不会进 Shopee query/body\n- Registry notes：List shop flash sales; pagination/status filters\n\n---\n\n## 调用示例\n\n```bash\nexport LINKFOXAGENT_API_KEY=\"<your-key>\"\n\npython scripts/get_shop_flash_sale_list.py '{\"shopId\": \"67890\"}'\n\n# 通用入口\npython scripts/shop_flash_sale_api.py '{\"api\": \"get_shop_flash_sale_list\", \"shopId\": \"67890\"}'\n```\n\n---\n\n## 响应要点\n\n1. 先看 **`developerProxy.httpStatus`** / `errcode`\n2. 再读 **`getShopFlashSaleList`**（Shopee `response` 解析结果）\n3. 字段以官方文档为准\n\nFile v1.0.4:references/apis/get-shop-flash-sale.md\n\n# get_shop_flash_sale\n\n| 项 | 值 |\n|----|-----|\n| 脚本 | `scripts/get_shop_flash_sale.py` |\n| Method / path | GET `api/v2/shop_flash_sale/get_shop_flash_sale` |\n| 官方文档 | [get_shop_flash_sale](https://open.shopee.com/documents/v2/v2.shop_flash_sale.get_shop_flash_sale?module=123&type=1) |\n| 用途 | Flash sale detail by flash_sale_id |\n\n经 **`POST /shopee/developerProxy`** 转发；依赖 **`linkfox-shopee-store-auth`** 选店（通常传 `shopId` 或 `merchantId`）。\n\n---\n\n## 脚本 JSON 入参\n\n| 字段 | 类型 | 必填 | 说明 |\n|------|------|------|------|\n| `shopId` | string | 与 `merchantId` 二选一 | 店铺 ID（推荐；Public 等无店铺接口可省略） |\n| `merchantId` | string | 与 `shopId` 二选一 | 商户 ID |\n\n- Method：**GET**\n- GET：业务字段放 JSON **顶层**，runner 拼进 `queryString`（不含 `?`）\n- `shopId` / `merchantId` / `skipDepCheck` 等为网关选店保留字段，不会进 Shopee query/body\n- Registry notes：Flash sale detail by flash_sale_id\n\n---\n\n## 调用示例\n\n```bash\nexport LINKFOXAGENT_API_KEY=\"<your-key>\"\n\npython scripts/get_shop_flash_sale.py '{\"shopId\": \"67890\"}'\n\n# 通用入口\npython scripts/shop_flash_sale_api.py '{\"api\": \"get_shop_flash_sale\", \"shopId\": \"67890\"}'\n```\n\n---\n\n## 响应要点\n\n1. 先看 **`developerProxy.httpStatus`** / `errcode`\n2. 再读 **`getShopFlashSale`**（Shopee `response` 解析结果）\n3. 字段以官方文档为准\n\nFile v1.0.4:references/apis/get-time-slot-id.md\n\n# get_time_slot_id\n\n| 项 | 值 |\n|----|-----|\n| 脚本 | `scripts/get_time_slot_id.py` |\n| Method / path | GET `api/v2/shop_flash_sale/get_time_slot_id` |\n| 官方文档 | [get_time_slot_id](https://open.shopee.com/documents/v2/v2.shop_flash_sale.get_time_slot_id?module=123&type=1) |\n| 用途 | Get available flash sale time slot IDs |\n\n经 **`POST /shopee/developerProxy`** 转发；依赖 **`linkfox-shopee-store-auth`** 选店（通常传 `shopId` 或 `merchantId`）。\n\n---\n\n## 脚本 JSON 入参\n\n| 字段 | 类型 | 必填 | 说明 |\n|------|------|------|------|\n| `shopId` | string | 与 `merchantId` 二选一 | 店铺 ID（推荐；Public 等无店铺接口可省略） |\n| `merchantId` | string | 与 `shopId` 二选一 | 商户 ID |\n\n- Method：**GET**\n- GET：业务字段放 JSON **顶层**，runner 拼进 `queryString`（不含 `?`）\n- `shopId` / `merchantId` / `skipDepCheck` 等为网关选店保留字段，不会进 Shopee query/body\n- Registry notes：Get available flash sale time slot IDs\n\n---\n\n## 调用示例\n\n```bash\nexport LINKFOXAGENT_API_KEY=\"<your-key>\"\n\npython scripts/get_time_slot_id.py '{\"shopId\": \"67890\"}'\n\n# 通用入口\npython scripts/shop_flash_sale_api.py '{\"api\": \"get_time_slot_id\", \"shopId\": \"67890\"}'\n```\n\n---\n\n## 响应要点\n\n1. 先看 **`developerProxy.httpStatus`** / `errcode`\n2. 再读 **`getTimeSlotId`**（Shopee `response` 解析结果）\n3. 字段以官方文档为准\n\nArchive v1.0.3: 20 files, 21082 bytes\n\nFiles: references/api.md (4511b), scripts/_shop_flash_sale_api_runner.py (4380b), scripts/_shop_flash_sale_endpoints.py (3408b), scripts/_shopee_shop_flash_sale_common.py (11434b), scripts/add_shop_flash_sale_items.py (755b), scripts/check_auth_dependency.py (3999b), scripts/create_shop_flash_sale.py (737b), scripts/delete_shop_flash_sale_items.py (773b), scripts/delete_shop_flash_sale.py (737b), scripts/get_item_criteria.py (707b), scripts/get_shop_flash_sale_items.py (755b), scripts/get_shop_flash_sale_list.py (749b), scripts/get_shop_flash_sale.py (719b), scripts/get_time_slot_id.py (701b), scripts/shop_flash_sale_api.py (1057b), scripts/update_shop_flash_sale_items.py (773b), scripts/update_shop_flash_sale.py (737b), skill-card.md (2410b), SKILL.md (5244b), _meta.json (155b)\n\nFile v1.0.3:SKILL.md\n\n---\nname: linkfox-shopee-store-shop-flash-sale\ndescription: Shopee（虾皮）店铺秒杀 Shop Flash Sale（与 linkfox-shopee-store-auth 同系列），经 /shopee/developerProxy 转发 Shopee Open API Shop Flash Sale 模块全部 11 个接口：get_time_slot_id、create_shop_flash_sale、get_shop_flash_sale_list、add_shop_flash_sale_items、update_shop_flash_sale 等。当用户提到 Shopee 店铺秒杀、Shop Flash Sale、限时秒杀、get_time_slot_id、flash_sale_id、秒杀时段 时触发。即使未明确提及\"秒杀\"，只要涉及已授权 Shopee 店铺的 Flash Sale 活动管理，也应触发。\n---\n\n# Shopee 店铺秒杀 Shop Flash Sale\n\nShopee Open Platform **Shop Flash Sale 模块**（11 个 API）。**依赖 `linkfox-shopee-store-auth`**：先取 `accessToken`，再经 **`POST /shopee/developerProxy`** 转发（`path` 须 `api/v2/shop_flash_sale/...`）。\n\n## 调用方式\n\n- **API 端点**：`POST /shopee/developerProxy`（不同操作通过请求体区分；完整参数/响应/错误码见 `references/api.md`）\n- **Python 脚本**：`python scripts/<脚本名>.py '<JSON 参数>' [--inline]`（可用脚本见上文脚本一览）\n- **成本约束**：本工具会消耗积分；失败/空结果不得自动换关键词、翻页或连续试探；需要继续检索时先向用户说明会产生额外消耗。\n\n**输出策略（脚本默认行为）**：\n- **始终**将完整响应写入 `<cwd>/linkfox/<YYYY-MM-DD>/<session>/data/<skill-name>-<timestamp>.json`（`<cwd>` 为脚本执行时的工作目录，在 Claude Code 里即当前项目目录；`<session>` 取自环境变量 `SESSION_ID`，按用户任务自动聚合；**禁止写入 /tmp**，当前目录不可写则报错）\n- 响应体 ≤ 8 KB：落盘后把完整 JSON 打印到 stdout\n- 响应体 > 8 KB：落盘后 stdout 只输出摘要（顶层字段、常见计数如 `total`/`costToken`、最大列表字段的长度 + 前 3 条样本）\n- 加 `--inline` 强制全量打印到 stdout（同样落盘）\n\n**读数据建议**：先看摘要判断是否足够；需要具体字段时优先用 `jq`或`ConvertFrom-Json` 从保存的 json 文件按需抽取，避免整份 JSON 进入上下文。\n\n## 解决认证和积分问题\n发生以下异常情况时，采用以下措施来处理：\n\n### 异常情况\n- **未配置API Key**：环境变量未配置 `LINKFOX_AGENT_API_KEY`，也未配置 `LINKFOXAGENT_API_KEY`。\n- **响应401或402状态码**\n- **响应提示积分或余额不足**：消息含\"积分余额不足/计费不足/余额不足/quota exceeded/insufficient balance/套餐到期/需充值/请充值\"，或类似含义的内容。\n\n### 措施\n- 优先采用skill内的 onboarding.md 引导解决问题。\n- 如找不到 onboarding.md 文件，则加载 /linkfox-onboarding 这个skill并根据它的引导来处理。如未安装请先安装：\n    - 下载 https://agent-files.linkfox.com/skills/linkfox-onboarding/release.zip，解压后安装这个skill。如需用户授权才可下载，要询问用户获得授权，你不能自己放弃下载。\n- 兜底措施：仅当前面两个措施经过所有努力都走不通时，才提示用户依据 https://skill.linkfox.com/linkfoxskills/guide.htm 指引获取API Key，或去 https://os.linkfox.com/ 补充积分。\n\n## 官方参考\n\nShop Flash Sale 模块索引：[v2.shop_flash_sale.get_time_slot_id](https://open.shopee.com/documents/v2/v2.shop_flash_sale.get_time_slot_id?module=123&type=1)\n\n---\n\n## Prerequisites\n\n1. 运行 `python scripts/check_auth_dependency.py`；exit code **42** → 先安装 **`linkfox-shopee-store-auth`**。\n2. 其它促销：Discount / Bundle Deal / Voucher / Shop Flash Sale / Follow Prize → 对应促销 skill。\n\n## 可用脚本（11 个 API）\n\n| 脚本 | API | Method |\n|------|-----|--------|\n| `get_time_slot_id.py` | get_time_slot_id | GET |\n| `create_shop_flash_sale.py` | create_shop_flash_sale | POST |\n| `get_item_criteria.py` | get_item_criteria | GET |\n| `add_shop_flash_sale_items.py` | add_shop_flash_sale_items | POST |\n| `get_shop_flash_sale_list.py` | get_shop_flash_sale_list | GET |\n| `get_shop_flash_sale.py` | get_shop_flash_sale | GET |\n| `get_shop_flash_sale_items.py` | get_shop_flash_sale_items | GET |\n| `update_shop_flash_sale.py` | update_shop_flash_sale | POST |\n| `update_shop_flash_sale_items.py` | update_shop_flash_sale_items | POST |\n| `delete_shop_flash_sale.py` | delete_shop_flash_sale | POST |\n| `delete_shop_flash_sale_items.py` | delete_shop_flash_sale_items | POST |\n| `shop_flash_sale_api.py` | 通用入口 | — |\n\n## Usage Scenarios\n\n### 1. 创建店铺秒杀\n1. `get_time_slot_id.py` 获取可用时段\n2. `create_shop_flash_sale.py` 创建活动\n3. `add_shop_flash_sale_items.py` 添加商品\n4. `get_shop_flash_sale_list.py` 确认状态\n\n## Not Applicable\n\n- 店铺授权 → `linkfox-shopee-store-auth`\n- 限时折扣 Discount → `linkfox-shopee-store-discount`\n- 优惠券 Voucher → `linkfox-shopee-store-voucher`\n- 商品 listing → `linkfox-shopee-store-product`\n\n## 积分消耗规则\n\n不消耗积分。\n\n**Feedback:** 见 `references/api.md`。\n\n---\n*For more high-quality, professional cross-border e-commerce skills, visit [LinkFox Skills](https://skill.linkfox.com/).*\n\nFile v1.0.3:_meta.json\n\n{\n  \"ownerId\": \"kn7dmc1t4j28hem1twwyav85p182pb1j\",\n  \"slug\": \"linkfox-shopee-store-shop-flash-sale\",\n  \"version\": \"1.0.3\",\n  \"publishedAt\": 1783945572354\n}\n\nFile v1.0.3:references/api.md\n\n# linkfox-shopee-store-shop-flash-sale — 参数与字段参考\n\nShopee **Shop Flash Sale 模块**全部 11 个 API，经 **`POST /shopee/developerProxy`** 转发。\n\n授权见 **`linkfox-shopee-store-auth`**。官方索引：[v2.shop_flash_sale.get_time_slot_id](https://open.shopee.com/documents/v2/v2.shop_flash_sale.get_time_slot_id?module=123&type=1)\n\n## 通用约定\n\n- **path**：须 `api/v2/shop_flash_sale/...`\n- **标识**：通常传 **`shopId`**\n- **官方文档 URL 规则**：`https://open.shopee.com/documents/v2/v2.shop_flash_sale.{api}?module=123&type=1`\n\n---\n\n## Shop Flash Sale 模块总览\n\n| # | API | Method | path | 脚本 | 官方文档 |\n|---|-----|--------|------|------|----------|\n| 1 | add_shop_flash_sale_items | POST | `api/v2/shop_flash_sale/add_shop_flash_sale_items` | `add_shop_flash_sale_items.py` | [doc](https://open.shopee.com/documents/v2/v2.shop_flash_sale.add_shop_flash_sale_items?module=123&type=1) |\n| 2 | create_shop_flash_sale | POST | `api/v2/shop_flash_sale/create_shop_flash_sale` | `create_shop_flash_sale.py` | [doc](https://open.shopee.com/documents/v2/v2.shop_flash_sale.create_shop_flash_sale?module=123&type=1) |\n| 3 | delete_shop_flash_sale | POST | `api/v2/shop_flash_sale/delete_shop_flash_sale` | `delete_shop_flash_sale.py` | [doc](https://open.shopee.com/documents/v2/v2.shop_flash_sale.delete_shop_flash_sale?module=123&type=1) |\n| 4 | delete_shop_flash_sale_items | POST | `api/v2/shop_flash_sale/delete_shop_flash_sale_items` | `delete_shop_flash_sale_items.py` | [doc](https://open.shopee.com/documents/v2/v2.shop_flash_sale.delete_shop_flash_sale_items?module=123&type=1) |\n| 5 | get_item_criteria | GET | `api/v2/shop_flash_sale/get_item_criteria` | `get_item_criteria.py` | [doc](https://open.shopee.com/documents/v2/v2.shop_flash_sale.get_item_criteria?module=123&type=1) |\n| 6 | get_shop_flash_sale | GET | `api/v2/shop_flash_sale/get_shop_flash_sale` | `get_shop_flash_sale.py` | [doc](https://open.shopee.com/documents/v2/v2.shop_flash_sale.get_shop_flash_sale?module=123&type=1) |\n| 7 | get_shop_flash_sale_items | GET | `api/v2/shop_flash_sale/get_shop_flash_sale_items` | `get_shop_flash_sale_items.py` | [doc](https://open.shopee.com/documents/v2/v2.shop_flash_sale.get_shop_flash_sale_items?module=123&type=1) |\n| 8 | get_shop_flash_sale_list | GET | `api/v2/shop_flash_sale/get_shop_flash_sale_list` | `get_shop_flash_sale_list.py` | [doc](https://open.shopee.com/documents/v2/v2.shop_flash_sale.get_shop_flash_sale_list?module=123&type=1) |\n| 9 | get_time_slot_id | GET | `api/v2/shop_flash_sale/get_time_slot_id` | `get_time_slot_id.py` | [doc](https://open.shopee.com/documents/v2/v2.shop_flash_sale.get_time_slot_id?module=123&type=1) |\n| 10 | update_shop_flash_sale | POST | `api/v2/shop_flash_sale/update_shop_flash_sale` | `update_shop_flash_sale.py` | [doc](https://open.shopee.com/documents/v2/v2.shop_flash_sale.update_shop_flash_sale?module=123&type=1) |\n| 11 | update_shop_flash_sale_items | POST | `api/v2/shop_flash_sale/update_shop_flash_sale_items` | `update_shop_flash_sale_items.py` | [doc](https://open.shopee.com/documents/v2/v2.shop_flash_sale.update_shop_flash_sale_items?module=123&type=1) |\n通用入口：`shop_flash_sale_api.py`（JSON 含 `\"api\": \"<上表 API 名>\"`）。\n\n---\n\n## 常用接口说明\n\n| API | 要点 |\n|-----|------|\n| `get_time_slot_id` | 获取可用秒杀时段 ID |\n| `create_shop_flash_sale` | 创建店铺秒杀活动；POST `body` |\n| `get_item_criteria` | 查询商品参与条件 |\n| `add_shop_flash_sale_items` | 添加秒杀商品 |\n| `get_shop_flash_sale_list` | 活动列表 |\n| `get_shop_flash_sale` | 活动详情 |\n| `get_shop_flash_sale_items` | 活动内商品 |\n| `update_shop_flash_sale` / `update_shop_flash_sale_items` | 更新活动或商品 |\n| `delete_shop_flash_sale` / `delete_shop_flash_sale_items` | 删除活动或商品 |\n\n---\n\n## curl 示例\n\n```bash\ncurl -X POST ${LINKFOX_TOOL_GATEWAY}/shopee/developerProxy \\\n  -H \"Authorization: ${LINKFOX_AGENT_API_KEY:-$LINKFOXAGENT_API_KEY}\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n    \"path\": \"api/v2/shop_flash_sale/get_time_slot_id\",\n    \"method\": \"GET\",\n    \"accessToken\": \"xxx\",\n    \"shopId\": \"67890\"\n  }'\n```\n\n---\n\n## Feedback API\n\n```bash\ncurl -X POST https://skill-api.linkfox.com/api/v1/public/feedback \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"skillName\":\"linkfox-shopee-store-shop-flash-sale\",\"sentiment\":\"POSITIVE\",\n       \"category\":\"OTHER\",\"content\":\"店铺秒杀查询正常\"}'\n```\n\nFile v1.0.3:skill-card.md\n\n## Description: <br>\nHelps agents manage authorized Shopee Shop Flash Sale campaigns through LinkFox scripts for time-slot lookup, creation, listing, item management, updates, and deletion. <br>\n\nThis skill is ready for commercial/non-commercial use. <br>\n\n## Publisher: <br>\n[linkfox-ai](https://clawhub.ai/user/linkfox-ai) <br>\n\n### License/Terms of Use: <br>\nMIT-0 <br>\n\n\n## Use Case: <br>\nExternal sellers, marketplace operators, and developers use this skill to administer Shop Flash Sale activity for already authorized Shopee stores. It is suited for retrieving eligible time slots and campaign details, adding or updating sale items, and deleting campaigns or items when explicitly requested. <br>\n\n### Deployment Geography for Use: <br>\nGlobal <br>\n\n## Known Risks and Mitigations: <br>\nRisk: The skill can create, update, add to, or delete Shopee Shop Flash Sale campaigns for an authorized store. <br>\nMitigation: Confirm every write or delete action, including target shop, campaign, item list, and requested payload, before running the corresponding script. <br>\nRisk: Full API responses may be persisted locally and can include operational store or campaign data. <br>\nMitigation: Use a controlled workspace and periodically delete generated linkfox response archives, especially on shared, backed-up, or reused machines. <br>\n\n\n## Reference(s): <br>\n- [Skill API Reference](references/api.md) <br>\n- [Shopee Shop Flash Sale API](https://open.shopee.com/documents/v2/v2.shop_flash_sale.get_time_slot_id?module=123&type=1) <br>\n- [ClawHub Skill Page](https://clawhub.ai/linkfox-ai/skills/linkfox-shopee-store-shop-flash-sale) <br>\n\n\n## Skill Output: <br>\n**Output Type(s):** [JSON, Files, Shell commands, Guidance] <br>\n**Output Format:** [JSON responses saved to local files with stdout summaries or full inline JSON when requested] <br>\n**Output Parameters:** [1D] <br>\n**Other Properties Related to Output:** [Scripts may call LinkFox gateway APIs for an authorized Shopee store and write response archives under a local linkfox directory.] <br>\n\n## Skill Version(s): <br>\n1.0.3 (source: server release metadata) <br>\n\n## Ethical Considerations: <br>\nUsers should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment. <br>\n\nArchive v1.0.2: 20 files, 20613 bytes\n\nFiles: references/api.md (4511b), scripts/_shop_flash_sale_api_runner.py (4380b), scripts/_shop_flash_sale_endpoints.py (3408b), scripts/_shopee_shop_flash_sale_common.py (11395b), scripts/add_shop_flash_sale_items.py (755b), scripts/check_auth_dependency.py (3999b), scripts/create_shop_flash_sale.py (737b), scripts/delete_shop_flash_sale_items.py (773b), scripts/delete_shop_flash_sale.py (737b), scripts/get_item_criteria.py (707b), scripts/get_shop_flash_sale_items.py (755b), scripts/get_shop_flash_sale_list.py (749b), scripts/get_shop_flash_sale.py (719b), scripts/get_time_slot_id.py (701b), scripts/shop_flash_sale_api.py (1057b), scripts/update_shop_flash_sale_items.py (773b), scripts/update_shop_flash_sale.py (737b), skill-card.md (2762b), SKILL.md (4110b), _meta.json (155b)\n\nFile v1.0.2:SKILL.md\n\n---\nname: linkfox-shopee-store-shop-flash-sale\ndescription: Shopee（虾皮）店铺秒杀 Shop Flash Sale（与 linkfox-shopee-store-auth 同系列），经 /shopee/developerProxy 转发 Shopee Open API Shop Flash Sale 模块全部 11 个接口：get_time_slot_id、create_shop_flash_sale、get_shop_flash_sale_list、add_shop_flash_sale_items、update_shop_flash_sale 等。当用户提到 Shopee 店铺秒杀、Shop Flash Sale、限时秒杀、get_time_slot_id、flash_sale_id、秒杀时段 时触发。即使未明确提及\"秒杀\"，只要涉及已授权 Shopee 店铺的 Flash Sale 活动管理，也应触发。\n---\n\n# Shopee 店铺秒杀 Shop Flash Sale\n\nShopee Open Platform **Shop Flash Sale 模块**（11 个 API）。**依赖 `linkfox-shopee-store-auth`**：先取 `accessToken`，再经 **`POST /shopee/developerProxy`** 转发（`path` 须 `api/v2/shop_flash_sale/...`）。\n\n## 调用方式\n\n- **API 端点**：`POST /shopee/developerProxy`（不同操作通过请求体区分；完整参数/响应/错误码见 `references/api.md`）\n- **Python 脚本**：`python scripts/<脚本名>.py '<JSON 参数>' [--inline]`（可用脚本见上文脚本一览）\n- **成本约束**：本工具会消耗积分；失败/空结果不得自动换关键词、翻页或连续试探；需要继续检索时先向用户说明会产生额外消耗。\n\n**输出策略（脚本默认行为）**：\n- **始终**将完整响应写入 `<cwd>/linkfox/<YYYY-MM-DD>/<session>/data/<skill-name>-<timestamp>.json`（`<cwd>` 为脚本执行时的工作目录，在 Claude Code 里即当前项目目录；`<session>` 取自环境变量 `SESSION_ID`，按用户任务自动聚合；**禁止写入 /tmp**，当前目录不可写则报错）\n- 响应体 ≤ 8 KB：落盘后把完整 JSON 打印到 stdout\n- 响应体 > 8 KB：落盘后 stdout 只输出摘要（顶层字段、常见计数如 `total`/`costToken`、最大列表字段的长度 + 前 3 条样本）\n- 加 `--inline` 强制全量打印到 stdout（同样落盘）\n\n**读数据建议**：先看摘要判断是否足够；需要具体字段时优先用 `jq`或`ConvertFrom-Json` 从保存的 json 文件按需抽取，避免整份 JSON 进入上下文。\n\n## 官方参考\n\nShop Flash Sale 模块索引：[v2.shop_flash_sale.get_time_slot_id](https://open.shopee.com/documents/v2/v2.shop_flash_sale.get_time_slot_id?module=123&type=1)\n\n---\n\n## Prerequisites\n\n1. 运行 `python scripts/check_auth_dependency.py`；exit code **42** → 先安装 **`linkfox-shopee-store-auth`**。\n2. 其它促销：Discount / Bundle Deal / Voucher / Shop Flash Sale / Follow Prize → 对应促销 skill。\n\n## 可用脚本（11 个 API）\n\n| 脚本 | API | Method |\n|------|-----|--------|\n| `get_time_slot_id.py` | get_time_slot_id | GET |\n| `create_shop_flash_sale.py` | create_shop_flash_sale | POST |\n| `get_item_criteria.py` | get_item_criteria | GET |\n| `add_shop_flash_sale_items.py` | add_shop_flash_sale_items | POST |\n| `get_shop_flash_sale_list.py` | get_shop_flash_sale_list | GET |\n| `get_shop_flash_sale.py` | get_shop_flash_sale | GET |\n| `get_shop_flash_sale_items.py` | get_shop_flash_sale_items | GET |\n| `update_shop_flash_sale.py` | update_shop_flash_sale | POST |\n| `update_shop_flash_sale_items.py` | update_shop_flash_sale_items | POST |\n| `delete_shop_flash_sale.py` | delete_shop_flash_sale | POST |\n| `delete_shop_flash_sale_items.py` | delete_shop_flash_sale_items | POST |\n| `shop_flash_sale_api.py` | 通用入口 | — |\n\n## Usage Scenarios\n\n### 1. 创建店铺秒杀\n1. `get_time_slot_id.py` 获取可用时段\n2. `create_shop_flash_sale.py` 创建活动\n3. `add_shop_flash_sale_items.py` 添加商品\n4. `get_shop_flash_sale_list.py` 确认状态\n\n## Not Applicable\n\n- 店铺授权 → `linkfox-shopee-store-auth`\n- 限时折扣 Discount → `linkfox-shopee-store-discount`\n- 优惠券 Voucher → `linkfox-shopee-store-voucher`\n- 商品 listing → `linkfox-shopee-store-product`\n\n**Feedback:** 见 `references/api.md`。\n\n---\n*For more high-quality, professional cross-border e-commerce skills, visit [LinkFox Skills](https://skill.linkfox.com/).*\n\nFile v1.0.2:_meta.json\n\n{\n  \"ownerId\": \"kn7dmc1t4j28hem1twwyav85p182pb1j\",\n  \"slug\": \"linkfox-shopee-store-shop-flash-sale\",\n  \"version\": \"1.0.2\",\n  \"publishedAt\": 1783337692147\n}\n\nFile v1.0.2:references/api.md\n\n# linkfox-shopee-store-shop-flash-sale — 参数与字段参考\n\nShopee **Shop Flash Sale 模块**全部 11 个 API，经 **`POST /shopee/developerProxy`** 转发。\n\n授权见 **`linkfox-shopee-store-auth`**。官方索引：[v2.shop_flash_sale.get_time_slot_id](https://open.shopee.com/documents/v2/v2.shop_flash_sale.get_time_slot_id?module=123&type=1)\n\n## 通用约定\n\n- **path**：须 `api/v2/shop_flash_sale/...`\n- **标识**：通常传 **`shopId`**\n- **官方文档 URL 规则**：`https://open.shopee.com/documents/v2/v2.shop_flash_sale.{api}?module=123&type=1`\n\n---\n\n## Shop Flash Sale 模块总览\n\n| # | API | Method | path | 脚本 | 官方文档 |\n|---|-----|--------|------|------|----------|\n| 1 | add_shop_flash_sale_items | POST | `api/v2/shop_flash_sale/add_shop_flash_sale_items` | `add_shop_flash_sale_items.py` | [doc](https://open.shopee.com/documents/v2/v2.shop_flash_sale.add_shop_flash_sale_items?module=123&type=1) |\n| 2 | create_shop_flash_sale | POST | `api/v2/shop_flash_sale/create_shop_flash_sale` | `create_shop_flash_sale.py` | [doc](https://open.shopee.com/documents/v2/v2.shop_flash_sale.create_shop_flash_sale?module=123&type=1) |\n| 3 | delete_shop_flash_sale | POST | `api/v2/shop_flash_sale/delete_shop_flash_sale` | `delete_shop_flash_sale.py` | [doc](https://open.shopee.com/documents/v2/v2.shop_flash_sale.delete_shop_flash_sale?module=123&type=1) |\n| 4 | delete_shop_flash_sale_items | POST | `api/v2/shop_flash_sale/delete_shop_flash_sale_items` | `delete_shop_flash_sale_items.py` | [doc](https://open.shopee.com/documents/v2/v2.shop_flash_sale.delete_shop_flash_sale_items?module=123&type=1) |\n| 5 | get_item_criteria | GET | `api/v2/shop_flash_sale/get_item_criteria` | `get_item_criteria.py` | [doc](https://open.shopee.com/documents/v2/v2.shop_flash_sale.get_item_criteria?module=123&type=1) |\n| 6 | get_shop_flash_sale | GET | `api/v2/shop_flash_sale/get_shop_flash_sale` | `get_shop_flash_sale.py` | [doc](https://open.shopee.com/documents/v2/v2.shop_flash_sale.get_shop_flash_sale?module=123&type=1) |\n| 7 | get_shop_flash_sale_items | GET | `api/v2/shop_flash_sale/get_shop_flash_sale_items` | `get_shop_flash_sale_items.py` | [doc](https://open.shopee.com/documents/v2/v2.shop_flash_sale.get_shop_flash_sale_items?module=123&type=1) |\n| 8 | get_shop_flash_sale_list | GET | `api/v2/shop_flash_sale/get_shop_flash_sale_list` | `get_shop_flash_sale_list.py` | [doc](https://open.shopee.com/documents/v2/v2.shop_flash_sale.get_shop_flash_sale_list?module=123&type=1) |\n| 9 | get_time_slot_id | GET | `api/v2/shop_flash_sale/get_time_slot_id` | `get_time_slot_id.py` | [doc](https://open.shopee.com/documents/v2/v2.shop_flash_sale.get_time_slot_id?module=123&type=1) |\n| 10 | update_shop_flash_sale | POST | `api/v2/shop_flash_sale/update_shop_flash_sale` | `update_shop_flash_sale.py` | [doc](https://open.shopee.com/documents/v2/v2.shop_flash_sale.update_shop_flash_sale?module=123&type=1) |\n| 11 | update_shop_flash_sale_items | POST | `api/v2/shop_flash_sale/update_shop_flash_sale_items` | `update_shop_flash_sale_items.py` | [doc](https://open.shopee.com/documents/v2/v2.shop_flash_sale.update_shop_flash_sale_items?module=123&type=1) |\n通用入口：`shop_flash_sale_api.py`（JSON 含 `\"api\": \"<上表 API 名>\"`）。\n\n---\n\n## 常用接口说明\n\n| API | 要点 |\n|-----|------|\n| `get_time_slot_id` | 获取可用秒杀时段 ID |\n| `create_shop_flash_sale` | 创建店铺秒杀活动；POST `body` |\n| `get_item_criteria` | 查询商品参与条件 |\n| `add_shop_flash_sale_items` | 添加秒杀商品 |\n| `get_shop_flash_sale_list` | 活动列表 |\n| `get_shop_flash_sale` | 活动详情 |\n| `get_shop_flash_sale_items` | 活动内商品 |\n| `update_shop_flash_sale` / `update_shop_flash_sale_items` | 更新活动或商品 |\n| `delete_shop_flash_sale` / `delete_shop_flash_sale_items` | 删除活动或商品 |\n\n---\n\n## curl 示例\n\n```bash\ncurl -X POST ${LINKFOX_TOOL_GATEWAY}/shopee/developerProxy \\\n  -H \"Authorization: ${LINKFOX_AGENT_API_KEY:-$LINKFOXAGENT_API_KEY}\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n    \"path\": \"api/v2/shop_flash_sale/get_time_slot_id\",\n    \"method\": \"GET\",\n    \"accessToken\": \"xxx\",\n    \"shopId\": \"67890\"\n  }'\n```\n\n---\n\n## Feedback API\n\n```bash\ncurl -X POST https://skill-api.linkfox.com/api/v1/public/feedback \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"skillName\":\"linkfox-shopee-store-shop-flash-sale\",\"sentiment\":\"POSITIVE\",\n       \"category\":\"OTHER\",\"content\":\"店铺秒杀查询正常\"}'\n```\n\nFile v1.0.2:skill-card.md\n\n## Description: <br>\nShopee（虾皮）店铺秒杀 Shop Flash Sale（与 linkfox-shopee-store-auth 同系列），经 /shopee/developerProxy 转发 Shopee Open API Shop Flash Sale 模块全部 11 个接口：get_time_slot_id、create_shop_flash_sale、get_shop_flash_sale_list、add_shop_flash_sale_items、update_shop_flash_sale 等。 <br>\n\nThis skill is ready for commercial/non-commercial use. <br>\n\n## Publisher: <br>\n[linkfox-ai](https://clawhub.ai/user/linkfox-ai) <br>\n\n### License/Terms of Use: <br>\nMIT-0 <br>\n\n\n## Use Case: <br>\nExternal Shopee store operators and agents use this skill to manage authorized Shop Flash Sale promotions, including time-slot lookup, campaign creation, item addition, listing, updates, and deletion. It is intended for workflows where the user has already configured Shopee store authorization through the companion auth skill. <br>\n\n### Deployment Geography for Use: <br>\nGlobal <br>\n\n## Known Risks and Mitigations: <br>\nRisk: The skill can create, update, or delete live Shopee store flash-sale promotions. <br>\nMitigation: Before using create, update, or delete actions, require confirmation of the shop, flash_sale_id, item IDs, and exact operation. <br>\nRisk: Full API responses are saved locally and may contain sensitive store-management or business data. <br>\nMitigation: Treat saved linkfox session files as sensitive data and remove them when they are no longer needed. <br>\nRisk: The skill depends on LinkFox-managed Shopee store access. <br>\nMitigation: Install and use it only when the publisher is trusted with Shopee store-management access. <br>\n\n\n## Reference(s): <br>\n- [ClawHub skill page](https://clawhub.ai/linkfox-ai/skills/linkfox-shopee-store-shop-flash-sale) <br>\n- [API field reference](references/api.md) <br>\n- [Shopee Shop Flash Sale API index](https://open.shopee.com/documents/v2/v2.shop_flash_sale.get_time_slot_id?module=123&type=1) <br>\n- [LinkFox Skills](https://skill.linkfox.com/) <br>\n\n\n## Skill Output: <br>\n**Output Type(s):** [text, markdown, shell commands, configuration, code, JSON] <br>\n**Output Format:** [Markdown guidance, shell command examples, and JSON API responses saved to local files] <br>\n**Output Parameters:** [1D] <br>\n**Other Properties Related to Output:** [Small responses are printed inline; larger responses are summarized after the full JSON response is saved under a linkfox session data directory.] <br>\n\n## Skill Version(s): <br>\n1.0.2 (source: server release evidence) <br>\n\n## Ethical Considerations: <br>\nUsers should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment. <br>\n\nArchive v1.0.1: 19 files, 19127 bytes\n\nFiles: references/api.md (4511b), scripts/_shop_flash_sale_api_runner.py (4380b), scripts/_shop_flash_sale_endpoints.py (3408b), scripts/_shopee_shop_flash_sale_common.py (11395b), scripts/add_shop_flash_sale_items.py (755b), scripts/check_auth_dependency.py (3999b), scripts/create_shop_flash_sale.py (737b), scripts/delete_shop_flash_sale_items.py (773b), scripts/delete_shop_flash_sale.py (737b), scripts/get_item_criteria.py (707b), scripts/get_shop_flash_sale_items.py (755b), scripts/get_shop_flash_sale_list.py (749b), scripts/get_shop_flash_sale.py (719b), scripts/get_time_slot_id.py (701b), scripts/shop_flash_sale_api.py (1057b), scripts/update_shop_flash_sale_items.py (773b), scripts/update_shop_flash_sale.py (737b), SKILL.md (4110b), _meta.json (155b)\n\nFile v1.0.1:SKILL.md\n\n---\nname: linkfox-shopee-store-shop-flash-sale\ndescription: Shopee（虾皮）店铺秒杀 Shop Flash Sale（与 linkfox-shopee-store-auth 同系列），经 /shopee/developerProxy 转发 Shopee Open API Shop Flash Sale 模块全部 11 个接口：get_time_slot_id、create_shop_flash_sale、get_shop_flash_sale_list、add_shop_flash_sale_items、update_shop_flash_sale 等。当用户提到 Shopee 店铺秒杀、Shop Flash Sale、限时秒杀、get_time_slot_id、flash_sale_id、秒杀时段 时触发。即使未明确提及\"秒杀\"，只要涉及已授权 Shopee 店铺的 Flash Sale 活动管理，也应触发。\n---\n\n# Shopee 店铺秒杀 Shop Flash Sale\n\nShopee Open Platform **Shop Flash Sale 模块**（11 个 API）。**依赖 `linkfox-shopee-store-auth`**：先取 `accessToken`，再经 **`POST /shopee/developerProxy`** 转发（`path` 须 `api/v2/shop_flash_sale/...`）。\n\n## 调用方式\n\n- **API 端点**：`POST /shopee/developerProxy`（不同操作通过请求体区分；完整参数/响应/错误码见 `references/api.md`）\n- **Python 脚本**：`python scripts/<脚本名>.py '<JSON 参数>' [--inline]`（可用脚本见上文脚本一览）\n- **成本约束**：本工具会消耗积分；失败/空结果不得自动换关键词、翻页或连续试探；需要继续检索时先向用户说明会产生额外消耗。\n\n**输出策略（脚本默认行为）**：\n- **始终**将完整响应写入 `<cwd>/linkfox/<YYYY-MM-DD>/<session>/data/<skill-name>-<timestamp>.json`（`<cwd>` 为脚本执行时的工作目录，在 Claude Code 里即当前项目目录；`<session>` 取自环境变量 `SESSION_ID`，按用户任务自动聚合；**禁止写入 /tmp**，当前目录不可写则报错）\n- 响应体 ≤ 8 KB：落盘后把完整 JSON 打印到 stdout\n- 响应体 > 8 KB：落盘后 stdout 只输出摘要（顶层字段、常见计数如 `total`/`costToken`、最大列表字段的长度 + 前 3 条样本）\n- 加 `--inline` 强制全量打印到 stdout（同样落盘）\n\n**读数据建议**：先看摘要判断是否足够；需要具体字段时优先用 `jq`或`ConvertFrom-Json` 从保存的 json 文件按需抽取，避免整份 JSON 进入上下文。\n\n## 官方参考\n\nShop Flash Sale 模块索引：[v2.shop_flash_sale.get_time_slot_id](https://open.shopee.com/documents/v2/v2.shop_flash_sale.get_time_slot_id?module=123&type=1)\n\n---\n\n## Prerequisites\n\n1. 运行 `python scripts/check_auth_dependency.py`；exit code **42** → 先安装 **`linkfox-shopee-store-auth`**。\n2. 其它促销：Discount / Bundle Deal / Voucher / Shop Flash Sale / Follow Prize → 对应促销 skill。\n\n## 可用脚本（11 个 API）\n\n| 脚本 | API | Method |\n|------|-----|--------|\n| `get_time_slot_id.py` | get_time_slot_id | GET |\n| `create_shop_flash_sale.py` | create_shop_flash_sale | POST |\n| `get_item_criteria.py` | get_item_criteria | GET |\n| `add_shop_flash_sale_items.py` | add_shop_flash_sale_items | POST |\n| `get_shop_flash_sale_list.py` | get_shop_flash_sale_list | GET |\n| `get_shop_flash_sale.py` | get_shop_flash_sale | GET |\n| `get_shop_flash_sale_items.py` | get_shop_flash_sale_items | GET |\n| `update_shop_flash_sale.py` | update_shop_flash_sale | POST |\n| `update_shop_flash_sale_items.py` | update_shop_flash_sale_items | POST |\n| `delete_shop_flash_sale.py` | delete_shop_flash_sale | POST |\n| `delete_shop_flash_sale_items.py` | delete_shop_flash_sale_items | POST |\n| `shop_flash_sale_api.py` | 通用入口 | — |\n\n## Usage Scenarios\n\n### 1. 创建店铺秒杀\n1. `get_time_slot_id.py` 获取可用时段\n2. `create_shop_flash_sale.py` 创建活动\n3. `add_shop_flash_sale_items.py` 添加商品\n4. `get_shop_flash_sale_list.py` 确认状态\n\n## Not Applicable\n\n- 店铺授权 → `linkfox-shopee-store-auth`\n- 限时折扣 Discount → `linkfox-shopee-store-discount`\n- 优惠券 Voucher → `linkfox-shopee-store-voucher`\n- 商品 listing → `linkfox-shopee-store-product`\n\n**Feedback:** 见 `references/api.md`。\n\n---\n*For more high-quality, professional cross-border e-commerce skills, visit [LinkFox Skills](https://skill.linkfox.com/).*\n\nFile v1.0.1:_meta.json\n\n{\n  \"ownerId\": \"kn7dmc1t4j28hem1twwyav85p182pb1j\",\n  \"slug\": \"linkfox-shopee-store-shop-flash-sale\",\n  \"version\": \"1.0.1\",\n  \"publishedAt\": 1783067645603\n}\n\nFile v1.0.1:references/api.md\n\n# linkfox-shopee-store-shop-flash-sale — 参数与字段参考\n\nShopee **Shop Flash Sale 模块**全部 11 个 API，经 **`POST /shopee/developerProxy`** 转发。\n\n授权见 **`linkfox-shopee-store-auth`**。官方索引：[v2.shop_flash_sale.get_time_slot_id](https://open.shopee.com/documents/v2/v2.shop_flash_sale.get_time_slot_id?module=123&type=1)\n\n## 通用约定\n\n- **path**：须 `api/v2/shop_flash_sale/...`\n- **标识**：通常传 **`shopId`**\n- **官方文档 URL 规则**：`https://open.shopee.com/documents/v2/v2.shop_flash_sale.{api}?module=123&type=1`\n\n---\n\n## Shop Flash Sale 模块总览\n\n| # | API | Method | path | 脚本 | 官方文档 |\n|---|-----|--------|------|------|----------|\n| 1 | add_shop_flash_sale_items | POST | `api/v2/shop_flash_sale/add_shop_flash_sale_items` | `add_shop_flash_sale_items.py` | [doc](https://open.shopee.com/documents/v2/v2.shop_flash_sale.add_shop_flash_sale_items?module=123&type=1) |\n| 2 | create_shop_flash_sale | POST | `api/v2/shop_flash_sale/create_shop_flash_sale` | `create_shop_flash_sale.py` | [doc](https://open.shopee.com/documents/v2/v2.shop_flash_sale.create_shop_flash_sale?module=123&type=1) |\n| 3 | delete_shop_flash_sale | POST | `api/v2/shop_flash_sale/delete_shop_flash_sale` | `delete_shop_flash_sale.py` | [doc](https://open.shopee.com/documents/v2/v2.shop_flash_sale.delete_shop_flash_sale?module=123&type=1) |\n| 4 | delete_shop_flash_sale_items | POST | `api/v2/shop_flash_sale/delete_shop_flash_sale_items` | `delete_shop_flash_sale_items.py` | [doc](https://open.shopee.com/documents/v2/v2.shop_flash_sale.delete_shop_flash_sale_items?module=123&type=1) |\n| 5 | get_item_criteria | GET | `api/v2/shop_flash_sale/get_item_criteria` | `get_item_criteria.py` | [doc](https://open.shopee.com/documents/v2/v2.shop_flash_sale.get_item_criteria?module=123&type=1) |\n| 6 | get_shop_flash_sale | GET | `api/v2/shop_flash_sale/get_shop_flash_sale` | `get_shop_flash_sale.py` | [doc](https://open.shopee.com/documents/v2/v2.shop_flash_sale.get_shop_flash_sale?module=123&type=1) |\n| 7 | get_shop_flash_sale_items | GET | `api/v2/shop_flash_sale/get_shop_flash_sale_items` | `get_shop_flash_sale_items.py` | [doc](https://open.shopee.com/documents/v2/v2.shop_flash_sale.get_shop_flash_sale_items?module=123&type=1) |\n| 8 | get_shop_flash_sale_list | GET | `api/v2/shop_flash_sale/get_shop_flash_sale_list` | `get_shop_flash_sale_list.py` | [doc](https://open.shopee.com/documents/v2/v2.shop_flash_sale.get_shop_flash_sale_list?module=123&type=1) |\n| 9 | get_time_slot_id | GET | `api/v2/shop_flash_sale/get_time_slot_id` | `get_time_slot_id.py` | [doc](https://open.shopee.com/documents/v2/v2.shop_flash_sale.get_time_slot_id?module=123&type=1) |\n| 10 | update_shop_flash_sale | POST | `api/v2/shop_flash_sale/update_shop_flash_sale` | `update_shop_flash_sale.py` | [doc](https://open.shopee.com/documents/v2/v2.shop_flash_sale.update_shop_flash_sale?module=123&type=1) |\n| 11 | update_shop_flash_sale_items | POST | `api/v2/shop_flash_sale/update_shop_flash_sale_items` | `update_shop_flash_sale_items.py` | [doc](https://open.shopee.com/documents/v2/v2.shop_flash_sale.update_shop_flash_sale_items?module=123&type=1) |\n通用入口：`shop_flash_sale_api.py`（JSON 含 `\"api\": \"<上表 API 名>\"`）。\n\n---\n\n## 常用接口说明\n\n| API | 要点 |\n|-----|------|\n| `get_time_slot_id` | 获取可用秒杀时段 ID |\n| `create_shop_flash_sale` | 创建店铺秒杀活动；POST `body` |\n| `get_item_criteria` | 查询商品参与条件 |\n| `add_shop_flash_sale_items` | 添加秒杀商品 |\n| `get_shop_flash_sale_list` | 活动列表 |\n| `get_shop_flash_sale` | 活动详情 |\n| `get_shop_flash_sale_items` | 活动内商品 |\n| `update_shop_flash_sale` / `update_shop_flash_sale_items` | 更新活动或商品 |\n| `delete_shop_flash_sale` / `delete_shop_flash_sale_items` | 删除活动或商品 |\n\n---\n\n## curl 示例\n\n```bash\ncurl -X POST ${LINKFOX_TOOL_GATEWAY}/shopee/developerProxy \\\n  -H \"Authorization: ${LINKFOX_AGENT_API_KEY:-$LINKFOXAGENT_API_KEY}\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n    \"path\": \"api/v2/shop_flash_sale/get_time_slot_id\",\n    \"method\": \"GET\",\n    \"accessToken\": \"xxx\",\n    \"shopId\": \"67890\"\n  }'\n```\n\n---\n\n## Feedback API\n\n```bash\ncurl -X POST https://skill-api.linkfox.com/api/v1/public/feedback \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"skillName\":\"linkfox-shopee-store-shop-flash-sale\",\"sentiment\":\"POSITIVE\",\n       \"category\":\"OTHER\",\"content\":\"店铺秒杀查询正常\"}'\n```\n\nArchive v1.0.0: 20 files, 20483 bytes\n\nFiles: references/api.md (4512b), scripts/_shop_flash_sale_api_runner.py (4380b), scripts/_shop_flash_sale_endpoints.py (3408b), scripts/_shopee_shop_flash_sale_common.py (11396b), scripts/add_shop_flash_sale_items.py (755b), scripts/check_auth_dependency.py (3999b), scripts/create_shop_flash_sale.py (737b), scripts/delete_shop_flash_sale_items.py (773b), scripts/delete_shop_flash_sale.py (737b), scripts/get_item_criteria.py (707b), scripts/get_shop_flash_sale_items.py (755b), scripts/get_shop_flash_sale_list.py (749b), scripts/get_shop_flash_sale.py (719b), scripts/get_time_slot_id.py (701b), scripts/shop_flash_sale_api.py (1057b), scripts/update_shop_flash_sale_items.py (773b), scripts/update_shop_flash_sale.py (737b), skill-card.md (2717b), SKILL.md (4110b), _meta.json (155b)\n\nFile v1.0.0:SKILL.md\n\n---\nname: linkfox-shopee-store-shop-flash-sale\ndescription: Shopee（虾皮）店铺秒杀 Shop Flash Sale（与 linkfox-shopee-store-auth 同系列），经 /shopee/developerProxy 转发 Shopee Open API Shop Flash Sale 模块全部 11 个接口：get_time_slot_id、create_shop_flash_sale、get_shop_flash_sale_list、add_shop_flash_sale_items、update_shop_flash_sale 等。当用户提到 Shopee 店铺秒杀、Shop Flash Sale、限时秒杀、get_time_slot_id、flash_sale_id、秒杀时段 时触发。即使未明确提及\"秒杀\"，只要涉及已授权 Shopee 店铺的 Flash Sale 活动管理，也应触发。\n---\n\n# Shopee 店铺秒杀 Shop Flash Sale\n\nShopee Open Platform **Shop Flash Sale 模块**（11 个 API）。**依赖 `linkfox-shopee-store-auth`**：先取 `accessToken`，再经 **`POST /shopee/developerProxy`** 转发（`path` 须 `api/v2/shop_flash_sale/...`）。\n\n## 调用方式\n\n- **API 端点**：`POST /shopee/developerProxy`（不同操作通过请求体区分；完整参数/响应/错误码见 `references/api.md`）\n- **Python 脚本**：`python scripts/<脚本名>.py '<JSON 参数>' [--inline]`（可用脚本见上文脚本一览）\n- **成本约束**：本工具会消耗积分；失败/空结果不得自动换关键词、翻页或连续试探；需要继续检索时先向用户说明会产生额外消耗。\n\n**输出策略（脚本默认行为）**：\n- **始终**将完整响应写入 `<cwd>/linkfox/<YYYY-MM-DD>/<session>/data/<skill-name>-<timestamp>.json`（`<cwd>` 为脚本执行时的工作目录，在 Claude Code 里即当前项目目录；`<session>` 取自环境变量 `SESSION_ID`，按用户任务自动聚合；**禁止写入 /tmp**，当前目录不可写则报错）\n- 响应体 ≤ 8 KB：落盘后把完整 JSON 打印到 stdout\n- 响应体 > 8 KB：落盘后 stdout 只输出摘要（顶层字段、常见计数如 `total`/`costToken`、最大列表字段的长度 + 前 3 条样本）\n- 加 `--inline` 强制全量打印到 stdout（同样落盘）\n\n**读数据建议**：先看摘要判断是否足够；需要具体字段时优先用 `jq`或`ConvertFrom-Json` 从保存的 json 文件按需抽取，避免整份 JSON 进入上下文。\n\n## 官方参考\n\nShop Flash Sale 模块索引：[v2.shop_flash_sale.get_time_slot_id](https://open.shopee.com/documents/v2/v2.shop_flash_sale.get_time_slot_id?module=123&type=1)\n\n---\n\n## Prerequisites\n\n1. 运行 `python scripts/check_auth_dependency.py`；exit code **42** → 先安装 **`linkfox-shopee-store-auth`**。\n2. 其它促销：Discount / Bundle Deal / Voucher / Shop Flash Sale / Follow Prize → 对应促销 skill。\n\n## 可用脚本（11 个 API）\n\n| 脚本 | API | Method |\n|------|-----|--------|\n| `get_time_slot_id.py` | get_time_slot_id | GET |\n| `create_shop_flash_sale.py` | create_shop_flash_sale | POST |\n| `get_item_criteria.py` | get_item_criteria | GET |\n| `add_shop_flash_sale_items.py` | add_shop_flash_sale_items | POST |\n| `get_shop_flash_sale_list.py` | get_shop_flash_sale_list | GET |\n| `get_shop_flash_sale.py` | get_shop_flash_sale | GET |\n| `get_shop_flash_sale_items.py` | get_shop_flash_sale_items | GET |\n| `update_shop_flash_sale.py` | update_shop_flash_sale | POST |\n| `update_shop_flash_sale_items.py` | update_shop_flash_sale_items | POST |\n| `delete_shop_flash_sale.py` | delete_shop_flash_sale | POST |\n| `delete_shop_flash_sale_items.py` | delete_shop_flash_sale_items | POST |\n| `shop_flash_sale_api.py` | 通用入口 | — |\n\n## Usage Scenarios\n\n### 1. 创建店铺秒杀\n1. `get_time_slot_id.py` 获取可用时段\n2. `create_shop_flash_sale.py` 创建活动\n3. `add_shop_flash_sale_items.py` 添加商品\n4. `get_shop_flash_sale_list.py` 确认状态\n\n## Not Applicable\n\n- 店铺授权 → `linkfox-shopee-store-auth`\n- 限时折扣 Discount → `linkfox-shopee-store-discount`\n- 优惠券 Voucher → `linkfox-shopee-store-voucher`\n- 商品 listing → `linkfox-shopee-store-product`\n\n**Feedback:** 见 `references/api.md`。\n\n---\n*For more high-quality, professional cross-border e-commerce skills, visit [LinkFox Skills](https://skill.linkfox.com/).*\n\nFile v1.0.0:_meta.json\n\n{\n  \"ownerId\": \"kn7dmc1t4j28hem1twwyav85p182pb1j\",\n  \"slug\": \"linkfox-shopee-store-shop-flash-sale\",\n  \"version\": \"1.0.0\",\n  \"publishedAt\": 1783007893916\n}\n\nFile v1.0.0:references/api.md\n\n# linkfox-shopee-store-shop-flash-sale — 参数与字段参考\n\nShopee **Shop Flash Sale 模块**全部 11 个 API，经 **`POST /shopee/developerProxy`** 转发。\n\n授权见 **`linkfox-shopee-store-auth`**。官方索引：[v2.shop_flash_sale.get_time_slot_id](https://open.shopee.com/documents/v2/v2.shop_flash_sale.get_time_slot_id?module=123&type=1)\n\n## 通用约定\n\n- **path**：须 `api/v2/shop_flash_sale/...`\n- **标识**：通常传 **`shopId`**\n- **官方文档 URL 规则**：`https://open.shopee.com/documents/v2/v2.shop_flash_sale.{api}?module=123&type=1`\n\n---\n\n## Shop Flash Sale 模块总览\n\n| # | API | Method | path | 脚本 | 官方文档 |\n|---|-----|--------|------|------|----------|\n| 1 | add_shop_flash_sale_items | POST | `api/v2/shop_flash_sale/add_shop_flash_sale_items` | `add_shop_flash_sale_items.py` | [doc](https://open.shopee.com/documents/v2/v2.shop_flash_sale.add_shop_flash_sale_items?module=123&type=1) |\n| 2 | create_shop_flash_sale | POST | `api/v2/shop_flash_sale/create_shop_flash_sale` | `create_shop_flash_sale.py` | [doc](https://open.shopee.com/documents/v2/v2.shop_flash_sale.create_shop_flash_sale?module=123&type=1) |\n| 3 | delete_shop_flash_sale | POST | `api/v2/shop_flash_sale/delete_shop_flash_sale` | `delete_shop_flash_sale.py` | [doc](https://open.shopee.com/documents/v2/v2.shop_flash_sale.delete_shop_flash_sale?module=123&type=1) |\n| 4 | delete_shop_flash_sale_items | POST | `api/v2/shop_flash_sale/delete_shop_flash_sale_items` | `delete_shop_flash_sale_items.py` | [doc](https://open.shopee.com/documents/v2/v2.shop_flash_sale.delete_shop_flash_sale_items?module=123&type=1) |\n| 5 | get_item_criteria | GET | `api/v2/shop_flash_sale/get_item_criteria` | `get_item_criteria.py` | [doc](https://open.shopee.com/documents/v2/v2.shop_flash_sale.get_item_criteria?module=123&type=1) |\n| 6 | get_shop_flash_sale | GET | `api/v2/shop_flash_sale/get_shop_flash_sale` | `get_shop_flash_sale.py` | [doc](https://open.shopee.com/documents/v2/v2.shop_flash_sale.get_shop_flash_sale?module=123&type=1) |\n| 7 | get_shop_flash_sale_items | GET | `api/v2/shop_flash_sale/get_shop_flash_sale_items` | `get_shop_flash_sale_items.py` | [doc](https://open.shopee.com/documents/v2/v2.shop_flash_sale.get_shop_flash_sale_items?module=123&type=1) |\n| 8 | get_shop_flash_sale_list | GET | `api/v2/shop_flash_sale/get_shop_flash_sale_list` | `get_shop_flash_sale_list.py` | [doc](https://open.shopee.com/documents/v2/v2.shop_flash_sale.get_shop_flash_sale_list?module=123&type=1) |\n| 9 | get_time_slot_id | GET | `api/v2/shop_flash_sale/get_time_slot_id` | `get_time_slot_id.py` | [doc](https://open.shopee.com/documents/v2/v2.shop_flash_sale.get_time_slot_id?module=123&type=1) |\n| 10 | update_shop_flash_sale | POST | `api/v2/shop_flash_sale/update_shop_flash_sale` | `update_shop_flash_sale.py` | [doc](https://open.shopee.com/documents/v2/v2.shop_flash_sale.update_shop_flash_sale?module=123&type=1) |\n| 11 | update_shop_flash_sale_items | POST | `api/v2/shop_flash_sale/update_shop_flash_sale_items` | `update_shop_flash_sale_items.py` | [doc](https://open.shopee.com/documents/v2/v2.shop_flash_sale.update_shop_flash_sale_items?module=123&type=1) |\n通用入口：`shop_flash_sale_api.py`（JSON 含 `\"api\": \"<上表 API 名>\"`）。\n\n---\n\n## 常用接口说明\n\n| API | 要点 |\n|-----|------|\n| `get_time_slot_id` | 获取可用秒杀时段 ID |\n| `create_shop_flash_sale` | 创建店铺秒杀活动；POST `body` |\n| `get_item_criteria` | 查询商品参与条件 |\n| `add_shop_flash_sale_items` | 添加秒杀商品 |\n| `get_shop_flash_sale_list` | 活动列表 |\n| `get_shop_flash_sale` | 活动详情 |\n| `get_shop_flash_sale_items` | 活动内商品 |\n| `update_shop_flash_sale` / `update_shop_flash_sale_items` | 更新活动或商品 |\n| `delete_shop_flash_sale` / `delete_shop_flash_sale_items` | 删除活动或商品 |\n\n---\n\n## curl 示例\n\n```bash\ncurl -X POST ${LINKFOX_AGENT_API_URL}/shopee/developerProxy \\\n  -H \"Authorization: ${LINKFOX_AGENT_API_KEY:-$LINKFOXAGENT_API_KEY}\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n    \"path\": \"api/v2/shop_flash_sale/get_time_slot_id\",\n    \"method\": \"GET\",\n    \"accessToken\": \"xxx\",\n    \"shopId\": \"67890\"\n  }'\n```\n\n---\n\n## Feedback API\n\n```bash\ncurl -X POST https://skill-api.linkfox.com/api/v1/public/feedback \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"skillName\":\"linkfox-shopee-store-shop-flash-sale\",\"sentiment\":\"POSITIVE\",\n       \"category\":\"OTHER\",\"content\":\"店铺秒杀查询正常\"}'\n```\n\nFile v1.0.0:skill-card.md\n\n## Description: <br>\nHelps agents manage authorized Shopee shop flash-sale promotions through LinkFox's developer proxy, covering Shopee Open API Shop Flash Sale operations for time slots, creation, item management, listing, updates, and deletion. <br>\n\nThis skill is ready for commercial/non-commercial use. <br>\n\n## Publisher: <br>\n[linkfox-ai](https://clawhub.ai/user/linkfox-ai) <br>\n\n### License/Terms of Use: <br>\nMIT-0 <br>\n\n\n## Use Case: <br>\nExternal operators and developers managing authorized Shopee stores use this skill to create, update, inspect, and delete Shop Flash Sale promotions and their participating items. <br>\n\n### Deployment Geography for Use: <br>\nGlobal <br>\n\n## Known Risks and Mitigations: <br>\nRisk: The skill can create, update, and delete authorized Shopee shop flash-sale promotions. <br>\nMitigation: Run it only with an intended LinkFox API key and authorized store context, and review create/update/delete requests before execution. <br>\nRisk: Full business API responses are persisted locally and --inline can expose complete responses in stdout. <br>\nMitigation: Use a private workspace, avoid --inline unless full output is required, review files under linkfox/, and delete retained response files when they are no longer needed. <br>\nRisk: Response files may be saved in broader local locations than the documentation describes when preferred directories are not writable. <br>\nMitigation: Confirm the writable workspace before running scripts and inspect the reported saved-response path after each run. <br>\n\n\n## Reference(s): <br>\n- [Skill API reference](artifact/references/api.md) <br>\n- [Shopee Open Platform Shop Flash Sale documentation](https://open.shopee.com/documents/v2/v2.shop_flash_sale.get_time_slot_id?module=123&type=1) <br>\n- [ClawHub skill page](https://clawhub.ai/linkfox-ai/skills/linkfox-shopee-store-shop-flash-sale) <br>\n\n\n## Skill Output: <br>\n**Output Type(s):** [API Calls, JSON, Files, Shell commands, Guidance] <br>\n**Output Format:** [JSON responses saved to local files, with stdout JSON or concise text summaries depending on response size] <br>\n**Output Parameters:** [1D] <br>\n**Other Properties Related to Output:** [Requires a LinkFox API key and authorized Shopee store token dependency; full responses are retained under linkfox/ session data, and --inline prints full responses to stdout.] <br>\n\n## Skill Version(s): <br>\n1.0.0 (source: release evidence) <br>\n\n## Ethical Considerations: <br>\nUsers should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment. <br>","readmeExcerpt":"Skill: Shopee-店铺限时特卖 Owner: linkfox-ai Summary: Shopee（虾皮）店铺秒杀 Shop Flash Sale（与 linkfox-shopee-store-auth 同系列），经 /shopee/developerProxy 转发 Shopee Open API Shop Flash Sale 模块全部 11 个接口：get_time_slot_id、create_shop_flash_sale、get_shop_flash_sale_list、add_shop_flash_sale_items、update_shop_flash_sale 等。当用户提到 Shopee 店铺秒杀、Shop Flash Sale、限时秒杀、get_time_slot_id、flash_sale_id、秒杀时段 时触发。即使未明确提及\"秒杀\"，只要涉及已授权 Shopee 店铺的 Flash Sale","codeSnippets":[],"executableExamples":[{"language":"bash","snippet":"curl -X POST ${LINKFOX_TOOL_GATEWAY}/shopee/developerProxy \\\n  -H \"Authorization: ${LINKFOX_AGENT_API_KEY:-$LINKFOXAGENT_API_KEY}\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{"},{"language":"bash","snippet":"curl -X POST ${LINKFOX_TOOL_GATEWAY}/shopee/developerProxy \\\n  -H \"Authorization: ${LINKFOX_AGENT_API_KEY:-$LINKFOXAGENT_API_KEY}\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n    \"path\": \"api/v2/shop_flash_sale/get_time_slot_id\",\n    \"method\": \"GET\",\n    \"accessToken\": \"xxx\",\n    \"shopId\": \"67890\"\n  }'"},{"language":"bash","snippet":"curl -X POST https://skill-api.linkfox.com/api/v1/public/feedback \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"skillName\":\"linkfox-shopee-store-shop-flash-sale\",\"sentiment\":\"POSITIVE\","},{"language":"bash","snippet":"curl -X POST https://skill-api.linkfox.com/api/v1/public/feedback \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"skillName\":\"linkfox-shopee-store-shop-flash-sale\",\"sentiment\":\"POSITIVE\",\n       \"category\":\"OTHER\",\"content\":\"店铺秒杀查询正常\"}'"},{"language":"bash","snippet":"export LINKFOXAGENT_API_KEY=\"<your-key>\"\n\npython scripts/add_shop_flash_sale_items.py '{\"shopId\": \"67890\"}'\n\n# 通用入口\npython scripts/shop_flash_sale_api.py '{\"api\": \"add_shop_flash_sale_items\", \"shopId\": \"67890\"}'"},{"language":"bash","snippet":"export LINKFOXAGENT_API_KEY=\"<your-key>\"\n\npython scripts/create_shop_flash_sale.py '{\"shopId\": \"67890\"}'\n\n# 通用入口\npython scripts/shop_flash_sale_api.py '{\"api\": \"create_shop_flash_sale\", \"shopId\": \"67890\"}'"}],"parameters":null,"dependencies":[],"permissions":[],"extractedFiles":[{"path":"SKILL.md","content":"---\nname: linkfox-shopee-store-shop-flash-sale\ndescription: Shopee（虾皮）店铺秒杀 Shop Flash Sale（与 linkfox-shopee-store-auth 同系列），经 /shopee/developerProxy 转发 Shopee Open API Shop Flash Sale 模块全部 11 个接口：get_time_slot_id、create_shop_flash_sale、get_shop_flash_sale_list、add_shop_flash_sale_items、update_shop_flash_sale 等。当用户提到 Shopee 店铺秒杀、Shop Flash Sale、限时秒杀、get_time_slot_id、flash_sale_id、秒杀时段 时触发。即使未明确提及\"秒杀\"，只要涉及已授权 Shopee 店铺的 Flash Sale 活动管理，也应触发。\n---\n\n# Shopee 店铺秒杀 Shop Flash Sale\n\nShopee Open Platform **Shop Flash Sale 模块**（11 个 API）。**依赖 `linkfox-shopee-store-auth`** 选店；经 **`POST /shopee/developerProxy`** 传入 `shopId`（或 `merchantId`），由服务端解析 token 转发（`path` 须 `api/v2/shop_flash_sale/...`）。\n\n## 调用方式\n\n- **API 端点**：`POST /shopee/developerProxy`（不同操作通过请求体区分；完整参数/响应/错误码见 `references/api.md`）\n- **Python 脚本**：`python scripts/<脚本名>.py '<JSON 参数>' [--inline]`（可用脚本见上文脚本一览）\n- **成本约束**：本工具会消耗积分；失败/空结果不得自动换关键词、翻页或连续试探；需要继续检索时先向用户说明会产生额外消耗。\n\n**输出策略（脚本默认行为）**：\n- **始终**将完整响应写入 `<cwd>/linkfox/<YYYY-MM-DD>/<session>/data/<skill-name>-<timestamp>.json`（`<cwd>` 为脚本执行时的工作目录，在 Claude Code 里即当前项目目录；`<session>` 取自环境变量 `SESSION_ID`，按用户任务自动聚合；**禁止写入 /tmp**，当前目录不可写则报错）\n- 响应体 ≤ 8 KB：落盘后把完整 JSON 打印到 stdout\n- 响应体 > 8 KB：落盘后 stdout 只输出摘要（顶层字段、常见计数如 `total`/`costToken`、最大列表字段的长度 + 前 3 条样本）\n- 加 `--inline` 强制全量打印到 stdout（同样落盘）\n\n**读数据建议**：先看摘要判断是否足够；需要具体字段时优先用 `jq`或`ConvertFrom-Json` 从保存的 json 文件按需抽取，避免整份 JSON 进入上下文。\n\n## 解决认证和积分问题\n发生以下异常情况时，采用 references/onboarding.md 引导解决问题：\n\n### 异常情况\n- **未配置API Key**：环境变量未配置 `LINKFOX_AGENT_API_KEY`，也未配置 `LINKFOXAGENT_API_KEY`。\n- **响应401或402状态码**\n- **响应提示积分或余额不足**：消息含\"积分余额不足/计费不足/余额不足/quota exceeded/insufficient balance/套餐到期/需充值/请充值\"，或类似含义的内容。\n\n## 官方参考\n\nShop Flash Sale 模块索引：[v2.shop_flash_sale.get_time_slot_id](https://open.shopee.com/documents/v2/v2.shop_flash_sale.get_time_slot_id?module=123&type=1)\n\n---\n\n## Prerequisites\n\n1. 运行 `python scripts/check_auth_dependency.py`；exit code **42** → 先安装 **`linkfox-shopee-store-auth`**。\n2. 其它促销：Discount / Bundle Deal / Voucher / Shop Flash Sale / Follow Prize → 对应促销 skill。\n\n## 可用脚本（11 个 API）\n\n| 脚本 | API | Method |\n|------|-----|--------|\n| `get_time_slot_id.py` | get_time_slot_id | GET |\n| `create_shop_flash_sale.py` | create_shop_flash_sale | POST |\n| `get_item_criteria.py` | get_item_criteria | GET |\n| `add_shop_flash_sale_items.py` | add_shop_flash_sale_items | POST |\n| `get_shop_flash_sale_list.py` | get_shop_flash_sale_list | GET |\n| `get_shop_flash_sale.py` | get_shop_flash_sale | GET |\n| `get_shop_flash_sale_items.py` | get_shop_flash_sale_items | GET |\n| `update_shop_flash_sale.py` | update_shop_flash_sale | POST |\n| `update_shop_flash_sale_items.py` | update_shop_flash_sale_items | POST |\n| `delete_shop_flash_sale.py` | delete_shop_flash_sale | POST |\n| `delete_shop_flash_sale_items.py` | delete_shop_flash_sale_items | POST |\n| `shop_flash_sale_api.py` | 通用入口 | — |\n\n## 接口说明（按 API）\n\n入参与响应细节放在 `references/apis/`，SKILL 只保留索引。\n\n| API | 说明文档 |\n|-----|----------|\n| `add_shop_flash_sale_items` | [references/api"},{"path":"_meta.json","content":"{\n  \"ownerId\": \"kn7dmc1t4j28hem1twwyav85p182pb1j\",\n  \"slug\": \"linkfox-shopee-store-shop-flash-sale\",\n  \"version\": \"1.0.5\",\n  \"publishedAt\": 1786720132271\n}"},{"path":"references/api.md","content":"# linkfox-shopee-store-shop-flash-sale — 参数与字段参考\n\n> 单接口入参/响应说明已拆到 **`apis/`**（按 API 一份）；本文件保留模块总览与 Feedback。\nShopee **Shop Flash Sale 模块**全部 11 个 API，经 **`POST /shopee/developerProxy`** 转发。\n\n授权见 **`linkfox-shopee-store-auth`**。官方索引：[v2.shop_flash_sale.get_time_slot_id](https://open.shopee.com/documents/v2/v2.shop_flash_sale.get_time_slot_id?module=123&type=1)\n\n## 通用约定\n\n- **path**：须 `api/v2/shop_flash_sale/...`\n- **标识**：通常传 **`shopId`**\n- **官方文档 URL 规则**：`https://open.shopee.com/documents/v2/v2.shop_flash_sale.{api}?module=123&type=1`\n\n---\n\n## Shop Flash Sale 模块总览\n\n| # | API | Method | path | 脚本 | 官方文档 |\n|---|-----|--------|------|------|----------|\n| 1 | add_shop_flash_sale_items | POST | `api/v2/shop_flash_sale/add_shop_flash_sale_items` | `add_shop_flash_sale_items.py` | [apis/add-shop-flash-sale-items.md](./apis/add-shop-flash-sale-items.md) |\n| 2 | create_shop_flash_sale | POST | `api/v2/shop_flash_sale/create_shop_flash_sale` | `create_shop_flash_sale.py` | [apis/create-shop-flash-sale.md](./apis/create-shop-flash-sale.md) |\n| 3 | delete_shop_flash_sale | POST | `api/v2/shop_flash_sale/delete_shop_flash_sale` | `delete_shop_flash_sale.py` | [apis/delete-shop-flash-sale.md](./apis/delete-shop-flash-sale.md) |\n| 4 | delete_shop_flash_sale_items | POST | `api/v2/shop_flash_sale/delete_shop_flash_sale_items` | `delete_shop_flash_sale_items.py` | [apis/delete-shop-flash-sale-items.md](./apis/delete-shop-flash-sale-items.md) |\n| 5 | get_item_criteria | GET | `api/v2/shop_flash_sale/get_item_criteria` | `get_item_criteria.py` | [apis/get-item-criteria.md](./apis/get-item-criteria.md) |\n| 6 | get_shop_flash_sale | GET | `api/v2/shop_flash_sale/get_shop_flash_sale` | `get_shop_flash_sale.py` | [apis/get-shop-flash-sale.md](./apis/get-shop-flash-sale.md) |\n| 7 | get_shop_flash_sale_items | GET | `api/v2/shop_flash_sale/get_shop_flash_sale_items` | `get_shop_flash_sale_items.py` | [apis/get-shop-flash-sale-items.md](./apis/get-shop-flash-sale-items.md) |\n| 8 | get_shop_flash_sale_list | GET | `api/v2/shop_flash_sale/get_shop_flash_sale_list` | `get_shop_flash_sale_list.py` | [apis/get-shop-flash-sale-list.md](./apis/get-shop-flash-sale-list.md) |\n| 9 | get_time_slot_id | GET | `api/v2/shop_flash_sale/get_time_slot_id` | `get_time_slot_id.py` | [apis/get-time-slot-id.md](./apis/get-time-slot-id.md) |\n| 10 | update_shop_flash_sale | POST | `api/v2/shop_flash_sale/update_shop_flash_sale` | `update_shop_flash_sale.py` | [apis/update-shop-flash-sale.md](./apis/update-shop-flash-sale.md) |\n| 11 | update_shop_flash_sale_items | POST | `api/v2/shop_flash_sale/update_shop_flash_sale_items` | `update_shop_flash_sale_items.py` | [apis/update-shop-flash-sale-items.md](./apis/update-shop-flash-sale-items.md) |\n通用入口：`shop_flash_sale_api.py`（JSON 含 `\"api\": \"<上表 API 名>\"`）。\n\n---\n\n## 常用接口说明\n\n| API | 要点 |\n|-----|------|\n| `get_time_slot_id` | 获取可用秒杀时段 ID — [apis/get-time-slot-id.md](./apis/get-time-slot-id.md) |\n| `create_shop_flash_sale` | 创建店铺秒杀活动；POST `body` — [apis/c"},{"path":"references/apis/add-shop-flash-sale-items.md","content":"# add_shop_flash_sale_items\n\n| 项 | 值 |\n|----|-----|\n| 脚本 | `scripts/add_shop_flash_sale_items.py` |\n| Method / path | POST `api/v2/shop_flash_sale/add_shop_flash_sale_items` |\n| 官方文档 | [add_shop_flash_sale_items](https://open.shopee.com/documents/v2/v2.shop_flash_sale.add_shop_flash_sale_items?module=123&type=1) |\n| 用途 | Add items to flash sale |\n\n经 **`POST /shopee/developerProxy`** 转发；依赖 **`linkfox-shopee-store-auth`** 选店（通常传 `shopId` 或 `merchantId`）。\n\n---\n\n## 脚本 JSON 入参\n\n| 字段 | 类型 | 必填 | 说明 |\n|------|------|------|------|\n| `shopId` | string | 与 `merchantId` 二选一 | 店铺 ID（推荐；Public 等无店铺接口可省略） |\n| `merchantId` | string | 与 `shopId` 二选一 | 商户 ID |\n\n- Method：**POST**\n- POST：传 `body` / `requestBody`，或把 `body_fields` 列在 JSON 顶层\n- `shopId` / `merchantId` / `skipDepCheck` 等为网关选店保留字段，不会进 Shopee query/body\n- Registry notes：Add items to flash sale\n\n---\n\n## 调用示例\n\n```bash\nexport LINKFOXAGENT_API_KEY=\"<your-key>\"\n\npython scripts/add_shop_flash_sale_items.py '{\"shopId\": \"67890\"}'\n\n# 通用入口\npython scripts/shop_flash_sale_api.py '{\"api\": \"add_shop_flash_sale_items\", \"shopId\": \"67890\"}'\n```\n\n---\n\n## 响应要点\n\n1. 先看 **`developerProxy.httpStatus`** / `errcode`\n2. 再读 **`addShopFlashSaleItems`**（Shopee `response` 解析结果）\n3. 字段以官方文档为准"},{"path":"references/apis/create-shop-flash-sale.md","content":"# create_shop_flash_sale\n\n| 项 | 值 |\n|----|-----|\n| 脚本 | `scripts/create_shop_flash_sale.py` |\n| Method / path | POST `api/v2/shop_flash_sale/create_shop_flash_sale` |\n| 官方文档 | [create_shop_flash_sale](https://open.shopee.com/documents/v2/v2.shop_flash_sale.create_shop_flash_sale?module=123&type=1) |\n| 用途 | Create shop flash sale event; pass full body |\n\n经 **`POST /shopee/developerProxy`** 转发；依赖 **`linkfox-shopee-store-auth`** 选店（通常传 `shopId` 或 `merchantId`）。\n\n---\n\n## 脚本 JSON 入参\n\n| 字段 | 类型 | 必填 | 说明 |\n|------|------|------|------|\n| `shopId` | string | 与 `merchantId` 二选一 | 店铺 ID（推荐；Public 等无店铺接口可省略） |\n| `merchantId` | string | 与 `shopId` 二选一 | 商户 ID |\n\n- Method：**POST**\n- POST：传 `body` / `requestBody`，或把 `body_fields` 列在 JSON 顶层\n- `shopId` / `merchantId` / `skipDepCheck` 等为网关选店保留字段，不会进 Shopee query/body\n- Registry notes：Create shop flash sale event; pass full body\n\n---\n\n## 调用示例\n\n```bash\nexport LINKFOXAGENT_API_KEY=\"<your-key>\"\n\npython scripts/create_shop_flash_sale.py '{\"shopId\": \"67890\"}'\n\n# 通用入口\npython scripts/shop_flash_sale_api.py '{\"api\": \"create_shop_flash_sale\", \"shopId\": \"67890\"}'\n```\n\n---\n\n## 响应要点\n\n1. 先看 **`developerProxy.httpStatus`** / `errcode`\n2. 再读 **`createShopFlashSale`**（Shopee `response` 解析结果）\n3. 字段以官方文档为准"}],"languages":[],"docsSourceLabel":"CLAWHUB","editorialOverview":null,"editorialQuality":{"score":100,"threshold":65,"status":"thin","wordCount":1310,"uniquenessScore":26,"reasons":["uniqueness-below-45"]}},"media":{"evidence":{"source":"no-media","verified":false,"confidence":"low","updatedAt":"2026-10-12T00:49:34.196Z","emptyReason":"No screenshots, media assets, or demo links are available."},"primaryImageUrl":null,"mediaAssetCount":0,"assets":[],"demoUrl":null},"ownerResources":{"evidence":{"source":"unclaimed","verified":false,"confidence":"low","updatedAt":"2026-10-12T00:49:34.196Z","emptyReason":"This page has not been claimed by the agent owner."},"hasCustomPage":false,"customPageUpdatedAt":null,"customLinks":[],"structuredLinks":{"docsUrl":null,"demoUrl":null,"supportUrl":null,"pricingUrl":null,"statusUrl":null},"customPage":null},"relatedAgents":{"evidence":{"source":"protocol-neighbors","verified":false,"confidence":"medium","updatedAt":"2026-10-14T05:56:43.018Z","emptyReason":null},"items":[{"id":"8ebccd8e-3863-4187-8355-c3f14e1f9edf","entityType":"agent","canonicalPath":"/agent/iofficeai-aionui","slug":"iofficeai-aionui","name":"AionUi","description":"Free, local, open-source 24/7 Cowork app and OpenClaw for Gemini CLI, Claude Code, Codex, OpenCode, Qwen Code, Goose CLI, Auggie, and more | 🌟 Star if you like it!","url":"https://github.com/iOfficeAI/AionUi","homepage":"https://www.aionui.com","source":"GITHUB_REPOS","protocols":["MCP","OPENCLAW"],"capabilities":[],"safetyScore":100,"overallRank":70,"updatedAt":"2026-10-09T19:11:12.944Z","createdAt":"2026-02-25T03:38:16.584Z","downloads":null},{"id":"b917f68a-ebff-438e-84f8-3f4b2494c0bc","entityType":"agent","canonicalPath":"/agent/activepieces-activepieces","slug":"activepieces-activepieces","name":"activepieces","description":"AI Agents & MCPs & AI Workflow Automation • (~400 MCP servers for AI agents) • AI Automation / AI Agent with MCPs • AI Workflows & AI Agents • MCPs for AI Agents","url":"https://github.com/activepieces/activepieces","homepage":"https://www.activepieces.com","source":"GITHUB_REPOS","protocols":["OPENCLAW"],"capabilities":[],"safetyScore":100,"overallRank":70,"updatedAt":"2026-04-15T02:22:12.426Z","createdAt":"2026-02-25T03:38:12.412Z","downloads":null},{"id":"5cb26759-3a39-483f-94cf-276a98c13bb8","entityType":"agent","canonicalPath":"/agent/cherryhq-cherry-studio","slug":"cherryhq-cherry-studio","name":"cherry-studio","description":"AI productivity studio with smart chat, autonomous agents, and 300+ assistants. Unified access to frontier LLMs","url":"https://github.com/CherryHQ/cherry-studio","homepage":"https://cherry-ai.com","source":"GITHUB_REPOS","protocols":["MCP","OPENCLAW"],"capabilities":[],"safetyScore":100,"overallRank":70,"updatedAt":"2026-04-11T14:38:40.986Z","createdAt":"2026-02-25T03:38:19.379Z","downloads":null},{"id":"6f6582d0-5d76-4f0f-b81d-86520247950b","entityType":"agent","canonicalPath":"/agent/copilotkit-copilotkit","slug":"copilotkit-copilotkit","name":"CopilotKit","description":"The Frontend for Agents & Generative UI. React + Angular","url":"https://github.com/CopilotKit/CopilotKit","homepage":"https://docs.copilotkit.ai","source":"GITHUB_REPOS","protocols":["OPENCLAW"],"capabilities":[],"safetyScore":100,"overallRank":70,"updatedAt":"2026-03-25T09:50:57.846Z","createdAt":"2026-02-25T03:39:14.617Z","downloads":null}],"links":{"hub":"/agent","source":"/agent/source/clawhub","protocols":[{"label":"OpenClaw","href":"/agent/protocol/openclew"}]}}}