What problem does it solve?
Building reliable Rust CLIs requires boilerplate for argument parsing, error handling, logging, output formats, and structured project layouts. This skill provides a proven blueprint to streamline CLI development and ensure consistent, production-grade ergonomics.
Core Features & Use Cases
- Clap derive-based argument parsing with helpful, English --help texts.
- Anyhow-based error handling and tracing-based diagnostics with logs directed to stderr.
- JSON output mode with strict stdout/stderr separation for machine-readable results.
- XDG-compliant filesystem layout guidance and cross-platform configuration strategies.
- Pre-commit / pre-push hooks via prek to enforce formatting, linting, and test execution.
- Integration tests scaffolding to validate CLI behavior across subcommands.
Quick Start
Scaffold a Rust CLI using clap derive, enable JSON output mode, and set up prek-based pre-commit/pre-push hooks.