
domain-cli
Building CLI tools. Keywords: CLI, command line, terminal, clap, structopt
by actionbookFree
Description
domain-cli is an agent skill with design rules for building command-line tools in Rust. It applies when the agent works on a CLI, including argument parsing with clap, subcommands, interactive prompts, and terminal user interfaces built with ratatui or crossterm. The skill turns general CLI rules into Rust implications. For example, it says argument parsing should use clap derive macros and that help text and error messages should be clear. It sets a config precedence of command-line flags first, then environment variables, then the config file, and it recommends a layered config loader. For exit codes, it says to exit non-zero on error and to return errors through proper Result handling. It also separates stdout from stderr, so data goes to stdout and errors go to stderr through eprintln!. For interruption, it asks the program to handle Ctrl+C and other signals cleanly. The skill is a guide for code design, and it runs only when the agent is working on CLI code. Install it with npx skills add https://github.com/actionbook/rust-skills --skill domain-cli.…
Highlights
- Rust design rules for command-line tools
- clap derive macros for argument parsing
- Config precedence: flags, then environment, then file
- Non-zero exit codes and stdout/stderr separation
- Handles Ctrl+C and signals
Ratings & Reviews
No ratings yet
Be the first to rate domain-cli.
People also visit

cli-developer
Building CLI tools, implementing argument parsing, or adding interactive prompts

cli-for-agents
Designs or reviews CLIs so coding agents can run them reliably: non-interactive

dart-build-cli-app
Architectural patterns, entrypoint structure, exit codes, stream routing
domain-cli FAQ
What does this skill do?
It guides an agent to design Rust command-line tools with clear help, sound config precedence, and correct exit codes and output streams.
Which libraries does it mention?
clap for argument parsing, plus ratatui and crossterm for terminal interfaces and eprintln! for errors.
How does it handle configuration?
Command-line flags take precedence over environment variables, which take precedence over the config file, loaded in layers.
How do I install it?
Run npx skills add https://github.com/actionbook/rust-skills --skill domain-cli.
What do the security audits say?
Gen Agent Trust Hub: Pass. Socket: Pass. Snyk: Pass.
What are the best domain-cli alternatives?
Popular alternatives to domain-cli include cli-developer, cli-for-agents and cli-creator. See all domain-cli alternatives













