Getting it into your agent
It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.
git clone --depth 1 https://github.com/zach22-1999/lingxing-mcpnpx agentmods add skills/zach22-1999/lingxing-mcp/zach-lingxing-openapi-clientWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/zach22-1999/lingxing-mcp/zach-lingxing-openapi-client)<a href="https://agentmods.dev/skills/zach22-1999/lingxing-mcp/zach-lingxing-openapi-client"><img src="https://agentmods.dev/badge/skills/zach22-1999/lingxing-mcp/zach-lingxing-openapi-client/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/zach22-1999/lingxing-mcp/zach-lingxing-openapi-client"><img src="https://agentmods.dev/badge/skills/zach22-1999/lingxing-mcp/zach-lingxing-openapi-client.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00094 | $0.01309 |
| Opus 5 | $0.00047 | $0.00655 |
| Sonnet 5 | $0.00019 | $0.00262 |
| Haiku 4.5 | $0.00009 | $0.00131 |
Grade A, and why
zach-lingxing-openapi-client scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 142 lines — stays where its author put it; the contents beside it link to each section on GitHub.
本机直连停用 / 固定出口模式可用:领星 OpenAPI 因 IP 白名单限制,本地环境无法直接访问。 如已部署固定出口网关并将
EIP加入白名单,可继续使用本 Skill。 未部署前,需要亚马逊经营数据时请优先改用 Amazon SP-API(MCP:amazon-api)。
本公开版 Skill 是自包含的,不依赖任何私有工作区文件、内部协议或团队手册。
领星 OpenAPI 客户端底座
核心功能
- 统一管理
access_token获取与续约 - 按官方规则生成
sign - 封装 GET/POST 业务请求
- 缓存关键官方文档到本地
- 运行最小烟测,确认
SellerLists -> StoreSales -> Orderlists -> promotionListingList链路可用 - 给领星 MCP 和其他 skill 提供共享服务层
环境变量
| 变量名 | 必需 | 说明 |
|---|---|---|
LINGXING_APP_ID |
是 | 领星开放接口 App ID |
LINGXING_APP_SECRET |
是 | 领星开放接口 App Secret |
LINGXING_TOKEN_CACHE_FILE |
否 | token 缓存文件路径,默认 runtime/lingxing/token_cache.json |
LINGXING_DOC_ACCESS_KEY |
否 | 文档同步时使用的文档密钥 |
Script Directory
脚本位于 skills/zach-lingxing-openapi-client/scripts/:
lingxing_client.py:兼容入口,实际复用lib/lingxing_openapi/client.pytimezone_map.py:兼容入口,实际复用lib/lingxing_openapi/timezones.pysync_docs.py:从官方_sidebar.md自动发现并同步 Amazon 相关只读文档到references/openapi_docs/smoke_check.py:最小链路烟测
共享代码位于 lib/lingxing_openapi/:
client.py:鉴权、续约、签名、统一请求封装services.py:店铺、销量、订单、促销等业务型封装promotions.py:促销标签与窗口归一化errors.py:统一错误与提示mcp.py:MCP 工具注册、stdio/HTTP 传输层
本地文档缓存
同步命令:
python3 skills/zach-lingxing-openapi-client/scripts/sync_docs.py
同步结果会写入:
skills/zach-lingxing-openapi-client/references/openapi_docs/
会保留现有 12 页兼容文件名,并自动扩展更多 Amazon 相关只读页面。兼容页包括:
- GetToken
- RefreshToken
- SellerLists
- AllMarketplace
- StoreSales
- AsinDailyLists
- Orderlists
- promotionListingList
- promotionalActivitiesSecKillList
- promotionalActivitiesManageList
- promotionalActivitiesVipDiscountList
- promotionalActivitiesCouponList
使用方法
场景 1:给其他 skill 复用
直接在 Python 脚本中导入:
from lib.lingxing_openapi import LingxingOpenAPIClient, LingxingOpenAPIService
场景 2:同步本地文档
export LINGXING_DOC_ACCESS_KEY="你的文档密钥"
python3 skills/zach-lingxing-openapi-client/scripts/sync_docs.py
场景 3:烟测
export LINGXING_APP_ID="ak_xxx"
export LINGXING_APP_SECRET="xxx"
python3 skills/zach-lingxing-openapi-client/scripts/smoke_check.py
What ships with it
60 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
- README.md 4.5 KB
- references/openapi_docs/01_GetToken.md 1.8 KB
- references/openapi_docs/02_RefreshToken.md 1.6 KB
- references/openapi_docs/03_SellerLists.md 2.2 KB
- references/openapi_docs/04_AllMarketplace.md 5.9 KB
- references/openapi_docs/05_StoreSales.md 3.4 KB
- references/openapi_docs/06_AsinDailyLists.md 1.9 KB
- references/openapi_docs/07_Orderlists.md 8.6 KB
- references/openapi_docs/08_PromotionListingList.md 6.3 KB
- references/openapi_docs/09_PromotionalActivitiesSecKillList.md 4.9 KB
- references/openapi_docs/10_PromotionalActivitiesManageList.md 5.2 KB
- references/openapi_docs/11_PromotionalActivitiesVipDiscountList.md 4.0 KB
- references/openapi_docs/12_PromotionalActivitiesCouponList.md 4.1 KB
- references/openapi_docs/BasicData_AccoutLists.md 2.3 KB
- references/openapi_docs/BasicData_AttachmentDownload.md 1.7 KB
- references/openapi_docs/BasicData_ConceptSellerLists.md 1.9 KB
- references/openapi_docs/BasicData_Currency.md 6.2 KB
- references/openapi_docs/BasicData_CustomAttachmentDownload.md 2.3 KB
- references/openapi_docs/BasicData_StateList.md 4.3 KB
- references/openapi_docs/BasicData_WorldStateLists.md 3.7 KB
- references/openapi_docs/doc_catalog.json 91 KB
- references/openapi_docs/FBA_BoxInfo.md 3.1 KB
- references/openapi_docs/FBA_FBAReceivedInventory.md 3.6 KB
- references/openapi_docs/FBA_FBAShipmentList.md 11 KB
- references/openapi_docs/FBA_GetDeliveryDateList.md 2.7 KB
- references/openapi_docs/FBA_GetFbaProductList.md 2.0 KB
- references/openapi_docs/FBA_GetHeadLogisticsFeeTypes.md 1.4 KB
- references/openapi_docs/FBA_getInboundPackingBoxInfo.md 8.5 KB
- references/openapi_docs/FBA_GetInboundShipmentList.md 17 KB
- references/openapi_docs/FBA_getInboundShipmentListMwsDetail.md 51 KB
- references/openapi_docs/FBA_GetInboundShipmentListMwsDetailList.md 43 KB
- references/openapi_docs/FBA_GetPrepareDetails.md 7.3 KB
- references/openapi_docs/FBA_GetSeaTrackSupplierCarriers.md 1.3 KB
- references/openapi_docs/FBA_GetTransportList.md 3.2 KB
- references/openapi_docs/FBA_ListPackingGroupItems.md 4.7 KB
- references/openapi_docs/FBA_ListShipmentBoxes.md 16 KB
- references/openapi_docs/FBA_Operate.md 1.8 KB
- references/openapi_docs/FBA_printFbaLabels.md 3.3 KB
- references/openapi_docs/FBA_printFnskuLabels.md 2.8 KB
- references/openapi_docs/FBA_QuerySTATaskBoxInformation.md 5.4 KB
- references/openapi_docs/FBA_QuerySTATaskList.md 6.2 KB
- references/openapi_docs/FBA_ShipFromAddressList.md 3.8 KB
- references/openapi_docs/FBA_ShipmentDetailList.md 7.8 KB
- references/openapi_docs/FBA_ShipmentPlanLists.md 9.8 KB
- references/openapi_docs/FBA_ShipmentPreView.md 7.0 KB
- references/openapi_docs/FBA_ShoppingAddress.md 3.0 KB
- references/openapi_docs/FBA_StaTaskDetail.md 4.9 KB
- references/openapi_docs/FBALimit_GetIpiInfo.md 5.1 KB
- references/openapi_docs/FBALimit_replenishmentRestrictionList.md 19 KB
- references/openapi_docs/FBASug_ConfigASIN.md 7.6 KB
- references/openapi_docs/FBASug_ConfigMSKU.md 7.8 KB
- references/openapi_docs/FBASug_DailySalesInfoFeatureASIN.md 38 KB
- references/openapi_docs/FBASug_DailySalesInfoFeatureMSKU.md 40 KB
- references/openapi_docs/FBASug_GetSummaryList.md 15 KB
- references/openapi_docs/FBASug_InfoASIN.md 5.8 KB
- references/openapi_docs/FBASug_InfoMSKU.md 7.2 KB
- references/openapi_docs/FBASug_SourceListASIN.md 9.7 KB
- references/openapi_docs/FBASug_SourceListMSKU.md 9.0 KB
- references/openapi_docs/Finance_bdASIN.md 34 KB
- references/openapi_docs/Finance_bdMSKU.md 35 KB
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 12d ago First seen · 142 lines · 94 tokens per session scan A 1f1acb7520a2
zach-lingxing-openapi-client is a skill published in the GitHub repository zach22-1999/lingxing-mcp (41 stars, last pushed 1mo ago), licensed MIT. It adds 94 tokens to every session and 1,309 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other skills, from other repositories
zach-product-research
A Sorftime-based product research skill for finding Amazon market opportunities and deciding whether a new product is worth pursuing. Sorftime is a market-research data source for Amazon sellers.
zach-seller-skill-creator
A Chinese-language guide for Amazon sellers who want to turn repeated work processes into reusable skills for an AI agent.
zach-listing-health-checker
An Amazon listing health checker that examines a product page as a shopper would see it, including visibility, price, seller, cart, delivery, category, rank, reviews, and search visibility.
zach-feature-demand-validator
A research skill for checking whether a small product improvement matches real customer demand. It compares product reviews, search keywords, and discussions in online communities.
zach-search-term-analyzer
An analyzer for Amazon Brand Analytics Top Search Terms reports, which show popular searches across Amazon and how clicks and conversions are distributed among products.
zach-search-term-report-analyzer
An Amazon Ads search-term report analyzer for Sponsored Products, Sponsored Brands, and Sponsored Display campaigns. It groups related search terms, measures results over 7, 14, and 30 days, and produces reports in several file formats.