Back to Skills

create-cli

Design command-line interface parameters and UX: arguments, flags, subcommands, help text, output formats, error messages, exit codes, prompts, config/env precedence, and safe/dry-run behavior. Use when you’re designing a CLI spec (before implementation) or refactoring an existing CLI’s surface area for consistency, composability, and discoverability.

1,738stars165forksUpdated 2/10/2026

Security Assessment

Safe(100/100)
Security Score100/100

About create-cli

The 'create-cli' skill helps in designing and structuring command-line interfaces (CLI) by focusing on user experience and system compatibility. It allows for the creation of a detailed CLI specification that defines the command syntax, arguments, flags, subcommands, and output formats, ensuring both human and script usability. This skill is particularly useful when designing a new CLI tool or refactoring an existing one to enhance its consistency, discoverability, and ease of use.

FAQ

What should I do first when using the create-cli skill?

Start by reading the `cli-guidelines.md` document and applying it as the default rubric. It's also important to familiarize yourself with upstream guidelines at https://clig.dev/.

What information should I clarify before proceeding with a CLI design?

Clarify the command name, primary user type (humans, scripts, or both), input sources, output contract, interactivity requirements, config model, and platform/runtime constraints.

What are the common conventions to follow when designing a CLI?

The common conventions include using `-h/--help` for help, `--version` for printing version, keeping primary data to stdout and errors to stderr, and adding `--json` for machine output. Prompts should only appear when stdin is a TTY.

Is this skill compatible with all operating systems?

Yes, this skill supports macOS, Linux, and Windows platforms, and can be used for designing either a single binary or a runtime-based CLI.

Install create-cli

Download and extract the skill files to your .claude/skills/ directory.

Quick Setup:

  1. Copy the skill folder to .claude/skills/
  2. Claude will automatically detect and use the skill