AA

alexknowshtml/api2cli

Developer tools

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기

454 stars 품질 59 트렌드 20MIT

alexknowshtml/api2cli는 https://github.com/alexknowshtml/api2cli.에서 가져온 에이전트 스킬 후보입니다.

개요

alexknowshtml/api2cli는 https://github.com/alexknowshtml/api2cli.에서 가져온 에이전트 스킬 후보입니다.

개요(AI 번역)

어떤 API든 작동하는 CLI로 변환하고, 그 CLI를 스킬로 감싸는 Claude Code 스킬입니다. API 문서, 실시간 URL, 또는 피크 API 캡처를 통해 이중 모드 CLI Commander.js 사용할 수 있는 스킬을 얻어 앞으로 코드를 읽지 않고도 사용할 수 있도록 합니다.

클로드 코드 필요 — 이것은 독립적인 도구가 아니라 기술입니다. 클로드는 발견, 생성, 배선 작업을 담당합니다.

그것이 하는 일들

  1. **API 문서 페이지, 실시간 탐색, 또는 피크 API 네트워크 캡처에서 엔드포인트를 발견합니다
  2. 인증, 페이지네이션, 요금 제한 정보를 포함한 엔드포인트 카탈로그를 구축함
  3. **엔드포인트당 하나의 서브커맨드로 CLI를 생성하고, 완전한 기능을 갖춘 API 클라이언트, 듀얼 모드 출력(터미널에서 사람이 읽을 수 있고, 파이프 시 JSON 엔벨로프)
  4. 스킬 생성 – 클로드에게 CLI 사용법을 가르치는 SKILL.md, 명령어, 예제, 일반적인 워크플로우

예시: API 재전송

api2cli를 Resend 이메일 API에 가리키면 이렇게 보입니다.

네가 말하길:

Claude가 5개 리소스에서 15개의 엔드포인트를 발견합니다:

Claude는 scripts/resend.ts: 지점에서 CLI를 생성합니다

클로드는 또한 .claude/skills/resend/SKILL.md: 스킬을 생성합니다.

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요.

README

원문 README의 일부입니다. 원문 보기.

api2cli

A Claude Code skill that turns any API into a working CLI, then wraps that CLI in a skill. Point it at API docs, a live URL, or a peek-api capture and get a dual-mode Commander.js CLI plus a ready-to-use Claude Code skill – so any future Claude session can pick it up and use it without reading the code.

Requires Claude Code – this is a skill, not a standalone tool. Claude handles the discovery, generation, and wiring.

What It Does

  1. Discovers endpoints from API docs pages, live probing, or peek-api network captures
  2. Builds an endpoint catalog with auth, pagination, and rate limit info
  3. Generates a CLI with one subcommand per endpoint, a full-featured API client, and dual-mode output (human-readable in terminal, JSON envelope when piped)
  4. Generates a skill – a SKILL.md that teaches Claude how to use the CLI, with commands, examples, and common workflows

Example: Resend API

Here’s what it looks like when you point api2cli at the Resend email API.

You say:

Build me a CLI for the Resend API. Here are the docs: https://resend.com/docs/api-reference

Claude discovers 15 endpoints across 5 resources:

Found 15 endpoints across 5 resources:
  emails (3 endpoints): send, get, batch
  domains (4 endpoints): list, get, create, delete
  api-keys (3 endpoints): list, create, delete
  audiences (3 endpoints): list, get, create
  contacts (2 endpoints): list, create

Ready to generate the CLI?

Claude generates a CLI at scripts/resend.ts:

# See all commands
$ npx tsx scripts/resend.ts
{
  "ok": true,
  "command": "resend",
  "result": {
    "description": "Resend email API CLI",
    "commands": [
      { "command": "resend emails send", "description": "Send an email" },
      { "command": "resend emails get ", "description": "Get email by ID" },
      { "command": "resend domains list", "description": "List all domains" },
      ...
    ]
  }
}

# Send an email
$ npx tsx scripts/resend.ts emails send \
    --to [email protected] \
    --subject "Hello" \
    --html "Hi there"

# List domains (human-readable in terminal)
$ npx tsx scripts/resend.ts domains list
ID          Domain              Status
re_abc123   example.com         verified
re_def456   staging.example.com pending

# Same command piped to an agent (auto-detects, returns JSON)
$ npx tsx scripts/resend.ts domains list | cat
{
  "ok": true,
  "command": "resend domains list",
  "result": { "domains": [...], "count": 2 },
  "next_actions": [
    { "command": "resend domains get re_abc123", "description": "View domain details" },
    { "command": "resend emails send --from [email protected]", "description": "Send from verified domain" }
  ]
}

Claude also generates a skill at .claude/skills/resend/SKILL.md:

---
GitHub에서 전체 README 보기

추천 도구

다른 키워드를 입력하거나 필터를 제거해 보세요.

설치

npx skillfish add alexknowshtml/api2cli
MCP 초보자라면? mcpskill.org 가이드부터 시작하세요 →