api2cli

Generate a Commander.js CLI and SKILL.md from API endpoint discovery.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/mattjefferson/agents --skill api2cli
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: api2cli
Source: https://github.com/mattjefferson/agents/tree/main/skills/api2cli
Command: npx skills add https://github.com/mattjefferson/agents --skill api2cli

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Generate a streamlined CLI wrapper from any API by automatically discovering endpoints, scaffolding a Commander.js-based interface, and producing a Claude Code skill that teaches Claude how to use the CLI.

Core Features & Use Cases

  • Automatic API discovery from docs URLs, base URLs, or peek-api captures.
  • Endpoint catalog normalization and dual-mode CLI generation (human + agent output).
  • In-project or standalone project generation, plus automatic SKILL.md creation for Claude.
  • Practical workflows that connect resources (e.g., list resources, get by id, create or update) and agent next_actions.

Quick Start

Provide an API docs URL or a base URL to generate a ready-to-use 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 an API into a CLI automatically?▼

You can turn an API into a CLI by providing a docs URL, base URL, or peek-api capture, which triggers endpoint discovery and Commander.js scaffolding to generate a ready-to-use command line interface.

What is API endpoint discovery and how does it work for CLI generation?▼

API endpoint discovery for CLI generation extracts available paths from docs URLs, live base URLs, or peek-api captures, normalizing them into a standard EndpointCatalog format to scaffold a dual-mode Commander.js CLI.

Can I generate a standalone CLI project or does it only create in-project scaffolds?▼

Yes, you can generate either an in-project scaffold or a standalone CLI project, both producing a dual-mode Commander.js interface with built-in auth handling, pagination, and retry logic.

Does the generated CLI support authentication and pagination handling?▼

Yes, the generated CLI supports authentication and pagination handling by enforcing a standard EndpointCatalog format and scaffolding a dual-mode Commander.js interface with built-in auth, pagination, and retry logic.

What's the best way to create a Claude Code skill for an existing API?▼

The best way to create a Claude Code skill for an existing API is using endpoint discovery to generate a CLI scaffold, which automatically outputs a SKILL.md documenting practical workflows and agent-friendly next_actions.

Why generate a dual-mode CLI for API automation instead of a standard script?▼

Generating a dual-mode CLI provides both human and agent output formats, connecting practical workflows like listing resources and creating updates, while standard scripts lack built-in retry logic and agent-friendly next_actions.