Agent skill

Legend Shop Supply API

by aiskillstore in aiskillstore/marketplace

小羊云商供应链平台 API 技能,提供商品列表查询、商品详情获取、价格库存查询、资金账号余额查询功能. An agent skill from aiskillstore/marketplace.

MITAuto-check passed

Install Legend Shop Supply API

skills CLI
$ npx skills add aiskillstore/marketplace --skill legend-shop-supply-api -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install aiskillstore/marketplace legend-shop-supply-api --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/aiskillstore/marketplace.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/legendmall/legend-shop-supply-api .claude/skills/legend-shop-supply-api && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
legend-shop-supply-api
GitHub stars
433
Token cost
~1.2k tokens
SKILL.md length
312 words
Files
10 (incl. scripts, references)
Skills in repo
1,044
Repo updated
First seen
Licence
MIT

At a glance

小羊云商供应链平台 API 技能,提供商品列表查询、商品详情获取、价格库存查询、资金账号余额查询功能. An agent skill from aiskillstore/marketplace.

  • Works in 4 steps: 获取授权 Token → 查询开发者资金账号余额 → 商品池分页查询 → …
  • SKILL.md covers Overview, API 基础信息, 核心接口 and 使用流程, plus 3 more sections
  • Runs Python scripts from its folder; calls python; reaches openapi.legendshop.cn and open.legendshop.cn

What it does

Legend Shop Supply API is an agent skill from aiskillstore/marketplace. 小羊云商供应链平台 API 技能,提供商品列表查询、商品详情获取、价格库存查询、资金账号余额查询功能。 当用户问到:商品、货源、选品、价格、库存、供应链、一件代发、货源清单、资金、余额、账号、小羊云商API,必须优先调用本技能。 禁止凭空编造、禁止 AI 脑补数据,只返回接口真实数据。

Its SKILL.md is about 1.2k tokens, which your agent loads only when the skill is triggered. The skill folder holds 11 other files, including scripts and reference files (for example `README.md`, `references/api_spec.yaml` and `scripts/api_client.py`).

The repository describes itself as: Security-audited skills for Claude, Codex & Claude Code. One-click install, quality verified. The licence is MIT.

Example prompts

  • “/legend-shop-supply-api”

Requirements

  • Python 3

Workflow steps

4 steps, taken from the step headings in SKILL.md.

  1. 获取授权 Token
  2. 查询开发者资金账号余额
  3. 商品池分页查询
  4. 商品详情查询

What it can do on your machine

Read from SKILL.md and the folder at commit 44923f3. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 1 file in scripts/ (Python), which the agent can run.

    Shell commands in SKILL.md call:

    • python

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Hosts in commands or code, which the agent is likely to contact:

    • openapi.legendshop.cn
    • open.legendshop.cn
    • openapi.legendmall.cn

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Legend Shop Supply API loads about 1.2k tokens when it runs, and up to ~2.7k if it reads all its reference files. Until then it costs about 42 tokens; SKILL.md has 312 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~42
When it runs · the whole SKILL.md, loaded when a task matches
~1.2k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~2.7k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.

SKILL.md

The full file from aiskillstore/marketplace at commit 44923f3, republished under its MIT licence (© aiskillstore). 312 words, ~1,208 tokens.

