zach-lingxing-openapi-client

zach-lingxing-openapi-client is a skill for Claude Code from zach22-1999/lingxing-mcp. It costs 94 tokens per session (1,309 once invoked), scanned A, original, MIT.

A reusable client foundation for connecting to Lingxing ERP’s OpenAPI, including authentication, request signing, documentation caching, and basic connection checks.

In plain words
What is it for?
Use it when building integrations that read Lingxing Amazon business data, map shops and sites, sync API documentation, or test seller, sales, order, and promotion endpoints.
Why use it?
It centralises the repeated setup needed for Lingxing API calls and helps diagnose token, signature, and access problems.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is python3 skills/zach-lingxing-openapi-client/scripts/sync_docs.py.

Good fit Use it when building integrations that read Lingxing Amazon business data, map shops and sites, sync API documentation, or test seller, sales, order, and promotion endpoints.

Compare 6 skills from other repositories ↓
Install

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.

Clone the repo
git clone --depth 1 https://github.com/zach22-1999/lingxing-mcp
agentmods
npx agentmods add skills/zach22-1999/lingxing-mcp/zach-lingxing-openapi-client

Made for: Claude Code.

Wrote 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.

agentmods badge for zach-lingxing-openapi-client

README.md
[![agentmods](https://agentmods.dev/badge/skills/zach22-1999/lingxing-mcp/zach-lingxing-openapi-client/github.svg)](https://agentmods.dev/skills/zach22-1999/lingxing-mcp/zach-lingxing-openapi-client)
Your own site
<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.

agentmods 80×15 button for zach-lingxing-openapi-client

Your own site · 80×15
<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>
Per session 94 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,309 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce 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

Measured 12d ago against content hash 1f1acb7520a2, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

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.

skills/zach-lingxing-openapi-client/SKILL.md · 142 lines

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 客户端底座

核心功能

  1. 统一管理 access_token 获取与续约
  2. 按官方规则生成 sign
  3. 封装 GET/POST 业务请求
  4. 缓存关键官方文档到本地
  5. 运行最小烟测,确认 SellerLists -> StoreSales -> Orderlists -> promotionListingList 链路可用
  6. 给领星 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.py
  • timezone_map.py:兼容入口,实际复用 lib/lingxing_openapi/timezones.py
  • sync_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

Read the full file on GitHub · 142 lines

Files

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.

Changes

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.

  1. 12d ago First seen · 142 lines · 94 tokens per session scan A 1f1acb7520a2

Subscribe to this mod's changes

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.

Related

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.

zach22-1999/amazon-skills · 89 tokens

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.

zach22-1999/amazon-skills · 203 tokens

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.

zach22-1999/amazon-skills · 101 tokens

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.

zach22-1999/amazon-skills · 71 tokens

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.

zach22-1999/amazon-skills · 133 tokens

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.

zach22-1999/amazon-skills · 149 tokens