What problem does it solve?
This Skill provides comprehensive guidelines and best practices for designing user-friendly, robust, and maintainable command-line interface (CLI) tools.
Core Features & Use Cases
- Flag Conventions: Standardizes the use of long and short flags, boolean flags, and value flags.
- Help Text Structure: Ensures clear, informative, and well-organized help messages.
- Exit Codes: Defines consistent exit codes for success, general errors, and usage errors.
- Error Messages: Guides the creation of actionable and informative error messages.
- Output Formatting: Addresses human-readable vs. machine-readable output and JSON support.
- Configuration Precedence: Outlines a clear order for resolving configuration settings.
- Shell Completion: Provides examples for generating shell completion scripts.
- Subcommand Organization: Offers strategies for structuring complex CLIs.
- Use Case: When developing a new CLI application, consult this Skill to ensure it adheres to industry standards for usability and robustness.
Quick Start
Design your CLI tool's flags and help text according to the conventions outlined in this skill.