api2cli

Generate a TypeScript CLI and SKILL.md from API endpoint discovery.

449|17|Updated Feb 19, 2026
One-click install
npx skills add https://github.com/alexknowshtml/api2cli --skill api2cli-alexknowshtml
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: api2cli
Source: https://github.com/alexknowshtml/api2cli/tree/main/skill
Command: npx skills add https://github.com/alexknowshtml/api2cli --skill api2cli-alexknowshtml

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill wraps any API into a dual-mode CLI and Claude Code skill, eliminating manual wiring and enabling Claude to interact with live endpoints.

Core Features & Use Cases

  • Discover endpoints from API docs, live URLs, or peek-api captures.
  • Normalize discovered data into a reusable endpoint catalog and generate a Commander.js CLI plus an agent-ready skill folder.
  • Use cases include wrapping a REST API to automate commands, scaffolding a CLI from documentation, and packaging a ready-to-use Claude skill.

Quick Start

Provide an API docs URL, a base URL, or a peek-api capture to start generating the CLI and Claude Code skill.

Frequently Asked Questions about api2cli

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I turn a REST API into a CLI for Claude Code?

To turn a REST API into a CLI for Claude Code, you provide an API docs URL, live base URL, or peek-api capture. The tool discovers endpoints, normalizes them into a catalog, and generates a TypeScript CLI plus a SKILL.md file for direct Claude integration.

What is the best way to generate a TypeScript CLI from API documentation?

Generating a TypeScript CLI from API documentation involves parsing the docs to discover endpoints and building a normalized catalog. This process creates a Commander.js CLI with an API client featuring pagination, retry logic, and agent-friendly JSON envelopes.

Can I use endpoint discovery to build a Claude-ready skill from a live API base?

Yes, you can use endpoint discovery to build a Claude-ready skill from a live API base. The tool captures endpoints directly from live URLs or peek-api captures, normalizes the data, and packages it into a structured skill folder for Claude.

Does the generated CLI wrapper include retry logic and pagination?

Yes, the generated CLI wrapper includes retry logic and pagination. The created TypeScript API client automatically handles these mechanisms and wraps responses in agent-friendly JSON envelopes for reliable automated interactions.

Do I need to manually wire endpoints to automate API commands with Claude?

No, you do not need to manually wire endpoints to automate API commands with Claude. The tool discovers endpoints from your provided sources, normalizes the data, and eliminates manual wiring by generating a ready-to-use dual-mode CLI.