What problem does it solve?
Inconsistent command-line flags and subcommand patterns across Python tools cause user confusion, break automation scripts, and make CLIs hard to test and maintain. This Skill provides a compact, opinionated convention set to keep flags predictable, output machine-friendly, and parsers testable.
Core Features & Use Cases
- Standardized reserved short flags for common behaviors (help, verbose, quiet, dry-run, force, output, config) to preserve developer and script expectations.
- Parser construction guidance: separate build_parser from execution, use parent parsers for shared flags, and adopt subcommand handlers for clear dispatch.
- Output and exit conventions that separate structured data to stdout and human/progress/error messages to stderr, plus explicit exit codes for usage and runtime errors.
- Use cases include building a new argparse-based CLI, adding or reviewing subcommands for consistency, and preparing tools for reliable automation and piping workflows.
Quick Start
Build a reusable build_parser that registers the reserved flags and shared parent parsers, then call parse_args in main and dispatch to subcommand handlers.