cli-developer

Automate CLI development with argument parsing, prompts, and shell completions.

10.9k|1.0k|Updated Oct 20, 2025
One-click install
npx skills add https://github.com/Jeffallan/claude-skills --skill cli-developer-jeffallan
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cli-developer
Source: https://github.com/Jeffallan/claude-skills/tree/main/skills/cli-developer
Command: npx skills add https://github.com/Jeffallan/claude-skills --skill cli-developer-jeffallan

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps design and implement fast, user-friendly CLIs with completions and prompts.

Core Features & Use Cases

  • Argument parsing: Subcommands, flags, and validation.
  • Interactive prompts: User interactions and progress indicators.
  • Shell completions: Bash/zsh compatibility.

Quick Start

Build a small CLI with a root command, a subcommand, and a prompt.

Frequently Asked Questions about cli-developer

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

FAQPage Schema
How do I build a command-line tool with argument parsing and subcommands?

CLI development uses structured argument parsing to handle subcommands, flags, and validation. This Skill provides ready-to-implement patterns for command hierarchies across Node.js, Python, and Go, enabling you to build organized, multi-level command interfaces with clear flag handling and input validation.

What's the best way to add shell completions to a CLI tool?

Shell completions enhance usability by auto-suggesting commands and flags in Bash and Zsh. This Skill includes templates and design patterns for implementing cross-platform completions, allowing users to tab-complete arguments and discover available options without manual documentation lookup.

Can I build interactive prompts and progress indicators into a CLI?

Interactive prompts and progress indicators improve user experience in command-line tools. This Skill provides patterns for user interactions, status feedback, and progress tracking, supporting both interactive and non-interactive modes so your CLI adapts to different execution contexts.

Does this work for cross-platform CLI development?

Cross-platform compatibility is built into the design patterns. This Skill addresses startup time optimization under 50ms, cross-platform considerations, and error messaging across Node.js, Python, and Go, ensuring your CLI performs consistently on Windows, macOS, and Linux.

How do I ensure my CLI starts quickly and handles errors clearly?

Fast startup and clear error handling are core to CLI usability. This Skill satisfies performance constraints under 50ms and provides guidance on structured error messages, enabling users to understand failures and recover quickly without ambiguous output.

Can I use this for both interactive and non-interactive CLI workflows?

Dual-mode support allows CLIs to function in scripting pipelines and interactive sessions. This Skill covers patterns for detecting execution context and adapting behavior, enabling your tool to work in automation scripts, cron jobs, and direct user interaction equally well.