cli-generate

Generate TypeScript CLIs with Commander.js from any codebase.

2|Updated Mar 17, 2026
One-click install
npx skills add https://github.com/progrmoiz/skills --skill cli-generate
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cli-generate
Source: https://github.com/progrmoiz/skills/tree/main/skills/cli-generate
Command: npx skills add https://github.com/progrmoiz/skills --skill cli-generate

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Auto-generate agent-ready CLIs from any codebase to accelerate developer tooling and automate project workflows.

Core Features & Use Cases

  • Auto-detects project type and generates a production-grade TypeScript CLI with Commander.js.
  • Dual output: human-friendly tables and JSON outputs for AI agents.
  • Built-in auth, doctor diagnostics, and a SKILL.md for agent discoverability.
  • Esbuild bundling to a single executable and a fixed, production-ready project structure.

Quick Start

Run /cli-generate inside a project directory to auto-generate a ready-to-use CLI for that codebase.

Frequently Asked Questions about cli-generate

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

FAQPage Schema
How do I auto-generate a CLI from an existing codebase?

You can auto-generate a CLI from an existing codebase by running a generation tool inside your project directory, which detects your project type and outputs a production-grade TypeScript CLI with Commander.js.

Can I generate a command-line tool from an OpenAPI or GraphQL spec?

Yes, you can generate a command-line tool from OpenAPI or GraphQL specs. The generator detects API specs and produces a TypeScript CLI supporting JSON output, authentication, and doctor diagnostics for testing and automation.

Does CLI generation work with Flask, Go, Next.js, or Express services?

CLI generation works with Flask, Go, Next.js, and Express services. It also supports MCP servers and API specs, applying a fixed architecture and dependency set to produce a ready-to-use command-line interface.

What is the best way to make my CLI discoverable for AI agents?

The best way to make your CLI discoverable for AI agents is to generate a CLI that includes a SKILL.md file for agent discovery alongside dual output formats, providing human-friendly tables and JSON outputs for automated parsing.

How do I bundle a generated TypeScript CLI into a single executable?

To bundle a generated TypeScript CLI into a single executable, the generator uses esbuild to compile the Commander.js project structure into one production-ready file, simplifying deployment and distribution.

Do I need to manually configure dependencies when generating a CLI?

No, you do not need to manually configure dependencies when generating a CLI. The generator applies a fixed, production-ready architecture and dependency set automatically, ensuring the output is immediately ready for deployment.