{"id":"18e48048-7f5a-4761-9116-d05f4732589d","entityType":"agent","slug":"clawhub-linkfox-ai-linkfox-amazon-store-catalog","name":"亚马逊-店铺目录","canonicalUrl":"https://www.xpersona.co/agent/clawhub-linkfox-ai-linkfox-amazon-store-catalog","canonicalPath":"/agent/clawhub-linkfox-ai-linkfox-amazon-store-catalog","generatedAt":"2026-10-10T10:43:53.321Z","source":"CLAWHUB","claimStatus":"UNCLAIMED","verificationTier":"NONE","summary":{"evidence":{"source":"editorial-content","verified":true,"confidence":"high","updatedAt":"2026-10-10T08:02:07.943Z","emptyReason":null},"description":"亚马逊商品目录（Catalog Items）查询。用于按 ASIN 获取目录详情，按关键词、标识符或分类条件搜索商品，以及查询商品类目节点、标题摘要、图片和其他 includedData。用户提到亚马逊商品目录、Catalog Items、ASIN 查商品、关键词搜亚马逊商品、类目节点、商品图片或摘要、searchCatalogItems、getCatalogItem、listCatalogCategories 时触发。即使未明确说“Catalog”，只要希望查询亚马逊全站目录中的商品基础资料而不是卖家自己的 Listing，也应触发此技能；卖家 SKU 的刊登增删改查使用 linkfox-amazon-store-listings。 Skill: 亚马逊-店铺目录 Owner: linkfox-ai Summary: 亚马逊商品目录（Catalog Items）查询。用于按 ASIN 获取目录详情，按关键词、标识符或分类条件搜索商品，以及查询商品类目节点、标题摘要、图片和其他 includedData。用户提到亚马逊商品目录、Catalog Items、ASIN 查商品、关键词搜亚马逊商品、类目节点、商品图片或摘要、searchCatalogItems、getCatalogItem、listCatalogCategories 时触发。即使未明确说“Catalog”，只要希望查询亚马逊全站目录中的商品基础资料而不是卖家自己的 Listing，也应触发此技能；卖家 SKU 的刊登增删改查使用 linkfox-amazon-store-listings。 Tags: latest:1.0.8 Version history: v1.0.8 | 2026-09-14","descriptionLabel":"Technical summary","evidenceSummary":"Capability contract not published. No trust telemetry is available yet. 1.6K downloads reported by the source. Last updated 10/10/2026.","installCommand":"clawhub skill install s171g8b6m2khwdy9ye8bxj0wx183vd4z:linkfox-amazon-store-catalog","sourceUrl":"https://clawhub.ai/linkfox-ai/linkfox-amazon-store-catalog","homepage":"https://clawhub.ai/linkfox-ai/skills/linkfox-amazon-store-catalog","primaryLinks":[{"label":"View on ClawHub","url":"https://clawhub.ai/linkfox-ai/linkfox-amazon-store-catalog","kind":"source"},{"label":"Homepage","url":"https://clawhub.ai/linkfox-ai/skills/linkfox-amazon-store-catalog","kind":"homepage"}],"safetyScore":84,"overallRank":62,"popularityScore":64,"trustScore":null,"claimedByName":null,"isOwner":false,"seoDescription":"亚马逊商品目录（Catalog Items）查询。用于按 ASIN 获取目录详情，按关键词、标识符或分类条件搜索商品，以及查询商品类目节点、标题摘要、图片和其他 includedData。用户提到亚马逊商品目录、Catalog Items、ASIN 查商品、关键词搜亚马逊商品、类目节点、商品图片或摘要、searchCa"},"coverage":{"evidence":{"source":"public-profile","verified":false,"confidence":"medium","updatedAt":"2026-10-10T08:02:07.943Z","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-10T08:02:07.943Z","emptyReason":null},"stars":null,"forks":null,"downloads":1573,"packageName":null,"latestVersion":"1.0.8","tractionLabel":"1.6K downloads"},"release":{"evidence":{"source":"CLAWHUB","verified":false,"confidence":"medium","updatedAt":"2026-10-10T08:02:07.943Z","emptyReason":null},"lastUpdatedAt":"2026-10-10T08:02:07.943Z","lastCrawledAt":"2026-10-10T08:02:07.943Z","lastIndexedAt":null,"nextCrawlAt":"2026-10-11T08:02:07.943Z","lastVerifiedAt":null,"highlights":[{"version":"1.0.8","createdAt":"2026-09-14T04:55:55.682Z","changelog":"Update from 1.0.7 to 1.0.8","fileCount":11,"zipByteSize":28024},{"version":"1.0.7","createdAt":"2026-08-14T14:44:29.106Z","changelog":"Update from 1.0.6 to 1.0.7","fileCount":11,"zipByteSize":26774},{"version":"1.0.6","createdAt":"2026-08-07T10:41:37.260Z","changelog":"Update from 1.0.5 to 1.0.6","fileCount":11,"zipByteSize":27010},{"version":"1.0.5","createdAt":"2026-07-13T12:04:26.677Z","changelog":"Update from 1.0.4 to 1.0.5","fileCount":9,"zipByteSize":18038},{"version":"1.0.4","createdAt":"2026-07-06T11:11:58.410Z","changelog":"Update from 1.0.3 to 1.0.4","fileCount":9,"zipByteSize":17415},{"version":"1.0.3","createdAt":"2026-07-03T08:11:19.731Z","changelog":"Update from 1.0.2 to 1.0.3","fileCount":8,"zipByteSize":15915},{"version":"1.0.2","createdAt":"2026-07-03T04:36:31.655Z","changelog":"Update from 1.0.1 to 1.0.2","fileCount":8,"zipByteSize":15941},{"version":"1.0.1","createdAt":"2026-06-29T09:44:49.759Z","changelog":"Update from 0.0.1 to 1.0.1","fileCount":10,"zipByteSize":21281}]},"execution":{"evidence":{"source":"CLAWHUB","verified":false,"confidence":"low","updatedAt":null,"emptyReason":"No published capability contract is available yet."},"installCommand":"clawhub skill install s171g8b6m2khwdy9ye8bxj0wx183vd4z:linkfox-amazon-store-catalog","setupComplexity":"low","setupSteps":["Setup complexity is classified as HIGH. You must provision dedicated cloud infrastructure or an isolated VM. Do not run this directly on your local workstation.","Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data."],"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-amazon-store-catalog/snapshot","contractUrl":"https://www.xpersona.co/api/v1/agents/clawhub-linkfox-ai-linkfox-amazon-store-catalog/contract","trustUrl":"https://www.xpersona.co/api/v1/agents/clawhub-linkfox-ai-linkfox-amazon-store-catalog/trust"},"curlExamples":["curl -s \"https://www.xpersona.co/api/v1/agents/clawhub-linkfox-ai-linkfox-amazon-store-catalog/snapshot\"","curl -s \"https://www.xpersona.co/api/v1/agents/clawhub-linkfox-ai-linkfox-amazon-store-catalog/contract\"","curl -s \"https://www.xpersona.co/api/v1/agents/clawhub-linkfox-ai-linkfox-amazon-store-catalog/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-10T10:43:53.318Z"}},"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-amazon-store-catalog/dossier","snapshotUrl":"https://www.xpersona.co/api/v1/agents/clawhub-linkfox-ai-linkfox-amazon-store-catalog/snapshot","contractUrl":"https://www.xpersona.co/api/v1/agents/clawhub-linkfox-ai-linkfox-amazon-store-catalog/contract","trustUrl":"https://www.xpersona.co/api/v1/agents/clawhub-linkfox-ai-linkfox-amazon-store-catalog/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":"high","updatedAt":"2026-10-10T08:02:07.943Z","emptyReason":null},"readme":"Skill: 亚马逊-店铺目录\n\nOwner: linkfox-ai\n\nSummary: 亚马逊商品目录（Catalog Items）查询。用于按 ASIN 获取目录详情，按关键词、标识符或分类条件搜索商品，以及查询商品类目节点、标题摘要、图片和其他 includedData。用户提到亚马逊商品目录、Catalog Items、ASIN 查商品、关键词搜亚马逊商品、类目节点、商品图片或摘要、searchCatalogItems、getCatalogItem、listCatalogCategories 时触发。即使未明确说“Catalog”，只要希望查询亚马逊全站目录中的商品基础资料而不是卖家自己的 Listing，也应触发此技能；卖家 SKU 的刊登增删改查使用 linkfox-amazon-store-listings。\n\nTags: latest:1.0.8\n\nVersion history:\n\nv1.0.8 | 2026-09-14T04:55:55.682Z | user\n\nUpdate from 1.0.7 to 1.0.8\n\nv1.0.7 | 2026-08-14T14:44:29.106Z | user\n\nUpdate from 1.0.6 to 1.0.7\n\nv1.0.6 | 2026-08-07T10:41:37.260Z | user\n\nUpdate from 1.0.5 to 1.0.6\n\nv1.0.5 | 2026-07-13T12:04:26.677Z | user\n\nUpdate from 1.0.4 to 1.0.5\n\nv1.0.4 | 2026-07-06T11:11:58.410Z | user\n\nUpdate from 1.0.3 to 1.0.4\n\nv1.0.3 | 2026-07-03T08:11:19.731Z | user\n\nUpdate from 1.0.2 to 1.0.3\n\nv1.0.2 | 2026-07-03T04:36:31.655Z | user\n\nUpdate from 1.0.1 to 1.0.2\n\nv1.0.1 | 2026-06-29T09:44:49.759Z | user\n\nUpdate from 0.0.1 to 1.0.1\n\nv0.0.1 | 2026-05-20T07:03:14.351Z | user\n\nInitial release\n\nArchive index:\n\nArchive v1.0.8: 11 files, 28024 bytes\n\nFiles: references/api.md (3198b), references/onboarding.md (1999b), scripts/_spapi_catalog_common.py (13020b), scripts/check_auth_dependency.py (6078b), scripts/get_catalog_item.py (2628b), scripts/list_catalog_categories.py (2538b), scripts/onboarding.py (24027b), scripts/search_catalog_items.py (5109b), skill-card.md (3059b), SKILL.md (7993b), _meta.json (147b)\n\nFile v1.0.8:SKILL.md\n\n---\nname: linkfox-amazon-store-catalog\ndescription: 亚马逊商品目录（Catalog Items）查询。用于按 ASIN 获取目录详情，按关键词、标识符或分类条件搜索商品，以及查询商品类目节点、标题摘要、图片和其他 includedData。用户提到亚马逊商品目录、Catalog Items、ASIN 查商品、关键词搜亚马逊商品、类目节点、商品图片或摘要、searchCatalogItems、getCatalogItem、listCatalogCategories 时触发。即使未明确说“Catalog”，只要希望查询亚马逊全站目录中的商品基础资料而不是卖家自己的 Listing，也应触发此技能；卖家 SKU 的刊登增删改查使用 linkfox-amazon-store-listings。\n---\n\n# Amazon 店铺 Catalog Items\n\n本 skill 与 **`linkfox-amazon-store-auth`** 等同属 **Amazon Store** 系列：依赖 **`linkfox-amazon-store-auth`** 选店（`sellerId`+`region`）；直接 **`POST /spApi/developerProxy`** 传入 `sellerId`+`region`，由服务端解析 token（勿传 `amzAccessToken`，除非兼容旧调用）。转发 **GET**。\n\n## 调用方式\n\n- **API 端点**：`POST /spApi/developerProxy`（不同操作通过请求体区分；完整参数/响应/错误码见 `references/api.md`）\n- **Python 脚本**：`python scripts/<脚本名>.py '<JSON 参数>' [--inline]`（可用脚本见上文脚本一览）\n- **成本约束**：本工具会消耗算力；失败/空结果不得自动换关键词、翻页或连续试探；需要继续检索时先向用户说明会产生额外消耗。\n\n**输出策略（脚本默认行为）**：\n- **始终**将完整响应写入 `<cwd>/linkfox/<YYYY-MM-DD>/<session>/data/linkfox-amazon-store-catalog-<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\n| 能力 | 文档 |\n|------|------|\n| listCatalogCategories | [listCatalogCategories](https://developer-docs.amazon.com/sp-api/reference/listcatalogcategories) |\n| searchCatalogItems | [searchCatalogItems](https://developer-docs.amazon.com/sp-api/reference/searchcatalogitems) |\n| getCatalogItem | [getCatalogItem](https://developer-docs.amazon.com/sp-api/reference/getcatalogitem) |\n\n---\n\n## Prerequisites\n\n1. 依赖 **`linkfox-amazon-store-auth`**；`python scripts/check_auth_dependency.py`，exit **42** 时需先安装授权 skill。\n2. 应用需具备 **Catalog Items** 相关角色；`searchCatalogItems` 按 **identifiers+SKU** 检索时 query 须带 **`sellerId`**（脚本在 `identifiersType=SKU` 时自动使用入参 `sellerId`）。\n\n---\n\n## Current Capabilities\n\n| 能力 | path | 脚本 |\n|------|------|------|\n| listCatalogCategories | `catalog/v0/categories` | `list_catalog_categories.py` |\n| searchCatalogItems | `catalog/{2022-04-01\\|2020-12-01}/items` | `search_catalog_items.py` |\n| getCatalogItem | `catalog/{version}/items/{asin}` | `get_catalog_item.py` |\n\n默认 Catalog Items 版本：**`2022-04-01`**；入参 **`catalogItemsVersion`** 可改为 **`2020-12-01`**。\n\n共享模块：**`_spapi_catalog_common.py`**。\n\n---\n\n## Quick Parameters\n\n- **listCatalogCategories**：`marketplaceId` + **`asin`** 或 **`sellerSku`**（二选一）。\n- **searchCatalogItems**：`marketplaceIds` + **`keywords`** 或 **`identifiers` + `identifiersType`**（互斥）；可选 `includedData`、`brandNames`、`classificationIds`、`pageSize`、`pageToken`。\n- **getCatalogItem**：`asin`、`marketplaceIds`；可选 `includedData`、`locale`。\n\n---\n\n## Scripts\n\n```bash\nexport LINKFOXAGENT_API_KEY=\"<your-key>\"\n\npython scripts/list_catalog_categories.py '{\"sellerId\":\"A1...\",\"region\":\"NA\",\"marketplaceId\":\"ATVPDKIKX0DER\",\"asin\":\"B08N5WRWNW\"}'\n\npython scripts/search_catalog_items.py '{\"sellerId\":\"A1...\",\"region\":\"NA\",\"marketplaceIds\":[\"ATVPDKIKX0DER\"],\"keywords\":[\"wireless mouse\"]}'\n\npython scripts/get_catalog_item.py '{\"sellerId\":\"A1...\",\"region\":\"NA\",\"asin\":\"B08N5WRWNW\",\"marketplaceIds\":[\"ATVPDKIKX0DER\"],\"includedData\":[\"summaries\",\"images\"]}'\n```\n\n---\n\n## Display Rules\n\n1. 先看 **`developerProxy.errcode` / `httpStatus`**，再读 **`categories`** / **`catalogItems`** / **`catalogItem`**。\n2. **listCatalogCategories** 使用 v0 查询键 **`MarketplaceId`**（单数），与 search/get 的 **`marketplaceIds`** 不同。\n3. 网关 path 白名单需包含 **`catalog/v0/`** 与 **`catalog/2022-04-01/`**（或 `2020-12-01`）。\n\n---\n\n## Important Limitations\n\n- 本 skill 读的是 **Amazon 商品目录（Catalog）**，不是卖家订单；订单见 **`linkfox-amazon-store-orders`**。\n- `includedData`、返回字段以 Amazon schema 为准，详见 **`references/api.md`**。\n\n## Amazon SP-API 接口保护与重试指引\n\n同一店铺连续收到 Amazon SP-API 的 400、403、404 或 429 时，网关会返回 450、453、454 或 459 并短暂冷却。这些自定义状态码不是 Amazon 原生状态，也不表示封号；目的是避免持续异常或高频调用扩大店铺风险。\n\n| 状态与 message | 范围 | 触发与冷却 | 处理 |\n|---|---|---|---|\n| `450`：`400，请求异常，请优化您的参数` | 店铺+接口 | 60 秒内超过 3 次：5 分钟；10 分钟内超过 4 次：20 分钟 | 停止原参数重试，检查必填字段、marketplace、ID、日期和请求体 |\n| `453`：`403，店铺未授权，请先授权` | 店铺全部接口 | 60 秒内超过 2 次：5 分钟；10 分钟内超过 4 次：30 分钟 | 停止该店铺调用，检查授权、权限、店铺归属和区域 |\n| `454`：`404，资源不存在，请优化您的参数` | 店铺+接口 | 60 秒内超过 3 次：5 分钟；10 分钟内超过 4 次：30 分钟 | 确认资源 ID、所属店铺/站点、资源状态和接口路径 |\n| `459`：`429限流中，请降低频率` | 店铺+接口 | 首次：15 秒；2 分钟内超过 2 次：30 秒；3 分钟内超过 4 次：2 分钟 | 降低并发、分页和轮询频率并逐级退避 |\n\n- 立即停止自动或并发重试，不得通过换脚本或重复创建任务绕过保护；优先遵循 `retryAfter`、`blockedUntil`，没有时按表中时长说明。\n- 450/453/454 必须先修正参数、授权或资源标识，冷却后最多谨慎重试一次；再次触发则停止调用。453 期间停止该店铺全部 SP-API。\n- 保留已有 `reportId`、`feedId` 等任务 ID；写操作结果不确定时先查询状态，不直接重放。\n- 向用户先说明店铺保护，再给原因、处理和等待时间。可回复：“为保护您的亚马逊店铺安全，检测到 Amazon SP-API 连续返回{原因}，当前已进入短暂保护。请先{处理动作}，预计{等待时间}后再试；这不代表封号，也不是套餐或算力限制。”不要只说“LinkFox 限流”或“服务器繁忙”。\n\n## 算力消耗规则\n\n不消耗算力。\n\n**Feedback：** `skillName`：`linkfox-amazon-store-catalog`。\n\n---\n*更多跨境 skill：[LinkFox Skills](https://skill.linkfox.com/)*\n\nFile v1.0.8:_meta.json\n\n{\n  \"ownerId\": \"kn7dmc1t4j28hem1twwyav85p182pb1j\",\n  \"slug\": \"linkfox-amazon-store-catalog\",\n  \"version\": \"1.0.8\",\n  \"publishedAt\": 1789361755682\n}\n\nFile v1.0.8:references/api.md\n\n# linkfox-amazon-store-catalog — API 参考\n\n经 **LinkFox** `storeTokens` + `developerProxy` 调用 SP-API **Catalog Items**（与 listings / pricing 系列相同）。\n\n环境变量：`LINKFOX_AGENT_API_KEY`（或 `LINKFOXAGENT_API_KEY`）（如未配置 按 SKILL.md 的 **## 解决认证和算力问题** 处理）；可选 `LINKFOX_TOOL_GATEWAY`（回退 `STORE_API_BASE_URL` / `SPAPI_BASE_URL`，默认 `https://tool-gateway.linkfox.com`）。\n\n---\n\n## 1. 脚本与 path\n\n| 脚本 | method | path |\n|------|--------|------|\n| `list_catalog_categories.py` | GET | `catalog/v0/categories` |\n| `search_catalog_items.py` | GET | `catalog/2022-04-01/items`（默认） |\n| `get_catalog_item.py` | GET | `catalog/2022-04-01/items/{asin}`（默认） |\n\n`catalogItemsVersion` 可选 **`2020-12-01`**，path 中版本段随之替换。\n\n---\n\n## 2. listCatalogCategories（v0）\n\n### 入参（JSON）\n\n| 字段 | 必填 | 说明 |\n|------|------|------|\n| sellerId, region | 是 | 店铺与区域 |\n| marketplaceId / marketplaceIds | 是 | 仅使用**第一个**站点 ID → query **`MarketplaceId`** |\n| asin / ASIN | 条件 | 与 sellerSku **二选一** |\n| sellerSku / SellerSKU | 条件 | 与 asin **二选一** |\n\n### Query（大小写敏感）\n\n- `MarketplaceId`\n- `ASIN` 或 `SellerSKU`\n\n解析字段：**`categories`**\n\n---\n\n## 3. searchCatalogItems\n\n### 入参\n\n| 字段 | 必填 | 说明 |\n|------|------|------|\n| marketplaceIds | 是 | 文档通常 ≤1 个 |\n| keywords | 条件 | 与 identifiers **互斥**，最多 20 个 |\n| identifiers | 条件 | 最多 20 个；须配 **identifiersType** |\n| identifiersType | 条件 | ASIN, EAN, GTIN, ISBN, JAN, MINSAN, SKU, UPC |\n| includedData | 否 | summaries, images, attributes, salesRanks 等 |\n| brandNames, classificationIds | 否 | 限缩关键词搜索 |\n| locale, keywordsLocale | 否 | |\n| pageSize | 否 | 1～20，默认 10 |\n| pageToken | 否 | 分页 |\n| catalogItemsVersion | 否 | `2022-04-01`（默认）或 `2020-12-01` |\n| sellerIdForCatalog | 否 | 覆盖 query 中的 sellerId（默认用 sellerId） |\n\n当 **identifiersType=SKU** 时，Amazon 要求 query 带 **sellerId**；脚本默认使用 JSON 里的 **sellerId**。\n\n解析字段：**`catalogItems`**\n\n---\n\n## 4. getCatalogItem\n\n| 字段 | 必填 | 说明 |\n|------|------|------|\n| asin | 是 | path 段 |\n| marketplaceIds | 是 | |\n| includedData | 否 | |\n| locale | 否 | |\n| catalogItemsVersion | 否 | |\n\n解析字段：**`catalogItem`**\n\n---\n\n## 5. includedData 示例（2022-04-01）\n\n`summaries`, `attributes`, `classifications`, `dimensions`, `identifiers`, `images`, `productTypes`, `relationships`, `salesRanks`, `vendorDetails`（以官方为准）。\n\n---\n\n## 6. 错误与白名单\n\n- **401**：HTTP 401 或 authorized error：按 SKILL.md 的 **## 解决认证和算力问题** 处理。\n- **402**：HTTP 402：按 SKILL.md 的 **## 解决认证和算力问题** 处理。\n- **403**：Catalog Items 权限不足。\n- **1005**（网关）：需放行 `catalog/v0/`、`catalog/2020-12-01/`、`catalog/2022-04-01/`。\n- **429**：按官方 usage plan 降频。\n\n---\n\n## 7. Feedback\n\n上报时注明 **`skillName`: `linkfox-amazon-store-catalog`**。\n\nFile v1.0.8:references/onboarding.md\n\n# 解决认证和算力问题\n\n调用本 skill 时若网关返回 **auth** 或 **billing** 错误，走本 skill 自带的 `scripts/onboarding.py` 完成引导。\n\n**auth 场景**：`errcode=401` 或消息含 `authorized error`/`鉴权失败`/`未授权`/`unauthorized`；或 `LINKFOX_AGENT_API_KEY` 与 `LINKFOXAGENT_API_KEY` 均为空。\n1. 若已配置 key → 先让用户重启会话（最常见误判），仍失败让用户重新取 key 或换手机号重注册\n2. 未配置 → 询问：自助去 https://agent.linkfox.com/ 取 key，或提供手机号让脚本注册\n3. 手机号路径：\n   - `python scripts/onboarding.py send-code <phone>` → 展示 JSON 里的 phone/agreements\n   - 收到验证码后：`python scripts/onboarding.py login <phone> <code>`\n   - 拿到 `api_key` 后把下面三平台配置转发给用户，提示重启会话生效：\n     - Windows PowerShell（永久）：`setx LINKFOX_AGENT_API_KEY \"<key>\"`\n     - macOS zsh：`echo 'export LINKFOX_AGENT_API_KEY=\"<key>\"' >> ~/.zshrc && source ~/.zshrc`\n     - Linux bash：`echo 'export LINKFOX_AGENT_API_KEY=\"<key>\"' >> ~/.bashrc && source ~/.bashrc`\n     - 变量名 `LINKFOX_AGENT_API_KEY`（主推）或 `LINKFOXAGENT_API_KEY`（老规范）任一即可\n\n**billing 场景**：`errcode=402` 或消息含 `算力/余额/quota/insufficient/充值/套餐到期`。\n- `python scripts/onboarding.py list-plans` → 有 AskUserQuestion 就弹菜单，否则输出编号清单让用户选\n- 校验 `plan_id` ∈ 清单、支付方式 ∈ 该套餐 `available_methods`（通常 `wechat/alipay`）\n- `python scripts/onboarding.py order <plan_id> <method>` → 展示优先级 PNG > `pay_url` > `ascii_qr`（标注兜底）\n- 已付款可选调 `python scripts/onboarding.py query <order_id>`，不主动轮询\n\n排除 `errcode=403`（无权限，不归入这两类）。所有子命令输出 stdout JSON，`error` 字段已含阶段前缀，透传给用户即可。完整用法：`python scripts/onboarding.py --help`。\n\nFile v1.0.8:skill-card.md\n\n## Description:\n\nHelps agents query Amazon SP-API Catalog Items through LinkFox by ASIN, keyword, identifier, or category to retrieve product details, summaries, images, and included catalog data.\n\nThis skill is ready for commercial/non-commercial use.\n\n## Publisher:\n\n[linkfox-ai](https://clawhub.ai/user/linkfox-ai)\n\n### License/Terms of Use:\n\nMIT-0\n\n## Use Case:\n\nExternal sellers, operators, and developers use this skill to look up Amazon catalog items for a selected seller account, region, and marketplace. It supports catalog research and store workflows that need item details, category nodes, summaries, images, or selected includedData fields.\n\n### Deployment Geography for Use:\n\nGlobal\n\n## Known Risks and Mitigations:\n\nRisk: Account login, API-key creation, and billing recovery flows may expose SMS codes or API keys in shared environments.\n\nMitigation: Use a private terminal, avoid entering SMS codes in shared sessions, and do not persist API keys in shell profiles on shared machines.\n\nRisk: Billing and order flows can present payment QR codes or payment URLs.\n\nMitigation: Verify the plan, amount, order identifier, and payment method before scanning a QR code or opening a payment URL.\n\nRisk: Full catalog responses are stored locally under the workspace linkfox session directory.\n\nMitigation: Review the saved-file location before use and retain or delete response files according to the user's data-handling policy.\n\nRisk: Repeated invalid or high-frequency SP-API calls can trigger temporary store-protection cooldowns.\n\nMitigation: Stop automatic retries on 400, 403, 404, or 429 style failures, follow retryAfter or blockedUntil when present, and correct parameters or authorization before retrying.\n\n## Reference(s):\n\n- [ClawHub Skill Page](https://clawhub.ai/linkfox-ai/skills/linkfox-amazon-store-catalog)\n- [API Reference](references/api.md)\n- [Authentication and Billing Onboarding](references/onboarding.md)\n- [Amazon SP-API listCatalogCategories](https://developer-docs.amazon.com/sp-api/reference/listcatalogcategories)\n- [Amazon SP-API searchCatalogItems](https://developer-docs.amazon.com/sp-api/reference/searchcatalogitems)\n- [Amazon SP-API getCatalogItem](https://developer-docs.amazon.com/sp-api/reference/getcatalogitem)\n\n## Skill Output:\n\n**Output Type(s):** [text, markdown, shell commands, configuration, guidance]\n\n**Output Format:** [JSON responses saved to local files, with stdout summaries for large responses and full inline JSON when requested.]\n\n**Output Parameters:** [1D]\n\n**Other Properties Related to Output:** [Full responses are written under the current workspace linkfox session directory; the skill can also provide setup commands for LinkFox API-key configuration.]\n\n## Skill Version(s):\n\n1.0.8 (source: server release evidence)\n\n## Ethical Considerations:\n\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.\n\nArchive v1.0.7: 11 files, 26774 bytes\n\nFiles: references/api.md (3198b), references/onboarding.md (2046b), scripts/_spapi_catalog_common.py (12790b), scripts/check_auth_dependency.py (6078b), scripts/get_catalog_item.py (2628b), scripts/list_catalog_categories.py (2538b), scripts/onboarding.py (24089b), scripts/search_catalog_items.py (5109b), skill-card.md (2712b), SKILL.md (5744b), _meta.json (147b)\n\nFile v1.0.7:SKILL.md\n\n---\nname: linkfox-amazon-store-catalog\ndescription: 亚马逊店铺商品目录 Catalog（与 linkfox-amazon-store-auth / report / listings / pricing / orders / feeds 同系列），经 /spApi/developerProxy 调用 SP-API Catalog Items：v0 listCatalogCategories；v2022-04-01（默认）或 v2020-12-01 的 searchCatalogItems、getCatalogItem。当用户提到亚马逊目录、Catalog Items、listCatalogCategories、searchCatalogItems、getCatalogItem、按 ASIN 查目录、关键词搜商品目录、类目节点、includedData、summaries/images 时触发。\n---\n\n# Amazon 店铺 Catalog Items\n\n本 skill 与 **`linkfox-amazon-store-auth`** 等同属 **Amazon Store** 系列：依赖 **`linkfox-amazon-store-auth`** 选店（`sellerId`+`region`）；直接 **`POST /spApi/developerProxy`** 传入 `sellerId`+`region`，由服务端解析 token（勿传 `amzAccessToken`，除非兼容旧调用）。转发 **GET**。\n\n## 调用方式\n\n- **API 端点**：`POST /spApi/developerProxy`（不同操作通过请求体区分；完整参数/响应/错误码见 `references/api.md`）\n- **Python 脚本**：`python scripts/<脚本名>.py '<JSON 参数>' [--inline]`（可用脚本见上文脚本一览）\n- **成本约束**：本工具会消耗积分；失败/空结果不得自动换关键词、翻页或连续试探；需要继续检索时先向用户说明会产生额外消耗。\n\n**输出策略（脚本默认行为）**：\n- **始终**将完整响应写入 `<cwd>/linkfox/<YYYY-MM-DD>/<session>/data/linkfox-amazon-store-catalog-<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\n| 能力 | 文档 |\n|------|------|\n| listCatalogCategories | [listCatalogCategories](https://developer-docs.amazon.com/sp-api/reference/listcatalogcategories) |\n| searchCatalogItems | [searchCatalogItems](https://developer-docs.amazon.com/sp-api/reference/searchcatalogitems) |\n| getCatalogItem | [getCatalogItem](https://developer-docs.amazon.com/sp-api/reference/getcatalogitem) |\n\n---\n\n## Prerequisites\n\n1. 依赖 **`linkfox-amazon-store-auth`**；`python scripts/check_auth_dependency.py`，exit **42** 时需先安装授权 skill。\n2. 应用需具备 **Catalog Items** 相关角色；`searchCatalogItems` 按 **identifiers+SKU** 检索时 query 须带 **`sellerId`**（脚本在 `identifiersType=SKU` 时自动使用入参 `sellerId`）。\n\n---\n\n## Current Capabilities\n\n| 能力 | path | 脚本 |\n|------|------|------|\n| listCatalogCategories | `catalog/v0/categories` | `list_catalog_categories.py` |\n| searchCatalogItems | `catalog/{2022-04-01\\|2020-12-01}/items` | `search_catalog_items.py` |\n| getCatalogItem | `catalog/{version}/items/{asin}` | `get_catalog_item.py` |\n\n默认 Catalog Items 版本：**`2022-04-01`**；入参 **`catalogItemsVersion`** 可改为 **`2020-12-01`**。\n\n共享模块：**`_spapi_catalog_common.py`**。\n\n---\n\n## Quick Parameters\n\n- **listCatalogCategories**：`marketplaceId` + **`asin`** 或 **`sellerSku`**（二选一）。\n- **searchCatalogItems**：`marketplaceIds` + **`keywords`** 或 **`identifiers` + `identifiersType`**（互斥）；可选 `includedData`、`brandNames`、`classificationIds`、`pageSize`、`pageToken`。\n- **getCatalogItem**：`asin`、`marketplaceIds`；可选 `includedData`、`locale`。\n\n---\n\n## Scripts\n\n```bash\nexport LINKFOXAGENT_API_KEY=\"<your-key>\"\n\npython scripts/list_catalog_categories.py '{\"sellerId\":\"A1...\",\"region\":\"NA\",\"marketplaceId\":\"ATVPDKIKX0DER\",\"asin\":\"B08N5WRWNW\"}'\n\npython scripts/search_catalog_items.py '{\"sellerId\":\"A1...\",\"region\":\"NA\",\"marketplaceIds\":[\"ATVPDKIKX0DER\"],\"keywords\":[\"wireless mouse\"]}'\n\npython scripts/get_catalog_item.py '{\"sellerId\":\"A1...\",\"region\":\"NA\",\"asin\":\"B08N5WRWNW\",\"marketplaceIds\":[\"ATVPDKIKX0DER\"],\"includedData\":[\"summaries\",\"images\"]}'\n```\n\n---\n\n## Display Rules\n\n1. 先看 **`developerProxy.errcode` / `httpStatus`**，再读 **`categories`** / **`catalogItems`** / **`catalogItem`**。\n2. **listCatalogCategories** 使用 v0 查询键 **`MarketplaceId`**（单数），与 search/get 的 **`marketplaceIds`** 不同。\n3. 网关 path 白名单需包含 **`catalog/v0/`** 与 **`catalog/2022-04-01/`**（或 `2020-12-01`）。\n\n---\n\n## Important Limitations\n\n- 本 skill 读的是 **Amazon 商品目录（Catalog）**，不是卖家订单；订单见 **`linkfox-amazon-store-orders`**。\n- `includedData`、返回字段以 Amazon schema 为准，详见 **`references/api.md`**。\n\n## 积分消耗规则\n\n不消耗积分。\n\n**Feedback：** `skillName`：`linkfox-amazon-store-catalog`。\n\n---\n*更多跨境 skill：[LinkFox Skills](https://skill.linkfox.com/)*\n\nFile v1.0.7:_meta.json\n\n{\n  \"ownerId\": \"kn7dmc1t4j28hem1twwyav85p182pb1j\",\n  \"slug\": \"linkfox-amazon-store-catalog\",\n  \"version\": \"1.0.7\",\n  \"publishedAt\": 1786718669106\n}\n\nFile v1.0.7:references/api.md\n\n# linkfox-amazon-store-catalog — API 参考\n\n经 **LinkFox** `storeTokens` + `developerProxy` 调用 SP-API **Catalog Items**（与 listings / pricing 系列相同）。\n\n环境变量：`LINKFOX_AGENT_API_KEY`（或 `LINKFOXAGENT_API_KEY`）（如未配置 按 SKILL.md 的 **## 解决认证和积分问题** 处理）；可选 `LINKFOX_TOOL_GATEWAY`（回退 `STORE_API_BASE_URL` / `SPAPI_BASE_URL`，默认 `https://tool-gateway.linkfox.com`）。\n\n---\n\n## 1. 脚本与 path\n\n| 脚本 | method | path |\n|------|--------|------|\n| `list_catalog_categories.py` | GET | `catalog/v0/categories` |\n| `search_catalog_items.py` | GET | `catalog/2022-04-01/items`（默认） |\n| `get_catalog_item.py` | GET | `catalog/2022-04-01/items/{asin}`（默认） |\n\n`catalogItemsVersion` 可选 **`2020-12-01`**，path 中版本段随之替换。\n\n---\n\n## 2. listCatalogCategories（v0）\n\n### 入参（JSON）\n\n| 字段 | 必填 | 说明 |\n|------|------|------|\n| sellerId, region | 是 | 店铺与区域 |\n| marketplaceId / marketplaceIds | 是 | 仅使用**第一个**站点 ID → query **`MarketplaceId`** |\n| asin / ASIN | 条件 | 与 sellerSku **二选一** |\n| sellerSku / SellerSKU | 条件 | 与 asin **二选一** |\n\n### Query（大小写敏感）\n\n- `MarketplaceId`\n- `ASIN` 或 `SellerSKU`\n\n解析字段：**`categories`**\n\n---\n\n## 3. searchCatalogItems\n\n### 入参\n\n| 字段 | 必填 | 说明 |\n|------|------|------|\n| marketplaceIds | 是 | 文档通常 ≤1 个 |\n| keywords | 条件 | 与 identifiers **互斥**，最多 20 个 |\n| identifiers | 条件 | 最多 20 个；须配 **identifiersType** |\n| identifiersType | 条件 | ASIN, EAN, GTIN, ISBN, JAN, MINSAN, SKU, UPC |\n| includedData | 否 | summaries, images, attributes, salesRanks 等 |\n| brandNames, classificationIds | 否 | 限缩关键词搜索 |\n| locale, keywordsLocale | 否 | |\n| pageSize | 否 | 1～20，默认 10 |\n| pageToken | 否 | 分页 |\n| catalogItemsVersion | 否 | `2022-04-01`（默认）或 `2020-12-01` |\n| sellerIdForCatalog | 否 | 覆盖 query 中的 sellerId（默认用 sellerId） |\n\n当 **identifiersType=SKU** 时，Amazon 要求 query 带 **sellerId**；脚本默认使用 JSON 里的 **sellerId**。\n\n解析字段：**`catalogItems`**\n\n---\n\n## 4. getCatalogItem\n\n| 字段 | 必填 | 说明 |\n|------|------|------|\n| asin | 是 | path 段 |\n| marketplaceIds | 是 | |\n| includedData | 否 | |\n| locale | 否 | |\n| catalogItemsVersion | 否 | |\n\n解析字段：**`catalogItem`**\n\n---\n\n## 5. includedData 示例（2022-04-01）\n\n`summaries`, `attributes`, `classifications`, `dimensions`, `identifiers`, `images`, `productTypes`, `relationships`, `salesRanks`, `vendorDetails`（以官方为准）。\n\n---\n\n## 6. 错误与白名单\n\n- **401**：HTTP 401 或 authorized error：按 SKILL.md 的 **## 解决认证和积分问题** 处理。\n- **402**：HTTP 402：按 SKILL.md 的 **## 解决认证和积分问题** 处理。\n- **403**：Catalog Items 权限不足。\n- **1005**（网关）：需放行 `catalog/v0/`、`catalog/2020-12-01/`、`catalog/2022-04-01/`。\n- **429**：按官方 usage plan 降频。\n\n---\n\n## 7. Feedback\n\n上报时注明 **`skillName`: `linkfox-amazon-store-catalog`**。\n\nFile v1.0.7:references/onboarding.md\n\n# 解决认证和积分问题\n\n调用本 skill 时若网关返回 **auth** 或 **billing** 错误，走本 skill 自带的 `scripts/onboarding.py` 完成引导。\n\n**auth 场景**：`errcode=401` 或消息含 `authorized error`/`鉴权失败`/`未授权`/`unauthorized`；或 `LINKFOX_AGENT_API_KEY` 与 `LINKFOXAGENT_API_KEY` 均为空。\n1. 若已配置 key → 先让用户重启会话（最常见误判），仍失败让用户重新取 key 或换手机号重注册\n2. 未配置 → 询问：自助去 https://agent.linkfox.com/ 取 key，或提供手机号让脚本注册\n3. 手机号路径：\n   - `python scripts/onboarding.py send-code <phone>` → 展示 JSON 里的 phone/agreements\n   - 收到验证码后：`python scripts/onboarding.py login <phone> <code>`（workbuddy 宿主加 `--channel workbuddy`）\n   - 拿到 `api_key` 后把下面三平台配置转发给用户，提示重启会话生效：\n     - Windows PowerShell（永久）：`setx LINKFOX_AGENT_API_KEY \"<key>\"`\n     - macOS zsh：`echo 'export LINKFOX_AGENT_API_KEY=\"<key>\"' >> ~/.zshrc && source ~/.zshrc`\n     - Linux bash：`echo 'export LINKFOX_AGENT_API_KEY=\"<key>\"' >> ~/.bashrc && source ~/.bashrc`\n     - 变量名 `LINKFOX_AGENT_API_KEY`（主推）或 `LINKFOXAGENT_API_KEY`（老规范）任一即可\n\n**billing 场景**：`errcode=402` 或消息含 `积分/余额/quota/insufficient/充值/套餐到期`。\n- `python scripts/onboarding.py list-plans` → 有 AskUserQuestion 就弹菜单，否则输出编号清单让用户选\n- 校验 `plan_id` ∈ 清单、支付方式 ∈ 该套餐 `available_methods`（通常 `wechat/alipay`）\n- `python scripts/onboarding.py order <plan_id> <method>` → 展示优先级 PNG > `pay_url` > `ascii_qr`（标注兜底）\n- 已付款可选调 `python scripts/onboarding.py query <order_id>`，不主动轮询\n\n排除 `errcode=403`（无权限，不归入这两类）。所有子命令输出 stdout JSON，`error` 字段已含阶段前缀，透传给用户即可。完整用法：`python scripts/onboarding.py --help`。\n\nFile v1.0.7:skill-card.md\n\n## Description:\n\nHelps agents look up Amazon store catalog categories and catalog item data by ASIN, SKU, keywords, or identifiers through LinkFox-supported SP-API Catalog Items workflows.\n\nThis skill is ready for commercial/non-commercial use.\n\n## Publisher:\n\n[linkfox-ai](https://clawhub.ai/user/linkfox-ai)\n\n### License/Terms of Use:\n\nMIT-0\n\n## Use Case:\n\nExternal developers and Amazon store operators use this skill to retrieve catalog categories, search catalog items, and fetch item details for store catalog workflows.\n\n### Deployment Geography for Use:\n\nGlobal\n\n## Known Risks and Mitigations:\n\nRisk: The security verdict is suspicious because the skill can perform account login, API key issuance, paid order creation, and local plaintext response storage in addition to catalog reads.\n\nMitigation: Review the skill before installation, use it only in a trusted workspace, treat printed API keys as secrets, and confirm billing behavior before running onboarding purchase commands.\n\nRisk: Endpoint override environment variables can redirect requests away from the default LinkFox gateway.\n\nMitigation: Set endpoint override variables only when the destination is controlled and expected.\n\nRisk: Saved API responses may contain sensitive catalog or account-adjacent data.\n\nMitigation: Restrict workspace access and remove generated response files when they are no longer needed.\n\n## Reference(s):\n\n- [API reference](artifact/references/api.md)\n- [Authentication and billing onboarding](artifact/references/onboarding.md)\n- [Amazon SP-API listCatalogCategories](https://developer-docs.amazon.com/sp-api/reference/listcatalogcategories)\n- [Amazon SP-API searchCatalogItems](https://developer-docs.amazon.com/sp-api/reference/searchcatalogitems)\n- [Amazon SP-API getCatalogItem](https://developer-docs.amazon.com/sp-api/reference/getcatalogitem)\n- [ClawHub skill page](https://clawhub.ai/linkfox-ai/skills/linkfox-amazon-store-catalog)\n\n## Skill Output:\n\n**Output Type(s):** [text, markdown, code, shell commands, configuration, guidance]\n\n**Output Format:** [Markdown guidance, shell command examples, and JSON responses or summaries from helper scripts]\n\n**Output Parameters:** [1D]\n\n**Other Properties Related to Output:** [Scripts write full API responses under the current workspace's linkfox date/session data directory and may print full JSON or a summary to stdout.]\n\n## Skill Version(s):\n\n1.0.7 (source: server release metadata)\n\n## Ethical Considerations:\n\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.\n\nArchive v1.0.6: 11 files, 27010 bytes\n\nFiles: references/api.md (3198b), references/onboarding.md (2046b), scripts/_spapi_catalog_common.py (12790b), scripts/check_auth_dependency.py (6078b), scripts/get_catalog_item.py (2628b), scripts/list_catalog_categories.py (2538b), scripts/onboarding.py (24089b), scripts/search_catalog_items.py (5109b), skill-card.md (3057b), SKILL.md (5744b), _meta.json (147b)\n\nFile v1.0.6:SKILL.md\n\n---\nname: linkfox-amazon-store-catalog\ndescription: 亚马逊店铺商品目录 Catalog（与 linkfox-amazon-store-auth / report / listings / pricing / orders / feeds 同系列），经 /spApi/developerProxy 调用 SP-API Catalog Items：v0 listCatalogCategories；v2022-04-01（默认）或 v2020-12-01 的 searchCatalogItems、getCatalogItem。当用户提到亚马逊目录、Catalog Items、listCatalogCategories、searchCatalogItems、getCatalogItem、按 ASIN 查目录、关键词搜商品目录、类目节点、includedData、summaries/images 时触发。\n---\n\n# Amazon 店铺 Catalog Items\n\n本 skill 与 **`linkfox-amazon-store-auth`** 等同属 **Amazon Store** 系列：依赖 **`linkfox-amazon-store-auth`** 选店（`sellerId`+`region`）；直接 **`POST /spApi/developerProxy`** 传入 `sellerId`+`region`，由服务端解析 token（勿传 `amzAccessToken`，除非兼容旧调用）。转发 **GET**。\n\n## 调用方式\n\n- **API 端点**：`POST /spApi/developerProxy`（不同操作通过请求体区分；完整参数/响应/错误码见 `references/api.md`）\n- **Python 脚本**：`python scripts/<脚本名>.py '<JSON 参数>' [--inline]`（可用脚本见上文脚本一览）\n- **成本约束**：本工具会消耗积分；失败/空结果不得自动换关键词、翻页或连续试探；需要继续检索时先向用户说明会产生额外消耗。\n\n**输出策略（脚本默认行为）**：\n- **始终**将完整响应写入 `<cwd>/linkfox/<YYYY-MM-DD>/<session>/data/linkfox-amazon-store-catalog-<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\n| 能力 | 文档 |\n|------|------|\n| listCatalogCategories | [listCatalogCategories](https://developer-docs.amazon.com/sp-api/reference/listcatalogcategories) |\n| searchCatalogItems | [searchCatalogItems](https://developer-docs.amazon.com/sp-api/reference/searchcatalogitems) |\n| getCatalogItem | [getCatalogItem](https://developer-docs.amazon.com/sp-api/reference/getcatalogitem) |\n\n---\n\n## Prerequisites\n\n1. 依赖 **`linkfox-amazon-store-auth`**；`python scripts/check_auth_dependency.py`，exit **42** 时需先安装授权 skill。\n2. 应用需具备 **Catalog Items** 相关角色；`searchCatalogItems` 按 **identifiers+SKU** 检索时 query 须带 **`sellerId`**（脚本在 `identifiersType=SKU` 时自动使用入参 `sellerId`）。\n\n---\n\n## Current Capabilities\n\n| 能力 | path | 脚本 |\n|------|------|------|\n| listCatalogCategories | `catalog/v0/categories` | `list_catalog_categories.py` |\n| searchCatalogItems | `catalog/{2022-04-01\\|2020-12-01}/items` | `search_catalog_items.py` |\n| getCatalogItem | `catalog/{version}/items/{asin}` | `get_catalog_item.py` |\n\n默认 Catalog Items 版本：**`2022-04-01`**；入参 **`catalogItemsVersion`** 可改为 **`2020-12-01`**。\n\n共享模块：**`_spapi_catalog_common.py`**。\n\n---\n\n## Quick Parameters\n\n- **listCatalogCategories**：`marketplaceId` + **`asin`** 或 **`sellerSku`**（二选一）。\n- **searchCatalogItems**：`marketplaceIds` + **`keywords`** 或 **`identifiers` + `identifiersType`**（互斥）；可选 `includedData`、`brandNames`、`classificationIds`、`pageSize`、`pageToken`。\n- **getCatalogItem**：`asin`、`marketplaceIds`；可选 `includedData`、`locale`。\n\n---\n\n## Scripts\n\n```bash\nexport LINKFOXAGENT_API_KEY=\"<your-key>\"\n\npython scripts/list_catalog_categories.py '{\"sellerId\":\"A1...\",\"region\":\"NA\",\"marketplaceId\":\"ATVPDKIKX0DER\",\"asin\":\"B08N5WRWNW\"}'\n\npython scripts/search_catalog_items.py '{\"sellerId\":\"A1...\",\"region\":\"NA\",\"marketplaceIds\":[\"ATVPDKIKX0DER\"],\"keywords\":[\"wireless mouse\"]}'\n\npython scripts/get_catalog_item.py '{\"sellerId\":\"A1...\",\"region\":\"NA\",\"asin\":\"B08N5WRWNW\",\"marketplaceIds\":[\"ATVPDKIKX0DER\"],\"includedData\":[\"summaries\",\"images\"]}'\n```\n\n---\n\n## Display Rules\n\n1. 先看 **`developerProxy.errcode` / `httpStatus`**，再读 **`categories`** / **`catalogItems`** / **`catalogItem`**。\n2. **listCatalogCategories** 使用 v0 查询键 **`MarketplaceId`**（单数），与 search/get 的 **`marketplaceIds`** 不同。\n3. 网关 path 白名单需包含 **`catalog/v0/`** 与 **`catalog/2022-04-01/`**（或 `2020-12-01`）。\n\n---\n\n## Important Limitations\n\n- 本 skill 读的是 **Amazon 商品目录（Catalog）**，不是卖家订单；订单见 **`linkfox-amazon-store-orders`**。\n- `includedData`、返回字段以 Amazon schema 为准，详见 **`references/api.md`**。\n\n## 积分消耗规则\n\n不消耗积分。\n\n**Feedback：** `skillName`：`linkfox-amazon-store-catalog`。\n\n---\n*更多跨境 skill：[LinkFox Skills](https://skill.linkfox.com/)*\n\nFile v1.0.6:_meta.json\n\n{\n  \"ownerId\": \"kn7dmc1t4j28hem1twwyav85p182pb1j\",\n  \"slug\": \"linkfox-amazon-store-catalog\",\n  \"version\": \"1.0.6\",\n  \"publishedAt\": 1786099297260\n}\n\nFile v1.0.6:references/api.md\n\n# linkfox-amazon-store-catalog — API 参考\n\n经 **LinkFox** `storeTokens` + `developerProxy` 调用 SP-API **Catalog Items**（与 listings / pricing 系列相同）。\n\n环境变量：`LINKFOX_AGENT_API_KEY`（或 `LINKFOXAGENT_API_KEY`）（如未配置 按 SKILL.md 的 **## 解决认证和积分问题** 处理）；可选 `LINKFOX_TOOL_GATEWAY`（回退 `STORE_API_BASE_URL` / `SPAPI_BASE_URL`，默认 `https://tool-gateway.linkfox.com`）。\n\n---\n\n## 1. 脚本与 path\n\n| 脚本 | method | path |\n|------|--------|------|\n| `list_catalog_categories.py` | GET | `catalog/v0/categories` |\n| `search_catalog_items.py` | GET | `catalog/2022-04-01/items`（默认） |\n| `get_catalog_item.py` | GET | `catalog/2022-04-01/items/{asin}`（默认） |\n\n`catalogItemsVersion` 可选 **`2020-12-01`**，path 中版本段随之替换。\n\n---\n\n## 2. listCatalogCategories（v0）\n\n### 入参（JSON）\n\n| 字段 | 必填 | 说明 |\n|------|------|------|\n| sellerId, region | 是 | 店铺与区域 |\n| marketplaceId / marketplaceIds | 是 | 仅使用**第一个**站点 ID → query **`MarketplaceId`** |\n| asin / ASIN | 条件 | 与 sellerSku **二选一** |\n| sellerSku / SellerSKU | 条件 | 与 asin **二选一** |\n\n### Query（大小写敏感）\n\n- `MarketplaceId`\n- `ASIN` 或 `SellerSKU`\n\n解析字段：**`categories`**\n\n---\n\n## 3. searchCatalogItems\n\n### 入参\n\n| 字段 | 必填 | 说明 |\n|------|------|------|\n| marketplaceIds | 是 | 文档通常 ≤1 个 |\n| keywords | 条件 | 与 identifiers **互斥**，最多 20 个 |\n| identifiers | 条件 | 最多 20 个；须配 **identifiersType** |\n| identifiersType | 条件 | ASIN, EAN, GTIN, ISBN, JAN, MINSAN, SKU, UPC |\n| includedData | 否 | summaries, images, attributes, salesRanks 等 |\n| brandNames, classificationIds | 否 | 限缩关键词搜索 |\n| locale, keywordsLocale | 否 | |\n| pageSize | 否 | 1～20，默认 10 |\n| pageToken | 否 | 分页 |\n| catalogItemsVersion | 否 | `2022-04-01`（默认）或 `2020-12-01` |\n| sellerIdForCatalog | 否 | 覆盖 query 中的 sellerId（默认用 sellerId） |\n\n当 **identifiersType=SKU** 时，Amazon 要求 query 带 **sellerId**；脚本默认使用 JSON 里的 **sellerId**。\n\n解析字段：**`catalogItems`**\n\n---\n\n## 4. getCatalogItem\n\n| 字段 | 必填 | 说明 |\n|------|------|------|\n| asin | 是 | path 段 |\n| marketplaceIds | 是 | |\n| includedData | 否 | |\n| locale | 否 | |\n| catalogItemsVersion | 否 | |\n\n解析字段：**`catalogItem`**\n\n---\n\n## 5. includedData 示例（2022-04-01）\n\n`summaries`, `attributes`, `classifications`, `dimensions`, `identifiers`, `images`, `productTypes`, `relationships`, `salesRanks`, `vendorDetails`（以官方为准）。\n\n---\n\n## 6. 错误与白名单\n\n- **401**：HTTP 401 或 authorized error：按 SKILL.md 的 **## 解决认证和积分问题** 处理。\n- **402**：HTTP 402：按 SKILL.md 的 **## 解决认证和积分问题** 处理。\n- **403**：Catalog Items 权限不足。\n- **1005**（网关）：需放行 `catalog/v0/`、`catalog/2020-12-01/`、`catalog/2022-04-01/`。\n- **429**：按官方 usage plan 降频。\n\n---\n\n## 7. Feedback\n\n上报时注明 **`skillName`: `linkfox-amazon-store-catalog`**。\n\nFile v1.0.6:references/onboarding.md\n\n# 解决认证和积分问题\n\n调用本 skill 时若网关返回 **auth** 或 **billing** 错误，走本 skill 自带的 `scripts/onboarding.py` 完成引导。\n\n**auth 场景**：`errcode=401` 或消息含 `authorized error`/`鉴权失败`/`未授权`/`unauthorized`；或 `LINKFOX_AGENT_API_KEY` 与 `LINKFOXAGENT_API_KEY` 均为空。\n1. 若已配置 key → 先让用户重启会话（最常见误判），仍失败让用户重新取 key 或换手机号重注册\n2. 未配置 → 询问：自助去 https://agent.linkfox.com/ 取 key，或提供手机号让脚本注册\n3. 手机号路径：\n   - `python scripts/onboarding.py send-code <phone>` → 展示 JSON 里的 phone/agreements\n   - 收到验证码后：`python scripts/onboarding.py login <phone> <code>`（workbuddy 宿主加 `--channel workbuddy`）\n   - 拿到 `api_key` 后把下面三平台配置转发给用户，提示重启会话生效：\n     - Windows PowerShell（永久）：`setx LINKFOX_AGENT_API_KEY \"<key>\"`\n     - macOS zsh：`echo 'export LINKFOX_AGENT_API_KEY=\"<key>\"' >> ~/.zshrc && source ~/.zshrc`\n     - Linux bash：`echo 'export LINKFOX_AGENT_API_KEY=\"<key>\"' >> ~/.bashrc && source ~/.bashrc`\n     - 变量名 `LINKFOX_AGENT_API_KEY`（主推）或 `LINKFOXAGENT_API_KEY`（老规范）任一即可\n\n**billing 场景**：`errcode=402` 或消息含 `积分/余额/quota/insufficient/充值/套餐到期`。\n- `python scripts/onboarding.py list-plans` → 有 AskUserQuestion 就弹菜单，否则输出编号清单让用户选\n- 校验 `plan_id` ∈ 清单、支付方式 ∈ 该套餐 `available_methods`（通常 `wechat/alipay`）\n- `python scripts/onboarding.py order <plan_id> <method>` → 展示优先级 PNG > `pay_url` > `ascii_qr`（标注兜底）\n- 已付款可选调 `python scripts/onboarding.py query <order_id>`，不主动轮询\n\n排除 `errcode=403`（无权限，不归入这两类）。所有子命令输出 stdout JSON，`error` 字段已含阶段前缀，透传给用户即可。完整用法：`python scripts/onboarding.py --help`。\n\nFile v1.0.6:skill-card.md\n\n## Description:\n\n亚马逊店铺商品目录 Catalog（与 linkfox-amazon-store-auth / report / listings / pricing / orders / feeds 同系列），经 /spApi/developerProxy 调用 SP-API Catalog Items：v0 listCatalogCategories；v2022-04-01（默认）或 v2020-12-01 的 searchCatalogItems、getCatalogItem。当用户提到亚马逊目录、Catalog Items、listCatalogCategories、searchCatalogItems、getCatalogItem、按 ASIN 查目录、关键词搜商品目录、类目节点、includedData、summaries/images 时触发。\n\nThis skill is ready for commercial/non-commercial use.\n\n## Publisher:\n\n[linkfox-ai](https://clawhub.ai/user/linkfox-ai)\n\n### License/Terms of Use:\n\nMIT-0\n\n## Use Case:\n\nExternal Amazon sellers and marketplace operators use this skill to let an agent retrieve Amazon SP-API Catalog Items data through LinkFox, including category lookup, keyword or identifier search, and ASIN-level catalog item retrieval.\n\n### Deployment Geography for Use:\n\nGlobal\n\n## Known Risks and Mitigations:\n\nRisk: Full API responses are saved locally and may contain catalog or account-related data.\n\nMitigation: Keep the generated linkfox data directory out of source control and inspect only the response fields needed for the task.\n\nRisk: The onboarding helper can assist with LinkFox login, API-key generation, and paid credit purchase flows.\n\nMitigation: Require explicit user confirmation before running token-generation, plan selection, order creation, or payment-related commands.\n\nRisk: Endpoint environment variables can redirect requests away from the default LinkFox gateway.\n\nMitigation: Verify LinkFox gateway and API environment variables before execution.\n\n## Reference(s):\n\n- [ClawHub Skill Page](https://clawhub.ai/linkfox-ai/skills/linkfox-amazon-store-catalog)\n- [API Reference](references/api.md)\n- [Authentication and Billing Onboarding](references/onboarding.md)\n- [Amazon SP-API listCatalogCategories](https://developer-docs.amazon.com/sp-api/reference/listcatalogcategories)\n- [Amazon SP-API searchCatalogItems](https://developer-docs.amazon.com/sp-api/reference/searchcatalogitems)\n- [Amazon SP-API getCatalogItem](https://developer-docs.amazon.com/sp-api/reference/getcatalogitem)\n- [LinkFox Skills](https://skill.linkfox.com/)\n\n## Skill Output:\n\n**Output Type(s):** [text, markdown, code, shell commands, configuration, guidance]\n\n**Output Format:** [Markdown guidance, shell commands, and JSON responses or summaries with full response files saved locally]\n\n**Output Parameters:** [1D]\n\n**Other Properties Related to Output:** [Catalog scripts save complete LinkFox API responses under the current working directory and summarize large responses on stdout unless inline output is requested.]\n\n## Skill Version(s):\n\n1.0.6 (source: ClawHub release evidence)\n\n## Ethical Considerations:\n\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.\n\nArchive v1.0.5: 9 files, 18038 bytes\n\nFiles: references/api.md (3198b), scripts/_spapi_catalog_common.py (12802b), scripts/check_auth_dependency.py (6078b), scripts/get_catalog_item.py (2855b), scripts/list_catalog_categories.py (2765b), scripts/search_catalog_items.py (5336b), skill-card.md (2797b), SKILL.md (6212b), _meta.json (147b)\n\nFile v1.0.5:SKILL.md\n\n---\nname: linkfox-amazon-store-catalog\ndescription: 亚马逊店铺商品目录 Catalog（与 linkfox-amazon-store-auth / report / listings / pricing / orders / feeds 同系列），经 /spApi/developerProxy 调用 SP-API Catalog Items：v0 listCatalogCategories；v2022-04-01（默认）或 v2020-12-01 的 searchCatalogItems、getCatalogItem。当用户提到亚马逊目录、Catalog Items、listCatalogCategories、searchCatalogItems、getCatalogItem、按 ASIN 查目录、关键词搜商品目录、类目节点、includedData、summaries/images 时触发。\n---\n\n# Amazon 店铺 Catalog Items\n\n本 skill 与 **`linkfox-amazon-store-auth`** 等同属 **Amazon Store** 系列：先 **`POST /spApi/storeTokens`**，再 **`POST /spApi/developerProxy`** 转发 **GET**。\n\n## 调用方式\n\n- **API 端点**：`POST /spApi/developerProxy`（不同操作通过请求体区分；完整参数/响应/错误码见 `references/api.md`）\n- **Python 脚本**：`python scripts/<脚本名>.py '<JSON 参数>' [--inline]`（可用脚本见上文脚本一览）\n- **成本约束**：本工具会消耗积分；失败/空结果不得自动换关键词、翻页或连续试探；需要继续检索时先向用户说明会产生额外消耗。\n\n**输出策略（脚本默认行为）**：\n- **始终**将完整响应写入 `<cwd>/linkfox/<YYYY-MM-DD>/<session>/data/linkfox-amazon-store-catalog-<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\n| 能力 | 文档 |\n|------|------|\n| listCatalogCategories | [listCatalogCategories](https://developer-docs.amazon.com/sp-api/reference/listcatalogcategories) |\n| searchCatalogItems | [searchCatalogItems](https://developer-docs.amazon.com/sp-api/reference/searchcatalogitems) |\n| getCatalogItem | [getCatalogItem](https://developer-docs.amazon.com/sp-api/reference/getcatalogitem) |\n\n---\n\n## Prerequisites\n\n1. 依赖 **`linkfox-amazon-store-auth`**；`python scripts/check_auth_dependency.py`，exit **42** 时需先安装授权 skill。\n2. 应用需具备 **Catalog Items** 相关角色；`searchCatalogItems` 按 **identifiers+SKU** 检索时 query 须带 **`sellerId`**（脚本在 `identifiersType=SKU` 时自动使用入参 `sellerId`）。\n\n---\n\n## Current Capabilities\n\n| 能力 | path | 脚本 |\n|------|------|------|\n| listCatalogCategories | `catalog/v0/categories` | `list_catalog_categories.py` |\n| searchCatalogItems | `catalog/{2022-04-01\\|2020-12-01}/items` | `search_catalog_items.py` |\n| getCatalogItem | `catalog/{version}/items/{asin}` | `get_catalog_item.py` |\n\n默认 Catalog Items 版本：**`2022-04-01`**；入参 **`catalogItemsVersion`** 可改为 **`2020-12-01`**。\n\n共享模块：**`_spapi_catalog_common.py`**。\n\n---\n\n## Quick Parameters\n\n- **listCatalogCategories**：`marketplaceId` + **`asin`** 或 **`sellerSku`**（二选一）。\n- **searchCatalogItems**：`marketplaceIds` + **`keywords`** 或 **`identifiers` + `identifiersType`**（互斥）；可选 `includedData`、`brandNames`、`classificationIds`、`pageSize`、`pageToken`。\n- **getCatalogItem**：`asin`、`marketplaceIds`；可选 `includedData`、`locale`。\n\n---\n\n## Scripts\n\n```bash\nexport LINKFOXAGENT_API_KEY=\"<your-key>\"\n\npython scripts/list_catalog_categories.py '{\"sellerId\":\"A1...\",\"region\":\"NA\",\"marketplaceId\":\"ATVPDKIKX0DER\",\"asin\":\"B08N5WRWNW\"}'\n\npython scripts/search_catalog_items.py '{\"sellerId\":\"A1...\",\"region\":\"NA\",\"marketplaceIds\":[\"ATVPDKIKX0DER\"],\"keywords\":[\"wireless mouse\"]}'\n\npython scripts/get_catalog_item.py '{\"sellerId\":\"A1...\",\"region\":\"NA\",\"asin\":\"B08N5WRWNW\",\"marketplaceIds\":[\"ATVPDKIKX0DER\"],\"includedData\":[\"summaries\",\"images\"]}'\n```\n\n---\n\n## Display Rules\n\n1. 先看 **`developerProxy.errcode` / `httpStatus`**，再读 **`categories`** / **`catalogItems`** / **`catalogItem`**。\n2. **listCatalogCategories** 使用 v0 查询键 **`MarketplaceId`**（单数），与 search/get 的 **`marketplaceIds`** 不同。\n3. 网关 path 白名单需包含 **`catalog/v0/`** 与 **`catalog/2022-04-01/`**（或 `2020-12-01`）。\n\n---\n\n## Important Limitations\n\n- 本 skill 读的是 **Amazon 商品目录（Catalog）**，不是卖家订单；订单见 **`linkfox-amazon-store-orders`**。\n- `includedData`、返回字段以 Amazon schema 为准，详见 **`references/api.md`**。\n\n## 积分消耗规则\n\n不消耗积分。\n\n**Feedback：** `skillName`：`linkfox-amazon-store-catalog`。\n\n---\n*更多跨境 skill：[LinkFox Skills](https://skill.linkfox.com/)*\n\nFile v1.0.5:_meta.json\n\n{\n  \"ownerId\": \"kn7dmc1t4j28hem1twwyav85p182pb1j\",\n  \"slug\": \"linkfox-amazon-store-catalog\",\n  \"version\": \"1.0.5\",\n  \"publishedAt\": 1783944266677\n}\n\nFile v1.0.5:references/api.md\n\n# linkfox-amazon-store-catalog — API 参考\n\n经 **LinkFox** `storeTokens` + `developerProxy` 调用 SP-API **Catalog Items**（与 listings / pricing 系列相同）。\n\n环境变量：`LINKFOX_AGENT_API_KEY`（或 `LINKFOXAGENT_API_KEY`）（如未配置 按 SKILL.md 的 **## 解决认证和积分问题** 处理）；可选 `LINKFOX_TOOL_GATEWAY`（回退 `STORE_API_BASE_URL` / `SPAPI_BASE_URL`，默认 `https://tool-gateway.linkfox.com`）。\n\n---\n\n## 1. 脚本与 path\n\n| 脚本 | method | path |\n|------|--------|------|\n| `list_catalog_categories.py` | GET | `catalog/v0/categories` |\n| `search_catalog_items.py` | GET | `catalog/2022-04-01/items`（默认） |\n| `get_catalog_item.py` | GET | `catalog/2022-04-01/items/{asin}`（默认） |\n\n`catalogItemsVersion` 可选 **`2020-12-01`**，path 中版本段随之替换。\n\n---\n\n## 2. listCatalogCategories（v0）\n\n### 入参（JSON）\n\n| 字段 | 必填 | 说明 |\n|------|------|------|\n| sellerId, region | 是 | 店铺与区域 |\n| marketplaceId / marketplaceIds | 是 | 仅使用**第一个**站点 ID → query **`MarketplaceId`** |\n| asin / ASIN | 条件 | 与 sellerSku **二选一** |\n| sellerSku / SellerSKU | 条件 | 与 asin **二选一** |\n\n### Query（大小写敏感）\n\n- `MarketplaceId`\n- `ASIN` 或 `SellerSKU`\n\n解析字段：**`categories`**\n\n---\n\n## 3. searchCatalogItems\n\n### 入参\n\n| 字段 | 必填 | 说明 |\n|------|------|------|\n| marketplaceIds | 是 | 文档通常 ≤1 个 |\n| keywords | 条件 | 与 identifiers **互斥**，最多 20 个 |\n| identifiers | 条件 | 最多 20 个；须配 **identifiersType** |\n| identifiersType | 条件 | ASIN, EAN, GTIN, ISBN, JAN, MINSAN, SKU, UPC |\n| includedData | 否 | summaries, images, attributes, salesRanks 等 |\n| brandNames, classificationIds | 否 | 限缩关键词搜索 |\n| locale, keywordsLocale | 否 | |\n| pageSize | 否 | 1～20，默认 10 |\n| pageToken | 否 | 分页 |\n| catalogItemsVersion | 否 | `2022-04-01`（默认）或 `2020-12-01` |\n| sellerIdForCatalog | 否 | 覆盖 query 中的 sellerId（默认用 sellerId） |\n\n当 **identifiersType=SKU** 时，Amazon 要求 query 带 **sellerId**；脚本默认使用 JSON 里的 **sellerId**。\n\n解析字段：**`catalogItems`**\n\n---\n\n## 4. getCatalogItem\n\n| 字段 | 必填 | 说明 |\n|------|------|------|\n| asin | 是 | path 段 |\n| marketplaceIds | 是 | |\n| includedData | 否 | |\n| locale | 否 | |\n| catalogItemsVersion | 否 | |\n\n解析字段：**`catalogItem`**\n\n---\n\n## 5. includedData 示例（2022-04-01）\n\n`summaries`, `attributes`, `classifications`, `dimensions`, `identifiers`, `images`, `productTypes`, `relationships`, `salesRanks`, `vendorDetails`（以官方为准）。\n\n---\n\n## 6. 错误与白名单\n\n- **401**：HTTP 401 或 authorized error：按 SKILL.md 的 **## 解决认证和积分问题** 处理。\n- **402**：HTTP 402：按 SKILL.md 的 **## 解决认证和积分问题** 处理。\n- **403**：Catalog Items 权限不足。\n- **1005**（网关）：需放行 `catalog/v0/`、`catalog/2020-12-01/`、`catalog/2022-04-01/`。\n- **429**：按官方 usage plan 降频。\n\n---\n\n## 7. Feedback\n\n上报时注明 **`skillName`: `linkfox-amazon-store-catalog`**。\n\nFile v1.0.5:skill-card.md\n\n## Description: <br>\nLooks up Amazon SP-API Catalog Items through LinkFox for category, keyword, identifier, and ASIN catalog queries. <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 ecommerce operators and developers use this skill to retrieve Amazon product catalog categories and item metadata through LinkFox-authenticated SP-API Catalog Items calls. <br>\n\n### Deployment Geography for Use: <br>\nGlobal <br>\n\n## Known Risks and Mitigations: <br>\nRisk: Full authenticated Amazon catalog API responses may include sensitive seller, SKU, query, or returned product metadata and are automatically stored locally. <br>\nMitigation: Run the skill only in workspaces where local LinkFox data files are acceptable, avoid sharing generated files, and periodically delete saved linkfox data files that are no longer needed. <br>\nRisk: Using --inline can place complete API responses into the agent transcript or logs. <br>\nMitigation: Use the default summarized output for sensitive catalog lookups and inspect saved JSON selectively with tools such as jq when specific fields are needed. <br>\nRisk: Catalog lookups depend on LinkFox gateway authentication and an installed Amazon store auth skill. <br>\nMitigation: Verify the LinkFox gateway, API key, and required auth skill before providing credentials or running catalog requests. <br>\n\n\n## Reference(s): <br>\n- [ClawHub skill page](https://clawhub.ai/linkfox-ai/skills/linkfox-amazon-store-catalog) <br>\n- [references/api.md](references/api.md) <br>\n- [Amazon SP-API listCatalogCategories](https://developer-docs.amazon.com/sp-api/reference/listcatalogcategories) <br>\n- [Amazon SP-API searchCatalogItems](https://developer-docs.amazon.com/sp-api/reference/searchcatalogitems) <br>\n- [Amazon SP-API getCatalogItem](https://developer-docs.amazon.com/sp-api/reference/getcatalogitem) <br>\n\n\n## Skill Output: <br>\n**Output Type(s):** [text, markdown, shell commands, JSON files, guidance] <br>\n**Output Format:** [Markdown guidance with shell command examples; scripts emit JSON to stdout and save full JSON responses locally.] <br>\n**Output Parameters:** [1D] <br>\n**Other Properties Related to Output:** [Large responses are summarized unless --inline is used; full responses are saved under a local linkfox session data directory.] <br>\n\n## Skill Version(s): <br>\n1.0.5 (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.4: 9 files, 17415 bytes\n\nFiles: references/api.md (2930b), scripts/_spapi_catalog_common.py (12719b), scripts/check_auth_dependency.py (6078b), scripts/get_catalog_item.py (2855b), scripts/list_catalog_categories.py (2765b), scripts/search_catalog_items.py (5336b), skill-card.md (3039b), SKILL.md (5172b), _meta.json (147b)\n\nFile v1.0.4:SKILL.md\n\n---\r\nname: linkfox-amazon-store-catalog\r\ndescription: 亚马逊店铺商品目录 Catalog（与 linkfox-amazon-store-auth / report / listings / pricing / orders / feeds 同系列），经 /spApi/developerProxy 调用 SP-API Catalog Items：v0 listCatalogCategories；v2022-04-01（默认）或 v2020-12-01 的 searchCatalogItems、getCatalogItem。当用户提到亚马逊目录、Catalog Items、listCatalogCategories、searchCatalogItems、getCatalogItem、按 ASIN 查目录、关键词搜商品目录、类目节点、includedData、summaries/images 时触发。\r\n---\r\n\r\n# Amazon 店铺 Catalog Items\r\n\r\n本 skill 与 **`linkfox-amazon-store-auth`** 等同属 **Amazon Store** 系列：先 **`POST /spApi/storeTokens`**，再 **`POST /spApi/developerProxy`** 转发 **GET**。\r\n\r\n## 调用方式\r\n\r\n- **API 端点**：`POST /spApi/developerProxy`（不同操作通过请求体区分；完整参数/响应/错误码见 `references/api.md`）\r\n- **Python 脚本**：`python scripts/<脚本名>.py '<JSON 参数>' [--inline]`（可用脚本见上文脚本一览）\r\n- **成本约束**：本工具会消耗积分；失败/空结果不得自动换关键词、翻页或连续试探；需要继续检索时先向用户说明会产生额外消耗。\r\n\r\n**输出策略（脚本默认行为）**：\r\n- **始终**将完整响应写入 `<cwd>/linkfox/<YYYY-MM-DD>/<session>/data/linkfox-amazon-store-catalog-<timestamp>.json`（`<cwd>` 为脚本执行时的工作目录，在 Claude Code 里即当前项目目录；`<session>` 取自环境变量 `SESSION_ID`，按用户任务自动聚合；**禁止写入 /tmp**，当前目录不可写则报错）\r\n- 响应体 ≤ 8 KB：落盘后把完整 JSON 打印到 stdout\r\n- 响应体 > 8 KB：落盘后 stdout 只输出摘要（顶层字段、常见计数如 `total`/`costToken`、最大列表字段的长度 + 前 3 条样本）\r\n- 加 `--inline` 强制全量打印到 stdout（同样落盘）\r\n\r\n**读数据建议**：先看摘要判断是否足够；需要具体字段时优先用 `jq`或`ConvertFrom-Json` 从保存的 json 文件按需抽取，避免整份 JSON 进入上下文。\r\n\r\n## 官方参考索引\r\n\r\n| 能力 | 文档 |\r\n|------|------|\r\n| listCatalogCategories | [listCatalogCategories](https://developer-docs.amazon.com/sp-api/reference/listcatalogcategories) |\r\n| searchCatalogItems | [searchCatalogItems](https://developer-docs.amazon.com/sp-api/reference/searchcatalogitems) |\r\n| getCatalogItem | [getCatalogItem](https://developer-docs.amazon.com/sp-api/reference/getcatalogitem) |\r\n\r\n---\r\n\r\n## Prerequisites\r\n\r\n1. 依赖 **`linkfox-amazon-store-auth`**；`python scripts/check_auth_dependency.py`，exit **42** 时需先安装授权 skill。\r\n2. 应用需具备 **Catalog Items** 相关角色；`searchCatalogItems` 按 **identifiers+SKU** 检索时 query 须带 **`sellerId`**（脚本在 `identifiersType=SKU` 时自动使用入参 `sellerId`）。\r\n\r\n---\r\n\r\n## Current Capabilities\r\n\r\n| 能力 | path | 脚本 |\r\n|------|------|------|\r\n| listCatalogCategories | `catalog/v0/categories` | `list_catalog_categories.py` |\r\n| searchCatalogItems | `catalog/{2022-04-01\\|2020-12-01}/items` | `search_catalog_items.py` |\r\n| getCatalogItem | `catalog/{version}/items/{asin}` | `get_catalog_item.py` |\r\n\r\n默认 Catalog Items 版本：**`2022-04-01`**；入参 **`catalogItemsVersion`** 可改为 **`2020-12-01`**。\r\n\r\n共享模块：**`_spapi_catalog_common.py`**。\r\n\r\n---\r\n\r\n## Quick Parameters\r\n\r\n- **listCatalogCategories**：`marketplaceId` + **`asin`** 或 **`sellerSku`**（二选一）。\r\n- **searchCatalogItems**：`marketplaceIds` + **`keywords`** 或 **`identifiers` + `identifiersType`**（互斥）；可选 `includedData`、`brandNames`、`classificationIds`、`pageSize`、`pageToken`。\r\n- **getCatalogItem**：`asin`、`marketplaceIds`；可选 `includedData`、`locale`。\r\n\r\n---\r\n\r\n## Scripts\r\n\r\n```bash\r\nexport LINKFOXAGENT_API_KEY=\"<your-key>\"\r\n\r\npython scripts/list_catalog_categories.py '{\"sellerId\":\"A1...\",\"region\":\"NA\",\"marketplaceId\":\"ATVPDKIKX0DER\",\"asin\":\"B08N5WRWNW\"}'\r\n\r\npython scripts/search_catalog_items.py '{\"sellerId\":\"A1...\",\"region\":\"NA\",\"marketplaceIds\":[\"ATVPDKIKX0DER\"],\"keywords\":[\"wireless mouse\"]}'\r\n\r\npython scripts/get_catalog_item.py '{\"sellerId\":\"A1...\",\"region\":\"NA\",\"asin\":\"B08N5WRWNW\",\"marketplaceIds\":[\"ATVPDKIKX0DER\"],\"includedData\":[\"summaries\",\"images\"]}'\r\n```\r\n\r\n---\r\n\r\n## Display Rules\r\n\r\n1. 先看 **`developerProxy.errcode` / `httpStatus`**，再读 **`categories`** / **`catalogItems`** / **`catalogItem`**。\r\n2. **listCatalogCategories** 使用 v0 查询键 **`MarketplaceId`**（单数），与 search/get 的 **`marketplaceIds`** 不同。\r\n3. 网关 path 白名单需包含 **`catalog/v0/`** 与 **`catalog/2022-04-01/`**（或 `2020-12-01`）。\r\n\r\n---\r\n\r\n## Important Limitations\r\n\r\n- 本 skill 读的是 **Amazon 商品目录（Catalog）**，不是卖家订单；订单见 **`linkfox-amazon-store-orders`**。\r\n- `includedData`、返回字段以 Amazon schema 为准，详见 **`references/api.md`**。\r\n\r\n**Feedback：** `skillName`：`linkfox-amazon-store-catalog`。\r\n\r\n---\r\n*更多跨境 skill：[LinkFox Skills](https://skill.linkfox.com/)*\n\nFile v1.0.4:_meta.json\n\n{\n  \"ownerId\": \"kn7dmc1t4j28hem1twwyav85p182pb1j\",\n  \"slug\": \"linkfox-amazon-store-catalog\",\n  \"version\": \"1.0.4\",\n  \"publishedAt\": 1783336318410\n}\n\nFile v1.0.4:references/api.md\n\n# linkfox-amazon-store-catalog — API 参考\n\n经 **LinkFox** `storeTokens` + `developerProxy` 调用 SP-API **Catalog Items**（与 listings / pricing 系列相同）。\n\n环境变量：`LINKFOX_AGENT_API_KEY`（或 `LINKFOXAGENT_API_KEY`）；可选 `LINKFOX_TOOL_GATEWAY`（回退 `STORE_API_BASE_URL` / `SPAPI_BASE_URL`，默认 `https://tool-gateway.linkfox.com`）。\n\n---\n\n## 1. 脚本与 path\n\n| 脚本 | method | path |\n|------|--------|------|\n| `list_catalog_categories.py` | GET | `catalog/v0/categories` |\n| `search_catalog_items.py` | GET | `catalog/2022-04-01/items`（默认） |\n| `get_catalog_item.py` | GET | `catalog/2022-04-01/items/{asin}`（默认） |\n\n`catalogItemsVersion` 可选 **`2020-12-01`**，path 中版本段随之替换。\n\n---\n\n## 2. listCatalogCategories（v0）\n\n### 入参（JSON）\n\n| 字段 | 必填 | 说明 |\n|------|------|------|\n| sellerId, region | 是 | 店铺与区域 |\n| marketplaceId / marketplaceIds | 是 | 仅使用**第一个**站点 ID → query **`MarketplaceId`** |\n| asin / ASIN | 条件 | 与 sellerSku **二选一** |\n| sellerSku / SellerSKU | 条件 | 与 asin **二选一** |\n\n### Query（大小写敏感）\n\n- `MarketplaceId`\n- `ASIN` 或 `SellerSKU`\n\n解析字段：**`categories`**\n\n---\n\n## 3. searchCatalogItems\n\n### 入参\n\n| 字段 | 必填 | 说明 |\n|------|------|------|\n| marketplaceIds | 是 | 文档通常 ≤1 个 |\n| keywords | 条件 | 与 identifiers **互斥**，最多 20 个 |\n| identifiers | 条件 | 最多 20 个；须配 **identifiersType** |\n| identifiersType | 条件 | ASIN, EAN, GTIN, ISBN, JAN, MINSAN, SKU, UPC |\n| includedData | 否 | summaries, images, attributes, salesRanks 等 |\n| brandNames, classificationIds | 否 | 限缩关键词搜索 |\n| locale, keywordsLocale | 否 | |\n| pageSize | 否 | 1～20，默认 10 |\n| pageToken | 否 | 分页 |\n| catalogItemsVersion | 否 | `2022-04-01`（默认）或 `2020-12-01` |\n| sellerIdForCatalog | 否 | 覆盖 query 中的 sellerId（默认用 sellerId） |\n\n当 **identifiersType=SKU** 时，Amazon 要求 query 带 **sellerId**；脚本默认使用 JSON 里的 **sellerId**。\n\n解析字段：**`catalogItems`**\n\n---\n\n## 4. getCatalogItem\n\n| 字段 | 必填 | 说明 |\n|------|------|------|\n| asin | 是 | path 段 |\n| marketplaceIds | 是 | |\n| includedData | 否 | |\n| locale | 否 | |\n| catalogItemsVersion | 否 | |\n\n解析字段：**`catalogItem`**\n\n---\n\n## 5. includedData 示例（2022-04-01）\n\n`summaries`, `attributes`, `classifications`, `dimensions`, `identifiers`, `images`, `productTypes`, `relationships`, `salesRanks`, `vendorDetails`（以官方为准）。\n\n---\n\n## 6. 错误与白名单\n\n- **403**：Catalog Items 权限不足。\n- **1005**（网关）：需放行 `catalog/v0/`、`catalog/2020-12-01/`、`catalog/2022-04-01/`。\n- **429**：按官方 usage plan 降频。\n\n---\n\n## 7. Feedback\n\n上报时注明 **`skillName`: `linkfox-amazon-store-catalog`**。\n\nFile v1.0.4:skill-card.md\n\n## Description: <br>\n亚马逊店铺商品目录 Catalog skill that helps agents call LinkFox developerProxy scripts for Amazon SP-API Catalog Items operations: listCatalogCategories, searchCatalogItems, and getCatalogItem. <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>\nDevelopers and commerce operations agents use this skill to retrieve Amazon Catalog Items data by category, ASIN, SKU, identifiers, or keywords through LinkFox's SP-API gateway. It is suited for catalog inspection and product discovery workflows, not order retrieval. <br>\n\n### Deployment Geography for Use: <br>\nGlobal <br>\n\n## Known Risks and Mitigations: <br>\nRisk: The skill can save full Amazon catalog API responses locally, including potentially sensitive seller identifiers, query terms, and proxy responses. <br>\nMitigation: Run it only in workspaces where LinkFox output files are expected, avoid committing the linkfox output directory, and clean saved responses after use. <br>\nRisk: Evidence security guidance reports fallback save locations such as the home directory or temp directory when the preferred workspace output path is unavailable. <br>\nMitigation: Confirm the active workspace is writable before execution and review generated LinkFox output paths after each run. <br>\nRisk: Catalog queries can consume credits or API quota, and repeated retries or pagination can add cost. <br>\nMitigation: Review query parameters before execution and ask for confirmation before changing keywords, paging, or retrying failed or empty searches. <br>\n\n\n## Reference(s): <br>\n- [ClawHub skill page](https://clawhub.ai/linkfox-ai/skills/linkfox-amazon-store-catalog) <br>\n- [API reference](references/api.md) <br>\n- [Amazon SP-API listCatalogCategories](https://developer-docs.amazon.com/sp-api/reference/listcatalogcategories) <br>\n- [Amazon SP-API searchCatalogItems](https://developer-docs.amazon.com/sp-api/reference/searchcatalogitems) <br>\n- [Amazon SP-API getCatalogItem](https://developer-docs.amazon.com/sp-api/reference/getcatalogitem) <br>\n\n\n## Skill Output: <br>\n**Output Type(s):** [text, markdown, code, shell commands, configuration, guidance, JSON, files] <br>\n**Output Format:** [Markdown guidance with shell commands and JSON responses or summaries; scripts also save full JSON response files locally.] <br>\n**Output Parameters:** [1D] <br>\n**Other Properties Related to Output:** [Requires LinkFox API key configuration and the linkfox-amazon-store-auth dependency; large responses are summarized unless inline output is requested.] <br>\n\n## Skill Version(s): <br>\n1.0.4 (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.3: 8 files, 15915 bytes\n\nFiles: references/api.md (2930b), scripts/_spapi_catalog_common.py (12719b), scripts/check_auth_dependency.py (6078b), scripts/get_catalog_item.py (2855b), scripts/list_catalog_categories.py (2765b), scripts/search_catalog_items.py (5336b), SKILL.md (5172b), _meta.json (147b)\n\nFile v1.0.3:SKILL.md\n\n---\r\nname: linkfox-amazon-store-catalog\r\ndescription: 亚马逊店铺商品目录 Catalog（与 linkfox-amazon-store-auth / report / listings / pricing / orders / feeds 同系列），经 /spApi/developerProxy 调用 SP-API Catalog Items：v0 listCatalogCategories；v2022-04-01（默认）或 v2020-12-01 的 searchCatalogItems、getCatalogItem。当用户提到亚马逊目录、Catalog Items、listCatalogCategories、searchCatalogItems、getCatalogItem、按 ASIN 查目录、关键词搜商品目录、类目节点、includedData、summaries/images 时触发。\r\n---\r\n\r\n# Amazon 店铺 Catalog Items\r\n\r\n本 skill 与 **`linkfox-amazon-store-auth`** 等同属 **Amazon Store** 系列：先 **`POST /spApi/storeTokens`**，再 **`POST /spApi/developerProxy`** 转发 **GET**。\r\n\r\n## 调用方式\r\n\r\n- **API 端点**：`POST /spApi/developerProxy`（不同操作通过请求体区分；完整参数/响应/错误码见 `references/api.md`）\r\n- **Python 脚本**：`python scripts/<脚本名>.py '<JSON 参数>' [--inline]`（可用脚本见上文脚本一览）\r\n- **成本约束**：本工具会消耗积分；失败/空结果不得自动换关键词、翻页或连续试探；需要继续检索时先向用户说明会产生额外消耗。\r\n\r\n**输出策略（脚本默认行为）**：\r\n- **始终**将完整响应写入 `<cwd>/linkfox/<YYYY-MM-DD>/<session>/data/linkfox-amazon-store-catalog-<timestamp>.json`（`<cwd>` 为脚本执行时的工作目录，在 Claude Code 里即当前项目目录；`<session>` 取自环境变量 `SESSION_ID`，按用户任务自动聚合；**禁止写入 /tmp**，当前目录不可写则报错）\r\n- 响应体 ≤ 8 KB：落盘后把完整 JSON 打印到 stdout\r\n- 响应体 > 8 KB：落盘后 stdout 只输出摘要（顶层字段、常见计数如 `total`/`costToken`、最大列表字段的长度 + 前 3 条样本）\r\n- 加 `--inline` 强制全量打印到 stdout（同样落盘）\r\n\r\n**读数据建议**：先看摘要判断是否足够；需要具体字段时优先用 `jq`或`ConvertFrom-Json` 从保存的 json 文件按需抽取，避免整份 JSON 进入上下文。\r\n\r\n## 官方参考索引\r\n\r\n| 能力 | 文档 |\r\n|------|------|\r\n| listCatalogCategories | [listCatalogCategories](https://developer-docs.amazon.com/sp-api/reference/listcatalogcategories) |\r\n| searchCatalogItems | [searchCatalogItems](https://developer-docs.amazon.com/sp-api/reference/searchcatalogitems) |\r\n| getCatalogItem | [getCatalogItem](https://developer-docs.amazon.com/sp-api/reference/getcatalogitem) |\r\n\r\n---\r\n\r\n## Prerequisites\r\n\r\n1. 依赖 **`linkfox-amazon-store-auth`**；`python scripts/check_auth_dependency.py`，exit **42** 时需先安装授权 skill。\r\n2. 应用需具备 **Catalog Items** 相关角色；`searchCatalogItems` 按 **identifiers+SKU** 检索时 query 须带 **`sellerId`**（脚本在 `identifiersType=SKU` 时自动使用入参 `sellerId`）。\r\n\r\n---\r\n\r\n## Current Capabilities\r\n\r\n| 能力 | path | 脚本 |\r\n|------|------|------|\r\n| listCatalogCategories | `catalog/v0/categories` | `list_catalog_categories.py` |\r\n| searchCatalogItems | `catalog/{2022-04-01\\|2020-12-01}/items` | `search_catalog_items.py` |\r\n| getCatalogItem | `catalog/{version}/items/{asin}` | `get_catalog_item.py` |\r\n\r\n默认 Catalog Items 版本：**`2022-04-01`**；入参 **`catalogItemsVersion`** 可改为 **`2020-12-01`**。\r\n\r\n共享模块：**`_spapi_catalog_common.py`**。\r\n\r\n---\r\n\r\n## Quick Parameters\r\n\r\n- **listCatalogCategories**：`marketplaceId` + **`asin`** 或 **`sellerSku`**（二选一）。\r\n- **searchCatalogItems**：`marketplaceIds` + **`keywords`** 或 **`identifiers` + `identifiersType`**（互斥）；可选 `includedData`、`brandNames`、`classificationIds`、`pageSize`、`pageToken`。\r\n- **getCatalogItem**：`asin`、`marketplaceIds`；可选 `includedData`、`locale`。\r\n\r\n---\r\n\r\n## Scripts\r\n\r\n```bash\r\nexport LINKFOXAGENT_API_KEY=\"<your-key>\"\r\n\r\npython scripts/list_catalog_categories.py '{\"sellerId\":\"A1...\",\"region\":\"NA\",\"marketplaceId\":\"ATVPDKIKX0DER\",\"asin\":\"B08N5WRWNW\"}'\r\n\r\npython scripts/search_catalog_items.py '{\"sellerId\":\"A1...\",\"region\":\"NA\",\"marketplaceIds\":[\"ATVPDKIKX0DER\"],\"keywords\":[\"wireless mouse\"]}'\r\n\r\npython scripts/get_catalog_item.py '{\"sellerId\":\"A1...\",\"region\":\"NA\",\"asin\":\"B08N5WRWNW\",\"marketplaceIds\":[\"ATVPDKIKX0DER\"],\"includedData\":[\"summaries\",\"images\"]}'\r\n```\r\n\r\n---\r\n\r\n## Display Rules\r\n\r\n1. 先看 **`developerProxy.errcode` / `httpStatus`**，再读 **`categories`** / **`catalogItems`** / **`catalogItem`**。\r\n2. **listCatalogCategories** 使用 v0 查询键 **`MarketplaceId`**（单数），与 search/get 的 **`marketplaceIds`** 不同。\r\n3. 网关 path 白名单需包含 **`catalog/v0/`** 与 **`catalog/2022-04-01/`**（或 `2020-12-01`）。\r\n\r\n---\r\n\r\n## Important Limitations\r\n\r\n- 本 skill 读的是 **Amazon 商品目录（Catalog）**，不是卖家订单；订单见 **`linkfox-amazon-store-orders`**。\r\n- `includedData`、返回字段以 Amazon schema 为准，详见 **`references/api.md`**。\r\n\r\n**Feedback：** `skillName`：`linkfox-amazon-store-catalog`。\r\n\r\n---\r\n*更多跨境 skill：[LinkFox Skills](https://skill.linkfox.com/)*\n\nFile v1.0.3:_meta.json\n\n{\n  \"ownerId\": \"kn7dmc1t4j28hem1twwyav85p182pb1j\",\n  \"slug\": \"linkfox-amazon-store-catalog\",\n  \"version\": \"1.0.3\",\n  \"publishedAt\": 1783066279731\n}\n\nFile v1.0.3:references/api.md\n\n# linkfox-amazon-store-catalog — API 参考\n\n经 **LinkFox** `storeTokens` + `developerProxy` 调用 SP-API **Catalog Items**（与 listings / pricing 系列相同）。\n\n环境变量：`LINKFOX_AGENT_API_KEY`（或 `LINKFOXAGENT_API_KEY`）；可选 `LINKFOX_TOOL_GATEWAY`（回退 `STORE_API_BASE_URL` / `SPAPI_BASE_URL`，默认 `https://tool-gateway.linkfox.com`）。\n\n---\n\n## 1. 脚本与 path\n\n| 脚本 | method | path |\n|------|--------|------|\n| `list_catalog_categories.py` | GET | `catalog/v0/categories` |\n| `search_catalog_items.py` | GET | `catalog/2022-04-01/items`（默认） |\n| `get_catalog_item.py` | GET | `catalog/2022-04-01/items/{asin}`（默认） |\n\n`catalogItemsVersion` 可选 **`2020-12-01`**，path 中版本段随之替换。\n\n---\n\n## 2. listCatalogCategories（v0）\n\n### 入参（JSON）\n\n| 字段 | 必填 | 说明 |\n|------|------|------|\n| sellerId, region | 是 | 店铺与区域 |\n| marketplaceId / marketplaceIds | 是 | 仅使用**第一个**站点 ID → query **`MarketplaceId`** |\n| asin / ASIN | 条件 | 与 sellerSku **二选一** |\n| sellerSku / SellerSKU | 条件 | 与 asin **二选一** |\n\n### Query（大小写敏感）\n\n- `MarketplaceId`\n- `ASIN` 或 `SellerSKU`\n\n解析字段：**`categories`**\n\n---\n\n## 3. searchCatalogItems\n\n### 入参\n\n| 字段 | 必填 | 说明 |\n|------|------|------|\n| marketplaceIds | 是 | 文档通常 ≤1 个 |\n| keywords | 条件 | 与 identifiers **互斥**，最多 20 个 |\n| identifiers | 条件 | 最多 20 个；须配 **identifiersType** |\n| identifiersType | 条件 | ASIN, EAN, GTIN, ISBN, JAN, MINSAN, SKU, UPC |\n| includedData | 否 | summaries, images, attributes, salesRanks 等 |\n| brandNames, classificationIds | 否 | 限缩关键词搜索 |\n| locale, keywordsLocale | 否 | |\n| pageSize | 否 | 1～20，默认 10 |\n| pageToken | 否 | 分页 |\n| catalogItemsVersion | 否 | `2022-04-01`（默认）或 `2020-12-01` |\n| sellerIdForCatalog | 否 | 覆盖 query 中的 sellerId（默认用 sellerId） |\n\n当 **identifiersType=SKU** 时，Amazon 要求 query 带 **sellerId**；脚本默认使用 JSON 里的 **sellerId**。\n\n解析字段：**`catalogItems`**\n\n---\n\n## 4. getCatalogItem\n\n| 字段 | 必填 | 说明 |\n|------|------|------|\n| asin | 是 | path 段 |\n| marketplaceIds | 是 | |\n| includedData | 否 | |\n| locale | 否 | |\n| catalogItemsVersion | 否 | |\n\n解析字段：**`catalogItem`**\n\n---\n\n## 5. includedData 示例（2022-04-01）\n\n`summaries`, `attributes`, `classifications`, `dimensions`, `identifiers`, `images`, `productTypes`, `relationships`, `salesRanks`, `vendorDetails`（以官方为准）。\n\n---\n\n## 6. 错误与白名单\n\n- **403**：Catalog Items 权限不足。\n- **1005**（网关）：需放行 `catalog/v0/`、`catalog/2020-12-01/`、`catalog/2022-04-01/`。\n- **429**：按官方 usage plan 降频。\n\n---\n\n## 7. Feedback\n\n上报时注明 **`skillName`: `linkfox-amazon-store-catalog`**。\n\nArchive v1.0.2: 8 files, 15941 bytes\n\nFiles: references/api.md (2931b), scripts/_spapi_catalog_common.py (12897b), scripts/check_auth_dependency.py (6078b), scripts/get_catalog_item.py (2855b), scripts/list_catalog_categories.py (2765b), scripts/search_catalog_items.py (5336b), SKILL.md (5172b), _meta.json (147b)\n\nFile v1.0.2:SKILL.md\n\n---\r\nname: linkfox-amazon-store-catalog\r\ndescription: 亚马逊店铺商品目录 Catalog（与 linkfox-amazon-store-auth / report / listings / pricing / orders / feeds 同系列），经 /spApi/developerProxy 调用 SP-API Catalog Items：v0 listCatalogCategories；v2022-04-01（默认）或 v2020-12-01 的 searchCatalogItems、getCatalogItem。当用户提到亚马逊目录、Catalog Items、listCatalogCategories、searchCatalogItems、getCatalogItem、按 ASIN 查目录、关键词搜商品目录、类目节点、includedData、summaries/images 时触发。\r\n---\r\n\r\n# Amazon 店铺 Catalog Items\r\n\r\n本 skill 与 **`linkfox-amazon-store-auth`** 等同属 **Amazon Store** 系列：先 **`POST /spApi/storeTokens`**，再 **`POST /spApi/developerProxy`** 转发 **GET**。\r\n\r\n## 调用方式\r\n\r\n- **API 端点**：`POST /spApi/developerProxy`（不同操作通过请求体区分；完整参数/响应/错误码见 `references/api.md`）\r\n- **Python 脚本**：`python scripts/<脚本名>.py '<JSON 参数>' [--inline]`（可用脚本见上文脚本一览）\r\n- **成本约束**：本工具会消耗积分；失败/空结果不得自动换关键词、翻页或连续试探；需要继续检索时先向用户说明会产生额外消耗。\r\n\r\n**输出策略（脚本默认行为）**：\r\n- **始终**将完整响应写入 `<cwd>/linkfox/<YYYY-MM-DD>/<session>/data/linkfox-amazon-store-catalog-<timestamp>.json`（`<cwd>` 为脚本执行时的工作目录，在 Claude Code 里即当前项目目录；`<session>` 取自环境变量 `SESSION_ID`，按用户任务自动聚合；**禁止写入 /tmp**，当前目录不可写则报错）\r\n- 响应体 ≤ 8 KB：落盘后把完整 JSON 打印到 stdout\r\n- 响应体 > 8 KB：落盘后 stdout 只输出摘要（顶层字段、常见计数如 `total`/`costToken`、最大列表字段的长度 + 前 3 条样本）\r\n- 加 `--inline` 强制全量打印到 stdout（同样落盘）\r\n\r\n**读数据建议**：先看摘要判断是否足够；需要具体字段时优先用 `jq`或`ConvertFrom-Json` 从保存的 json 文件按需抽取，避免整份 JSON 进入上下文。\r\n\r\n## 官方参考索引\r\n\r\n| 能力 | 文档 |\r\n|------|------|\r\n| listCatalogCategories | [listCatalogCategories](https://developer-docs.amazon.com/sp-api/reference/listcatalogcategories) |\r\n| searchCatalogItems | [searchCatalogItems](https://developer-docs.amazon.com/sp-api/reference/searchcatalogitems) |\r\n| getCatalogItem | [getCatalogItem](https://developer-docs.amazon.com/sp-api/reference/getcatalogitem) |\r\n\r\n---\r\n\r\n## Prerequisites\r\n\r\n1. 依赖 **`linkfox-amazon-store-auth`**；`python scripts/check_auth_dependency.py`，exit **42** 时需先安装授权 skill。\r\n2. 应用需具备 **Catalog Items** 相关角色；`searchCatalogItems` 按 **identifiers+SKU** 检索时 query 须带 **`sellerId`**（脚本在 `identifiersType=SKU` 时自动使用入参 `sellerId`）。\r\n\r\n---\r\n\r\n## Current Capabilities\r\n\r\n| 能力 | path | 脚本 |\r\n|------|------|------|\r\n| listCatalogCategories | `catalog/v0/categories` | `list_catalog_categories.py` |\r\n| searchCatalogItems | `catalog/{2022-04-01\\|2020-12-01}/items` | `search_catalog_items.py` |\r\n| getCatalogItem | `catalog/{version}/items/{asin}` | `get_catalog_item.py` |\r\n\r\n默认 Catalog Items 版本：**`2022-04-01`**；入参 **`catalogItemsVersion`** 可改为 **`2020-12-01`**。\r\n\r\n共享模块：**`_spapi_catalog_common.py`**。\r\n\r\n---\r\n\r\n## Quick Parameters\r\n\r\n- **listCatalogCategories**：`marketplaceId` + **`asin`** 或 **`sellerSku`**（二选一）。\r\n- **searchCatalogItems**：`marketplaceIds` + **`keywords`** 或 **`identifiers` + `identifiersType`**（互斥）；可选 `includedData`、`brandNames`、`classificationIds`、`pageSize`、`pageToken`。\r\n- **getCatalogItem**：`asin`、`marketplaceIds`；可选 `includedData`、`locale`。\r\n\r\n---\r\n\r\n## Scripts\r\n\r\n```bash\r\nexport LINKFOXAGENT_API_KEY=\"<your-key>\"\r\n\r\npython scripts/list_catalog_categories.py '{\"sellerId\":\"A1...\",\"region\":\"NA\",\"marketplaceId\":\"ATVPDKIKX0DER\",\"asin\":\"B08N5WRWNW\"}'\r\n\r\npython scripts/search_catalog_items.py '{\"sellerId\":\"A1...\",\"region\":\"NA\",\"marketplaceIds\":[\"ATVPDKIKX0DER\"],\"keywords\":[\"wireless mouse\"]}'\r\n\r\npython scripts/get_catalog_item.py '{\"sellerId\":\"A1...\",\"region\":\"NA\",\"asin\":\"B08N5WRWNW\",\"marketplaceIds\":[\"ATVPDKIKX0DER\"],\"includedData\":[\"summaries\",\"images\"]}'\r\n```\r\n\r\n---\r\n\r\n## Display Rules\r\n\r\n1. 先看 **`developerProxy.errcode` / `httpStatus`**，再读 **`categories`** / **`catalogItems`** / **`catalogItem`**。\r\n2. **listCatalogCategories** 使用 v0 查询键 **`MarketplaceId`**（单数），与 search/get 的 **`marketplaceIds`** 不同。\r\n3. 网关 path 白名单需包含 **`catalog/v0/`** 与 **`catalog/2022-04-01/`**（或 `2020-12-01`）。\r\n\r\n---\r\n\r\n## Important Limitations\r\n\r\n- 本 skill 读的是 **Amazon 商品目录（Catalog）**，不是卖家订单；订单见 **`linkfox-amazon-store-orders`**。\r\n- `includedData`、返回字段以 Amazon schema 为准，详见 **`references/api.md`**。\r\n\r\n**Feedback：** `skillName`：`linkfox-amazon-store-catalog`。\r\n\r\n---\r\n*更多跨境 skill：[LinkFox Skills](https://skill.linkfox.com/)*\n\nFile v1.0.2:_meta.json\n\n{\n  \"ownerId\": \"kn7dmc1t4j28hem1twwyav85p182pb1j\",\n  \"slug\": \"linkfox-amazon-store-catalog\",\n  \"version\": \"1.0.2\",\n  \"publishedAt\": 1783053391655\n}\n\nFile v1.0.2:references/api.md\n\n# linkfox-amazon-store-catalog — API 参考\n\n经 **LinkFox** `storeTokens` + `developerProxy` 调用 SP-API **Catalog Items**（与 listings / pricing 系列相同）。\n\n环境变量：`LINKFOX_AGENT_API_KEY`（或 `LINKFOXAGENT_API_KEY`）；可选 `LINKFOX_AGENT_API_URL`（回退 `STORE_API_BASE_URL` / `SPAPI_BASE_URL`，默认 `https://tool-gateway.linkfox.com`）。\n\n---\n\n## 1. 脚本与 path\n\n| 脚本 | method | path |\n|------|--------|------|\n| `list_catalog_categories.py` | GET | `catalog/v0/categories` |\n| `search_catalog_items.py` | GET | `catalog/2022-04-01/items`（默认） |\n| `get_catalog_item.py` | GET | `catalog/2022-04-01/items/{asin}`（默认） |\n\n`catalogItemsVersion` 可选 **`2020-12-01`**，path 中版本段随之替换。\n\n---\n\n## 2. listCatalogCategories（v0）\n\n### 入参（JSON）\n\n| 字段 | 必填 | 说明 |\n|------|------|------|\n| sellerId, region | 是 | 店铺与区域 |\n| marketplaceId / marketplaceIds | 是 | 仅使用**第一个**站点 ID → query **`MarketplaceId`** |\n| asin / ASIN | 条件 | 与 sellerSku **二选一** |\n| sellerSku / SellerSKU | 条件 | 与 asin **二选一** |\n\n### Query（大小写敏感）\n\n- `MarketplaceId`\n- `ASIN` 或 `SellerSKU`\n\n解析字段：**`categories`**\n\n---\n\n## 3. searchCatalogItems\n\n### 入参\n\n| 字段 | 必填 | 说明 |\n|------|------|------|\n| marketplaceIds | 是 | 文档通常 ≤1 个 |\n| keywords | 条件 | 与 identifiers **互斥**，最多 20 个 |\n| identifiers | 条件 | 最多 20 个；须配 **identifiersType** |\n| identifiersType | 条件 | ASIN, EAN, GTIN, ISBN, JAN, MINSAN, SKU, UPC |\n| includedData | 否 | summaries, images, attributes, salesRanks 等 |\n| brandNames, classificationIds | 否 | 限缩关键词搜索 |\n| locale, keywordsLocale | 否 | |\n| pageSize | 否 | 1～20，默认 10 |\n| pageToken | 否 | 分页 |\n| catalogItemsVersion | 否 | `2022-04-01`（默认）或 `2020-12-01` |\n| sellerIdForCatalog | 否 | 覆盖 query 中的 sellerId（默认用 sellerId） |\n\n当 **identifiersType=SKU** 时，Amazon 要求 query 带 **sellerId**；脚本默认使用 JSON 里的 **sellerId**。\n\n解析字段：**`catalogItems`**\n\n---\n\n## 4. getCatalogItem\n\n| 字段 | 必填 | 说明 |\n|------|------|------|\n| asin | 是 | path 段 |\n| marketplaceIds | 是 | |\n| includedData | 否 | |\n| locale | 否 | |\n| catalogItemsVersion | 否 | |\n\n解析字段：**`catalogItem`**\n\n---\n\n## 5. includedData 示例（2022-04-01）\n\n`summaries`, `attributes`, `classifications`, `dimensions`, `identifiers`, `images`, `productTypes`, `relationships`, `salesRanks`, `vendorDetails`（以官方为准）。\n\n---\n\n## 6. 错误与白名单\n\n- **403**：Catalog Items 权限不足。\n- **1005**（网关）：需放行 `catalog/v0/`、`catalog/2020-12-01/`、`catalog/2022-04-01/`。\n- **429**：按官方 usage plan 降频。\n\n---\n\n## 7. Feedback\n\n上报时注明 **`skillName`: `linkfox-amazon-store-catalog`**。\n\nArchive v1.0.1: 10 files, 21281 bytes\n\nFiles: references/api.md (2818b), scripts/_spapi_catalog_common.py (6218b), scripts/check_auth_dependency.py (6078b), scripts/get_catalog_item.py (2724b), scripts/list_catalog_categories.py (2640b), scripts/response_io.py (18387b), scripts/search_catalog_items.py (5146b), skill-card.md (2624b), SKILL.md (5387b), _meta.json (147b)\n\nFile v1.0.1:SKILL.md\n\n---\nname: linkfox-amazon-store-catalog\ndescription: 亚马逊店铺商品目录 Catalog（与 linkfox-amazon-store-auth / report / listings / pricing / orders / feeds 同系列），经 /spApi/developerProxy 调用 SP-API Catalog Items：v0 listCatalogCategories；v2022-04-01（默认）或 v2020-12-01 的 searchCatalogItems、getCatalogItem。当用户提到亚马逊目录、Catalog Items、listCatalogCategories、searchCatalogItems、getCatalogItem、按 ASIN 查目录、关键词搜商品目录、类目节点、includedData、summaries/images 时触发。\n---\n\n# Amazon 店铺 Catalog Items\n\n本 skill 与 **`linkfox-amazon-store-auth`** 等同属 **Amazon Store** 系列：先 **`POST /spApi/storeTokens`**，再 **`POST /spApi/developerProxy`** 转发 **GET**。\n\n## 官方参考索引\n\n| 能力 | 文档 |\n|------|------|\n| listCatalogCategories | [listCatalogCategories](https://developer-docs.amazon.com/sp-api/reference/listcatalogcategories) |\n| searchCatalogItems | [searchCatalogItems](https://developer-docs.amazon.com/sp-api/reference/searchcatalogitems) |\n| getCatalogItem | [getCatalogItem](https://developer-docs.amazon.com/sp-api/reference/getcatalogitem) |\n\n---\n\n## Prerequisites\n\n1. 依赖 **`linkfox-amazon-store-auth`**；`python scripts/check_auth_dependency.py`，exit **42** 时需先安装授权 skill。\n2. 应用需具备 **Catalog Items** 相关角色；`searchCatalogItems` 按 **identifiers+SKU** 检索时 query 须带 **`sellerId`**（脚本在 `identifiersType=SKU` 时自动使用入参 `sellerId`）。\n\n---\n\n## Current Capabilities\n\n| 能力 | path | 脚本 |\n|------|------|------|\n| listCatalogCategories | `catalog/v0/categories` | `list_catalog_categories.py` |\n| searchCatalogItems | `catalog/{2022-04-01\\|2020-12-01}/items` | `search_catalog_items.py` |\n| getCatalogItem | `catalog/{version}/items/{asin}` | `get_catalog_item.py` |\n\n默认 Catalog Items 版本：**`2022-04-01`**；入参 **`catalogItemsVersion`** 可改为 **`2020-12-01`**。\n\n共享模块：**`_spapi_catalog_common.py`**。\n\n---\n\n## Quick Parameters\n\n- **listCatalogCategories**：`marketplaceId` + **`asin`** 或 **`sellerSku`**（二选一）。\n- **searchCatalogItems**：`marketplaceIds` + **`keywords`** 或 **`identifiers` + `identifiersType`**（互斥）；可选 `includedData`、`brandNames`、`classificationIds`、`pageSize`、`pageToken`。\n- **getCatalogItem**：`asin`、`marketplaceIds`；可选 `includedData`、`locale`。\n\n---\n\n## Scripts\n\n```bash\nexport LINKFOXAGENT_API_KEY=\"<your-key>\"\n\npython scripts/list_catalog_categories.py '{\"sellerId\":\"A1...\",\"region\":\"NA\",\"marketplaceId\":\"ATVPDKIKX0DER\",\"asin\":\"B08N5WRWNW\"}'\n\npython scripts/search_catalog_items.py '{\"sellerId\":\"A1...\",\"region\":\"NA\",\"marketplaceIds\":[\"ATVPDKIKX0DER\"],\"keywords\":[\"wireless mouse\"]}'\n\npython scripts/get_catalog_item.py '{\"sellerId\":\"A1...\",\"region\":\"NA\",\"asin\":\"B08N5WRWNW\",\"marketplaceIds\":[\"ATVPDKIKX0DER\"],\"includedData\":[\"summaries\",\"images\"]}'\n```\n\n---\n\n## Display Rules\n\n1. 先看 **`developerProxy.errcode` / `httpStatus`**，再读 **`categories`** / **`catalogItems`** / **`catalogItem`**。\n2. **listCatalogCategories** 使用 v0 查询键 **`MarketplaceId`**（单数），与 search/get 的 **`marketplaceIds`** 不同。\n3. 网关 path 白名单需包含 **`catalog/v0/`** 与 **`catalog/2022-04-01/`**（或 `2020-12-01`）。\n\n---\n\n## Important Limitations\n\n- 本 skill 读的是 **Amazon 商品目录（Catalog）**，不是卖家订单；订单见 **`linkfox-amazon-store-orders`**。\n- `includedData`、返回字段以 Amazon schema 为准，详见 **`references/api.md`**。\n\n**Feedback：** `skillName`：`linkfox-amazon-store-catalog`。\n\n---\n*更多跨境 skill：[LinkFox Skills](https://skill.linkfox.com/)*\n\n<!-- LF_LARGE_RESPONSE_BLOCK -->\n## Handling Large Responses\n\nTo avoid overflowing the agent context, persist the response to disk and extract only the fields you need:\n\n```\npython scripts/response_io.py run --script scripts/check_auth_dependency.py --out-dir <DIR> '<params>'\npython scripts/response_io.py read <file> --fields \"<paths>\"   # or --path \"<JMESPath>\"\n```\n\n> Pick `--out-dir` outside any git working tree (e.g. `/tmp/...` on Unix, `%TEMP%/...` on Windows). Persisted responses may contain PII, pricing, or auth-sensitive data — do not commit them. Files are not auto-deleted; clean up when the task is done.\n\n> This skill exposes multiple entry scripts: `check_auth_dependency.py`, `get_catalog_item.py`, `list_catalog_categories.py`, `search_catalog_items.py`. Pass `--script scripts/<name>.py` to choose the one you need.\n\n`run` writes the full response to a file and emits only a schema preview + file path. `read` projects specific fields, with `--limit/--offset` for slicing and `--format json|jsonl|csv|table` for output.\n\n**When to prefer this pattern** — apply your judgment based on the response characteristics, e.g.:\n- High field count per record, or fields you don't need\n- Batch/paginated results (multiple items per call)\n- Long-text fields (descriptions, reviews, HTML, time series)\n- Output reused across later steps rather than consumed immediately\n\nFor small, single-use responses, calling the main script directly is fine.\n\n⚠️ The preview is a truncated schema + sample, not the full data. Any field-level decision must read from the persisted file via `read`.\n<!-- /LF_LARGE_RESPONSE_BLOCK -->\n\nFile v1.0.1:_meta.json\n\n{\n  \"ownerId\": \"kn7dmc1t4j28hem1twwyav85p182pb1j\",\n  \"slug\": \"linkfox-amazon-store-catalog\",\n  \"version\": \"1.0.1\",\n  \"publishedAt\": 1782726289759\n}\n\nFile v1.0.1:references/api.md\n\n# linkfox-amazon-store-catalog — API 参考\n\n经 **LinkFox** `storeTokens` + `developerProxy` 调用 SP-API **Catalog Items**（与 listings / pricing 系列相同）。\n\n环境变量：`LINKFOXAGENT_API_KEY`；可选 `STORE_API_BASE_URL` / `SPAPI_BASE_URL`。\n\n---\n\n## 1. 脚本与 path\n\n| 脚本 | method | path |\n|------|--------|------|\n| `list_catalog_categories.py` | GET | `catalog/v0/categories` |\n| `search_catalog_items.py` | GET | `catalog/2022-04-01/items`（默认） |\n| `get_catalog_item.py` | GET | `catalog/2022-04-01/items/{asin}`（默认） |\n\n`catalogItemsVersion` 可选 **`2020-12-01`**，path 中版本段随之替换。\n\n---\n\n## 2. listCatalogCategories（v0）\n\n### 入参（JSON）\n\n| 字段 | 必填 | 说明 |\n|------|------|------|\n| sellerId, region | 是 | 店铺与区域 |\n| marketplaceId / marketplaceIds | 是 | 仅使用**第一个**站点 ID → query **`MarketplaceId`** |\n| asin / ASIN | 条件 | 与 sellerSku **二选一** |\n| sellerSku / SellerSKU | 条件 | 与 asin **二选一** |\n\n### Query（大小写敏感）\n\n- `MarketplaceId`\n- `ASIN` 或 `SellerSKU`\n\n解析字段：**`categories`**\n\n---\n\n## 3. searchCatalogItems\n\n### 入参\n\n| 字段 | 必填 | 说明 |\n|------|------|------|\n| marketplaceIds | 是 | 文档通常 ≤1 个 |\n| keywords | 条件 | 与 identifiers **互斥**，最多 20 个 |\n| identifiers | 条件 | 最多 20 个；须配 **identifiersType** |\n| identifiersType | 条件 | ASIN, EAN, GTIN, ISBN, JAN, MINSAN, SKU, UPC |\n| includedData | 否 | summaries, images, attributes, salesRanks 等 |\n| brandNames, classificationIds | 否 | 限缩关键词搜索 |\n| locale, keywordsLocale | 否 | |\n| pageSize | 否 | 1～20，默认 10 |\n| pageToken | 否 | 分页 |\n| catalogItemsVersion | 否 | `2022-04-01`（默认）或 `2020-12-01` |\n| sellerIdForCatalog | 否 | 覆盖 query 中的 sellerId（默认用 sellerId） |\n\n当 **identifiersType=SKU** 时，Amazon 要求 query 带 **sellerId**；脚本默认使用 JSON 里的 **sellerId**。\n\n解析字段：**`catalogItems`**\n\n---\n\n## 4. getCatalogItem\n\n| 字段 | 必填 | 说明 |\n|------|------|------|\n| asin | 是 | path 段 |\n| marketplaceIds | 是 | |\n| includedData | 否 | |\n| locale | 否 | |\n| catalogItemsVersion | 否 | |\n\n解析字段：**`catalogItem`**\n\n---\n\n## 5. includedData 示例（2022-04-01）\n\n`summaries`, `attributes`, `classifications`, `dimensions`, `identifiers`, `images`, `productTypes`, `relationships`, `salesRanks`, `vendorDetails`（以官方为准）。\n\n---\n\n## 6. 错误与白名单\n\n- **403**：Catalog Items 权限不足。\n- **1005**（网关）：需放行 `catalog/v0/`、`catalog/2020-12-01/`、`catalog/2022-04-01/`。\n- **429**：按官方 usage plan 降频。\n\n---\n\n## 7. Feedback\n\n上报时注明 **`skillName`: `linkfox-amazon-store-catalog`**。\n\nFile v1.0.1:skill-card.md\n\n## Description: <br>\nAmazon Store Catalog helps agents query Amazon SP-API Catalog Items through LinkFox for category lookup, item search, and ASIN-based catalog retrieval. <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>\nDevelopers and marketplace operators use this skill to retrieve Amazon Catalog Items data for store workflows, including category lookup, keyword or identifier search, and item detail retrieval by ASIN. <br>\n\n### Deployment Geography for Use: <br>\nGlobal <br>\n\n## Known Risks and Mitigations: <br>\nRisk: The skill uses LINKFOXAGENT_API_KEY and LinkFox store API workflows for Amazon SP-API calls. <br>\nMitigation: Keep the API key secret, install only if you trust linkfox-ai with the Amazon store workflow, and use the skill only with authorized seller accounts. <br>\nRisk: Saved large responses may contain catalog, pricing, seller, or token-related data and are not automatically deleted. <br>\nMitigation: Write saved responses only to a temporary private directory outside a git worktree, extract only needed fields, and delete saved files when finished. <br>\n\n\n## Reference(s): <br>\n- [ClawHub skill page](https://clawhub.ai/linkfox-ai/skills/linkfox-amazon-store-catalog) <br>\n- [linkfox-amazon-store-catalog API reference](references/api.md) <br>\n- [Amazon SP-API listCatalogCategories](https://developer-docs.amazon.com/sp-api/reference/listcatalogcategories) <br>\n- [Amazon SP-API searchCatalogItems](https://developer-docs.amazon.com/sp-api/reference/searchcatalogitems) <br>\n- [Amazon SP-API getCatalogItem](https://developer-docs.amazon.com/sp-api/reference/getcatalogitem) <br>\n- [LinkFox Skills](https://skill.linkfox.com/) <br>\n\n\n## Skill Output: <br>\n**Output Type(s):** [Shell commands, JSON, Guidance] <br>\n**Output Format:** [Markdown guidance with inline shell commands and JSON API responses] <br>\n**Output Parameters:** [1D] <br>\n**Other Properties Related to Output:** [May save large API responses to local JSON files for later field extraction; saved files can contain sensitive store data and should be kept in a private temporary directory and deleted when finished.] <br>\n\n## Skill Version(s): <br>\n1.0.1 (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 v0.0.1: 9 files, 14111 bytes\n\nFiles: references/api.md (2818b), scripts/_spapi_catalog_common.py (6218b), scripts/check_auth_dependency.py (6078b), scripts/get_catalog_item.py (2724b), scripts/list_catalog_categories.py (2640b), scripts/search_catalog_items.py (5146b), skill-card.md (2738b), SKILL.md (3793b), _meta.json (147b)\n\nFile v0.0.1:SKILL.md\n\n---\nname: linkfox-amazon-store-catalog\nversion: 0.0.1\ncategory: product-sourcing\ndescription: 亚马逊店铺商品目录 Catalog（与 linkfox-amazon-store-auth / report / listings / pricing / orders / feeds 同系列），经 /spApi/developerProxy 调用 SP-API Catalog Items：v0 listCatalogCategories；v2022-04-01（默认）或 v2020-12-01 的 searchCatalogItems、getCatalogItem。当用户提到亚马逊目录、Catalog Items、listCatalogCategories、searchCatalogItems、getCatalogItem、按 ASIN 查目录、关键词搜商品目录、类目节点、includedData、summaries/images 时触发。\n---\n\n# Amazon 店铺 Catalog Items\n\n本 skill 与 **`linkfox-amazon-store-auth`** 等同属 **Amazon Store** 系列：先 **`POST /spApi/storeTokens`**，再 **`POST /spApi/developerProxy`** 转发 **GET**。\n\n## 官方参考索引\n\n| 能力 | 文档 |\n|------|------|\n| listCatalogCategories | [listCatalogCategories](https://developer-docs.amazon.com/sp-api/reference/listcatalogcategories) |\n| searchCatalogItems | [searchCatalogItems](https://developer-docs.amazon.com/sp-api/reference/searchcatalogitems) |\n| getCatalogItem | [getCatalogItem](https://developer-docs.amazon.com/sp-api/reference/getcatalogitem) |\n\n---\n\n## Prerequisites\n\n1. 依赖 **`linkfox-amazon-store-auth`**；`python scripts/check_auth_dependency.py`，exit **42** 时需先安装授权 skill。\n2. 应用需具备 **Catalog Items** 相关角色；`searchCatalogItems` 按 **identifiers+SKU** 检索时 query 须带 **`sellerId`**（脚本在 `identifiersType=SKU` 时自动使用入参 `sellerId`）。\n\n---\n\n## Current Capabilities\n\n| 能力 | path | 脚本 |\n|------|------|------|\n| listCatalogCategories | `catalog/v0/categories` | `list_catalog_categories.py` |\n| searchCatalogItems | `catalog/{2022-04-01\\|2020-12-01}/items` | `search_catalog_items.py` |\n| getCatalogItem | `catalog/{version}/items/{asin}` | `get_catalog_item.py` |\n\n默认 Catalog Items 版本：**`2022-04-01`**；入参 **`catalogItemsVersion`** 可改为 **`2020-12-01`**。\n\n共享模块：**`_spapi_catalog_common.py`**。\n\n---\n\n## Quick Parameters\n\n- **listCatalogCategories**：`marketplaceId` + **`asin`** 或 **`sellerSku`**（二选一）。\n- **searchCatalogItems**：`marketplaceIds` + **`keywords`** 或 **`identifiers` + `identifiersType`**（互斥）；可选 `includedData`、`brandNames`、`classificationIds`、`pageSize`、`pageToken`。\n- **getCatalogItem**：`asin`、`marketplaceIds`；可选 `includedData`、`locale`。\n\n---\n\n## Scripts\n\n```bash\nexport LINKFOXAGENT_API_KEY=\"<your-key>\"\n\npython scripts/list_catalog_categories.py '{\"sellerId\":\"A1...\",\"region\":\"NA\",\"marketplaceId\":\"ATVPDKIKX0DER\",\"asin\":\"B08N5WRWNW\"}'\n\npython scripts/search_catalog_items.py '{\"sellerId\":\"A1...\",\"region\":\"NA\",\"marketplaceIds\":[\"ATVPDKIKX0DER\"],\"keywords\":[\"wireless mouse\"]}'\n\npython scripts/get_catalog_item.py '{\"sellerId\":\"A1...\",\"region\":\"NA\",\"asin\":\"B08N5WRWNW\",\"marketplaceIds\":[\"ATVPDKIKX0DER\"],\"includedData\":[\"summaries\",\"images\"]}'\n```\n\n---\n\n## Display Rules\n\n1. 先看 **`developerProxy.errcode` / `httpStatus`**，再读 **`categories`** / **`catalogItems`** / **`catalogItem`**。\n2. **listCatalogCategories** 使用 v0 查询键 **`MarketplaceId`**（单数），与 search/get 的 **`marketplaceIds`** 不同。\n3. 网关 path 白名单需包含 **`catalog/v0/`** 与 **`catalog/2022-04-01/`**（或 `2020-12-01`）。\n\n---\n\n## Important Limitations\n\n- 本 skill 读的是 **Amazon 商品目录（Catalog）**，不是卖家订单；订单见 **`linkfox-amazon-store-orders`**。\n- `includedData`、返回字段以 Amazon schema 为准，详见 **`references/api.md`**。\n\n**Feedback：** `skillName`：`linkfox-amazon-store-catalog`。\n\n---\n*更多跨境 skill：[LinkFox Skills](https://skill.linkfox.com/)*\n\nFile v0.0.1:_meta.json\n\n{\n  \"ownerId\": \"kn7dmc1t4j28hem1twwyav85p182pb1j\",\n  \"slug\": \"linkfox-amazon-store-catalog\",\n  \"version\": \"0.0.1\",\n  \"publishedAt\": 1779260594351\n}\n\nFile v0.0.1:references/api.md\n\n# linkfox-amazon-store-catalog — API 参考\n\n经 **LinkFox** `storeTokens` + `developerProxy` 调用 SP-API **Catalog Items**（与 listings / pricing 系列相同）。\n\n环境变量：`LINKFOXAGENT_API_KEY`；可选 `STORE_API_BASE_URL` / `SPAPI_BASE_URL`。\n\n---\n\n## 1. 脚本与 path\n\n| 脚本 | method | path |\n|------|--------|------|\n| `list_catalog_categories.py` | GET | `catalog/v0/categories` |\n| `search_catalog_items.py` | GET | `catalog/2022-04-01/items`（默认） |\n| `get_catalog_item.py` | GET | `catalog/2022-04-01/items/{asin}`（默认） |\n\n`catalogItemsVersion` 可选 **`2020-12-01`**，path 中版本段随之替换。\n\n---\n\n## 2. listCatalogCategories（v0）\n\n### 入参（JSON）\n\n| 字段 | 必填 | 说明 |\n|------|------|------|\n| sellerId, region | 是 | 店铺与区域 |\n| marketplaceId / marketplaceIds | 是 | 仅使用**第一个**站点 ID → query **`MarketplaceId`** |\n| asin / ASIN | 条件 | 与 sellerSku **二选一** |\n| sellerSku / SellerSKU | 条件 | 与 asin **二选一** |\n\n### Query（大小写敏感）\n\n- `MarketplaceId`\n- `ASIN` 或 `SellerSKU`\n\n解析字段：**`categories`**\n\n---\n\n## 3. searchCatalogItems\n\n### 入参\n\n| 字段 | 必填 | 说明 |\n|------|------|------|\n| marketplaceIds | 是 | 文档通常 ≤1 个 |\n| keywords | 条件 | 与 identifiers **互斥**，最多 20 个 |\n| identifiers | 条件 | 最多 20 个；须配 **identifiersType** |\n| identifiersType | 条件 | ASIN, EAN, GTIN, ISBN, JAN, MINSAN, SKU, UPC |\n| includedData | 否 | summaries, images, attributes, salesRanks 等 |\n| brandNames, classificationIds | 否 | 限缩关键词搜索 |\n| locale, keywordsLocale | 否 | |\n| pageSize | 否 | 1～20，默认 10 |\n| pageToken | 否 | 分页 |\n| catalogItemsVersion | 否 | `2022-04-01`（默认）或 `2020-12-01` |\n| sellerIdForCatalog | 否 | 覆盖 query 中的 sellerId（默认用 sellerId） |\n\n当 **identifiersType=SKU** 时，Amazon 要求 query 带 **sellerId**；脚本默认使用 JSON 里的 **sellerId**。\n\n解析字段：**`catalogItems`**\n\n---\n\n## 4. getCatalogItem\n\n| 字段 | 必填 | 说明 |\n|------|------|------|\n| asin | 是 | path 段 |\n| marketplaceIds | 是 | |\n| includedData | 否 | |\n| locale | 否 | |\n| catalogItemsVersion | 否 | |\n\n解析字段：**`catalogItem`**\n\n---\n\n## 5. includedData 示例（2022-04-01）\n\n`summaries`, `attributes`, `classifications`, `dimensions`, `identifiers`, `images`, `productTypes`, `relationships`, `salesRanks`, `vendorDetails`（以官方为准）。\n\n---\n\n## 6. 错误与白名单\n\n- **403**：Catalog Items 权限不足。\n- **1005**（网关）：需放行 `catalog/v0/`、`catalog/2020-12-01/`、`catalog/2022-04-01/`。\n- **429**：按官方 usage plan 降频。\n\n---\n\n## 7. Feedback\n\n上报时注明 **`skillName`: `linkfox-amazon-store-catalog`**。\n\nFile v0.0.1:skill-card.md\n\n## Description: <br>\nAmazon Store Catalog helps agents query Amazon SP-API Catalog Items through LinkFox for category lookup, keyword or identifier search, and ASIN-based catalog item retrieval. <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>\nDevelopers and marketplace operators use this skill to inspect Amazon product catalog data, including category nodes, search results, item summaries, images, and related Catalog Items fields for a seller account. <br>\n\n### Deployment Geography for Use: <br>\nGlobal <br>\n\n## Known Risks and Mitigations: <br>\nRisk: The skill requires sensitive Amazon SP-API access through a LinkFox API key and gateway. <br>\nMitigation: Install only when LinkFox is trusted for the seller account, keep LINKFOXAGENT_API_KEY out of logs and shared prompts, and rotate credentials if exposed. <br>\nRisk: Seller IDs, ASIN/SKU inputs, and returned catalog data may be business-sensitive. <br>\nMitigation: Limit use to authorized users and avoid pasting catalog responses into untrusted workspaces or public channels. <br>\nRisk: The skill depends on the companion LinkFox Amazon Store auth skill and correct Catalog Items permissions. <br>\nMitigation: Run the dependency check, verify the companion auth skill before use, and confirm Catalog Items roles before troubleshooting API failures. <br>\n\n\n## Reference(s): <br>\n- [ClawHub Skill Page](https://clawhub.ai/linkfox-ai/linkfox-amazon-store-catalog) <br>\n- [Catalog API Reference](references/api.md) <br>\n- [Amazon SP-API listCatalogCategories](https://developer-docs.amazon.com/sp-api/reference/listcatalogcategories) <br>\n- [Amazon SP-API searchCatalogItems](https://developer-docs.amazon.com/sp-api/reference/searchcatalogitems) <br>\n- [Amazon SP-API getCatalogItem](https://developer-docs.amazon.com/sp-api/reference/getcatalogitem) <br>\n\n\n## Skill Output: <br>\n**Output Type(s):** [text, markdown, shell commands, configuration, guidance] <br>\n**Output Format:** [Markdown guidance with JSON-producing Python command examples] <br>\n**Output Parameters:** [1D] <br>\n**Other Properties Related to Output:** [Scripts return JSON responses from LinkFox developerProxy calls and require LINKFOXAGENT_API_KEY plus the companion auth skill.] <br>\n\n## Skill Version(s): <br>\n0.0.1 (source: frontmatter and 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>","readmeExcerpt":"Skill: 亚马逊-店铺目录 Owner: linkfox-ai Summary: 亚马逊商品目录（Catalog Items）查询。用于按 ASIN 获取目录详情，按关键词、标识符或分类条件搜索商品，以及查询商品类目节点、标题摘要、图片和其他 includedData。用户提到亚马逊商品目录、Catalog Items、ASIN 查商品、关键词搜亚马逊商品、类目节点、商品图片或摘要、searchCatalogItems、getCatalogItem、listCatalogCategories 时触发。即使未明确说“Catalog”，只要希望查询亚马逊全站目录中的商品基础资料而不是卖家自己的 Listing，也应触发此技能；卖家 SKU 的刊登增删改查使用 linkfox-amazon-store-listings。 Tags: latest:1.0.8 Version history: v1.0.8 | 2026-09-14","codeSnippets":[],"executableExamples":[{"language":"bash","snippet":"export LINKFOXAGENT_API_KEY=\"<your-key>\"\n\npython scripts/list_catalog_categories.py '{\"sellerId\":\"A1...\",\"region\":\"NA\",\"marketplaceId\":\"ATVPDKIKX0DER\",\"asin\":\"B08N5WRWNW\"}'\n\npython scripts/search_catalog_items.py '{\"sellerId\":\"A1...\",\"region\":\"NA\",\"marketplaceIds\":[\"ATVPDKIKX0DER\"],\"keywords\":[\"wireless mouse\"]}'\n\npython scripts/get_catalog_item.py '{\"sellerId\":\"A1...\",\"region\":\"NA\",\"asin\":\"B08N5WRWNW\",\"marketplaceIds\":[\"ATVPDKIKX0DER\"],\"includedData\":[\"summaries\",\"images\"]}'"},{"language":"bash","snippet":"export LINKFOXAGENT_API_KEY=\"<your-key>\"\n\npython scripts/list_catalog_categories.py '{\"sellerId\":\"A1...\",\"region\":\"NA\",\"marketplaceId\":\"ATVPDKIKX0DER\",\"asin\":\"B08N5WRWNW\"}'\n\npython scripts/search_catalog_items.py '{\"sellerId\":\"A1...\",\"region\":\"NA\",\"marketplaceIds\":[\"ATVPDKIKX0DER\"],\"keywords\":[\"wireless mouse\"]}'\n\npython scripts/get_catalog_item.py '{\"sellerId\":\"A1...\",\"region\":\"NA\",\"asin\":\"B08N5WRWNW\",\"marketplaceIds\":[\"ATVPDKIKX0DER\"],\"includedData\":[\"summaries\",\"images\"]}'"},{"language":"bash","snippet":"export LINKFOXAGENT_API_KEY=\"<your-key>\"\n\npython scripts/list_catalog_categories.py '{\"sellerId\":\"A1...\",\"region\":\"NA\",\"marketplaceId\":\"ATVPDKIKX0DER\",\"asin\":\"B08N5WRWNW\"}'\n\npython scripts/search_catalog_items.py '{\"sellerId\":\"A1...\",\"region\":\"NA\",\"marketplaceIds\":[\"ATVPDKIKX0DER\"],\"keywords\":[\"wireless mouse\"]}'\n\npython scripts/get_catalog_item.py '{\"sellerId\":\"A1...\",\"region\":\"NA\",\"asin\":\"B08N5WRWNW\",\"marketplaceIds\":[\"ATVPDKIKX0DER\"],\"includedData\":[\"summaries\",\"images\"]}'"},{"language":"bash","snippet":"export LINKFOXAGENT_API_KEY=\"<your-key>\"\n\npython scripts/list_catalog_categories.py '{\"sellerId\":\"A1...\",\"region\":\"NA\",\"marketplaceId\":\"ATVPDKIKX0DER\",\"asin\":\"B08N5WRWNW\"}'\n\npython scripts/search_catalog_items.py '{\"sellerId\":\"A1...\",\"region\":\"NA\",\"marketplaceIds\":[\"ATVPDKIKX0DER\"],\"keywords\":[\"wireless mouse\"]}'\n\npython scripts/get_catalog_item.py '{\"sellerId\":\"A1...\",\"region\":\"NA\",\"asin\":\"B08N5WRWNW\",\"marketplaceIds\":[\"ATVPDKIKX0DER\"],\"includedData\":[\"summaries\",\"images\"]}'"},{"language":"bash","snippet":"export LINKFOXAGENT_API_KEY=\"<your-key>\"\n\npython scripts/list_catalog_categories.py '{\"sellerId\":\"A1...\",\"region\":\"NA\",\"marketplaceId\":\"ATVPDKIKX0DER\",\"asin\":\"B08N5WRWNW\"}'\n\npython scripts/search_catalog_items.py '{\"sellerId\":\"A1...\",\"region\":\"NA\",\"marketplaceIds\":[\"ATVPDKIKX0DER\"],\"keywords\":[\"wireless mouse\"]}'\n\npython scripts/get_catalog_item.py '{\"sellerId\":\"A1...\",\"region\":\"NA\",\"asin\":\"B08N5WRWNW\",\"marketplaceIds\":[\"ATVPDKIKX0DER\"],\"includedData\":[\"summaries\",\"images\"]}'"},{"language":"text","snippet":"python scripts/response_io.py run --script scripts/check_auth_dependency.py --out-dir <DIR> '<params>'\npython scripts/response_io.py read <file> --fields \"<paths>\"   # or --path \"<JMESPath>\""}],"parameters":null,"dependencies":[],"permissions":[],"extractedFiles":[{"path":"SKILL.md","content":"---\nname: linkfox-amazon-store-catalog\ndescription: 亚马逊商品目录（Catalog Items）查询。用于按 ASIN 获取目录详情，按关键词、标识符或分类条件搜索商品，以及查询商品类目节点、标题摘要、图片和其他 includedData。用户提到亚马逊商品目录、Catalog Items、ASIN 查商品、关键词搜亚马逊商品、类目节点、商品图片或摘要、searchCatalogItems、getCatalogItem、listCatalogCategories 时触发。即使未明确说“Catalog”，只要希望查询亚马逊全站目录中的商品基础资料而不是卖家自己的 Listing，也应触发此技能；卖家 SKU 的刊登增删改查使用 linkfox-amazon-store-listings。\n---\n\n# Amazon 店铺 Catalog Items\n\n本 skill 与 **`linkfox-amazon-store-auth`** 等同属 **Amazon Store** 系列：依赖 **`linkfox-amazon-store-auth`** 选店（`sellerId`+`region`）；直接 **`POST /spApi/developerProxy`** 传入 `sellerId`+`region`，由服务端解析 token（勿传 `amzAccessToken`，除非兼容旧调用）。转发 **GET**。\n\n## 调用方式\n\n- **API 端点**：`POST /spApi/developerProxy`（不同操作通过请求体区分；完整参数/响应/错误码见 `references/api.md`）\n- **Python 脚本**：`python scripts/<脚本名>.py '<JSON 参数>' [--inline]`（可用脚本见上文脚本一览）\n- **成本约束**：本工具会消耗算力；失败/空结果不得自动换关键词、翻页或连续试探；需要继续检索时先向用户说明会产生额外消耗。\n\n**输出策略（脚本默认行为）**：\n- **始终**将完整响应写入 `<cwd>/linkfox/<YYYY-MM-DD>/<session>/data/linkfox-amazon-store-catalog-<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\n| 能力 | 文档 |\n|------|------|\n| listCatalogCategories | [listCatalogCategories](https://developer-docs.amazon.com/sp-api/reference/listcatalogcategories) |\n| searchCatalogItems | [searchCatalogItems](https://developer-docs.amazon.com/sp-api/reference/searchcatalogitems) |\n| getCatalogItem | [getCatalogItem](https://developer-docs.amazon.com/sp-api/reference/getcatalogitem) |\n\n---\n\n## Prerequisites\n\n1. 依赖 **`linkfox-amazon-store-auth`**；`python scripts/check_auth_dependency.py`，exit **42** 时需先安装授权 skill。\n2. 应用需具备 **Catalog Items** 相关角色；`searchCatalogItems` 按 **identifiers+SKU** 检索时 query 须带 **`sellerId`**（脚本在 `identifiersType=SKU` 时自动使用入参 `sellerId`）。\n\n---\n\n## Current Capabilities\n\n| 能力 | path | 脚本 |\n|------|------|------|\n| listCatalogCategories | `catalog/v0/categories` | `list_catalog_categories.py` |\n| searchCatalogItems | `catalog/{2022-04-01\\|2020-12-01}/items` | `search_catalog_items.py` |\n| getCatalogItem | `catalog/{version}/items/{asin}` | `get_catalog_item.py` |\n\n默认 Catalog Items 版本：**`2022-04-01`**；入参 **`catalogItemsVersion`** 可改为 **`2020-12-01`**。\n\n共享模块：**`_spapi_catalog_common.py`**。\n\n---\n\n## Quick Parameters\n\n- **listCatalogCategories**：`marketplaceId` + **`asin`** 或 **`sellerSku`**（二选一）。\n- **searchCatalogItems**：`marketplaceIds` + **`keywords`** 或 **`identifiers` + `identifiersType`**（互斥）；可选 `includedData`、`brandNames`、`c"},{"path":"_meta.json","content":"{\n  \"ownerId\": \"kn7dmc1t4j28hem1twwyav85p182pb1j\",\n  \"slug\": \"linkfox-amazon-store-catalog\",\n  \"version\": \"1.0.8\",\n  \"publishedAt\": 1789361755682\n}"},{"path":"references/api.md","content":"# linkfox-amazon-store-catalog — API 参考\n\n经 **LinkFox** `storeTokens` + `developerProxy` 调用 SP-API **Catalog Items**（与 listings / pricing 系列相同）。\n\n环境变量：`LINKFOX_AGENT_API_KEY`（或 `LINKFOXAGENT_API_KEY`）（如未配置 按 SKILL.md 的 **## 解决认证和算力问题** 处理）；可选 `LINKFOX_TOOL_GATEWAY`（回退 `STORE_API_BASE_URL` / `SPAPI_BASE_URL`，默认 `https://tool-gateway.linkfox.com`）。\n\n---\n\n## 1. 脚本与 path\n\n| 脚本 | method | path |\n|------|--------|------|\n| `list_catalog_categories.py` | GET | `catalog/v0/categories` |\n| `search_catalog_items.py` | GET | `catalog/2022-04-01/items`（默认） |\n| `get_catalog_item.py` | GET | `catalog/2022-04-01/items/{asin}`（默认） |\n\n`catalogItemsVersion` 可选 **`2020-12-01`**，path 中版本段随之替换。\n\n---\n\n## 2. listCatalogCategories（v0）\n\n### 入参（JSON）\n\n| 字段 | 必填 | 说明 |\n|------|------|------|\n| sellerId, region | 是 | 店铺与区域 |\n| marketplaceId / marketplaceIds | 是 | 仅使用**第一个**站点 ID → query **`MarketplaceId`** |\n| asin / ASIN | 条件 | 与 sellerSku **二选一** |\n| sellerSku / SellerSKU | 条件 | 与 asin **二选一** |\n\n### Query（大小写敏感）\n\n- `MarketplaceId`\n- `ASIN` 或 `SellerSKU`\n\n解析字段：**`categories`**\n\n---\n\n## 3. searchCatalogItems\n\n### 入参\n\n| 字段 | 必填 | 说明 |\n|------|------|------|\n| marketplaceIds | 是 | 文档通常 ≤1 个 |\n| keywords | 条件 | 与 identifiers **互斥**，最多 20 个 |\n| identifiers | 条件 | 最多 20 个；须配 **identifiersType** |\n| identifiersType | 条件 | ASIN, EAN, GTIN, ISBN, JAN, MINSAN, SKU, UPC |\n| includedData | 否 | summaries, images, attributes, salesRanks 等 |\n| brandNames, classificationIds | 否 | 限缩关键词搜索 |\n| locale, keywordsLocale | 否 | |\n| pageSize | 否 | 1～20，默认 10 |\n| pageToken | 否 | 分页 |\n| catalogItemsVersion | 否 | `2022-04-01`（默认）或 `2020-12-01` |\n| sellerIdForCatalog | 否 | 覆盖 query 中的 sellerId（默认用 sellerId） |\n\n当 **identifiersType=SKU** 时，Amazon 要求 query 带 **sellerId**；脚本默认使用 JSON 里的 **sellerId**。\n\n解析字段：**`catalogItems`**\n\n---\n\n## 4. getCatalogItem\n\n| 字段 | 必填 | 说明 |\n|------|------|------|\n| asin | 是 | path 段 |\n| marketplaceIds | 是 | |\n| includedData | 否 | |\n| locale | 否 | |\n| catalogItemsVersion | 否 | |\n\n解析字段：**`catalogItem`**\n\n---\n\n## 5. includedData 示例（2022-04-01）\n\n`summaries`, `attributes`, `classifications`, `dimensions`, `identifiers`, `images`, `productTypes`, `relationships`, `salesRanks`, `vendorDetails`（以官方为准）。\n\n---\n\n## 6. 错误与白名单\n\n- **401**：HTTP 401 或 authorized error：按 SKILL.md 的 **## 解决认证和算力问题** 处理。\n- **402**：HTTP 402：按 SKILL.md 的 **## 解决认证和算力问题** 处理。\n- **403**：Catalog Items 权限不足。\n- **1005**（网关）：需放行 `catalog/v0/`、`catalog/2020-12-01/`、`catalog/2022-04-01/`。\n- **429**：按官方 usage plan 降频。\n\n---\n\n## 7. Feedback\n\n上报时注明 **`skillName`: `linkfox-amazon-store-catalog`**。"},{"path":"references/onboarding.md","content":"# 解决认证和算力问题\n\n调用本 skill 时若网关返回 **auth** 或 **billing** 错误，走本 skill 自带的 `scripts/onboarding.py` 完成引导。\n\n**auth 场景**：`errcode=401` 或消息含 `authorized error`/`鉴权失败`/`未授权`/`unauthorized`；或 `LINKFOX_AGENT_API_KEY` 与 `LINKFOXAGENT_API_KEY` 均为空。\n1. 若已配置 key → 先让用户重启会话（最常见误判），仍失败让用户重新取 key 或换手机号重注册\n2. 未配置 → 询问：自助去 https://agent.linkfox.com/ 取 key，或提供手机号让脚本注册\n3. 手机号路径：\n   - `python scripts/onboarding.py send-code <phone>` → 展示 JSON 里的 phone/agreements\n   - 收到验证码后：`python scripts/onboarding.py login <phone> <code>`\n   - 拿到 `api_key` 后把下面三平台配置转发给用户，提示重启会话生效：\n     - Windows PowerShell（永久）：`setx LINKFOX_AGENT_API_KEY \"<key>\"`\n     - macOS zsh：`echo 'export LINKFOX_AGENT_API_KEY=\"<key>\"' >> ~/.zshrc && source ~/.zshrc`\n     - Linux bash：`echo 'export LINKFOX_AGENT_API_KEY=\"<key>\"' >> ~/.bashrc && source ~/.bashrc`\n     - 变量名 `LINKFOX_AGENT_API_KEY`（主推）或 `LINKFOXAGENT_API_KEY`（老规范）任一即可\n\n**billing 场景**：`errcode=402` 或消息含 `算力/余额/quota/insufficient/充值/套餐到期`。\n- `python scripts/onboarding.py list-plans` → 有 AskUserQuestion 就弹菜单，否则输出编号清单让用户选\n- 校验 `plan_id` ∈ 清单、支付方式 ∈ 该套餐 `available_methods`（通常 `wechat/alipay`）\n- `python scripts/onboarding.py order <plan_id> <method>` → 展示优先级 PNG > `pay_url` > `ascii_qr`（标注兜底）\n- 已付款可选调 `python scripts/onboarding.py query <order_id>`，不主动轮询\n\n排除 `errcode=403`（无权限，不归入这两类）。所有子命令输出 stdout JSON，`error` 字段已含阶段前缀，透传给用户即可。完整用法：`python scripts/onboarding.py --help`。"},{"path":"skill-card.md","content":"## Description:\n\nHelps agents query Amazon SP-API Catalog Items through LinkFox by ASIN, keyword, identifier, or category to retrieve product details, summaries, images, and included catalog data.\n\nThis skill is ready for commercial/non-commercial use.\n\n## Publisher:\n\n[linkfox-ai](https://clawhub.ai/user/linkfox-ai)\n\n### License/Terms of Use:\n\nMIT-0\n\n## Use Case:\n\nExternal sellers, operators, and developers use this skill to look up Amazon catalog items for a selected seller account, region, and marketplace. It supports catalog research and store workflows that need item details, category nodes, summaries, images, or selected includedData fields.\n\n### Deployment Geography for Use:\n\nGlobal\n\n## Known Risks and Mitigations:\n\nRisk: Account login, API-key creation, and billing recovery flows may expose SMS codes or API keys in shared environments.\n\nMitigation: Use a private terminal, avoid entering SMS codes in shared sessions, and do not persist API keys in shell profiles on shared machines.\n\nRisk: Billing and order flows can present payment QR codes or payment URLs.\n\nMitigation: Verify the plan, amount, order identifier, and payment method before scanning a QR code or opening a payment URL.\n\nRisk: Full catalog responses are stored locally under the workspace linkfox session directory.\n\nMitigation: Review the saved-file location before use and retain or delete response files according to the user's data-handling policy.\n\nRisk: Repeated invalid or high-frequency SP-API calls can trigger temporary store-protection cooldowns.\n\nMitigation: Stop automatic retries on 400, 403, 404, or 429 style failures, follow retryAfter or blockedUntil when present, and correct parameters or authorization before retrying.\n\n## Reference(s):\n\n- [ClawHub Skill Page](https://clawhub.ai/linkfox-ai/skills/linkfox-amazon-store-catalog)\n- [API Reference](references/api.md)\n- [Authentication and Billing Onboarding](references/onboarding.md)\n- [Amazon SP-API listCatalogCategories](https://developer-docs.amazon.com/sp-api/reference/listcatalogcategories)\n- [Amazon SP-API searchCatalogItems](https://developer-docs.amazon.com/sp-api/reference/searchcatalogitems)\n- [Amazon SP-API getCatalogItem](https://developer-docs.amazon.com/sp-api/reference/getcatalogitem)\n\n## Skill Output:\n\n**Output Type(s):** [text, markdown, shell commands, configuration, guidance]\n\n**Output Format:** [JSON responses saved to local files, with stdout summaries for large responses and full inline JSON when requested.]\n\n**Output Parameters:** [1D]\n\n**Other Properties Related to Output:** [Full responses are written under the current workspace linkfox session directory; the skill can also provide setup commands for LinkFox API-key configuration.]\n\n## Skill Version(s):\n\n1.0.8 (source: server release evidence)\n\n## Ethical Considerations:\n\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"}],"languages":[],"docsSourceLabel":"CLAWHUB","editorialOverview":"亚马逊商品目录（Catalog Items）查询。用于按 ASIN 获取目录详情，按关键词、标识符或分类条件搜索商品，以及查询商品类目节点、标题摘要、图片和其他 includedData。用户提到亚马逊商品目录、Catalog Items、ASIN 查商品、关键词搜亚马逊商品、类目节点、商品图片或摘要、searchCatalogItems、getCatalogItem、listCatalogCategories 时触发。即使未明确说“Catalog”，只要希望查询亚马逊全站目录中的商品基础资料而不是卖家自己的 Listing，也应触发此技能；卖家 SKU 的刊登增删改查使用 linkfox-amazon-store-listings。 Skill: 亚马逊-店铺目录 Owner: linkfox-ai Summary: 亚马逊商品目录（Catalog Items）查询。用于按 ASIN 获取目录详情，按关键词、标识符或分类条件搜索商品，以及查询商品类目节点、标题摘要、图片和其他 includedData。用户提到亚马逊商品目录、Catalog Items、ASIN 查商品、关键词搜亚马逊商品、类目节点、商品图片或摘要、searchCatalogItems、getCatalogItem、listCatalogCategories 时触发。即使未明确说“Catalog”，只要希望查询亚马逊全站目录中的商品基础资料而不是卖家自己的 Listing，也应触发此技能；卖家 SKU 的刊登增删改查使用 linkfox-amazon-store-listings。 Tags: latest:1.0.8 Version history: v1.0.8 | 2026-09-14","editorialQuality":{"score":100,"threshold":65,"status":"ready","wordCount":1267,"uniquenessScore":47,"reasons":[]}},"media":{"evidence":{"source":"no-media","verified":false,"confidence":"low","updatedAt":"2026-10-10T08:02:07.943Z","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-10T08:02:07.943Z","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-10T10:43:53.321Z","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"}]}}}