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/alexknowshtml/api2clinpx agentmods add skills/alexknowshtml/api2cli/skillWrote 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/alexknowshtml/api2cli/skill)<a href="https://agentmods.dev/skills/alexknowshtml/api2cli/skill"><img src="https://agentmods.dev/badge/skills/alexknowshtml/api2cli/skill/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/alexknowshtml/api2cli/skill"><img src="https://agentmods.dev/badge/skills/alexknowshtml/api2cli/skill.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.00101 | $0.02948 |
| Opus 5.5 | $0.00040 | $0.01179 |
| Sonnet 5.5 | $0.00020 | $0.00590 |
| Haiku 4.5 | $0.00010 | $0.00295 |
Grade A, and why
api2cli 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 3mo 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 — 337 lines — stays where its author put it; the contents beside it link to each section on GitHub.
api2cli
Generate a working Node.js CLI from any API, then wrap it in a Claude Code skill. Discovers endpoints, scaffolds a dual-mode Commander.js CLI with a full-featured API client, and creates a skill folder so Claude knows how to use it.
Workflow
- Identify the API -- user provides a docs URL, a live API base URL, or a peek-api capture
- Discover endpoints -- parse docs, probe the API, or read a peek-api catalog
- Build endpoint catalog -- normalize all discovered endpoints into a standard format
- Generate CLI -- scaffold Commander.js CLI from the catalog
- User chooses destination -- scaffold into current project or create standalone project
- Generate skill -- create a SKILL.md that teaches Claude how to use the generated CLI
Step 1: Identify the API
Ask the user:
- "What API do you want to wrap? Share a docs URL, a base URL, or point me at a peek-api capture."
Determine which discovery paths to use based on what they provide:
| Input | Discovery Path |
|---|---|
Docs URL (e.g., https://docs.stripe.com/api) |
Docs parsing + active probing |
Base URL (e.g., https://api.example.com/v1) |
Active probing |
peek-api capture dir (e.g., ./peek-api-linkedin/) |
Read existing catalog |
| Live website URL | Suggest running peek-api first, then active probing |
Also ask:
- "What auth does this API use?" (API key, Bearer token, cookies, OAuth, none)
- "Do you want this CLI in your current project or as a standalone project?"
Step 2: Discover Endpoints
Use all applicable discovery paths. Combine results into a single catalog.
Path A: Docs Parsing
- Fetch the docs URL with WebFetch
- Extract endpoint information: method, path, description, parameters, request/response examples
- Look for pagination patterns, auth requirements, rate limit info
- Follow links to sub-pages for individual endpoint docs if the main page is an index
Path B: Active Probing
- Check well-known paths for API specs:
/.well-known/openapi.json,/.well-known/openapi.yaml/openapi.json,/openapi.yaml,/swagger.json,/swagger.yaml/api-docs,/docs,/api/docs/graphql(with introspection query)
- Try
OPTIONSon the base URL and common resource paths - Probe common REST patterns:
/api/v1/,/api/v2/,/v1/,/v2/ - For each discovered resource, try standard CRUD:
GET /resources,GET /resources/:id,POST /resources, etc. - Parse response shapes to understand data models
- Check response headers for rate limit info (
X-RateLimit-*,Retry-After) - Check for pagination patterns in responses (
next,cursor,page,offset)
What ships with it
4 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.
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.
- 3mo ago First seen · 337 lines · 101 tokens per session scan A 92918ec1d1ef
api2cli is a skill published in the GitHub repository alexknowshtml/api2cli (457 stars, last pushed 9mo ago), licensed MIT. It adds 101 tokens to every session and 2,948 once invoked, about $0.0004 per session on Opus 5.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.
api2cli compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| api2clialexknowshtml/api2cli | Skill | 457 | 9mo ago | MIT | A | 101 | Claude Code, Codex |
| easy-api-mcpopen-wa/wa-automate-nodejs | Skill | 3.7k | yesterday | none | A | 23 | Claude Code, Codex |
| medusa-developmentfinsilabs/awesome-ecommerce-skills | Skill | 71 | 1mo ago | MIT | B | 26 | Claude Code, Codex |
| fastifybobmatnyc/claude-mpm-skills | Skill | 78 | 4mo ago | MIT | A | 36 | Claude Code |
| express-docspledgeandgrow/pledge-skills | Skill | 11 | 4mo ago | MIT | A | 80 | Claude Code, Codex |
| Express.js Testing PatternsPramodDutta/qaskills | Skill | 253 | 1mo ago | MIT | A | 28 | Claude Code, Codex |
| backendmiles990/claude-software-skills | Skill | 28 | 10mo ago | MIT | A | 16 | Claude Code, Codex |