SKILL

rust-cli-builder

Plan and build production-ready Rust CLI tools using clap for argument parsing, with subcommands, config file support, colored output, and proper error handling. Uses interview-driven planning to clarify commands, input/output formats, and distribution strategy before writing any code.

Target: Software development & testing. Automatically collected · unverified.

Excerpt from the author’s documentation

Extracted from a fixed version of SKILL.md in its original language. This is the author’s documentation; installation, compatibility and runtime results have not been verified by this site.

Read the original English text

Topics in the source

  • Rust CLI Tool Builder
  • When to use
  • Phase 1: Explore (Plan Mode)
  • If extending an existing project
  • If starting from scratch
  • Phase 2: Interview (AskUserQuestion)
  • Round 1: Tool purpose and commands
  • Round 2: Subcommands (if multi-command)

Use this skill when you need to: Scaffold a new Rust CLI tool from scratch with clap Add subcommands to an existing CLI application Implement config file loading (TOML/JSON/YAML) Set up proper error handling with anyhow/thiserror Add colored and formatted terminal output Structure a CLI project for distribution via cargo install or GitHub releases Enter plan mode. Before writing any code, explore the existing project: Find Cargo.toml and check current dependencies (clap version, serde, tokio, etc.) Locate the CLI entry point (src/main.rs or src/cli.rs) Check if clap is using derive macros or builder pattern Identify existing subcommand structure Look for existing error types, config structs, and output formatting Check if there's a src/lib.rs separating library logic from CLI Check the workspace for any existing Rust projects or workspace Cargo.toml Look for a .cargo/config.toml with custom settings Check for rust-toolchain.toml to know the target Rust edition Use AskUserQuestion to clarify requirements. Ask in rounds. Write a concrete implementation plan covering: 1. Project structure — Cargo.toml dependencies, src/ file layout 2. CLI definition — clap derive structs for all comma

This is an excerpt. Refer to the complete source and its current requirements.

Source repository
davila7/claude-code-templates
Source file
cli-tool/components/skills/development/rust-cli-builder/SKILL.md
Fixed revision
21be197f100a12b8d0dd9a211cc244c8179f84d3
Read the complete original documentation ↗

Sources and evidence

This record was collected automatically. Its documentation, suitability and runtime behavior have not been manually verified.

Author: davila7/claude-code-templates · original repository metadata. Documentation review: Not reviewed. Last source check: 2026-11-09T14:01:44.688Z.

Categories are inferred from names, descriptions and paths. They do not establish compatibility.

License and attribution

MIT. Third-party content and copyright remain with their authors. Refer to the original license and terms.

Original license ↗

Synchronization, copying and user-reported success do not mark a resource as runtime-tested.

Limitations and notes

  • Collecting metadata does not mean this site has installed, adapted, runtime-tested or security-reviewed the resource.