By kalebcole
Autonomous CLI generation from any API surface. 10-phase subagent pipeline: auth recon, API mapping, validation, architecture, audit, TDD generation, skill creation.
API recon subagent for the cli-generation pipeline. Maps all available API endpoints, schemas, and metadata. Reads input-classification.json and auth-profile.json, writes endpoints.json. Parses docs first, reverse-engineers only when needed.
Architecture auditor subagent for the cli-generation pipeline. Grades CLI architecture against the 14-point quality checklist. Reads architecture.md, writes arch-audit.md. If grade < B, provides specific findings for the architect to fix.
Auth recon subagent for the cli-generation pipeline. Discovers authentication mechanisms for an API. Reads input-classification.json, writes auth-profile.json. Never stores actual secrets — only mechanism descriptions and credential source references.
CLI architect subagent for the cli-generation pipeline. Designs the full CLI architecture from validated endpoints. Reads validated-endpoints.json and auth-profile.json, writes architecture.md to the CLI repo's docs/ directory. Invokes the cli-architect skill.
CLI generator subagent for the cli-generation pipeline. The big phase — actually writes the CLI code using TDD. Reads architecture.md and validated-endpoints.json. Writes src/, tests/, package.json to the CLI repo. Must invoke superpowers:test-driven-development and superpowers:verification-before-completion.
Map an API surface — endpoints, schemas, rate limits, pagination patterns. Use when exploring an API, reverse-engineering endpoints, parsing OpenAPI specs, mapping a GraphQL schema, discovering gRPC methods, or preparing API data for CLI generation.
Design a CLI from an API spec. Use when designing a new CLI, scaffolding CLI architecture, wrapping an API, or creating command-line tools. Produces command trees, flag contracts, JSON output schemas, auth design, HTTP module design, and skill architecture.
Grade a CLI against 14-point quality checklist. Use when auditing CLI quality, evaluating agentic readiness, grading an existing CLI, or running a CLI scorecard. Produces letter grade, category breakdown, gap analysis, and remediation backlog.
Discover authentication mechanism for an API. Use when figuring out how an API authenticates, what auth type a service uses, discovering OAuth2 endpoints, checking for API keys, or preparing to wrap an authenticated API in a CLI.
Identify skill domains for a CLI — groups of commands clustered by user intent that each become a SKILL.md file. Use when planning which skills to generate, grouping CLI commands into agent-teachable workflows, or deciding how to structure skill coverage for a CLI. Produces skill domains with draft triggers and a separate CLI enhancement backlog.
Uses power tools
Uses Bash, Write, or Edit tools
Own this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimOwn this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimBased on adoption, maintenance, documentation, and repository signals. Not a security audit or endorsement.
Generate complete, tested, audited CLIs from any API surface. A Claude Code plugin.
/cli-generation https://api.example.com
# 1. Add the marketplace
claude plugin marketplace add https://github.com/KalebCole/cli-generation.git
# 2. Install the plugin
claude plugin install cli-generation@cli-generation-marketplace
Or from within Claude Code: /plugin marketplace add KalebCole/cli-generation, then /plugin install cli-generation.
Requires the superpowers plugin for TDD and skill creation:
claude plugin install superpowers
Point /cli-generation at any API surface and it autonomously builds a production-grade CLI:
Each phase runs in its own subagent. No context bloat.
# Web URL
/cli-generation https://dining.microsoft.com
# OpenAPI / Swagger spec
/cli-generation ./openapi-spec.yaml
# GraphQL schema
/cli-generation ./schema.graphql
# gRPC proto
/cli-generation ./service.proto
# SDK reference
/cli-generation "Azure SDK for Node.js"
# Raw endpoint list
/cli-generation "GET /users, POST /users, GET /users/:id, DELETE /users/:id"
flowchart TD
INPUT["URL | Spec | SDK | Proto | GraphQL"]
P0["<b>Phase 0</b><br/>Classify Input<br/><i>You pick: name, path, stack</i>"]
P1["<b>Phase 1</b> · auth-recon<br/>Auth Discovery<br/><i>5 strategies, 11 auth types</i>"]
P2["<b>Phase 2</b> · api-recon<br/>API Mapping<br/><i>Parse docs → reverse-engineer</i>"]
P3["<b>Phase 3</b> · endpoint-validator<br/>Validate Endpoints<br/><i>Hit every endpoint, confirm schemas</i>"]
P4["<b>Phase 4</b> · cli-architect<br/>Design CLI Architecture<br/><i>Commands, flags, JSON output</i>"]
P5{"<b>Phase 5</b><br/>Audit Architecture<br/>14-point checklist"}
P6["<b>Phase 6</b> · cli-generator<br/>Generate CLI (TDD)<br/><i>Tests first, then implement</i>"]
P7{"<b>Phase 7</b><br/>Audit Implementation<br/>14-point checklist"}
P8["<b>Phase 8</b> · skill-ideator<br/>Ideate Skills<br/><i>6-category brainstorm</i>"]
PAUSE["<b>PAUSE</b><br/>You select which skills to generate"]
P9["<b>Phase 9</b> · skill-generator<br/>Generate SKILL.md files<br/><i>Full eval harness + triggers</i>"]
DONE(["Done · Push to GitHub"])
INPUT --> P0
P0 --> P1
P1 --> P2
P2 --> P3
P3 --> P4
P4 --> P5
P5 -->|"grade ≥ B"| P6
P5 -->|"grade < B (max 2×)"| P4
P6 --> P7
P7 -->|"grade ≥ B"| P8
P7 -->|"grade < B (max 2×)"| P6
P8 --> PAUSE
PAUSE --> P9
P9 --> DONE
style INPUT fill:#1a1a2e,stroke:#e94560,color:#fff
style DONE fill:#0f3460,stroke:#16213e,color:#fff
style PAUSE fill:#533483,stroke:#e94560,color:#fff
style P5 fill:#e94560,stroke:#16213e,color:#fff
style P7 fill:#e94560,stroke:#16213e,color:#fff
The CLI it generates uses your choice of stack:
| Stack | CLI Framework | Test Runner | Build / Run | Package File |
|---|---|---|---|---|
| TypeScript (recommended) | Commander.js | Vitest | tsx / tsup | package.json |
| Python | Click | pytest | uv run | pyproject.toml |
| PowerShell | Native module | Pester | Import-Module | .psd1 |
| Custom | You describe it | You describe it | You describe it | — |
| Command | What it does |
|---|---|
/cli-generation | The orchestrator. Takes an API surface, runs all 9 phases. |
Each skill works standalone — you don't need to run the full pipeline.
| Skill | Use when you want to... |
|---|---|
cli-auth-recon | Figure out how an API authenticates |
cli-api-recon | Map an API's endpoints, schemas, rate limits |
cli-architect | Design a CLI architecture from scratch |
cli-audit | Grade any CLI against the 14-point quality checklist |
cli-ideate | Brainstorm features for a CLI across 6 categories |
cli-skillgen | Generate SKILL.md files for a CLI |
Dispatched by the orchestrator — you don't invoke these directly.
npx claudepluginhub kalebcole/cli-generation --plugin cli-generationGenerate production Go CLIs from API descriptions or OpenAPI specs
Generate client SDKs from OpenAPI specs for multiple languages
CLI-Anything for the Web: Generate agent-native CLIs for closed-source web apps via network traffic analysis
API design, documentation, and testing with OpenAPI spec generation
Commands for designing and documenting REST and GraphQL APIs
SDK generation and OpenAPI tooling with Speakeasy CLI