linkfox-ai/linkfox-skills

linkfox-amazon-store-listings

亚马逊店铺 Listing 与刊登相?

First seen May 21, 2026

Installation

$ npx skills add linkfox-ai/linkfox-skills --skill linkfox-amazon-store-listings

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from linkfox-ai/linkfox-skills · top by installs.

npx skills add linkfox-ai/linkfox-skills

Browse all from linkfox-ai/linkfox-skills

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Repository health

Stars 98
License LICENSE
Default branch main
Open issues 1
Status Active

Skill metadata

Parsed from SKILL.md frontmatter.

Declared agents claude-code

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 13,250 B
  • docs SUMMARY.md 676 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 303 installs

SKILL.md

Amazon 店铺 Listings 与相关 API

本 skill 与 linkfox-amazon-store-authlinkfox-amazon-store-report 同属 Amazon Store 系列:依赖 linkfox-amazon-store-auth 选店(sellerId+region);直接 POST /spApi/developerProxy 传入 sellerId+region,由服务端解析 token(勿传 amzAccessToken,除非兼容旧调用)。转发上游 GETPATCHPUTDELETE

操作 官方参考
单条刊登 getListingsItem
检索列表 searchListingsItems
部分更新刊登 patchListingsItem
创建 / 全量更新刊登 putListingsItem
删除刊登 deleteListingsItem
刊登限制(ASIN) getListingsRestrictions
搜索 product type searchDefinitionsProductTypes
获取 product type 定义 getDefinitionsProductType

调用方式

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

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

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

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

解决认证和积分问题

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

异常情况

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

Prerequisites(必须先读)

本 skill 依赖 linkfox-amazon-store-auth。流程与 linkfox-amazon-store-report 相同:

  1. 运行 python scripts/checkauthdependency.py;若 exit code 42 且 stderr 含 DEPENDENCY_MISSING:,请先安装 linkfox-amazon-store-auth
  2. 不要在本 skill 内绕过依赖实现授权或令牌逻辑。

Current Capabilities