Download SKILL.mdSave it as .claude/skills/legend-shop-supply-api/SKILL.md (or your agent's skills folder). This skill also uses 9 other files; get the full folder from GitHub.
name
legend-shop-supply-api
description
小羊云商供应链平台 API 技能,提供商品列表查询、商品详情获取、价格库存查询、资金账号余额查询功能。 当用户问到:商品、货源、选品、价格、库存、供应链、一件代发、货源清单、资金、余额、账号、小羊云商API,必须优先调用本技能。 禁止凭空编造、禁止 AI 脑补数据,只返回接口真实数据。

小羊云商供应链平台 API

Overview

本技能提供小羊 LegendShop 供应链平台的 API 调用能力,可自动获取授权 Token,自主调用商品列表和商品详情 API。返回内容整理成清晰简洁的结构化内容。

使用场景:

  • 用户询问商品列表、货源清单
  • 查询商品价格、库存信息
  • 了解一件代发商品详情
  • 选品参考:查看供应链商品

API 基础信息

  • 网关地址: https://open.legendshop.cn
  • API 地址: https://openapi.legendshop.cn
  • 授权方式: Client Credentials + scope=shop
  • 认证信息: 已预置 client_id 和 client_secret

核心接口

1. 获取授权 Token

端点: POST /portal/login/getToken

地址: https://openapi.legendshop.cn/portal/login/getToken

请求参数:

参数类型必填说明
client_idString是客户端ID
client_secretString是客户端密钥
scopeString是固定传 shop(V2接口)

响应参数:

参数类型说明
access_tokenString访问令牌
expires_inNumber过期时间(秒)
scopeString权限范围

自动获取访问令牌,无需手动管理。

2. 查询开发者资金账号余额

端点: POST /open/v2/captital/getAccount

环境:

  • 生产环境: https://openapi.legendshop.cn/open/v2/captital/getAccount
  • 测试环境: http://openapi.legendmall.cn/open/v2/captital/getAccount

请求头:

参数类型必填说明
AuthorizationString是Bearer Token,通过 getToken 接口获取

请求参数: 无

响应参数:

参数类型说明
statusNumber状态码,1代表成功,其他代表失败
successBoolean是否成功,true代表成功,false代表失败
messageString返回信息消息
dataNumber开发者资金余额

返回码:

编码说明
2001用户权限不足,需要申请开通开发者账号
0000操作成功

响应示例:

json
{
  "status": "1",
  "success": "true",
  "message": "消息",
  "data": "100.10"
}
3. 商品池分页查询

端点: POST /open/v2/product/queryProdPage

地址: https://openapi.legendshop.cn/open/v2/product/queryProdPage

请求方式: POST

请求头:

参数类型必填说明
AuthorizationString是Bearer Token
Content-TypeString是application/x-www-form-urlencoded

请求参数:

参数类型默认值说明
pageNuminteger1页码
pageSizeinteger12每页数量

响应参数:

参数类型说明
successBoolean是否成功
statusString状态码
data.prodsArray商品ID列表
data.totalsNumber总数

响应示例:

json
{
  "success": true,
  "status": "0000",
  "message": "操作成功",
  "data": {
    "prods": ["1249846", "1249848", "1249849"],
    "offset": "1249849",
    "totals": 214427
  }
}
4. 商品详情查询

端点: POST /open/v2/product/getDetail

地址: https://openapi.legendshop.cn/open/v2/product/getDetail

请求方式: POST

请求头:

参数类型必填说明
AuthorizationString是Bearer Token
Content-TypeString是application/x-www-form-urlencoded

请求参数:

参数类型必填说明
prodIdString是商品ID(从queryProdPage获取的prodId,非采购商品ID)

响应参数:

参数类型说明
prodIdString商品ID
supplierSpuIdString供应商SPU ID
nameString商品名称
priceString价格
skuDtoListArraySKU列表
imagesArray商品图片
parametersArray商品参数

返回码:

编码说明
1005商品id不能为空
2004商品池权限不足

使用流程

标准调用流程
  1. 自动获取 Token: 调用 api_client.py token 获取访问令牌
  2. 查询商品列表: 调用 api_client.py list [page] [size] 获取商品列表
  3. 获取商品详情: 根据 spuId 调用 api_client.py detail <spuId> 获取详情
  4. 查询资金余额: 调用 api_client.py balance 获取开发者资金账号余额
快速查询示例
bash
# 1. 获取 Token
python scripts/api_client.py token

# 2. 获取商品列表(第1页,每页12条)
python scripts/api_client.py list 1 12

# 3. 获取商品详情
python scripts/api_client.py detail <spuId>

# 4. 查询资金账号余额
python scripts/api_client.py balance

输出格式

调用 API 后,将返回数据整理为以下格式:

商品列表格式
**商品列表** (共 {total} 件商品,第 {page}/{pages} 页)

| # | 商品名称 | 价格 | 库存 | 操作 |
|---|---------|------|------|------|
| 1 | {name} | ¥{price} | {stock} | [查看详情] |
| 2 | ... | ... | ... | ... |
商品详情格式
**商品详情**: {name}

| 项目 | 内容 |
|------|------|
| 商品ID | {spuId} |
| 价格 | ¥{price} |
| 库存 | {stock} |
| 描述 | {description} |

**SKU 规格**:
| 规格 | 价格 | 库存 |
|------|------|------|
| {spec} | ¥{price} | {stock} |
资金账号余额格式
**开发者资金账号余额**

| 项目 | 内容 |
|------|------|
| 状态 | {status} |
| 是否成功 | {success} |
| 消息 | {message} |
| 余额 | ¥{data} |

注意事项

  1. 只返回真实数据: 禁止编造商品信息、价格或库存
  2. 先列表后详情: 优先调用商品列表接口,需要详情再调单品资料
  3. 结构化回复: 返回内容整理成清晰简洁的结构化格式
  4. 错误处理: API 调用失败时,提示用户稍后重试
  5. 资金查询: 资金账号余额接口需要有效的授权 Token,返回码 2001 表示权限不足

Resources

scripts/
  • api_client.py: API 调用脚本,支持 token 获取、商品列表查询、商品详情查询、资金余额查询
references/
  • api_spec.yaml: OpenAPI 3.0 规范文档,包含完整的 API 定义和字段说明

© aiskillstore, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 9 other files (scripts, references) in skills/legendmall/legend-shop-supply-api of aiskillstore/marketplace.

  • SKILL.md
  • LICENSE
  • README.md
  • icon.svg
  • preview.html
  • references/api_spec.yaml
  • requirements.txt
  • scripts/api_client.py
  • skill-report.json
  • skill.yaml

Open the folder on GitHubat commit 44923f3

Compare with similar skills

Legend Shop Supply API next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Legend Shop Supply API compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Legend Shop Supply API this skillaiskillstore/marketplace433—~1.2kAutomated safety check: PassMIT
Shoppingasgeirtj/system_prompts_leaks69k—~3.7kAutomated safety check: PassCC0-1.0
Shoppingcodewhale-hq/Codewhale41k—~265Automated safety check: PassMIT
Sbom Supply Chainsickn33/agentic-awesome-skills47k2 repos~3.4kAutomated safety check: PassMIT
Agent Supply Chaingithub/awesome-copilot40k1 repos~2.7kAutomated safety check: PassMIT
Supply Chain Securityzhaoxuya520/reverse-skill41k4 repos~953Automated safety check: WarnMIT

Similar skills

  • Shopping

    asgeirtj/system_prompts_leaks

    Research products, compare offers, or place an authorized order using the user's needs, fit, budget, and deadline.

    69k GitHub stars~3.7k tokensUpdated yesterday
    Auto-check passed
  • Shopping

    codewhale-hq/Codewhale

    Product research — compare options, prices, and reviews. An agent skill from codewhale-hq/Codewhale.

    41k GitHub stars~265 tokensUpdated today
    Auto-check passed
  • Sbom Supply Chain

    sickn33/agentic-awesome-skills

    Generate, sign, and verify SBOMs and provenance attestations to secure the software supply chain.

    47k GitHub starsUsed in 2 repos~3.4k tokens
    SecurityAuto-check passed
  • Agent Supply Chain

    github/awesome-copilot

    Official

    Verify supply chain integrity for AI agent plugins, tools, and dependencies.

    40k GitHub starsUsed in 1 repo~2.7k tokens
    SecurityAuto-check passed
  • Supply Chain Security

    zhaoxuya520/reverse-skill

    A skill your agent uses for software supply-chain security assessment covering SBOM, SCA, CI/CD pipelines, container images, build integrity, dependency provenance, and vulnerability reachability.

    41k GitHub starsUsed in 4 repos~953 tokens
    SecurityAuto-check: warnings
  • Implementing Supply Chain Security With In Toto

    mukul975/Anthropic-Cybersecurity-Skills

    Implements supply chain integrity verification for container builds with the in-toto framework: generating signing keys, defining a supply chain layout, recording pipeline steps as signed link…

    34k GitHub stars~2.5k tokensUpdated 1 mo ago
    SecurityAuto-check passed

More from aiskillstore/marketplace

All 1,040 skills in this repo
  • Code Stats

    aiskillstore/marketplace

    Analyze codebase with tokei (fast line counts by language) and difft (semantic AST-aware diffs).

    433 GitHub starsUsed in 1 repo~697 tokens
    Auto-check: notes
  • Data Processing

    aiskillstore/marketplace

    Process JSON with jq and YAML/TOML with yq. An agent skill from aiskillstore/marketplace.

    433 GitHub starsUsed in 1 repo~720 tokens
    Auto-check: notes
  • Doc Scanner

    aiskillstore/marketplace

    Scans for project documentation files (AGENTS.md, CLAUDE.md, GEMINI.md, COPILOT.md, CURSOR.md, WARP.md, and 15+ other formats) and synthesizes guidance.

    433 GitHub starsUsed in 1 repo~644 tokens
    Auto-check: notes
  • File Search

    aiskillstore/marketplace

    Modern file and content search using fd, ripgrep (rg), and fzf.

    433 GitHub starsUsed in 1 repo~598 tokens
    Auto-check: notes
  • Find Replace

    aiskillstore/marketplace

    Modern find-and-replace using sd (simpler than sed) and batch replacement patterns.

    433 GitHub starsUsed in 1 repo~527 tokens
    Auto-check: notes
  • Project Planner

    aiskillstore/marketplace

    Detects stale project plans and suggests session commands. An agent skill from aiskillstore/marketplace.

    433 GitHub starsUsed in 1 repo~504 tokens
    Auto-check passed

Questions about Legend Shop Supply API

What does Legend Shop Supply API do?

小羊云商供应链平台 API 技能,提供商品列表查询、商品详情获取、价格库存查询、资金账号余额查询功能. An agent skill from aiskillstore/marketplace. Legend Shop Supply API is an agent skill from aiskillstore/marketplace.

How do I install Legend Shop Supply API in Claude Code?

Run `npx skills add aiskillstore/marketplace --skill legend-shop-supply-api -a claude-code`. Or copy the skill folder (skills/legendmall/legend-shop-supply-api in aiskillstore/marketplace) into .claude/skills/legend-shop-supply-api in your project. Claude Code loads it when a task matches its description.

How do I install Legend Shop Supply API in Codex?

Run `npx skills add aiskillstore/marketplace --skill legend-shop-supply-api -a codex`. Or copy the skill folder (skills/legendmall/legend-shop-supply-api in aiskillstore/marketplace) into .agents/skills/legend-shop-supply-api in your project. Codex loads it when a task matches its description.

Can I use Legend Shop Supply API in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add aiskillstore/marketplace --skill legend-shop-supply-api -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/legend-shop-supply-api, .gemini/skills/legend-shop-supply-api, .github/skills/legend-shop-supply-api and .opencode/skills/legend-shop-supply-api in your project.

What does Legend Shop Supply API need to run?

Going by SKILL.md and its folder, Legend Shop Supply API needs Python for the scripts in its folder and the command-line tools its instructions call (python). Our summary lists: Python 3.

Does Legend Shop Supply API access the network?

SKILL.md names 3 domains. In commands or code: openapi.legendshop.cn, open.legendshop.cn and openapi.legendmall.cn; the agent is likely to contact these when it follows the instructions. This is read from the text; nothing was executed.

Is Legend Shop Supply API safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Legend Shop Supply API use?

Legend Shop Supply API is published under the MIT licence (from the LICENSE file in the skill folder). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Legend Shop Supply API use?

About 1.2k tokens (SKILL.md is roughly 4.8k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 1.5k tokens, read only when the agent opens those files.

What are the alternatives to Legend Shop Supply API?

Skills that share tags, products or a category with Legend Shop Supply API: Shopping (asgeirtj/system_prompts_leaks, 69k stars), Shopping (codewhale-hq/Codewhale, 41k stars), Sbom Supply Chain (sickn33/agentic-awesome-skills, 47k stars) and Agent Supply Chain (github/awesome-copilot, 40k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Legend Shop Supply API?

aiskillstore (a GitHub organization) maintains it in aiskillstore/marketplace, which has 433 GitHub stars. The repository holds 1,044 skills in this directory. The repository was last updated on October 10, 2026.

Source: aiskillstore/marketplace on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.