rust-cli-builder

Solid

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.

Web & Frontend 27,705 stars 2858 forks Updated today MIT

Install

View on GitHub

Quality Score: 96/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Rust CLI Tool Builder ## When to use 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 ## Phase 1: Explore (Plan Mode) Enter plan mode. Before writing any code, explore the existing project: ### If extending an 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 ### If starting from scratch - 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 ## Phase 2: Interview (AskUserQuestion) Use AskUserQuestion to clarify requirements. Ask in rounds. ### Round 1: Tool purpose and commands ``` Question: "What kind of CLI tool are you building?" Header: "Tool type" Options: - "Single command (like ripgrep, curl)" — One main action with flags and arguments - "Multi-command (like...

Details

Author
davila7
Repository
davila7/claude-code-templates
Created
11 months ago
Last Updated
today
Language
Python
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category

Web & Frontend Listed

building-clis

Build professional command-line interfaces in Python, Go, and Rust using modern frameworks like Typer, Cobra, and clap. Use when creating developer tools, automation scripts, or infrastructure management CLIs with robust argument parsing, interactive features, and multi-platform distribution.

368 Updated 5 months ago
ancoleman
AI & Automation Solid

clap-scaffolder

Generate Clap-based Rust CLI applications with derive macros, subcommands, and modern Rust patterns. Creates production-ready Rust CLI with proper cargo structure.

1,160 Updated today
a5c-ai
AI & Automation Solid

cli-developer

Use when building CLI tools, implementing argument parsing, or adding interactive prompts. Invoke for parsing flags and subcommands, displaying progress bars and spinners, generating bash/zsh/fish completion scripts, CLI design, shell completions, and cross-platform terminal applications using commander, click, typer, or cobra.

9,537 Updated 1 weeks ago
Jeffallan
Data & Documents Listed

cli-creator

Build a composable CLI for Codex from API docs, an OpenAPI spec, existing curl examples, an SDK, a web app, an admin tool, or a local script. Use when the user wants Codex to create a command-line tool that can run from any repo, expose composable read/write commands, return stable JSON, manage auth, and pair with a companion skill.

1 Updated today
bingran-you
AI & Automation Listed

cli-developer

Use when building CLI tools, implementing argument parsing, or adding interactive prompts. Invoke for CLI design, argument parsing, interactive prompts, progress indicators, shell completions.

2 Updated today
zacklecon