能力 Path 要点 脚本
获取单条 Listing listings/2021-08-01/items/{sellerId}/{sku} + Query scripts/getlistingsitem.py
搜索刊登列表 listings/2021-08-01/items/{sellerId} + Query(路径尾段 SKU) scripts/searchlistingsitems.py
部分更新 Listing(PATCH) get 路径 + Query + JSON body scripts/patchlistingsitem.py
创建 / 全量更新 Listing(PUT) get 路径 + Query + body;marketplaceIds 仅 1 个 scripts/putlistingsitem.py
删除 Listing(DELETE) get 路径 + Query(marketplaceIds 仅 1 个 scripts/deletelistingsitem.py
刊登限制 listings/2021-08-01/restrictions + Query(asin、sellerId、marketplaceIds 等) scripts/getlistingsrestrictions.py
搜索 Product Type definitions/2020-09-01/productTypes + Query scripts/searchdefinitionsproduct_types.py
获取 Product Type 定义 definitions/2020-09-01/productTypes/{productType} + Query;marketplaceIds 仅 1 个 scripts/getdefinitionsproduct_type.py

searchListingsItemsidentifiers / variationParentSku / packageHierarchySku 三者互斥(仅该接口;见 references/api.md)。searchDefinitionsProductTypeskeywordsitemName 互斥


Quick Parameters

getListingsItem(单条)

字段 必填 说明
sellerId 已授权 Seller ID
region NA / EU / FE
sku 卖家 SKU(非 ASIN)
marketplaceIds 建议仅 一个 marketplace id
includedData / issueLocale references/api.md

searchListingsItems(列表)

字段 必填 说明
sellerId 已授权 Seller ID
region NA / EU / FE
marketplaceIds 建议仅 一个 marketplace id
identifiers + identifiersType 最多 20 个;与 variationParentSkupackageHierarchySku 不能同用
variationParentSku / packageHierarchySku 与 identifiers 互斥
时间窗 / 状态 / 排序 / 分页 createdAfterlastUpdatedBeforewithStatussortBypageSize(≤20)、pageToken 等,见 references/api.md

patchListingsItem(部分更新)

字段 必填 说明
sellerId 已授权 Seller ID
region NA / EU / FE
sku 卖家 SKU
marketplaceIds 数组或逗号字符串;脚本拼入 Query
productType Amazon product type
patches 至少 1 条 JSON Patch(oppath 等)
includedData / mode / issueLocale references/api.md

putListingsItem(创建 / 全量更新)

字段 必填 说明
sellerId 已授权 Seller ID
region NA / EU / FE
sku 卖家 SKU
marketplaceIds 恰好一个 marketplace id
productType Amazon product type
requirements LISTING \ LISTINGPRODUCTONLY \ LISTINGOFFERONLY
attributes 须符合该 product type schema
includedData / mode / issueLocale references/api.md

deleteListingsItem(删除)

字段 必填 说明
sellerId 已授权 Seller ID
region NA / EU / FE
sku 卖家 SKU
marketplaceIds 恰好一个 marketplace id
issueLocale references/api.md

getListingsRestrictions

字段 必填 说明
sellerId 用于 storeTokens 与 Query
region NA / EU / FE
asin 目录 ASIN
marketplaceIds 数组或逗号字符串
conditionType / reasonLocale references/api.md

searchDefinitionsProductTypes

字段 必填 说明
sellerId 用于 storeTokens
region NA / EU / FE
marketplaceIds 数组或逗号字符串
keywords itemName 二者不可同时传(非空时互斥)
locale / searchLocale references/api.md

getDefinitionsProductType

字段 必填 说明
sellerId 用于 storeTokens
region NA / EU / FE
productType LUGGAGE(写入 path)
marketplaceIds 恰好一个 id
querySellerId 若需上游 Query sellerId(卖家专属 schema),传入;常与 sellerId 相同
productTypeVersion / requirements / requirementsEnforced / locale references/api.md

Scripts

  • scripts/getlistingsitem.py — 单条 listing。
  • scripts/searchlistingsitems.py — 搜索列表。
  • scripts/patchlistingsitem.py — PATCH 部分更新。
  • scripts/putlistingsitem.py — PUT 创建或全量更新。
  • scripts/deletelistingsitem.py — DELETE 删除刊登。
  • scripts/getlistingsrestrictions.py — GET 刊登限制。
  • scripts/searchdefinitionsproduct_types.py — GET 搜索 product type。
  • scripts/getdefinitionsproduct_type.py — GET product type JSON Schema。
  • scripts/checkauthdependency.py — 依赖检测。

示例:

export LINKFOXAGENT_API_KEY="<your-key>"

python scripts/get_listings_item.py '{"sellerId":"A1...","region":"NA","sku":"MY-SKU","marketplaceIds":["ATVPDKIKX0DER"]}'

python scripts/search_listings_items.py '{"sellerId":"A1...","region":"NA","marketplaceIds":["ATVPDKIKX0DER"],"identifiers":["B0XXXXXXXX"],"identifiersType":"ASIN"}'

python scripts/patch_listings_item.py '{"sellerId":"A1...","region":"NA","sku":"MY-SKU","marketplaceIds":["ATVPDKIKX0DER"],"productType":"LUGGAGE","patches":[{"op":"replace","path":"/attributes/item_name","value":[{"value":"New Title","marketplace_id":"ATVPDKIKX0DER"}]}]}'

python scripts/put_listings_item.py '{"sellerId":"A1...","region":"NA","sku":"MY-SKU","marketplaceIds":["ATVPDKIKX0DER"],"productType":"LUGGAGE","requirements":"LISTING","attributes":{"item_name":[{"value":"Title","marketplace_id":"ATVPDKIKX0DER"}]}}'

python scripts/delete_listings_item.py '{"sellerId":"A1...","region":"NA","sku":"MY-SKU","marketplaceIds":["ATVPDKIKX0DER"]}'

python scripts/get_listings_restrictions.py '{"sellerId":"A1...","region":"NA","asin":"B0XXXXXXXX","marketplaceIds":["ATVPDKIKX0DER"]}'

python scripts/search_definitions_product_types.py '{"sellerId":"A1...","region":"NA","marketplaceIds":["ATVPDKIKX0DER"],"keywords":["luggage"]}'

python scripts/get_definitions_product_type.py '{"sellerId":"A1...","region":"NA","productType":"LUGGAGE","marketplaceIds":["ATVPDKIKX0DER"],"querySellerId":"A1..."}'

Display Rules

  1. items 类接口:路径含 卖家 SKU 时强调非 ASIN;searchListingsItems 路径仅到 sellerId
  2. 展示网关结果时说明 errcode / httpStatus;成功后再解析 bodylisting / searchResult / patchResult / putResult / deleteResult / restrictionsResult / productTypesSearchResult / productTypeDefinitionResult)。
  3. searchListingsItems 多页:从 searchResult 取下一页 token(字段名以 Amazon 响应为准),传入 pageToken
  4. restrictions / definitions 路径与 items 不同;1005 时需为 listings/2021-08-01/restrictionsdefinitions/2020-09-01/productTypes 等前缀分别配置白名单(以运维为准)。
  5. patch / put / delete 为写操作;delete 须谨慎;put 为全量 attributespatch 仅顶层属性可 patch(以官方为准)。

Important Limitations

  • marketplaceIdsget / searchListingsItems 脚本对多 id 常仅取第一个;put / delete / getDefinitionsProductType 多于 1 个即报错;patchrestrictionssearchDefinitionsProductTypes 行为见 references/api.md
  • searchListingsItemspageSize ≤ 20identifiers ≤ 20
  • patchpatches 至少 1 条;JSON Patch 的 deletedeleteListingsItem 接口不同;Vendor 对部分 patch 可能 400
  • putLISTINGOFFERONLY 对 Vendor 400
  • 白名单listings/.../itemslistings/.../restrictionsdefinitions/2020-09-01/productTypes 均须按需放行。

积分消耗规则

不消耗积分。

Feedback:references/api.md 中 Feedback API,skillNamelinkfox-amazon-store-listings


更多跨境 skill:LinkFox Skills