rust-cli
CommunityRobust Rust CLIs with ergonomic design
Authortumf
Version1.0.0
Installs0
System Documentation
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.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: rust-cli Download link: https://github.com/tumf/skills/archive/main.zip#rust-cli Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.