New advertisers: 50% off your first month with code FIRSTMONTHSee slots

Guide for building command-line tools with commander, click, typer, or cobra, covering argument parsing and UX.

skills.sh installs
5.2K
GitHub stars
12.5K
last updated
Aug 21, 2026
View on GitHub

What it does

  • Covers CLI design end to end: subcommands, flags, argument parsing, progress bars, spinners, and interactive prompts
  • Includes reference guides for Node.js, Python, and Go CLIs plus shell completion generation for bash, zsh, and fish
  • Enforces sub-50ms startup, TTY-aware color output, graceful Ctrl+C handling, and stable flag names for existing commands
  • Designed for developers shipping cross-platform terminal applications that must also work in CI/CD without interactive input

Install

$ npx -y skills add jeffallan/claude-skills --skill cli-developer -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

CLI Developer

Core Workflow

  1. Analyze UX — Identify user workflows, command hierarchy, common tasks. Validate by listing all commands and their expected --help output before writing code.
  2. Design commands — Plan subcommands, flags, arguments, configuration. Confirm flag naming is consistent and no existing signatures are broken.
  3. Implement — Build with the appropriate CLI framework for the language (see Reference Guide below). After wiring up commands, run <cli> --help to verify help text renders correctly and <cli> --version to confirm version output.
  4. Polish — Add completions, help text, error messages, progress indicators. Verify TTY detection for color output and graceful SIGINT handling.
  5. Test — Run cross-platform smoke tests; benchmark startup time (target: <50ms).

Reference Guide

Load detailed guidance based on context:

Details

Repository
github.com/jeffallan/claude-skills
Category
CLI & Terminal

More from jeffallan/claude-skills

All 66

Similar to Cli Developer

More CLI & Terminal