gen-js-api-code

gen-js-api-code is a command for coding agents from zhanyoulin456/seevin-claude-plugins. It costs 9 tokens per session (171 once invoked), scanned A, original, MIT.

A code-generation command that reads an API description from a YApi documentation URL. It creates code from that interface information and saves it in a file location you provide.

In plain words
What is it for?
Use it to turn a YApi interface document into code and store the result in a chosen project location. It stops if the YApi retrieval tool is unavailable.
Why use it?
It removes the manual work of copying API details into code. It also makes the required documentation URL and output location explicit.

Command

Part of the seevin-yapi-tools plugin — 2 commands shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/zhanyoulin456/seevin-claude-plugins/gen-js-api-code
Clone the repo
git clone --depth 1 https://github.com/zhanyoulin456/seevin-claude-plugins

Or install seevin-yapi-tools, the plugin that ships this one along with the rest of its 2 commands.

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 gen-js-api-code

README.md
[![agentmods](https://agentmods.dev/badge/commands/zhanyoulin456/seevin-claude-plugins/gen-js-api-code.svg)](https://agentmods.dev/commands/zhanyoulin456/seevin-claude-plugins/gen-js-api-code)
Your own site
<a href="https://agentmods.dev/commands/zhanyoulin456/seevin-claude-plugins/gen-js-api-code"><img src="https://agentmods.dev/badge/commands/zhanyoulin456/seevin-claude-plugins/gen-js-api-code.svg" alt="Measured on agentmods" height="20"></a>
Per session 9 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 171 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00009 $0.00171
Opus 5 $0.00005 $0.00086
Sonnet 5 $0.00002 $0.00034
Haiku 4.5 $0.00001 $0.00017

Measured 3d ago against content hash 3b72bd51493f, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

gen-js-api-code 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 3d 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.

plugins/seevin-yapi-tools/commands/gen-js-api-code.md · 22 lines

What it actually says

参数说明

$ARGUMENTS 中的url参数为yapi的接口文档地址 还需要代码生成后存放的位置,如果用户没有提供,需要提示用户传入 也就是必须要传入接口文件的位置 和 yapi的url

注意事项

  1. 用户需要传入1个接口文件的位置
  2. 如果yapi-get-interface-mcp mcp工具调用失败,终止流程,提示用户检查工具可用性

执行步骤

  1. 调用 yapi-get-interface-mcp mcp,根据接口文档获取接口信息
  2. 根据接口信息和规范生成代码
  3. 将代码存储到用户指定位置
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. 3d ago First seen · 22 lines · 0 tokens per session scan A 3b72bd51493f

Subscribe to this mod's changes

gen-js-api-code is a command published in the GitHub repository zhanyoulin456/seevin-claude-plugins (4 stars, last pushed 7mo ago), licensed MIT. It adds 9 tokens to every session and 171 once invoked, about $0.0000 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-31.