Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Generate Clap-based Rust CLI applications with derive macros, subcommands, and modern Rust patterns. Creates production-ready Rust CLI with proper cargo structure.
.claude/skills/a5c-ai-clap-scaffolder/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-01 | ✗→✓ | ▲ Improved | 31% | 0% |
| case-02 | ✗→✓ | ▲ Improved | 18% | 0% |
| case-13 | ✗→✓ | ▲ Improved | 37% | 0% |
| case-15 | ✗→✓ | ▲ Improved | 74% | 0% |
| case-16 | ✓→✓ | = Same ✓ | 22% | 0% |
Generate a complete Clap CLI application with Rust, derive macros, and best practices.
Invoke this skill when you need to:
| Parameter | Type | Required | Description | |-----------|------|----------|-------------| | projectName | string | Yes | Name of the CLI project (kebab-case) | | description | string | Yes | Short description of the CLI | | commands | array | No | List of commands to scaffold | | deriveFeatures | array | No | Clap derive features to enable | | colorOutput | boolean | No | Enable colored output (default: true) |
json{ "commands": [ { "name": "run", "description": "Run the application", "args": [ { "name": "target", "help": "Target to run", "required": true } ], "options": [ { "long": "watch", "short": "w", "help": "Watch for changes" }, { "long": "port", "short": "p", "value_name": "PORT", "default": "3000" } ] } ] }
<projectName>/
├── Cargo.toml
├── Cargo.lock
├── README.md
├── .gitignore
├── src/
│ ├── main.rs # Entry point
│ ├── cli.rs # Clap definitions
│ ├── commands/
│ │ ├── mod.rs # Command exports
│ │ └── <command>.rs # Individual commands
│ ├── config.rs # Configuration
│ └── error.rs # Error types
├── tests/
│ └── cli.rs # CLI integration tests
└── completions/
├── _<projectName> # Zsh completions
├── <projectName>.bash # Bash completions
└── <projectName>.fish # Fish completionsrustuse clap::{Parser, Subcommand, Args}; #[derive(Parser)] #[command(name = "<projectName>")] #[command(author, version, about, long_about = None)] pub struct Cli { /// Enable verbose output #[arg(short, long, global = true)] pub verbose: bool, /// Configuration file path #[arg(short, long, global = true)] pub config: Option<PathBuf>, #[command(subcommand)] pub command: Commands, } #[derive(Subcommand)] pub enum Commands { /// Run the application Run(RunArgs), /// Build the project Build(BuildArgs), /// Generate shell completions Completions { /// Shell to generate completions for #[arg(value_enum)] shell: clap_complete::Shell, }, } #[derive(Args)] pub struct RunArgs { /// Target to run pub target: String, /// Watch for changes #[arg(short, long)] pub watch: bool, /// Port to use #[arg(short, long, default_value = "3000")] pub port: u16, }
rustuse anyhow::Result; use clap::Parser; use colored::Colorize; mod cli; mod commands; mod config; mod error; use cli::{Cli, Commands}; fn main() -> Result<()> { let cli = Cli::parse(); // Setup logging based on verbosity if cli.verbose { env_logger::Builder::from_env( env_logger::Env::default().default_filter_or("debug") ).init(); } match cli.command { Commands::Run(args) => commands::run::execute(args)?, Commands::Build(args) => commands::build::execute(args)?, Commands::Completions { shell } => { generate_completions(shell); } } Ok(()) }
rustuse anyhow::Result; use colored::Colorize; use crate::cli::RunArgs; pub fn execute(args: RunArgs) -> Result<()> { println!("{} Running target: {}", "→".blue(), args.target.green()); if args.watch { println!("{} Watch mode enabled", "!".yellow()); } println!("{} Listening on port {}", "✓".green(), args.port); Ok(()) }
toml[package] name = "<projectName>" version = "0.1.0" edition = "2021" [dependencies] clap = { version = "4.4", features = ["derive", "env"] } clap_complete = "4.4" anyhow = "1.0" thiserror = "1.0" colored = "2.0" env_logger = "0.10" log = "0.4" [dev-dependencies] assert_cmd = "2.0" predicates = "3.0"
| Case | Status | Duration (ms) | Turns | Tokens | Tool calls | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Without | With | Δ | Without | With | Δ | Without | With | Δ | Without | With | Δ | ||
case-01 | fail→pass | 21,361 | 15,747 | -26% | 1 | 1 | 0% | 4,074 | 5,347 | +31% | 0 | 0 | — |
case-02 | fail→pass | 16,782 | 18,172 | +8% | 1 | 1 | 0% | 4,139 | 4,870 | +18% | 0 | 0 | — |
case-03 | fail→fail | 15,618 | 30,292 | +94% | 1 | 1 | 0% | 3,854 | 7,696 | +100% | 0 | 0 | — |
case-04 | fail→fail | 10,963 | 11,038 | +1% | 1 | 1 | 0% | 2,334 | 3,294 | +41% | 0 | 0 | — |
case-05 | fail→fail | 12,201 | 8,537 | -30% | 1 | 1 | 0% | 2,284 | 3,115 | +36% | 0 | 0 | — |
case-06 | fail→fail | 9,671 | 7,480 | -23% | 1 | 1 | 0% | 1,853 | 3,002 | +62% | 0 | 0 | — |
case-07 | fail→fail | 15,588 | 6,570 | -58% | 1 | 1 | 0% | 2,427 | 2,765 | +14% | 0 | 0 | — |
case-08 | fail→fail | 12,871 | 12,202 | -5% | 1 | 1 | 0% | 2,769 | 4,046 | +46% | 0 | 0 | — |
case-09 | fail→fail | 7,061 | 6,290 | -11% | 1 | 1 | 0% | 1,348 | 2,529 | +88% | 0 | 0 | — |
case-10 | fail→fail | 10,379 | 6,666 | -36% | 1 | 1 | 0% | 2,390 | 2,901 | +21% | 0 | 0 | — |
case-11 | fail→fail | 13,248 | 9,928 | -25% | 1 | 1 | 0% | 2,709 | 3,554 | +31% | 0 | 0 | — |
case-12 | fail→fail | 13,453 | 6,176 | -54% | 1 | 1 | 0% | 2,790 | 2,798 | +0% | 0 | 0 | — |
case-13 | fail→pass | 9,618 | 6,062 | -37% | 1 | 1 | 0% | 1,906 | 2,605 | +37% | 0 | 0 | — |
case-14 | fail→fail | 12,623 | 9,676 | -23% | 1 | 1 | 0% | 2,365 | 3,184 | +35% | 0 | 0 | — |
case-15 | fail→pass | 8,157 | 5,445 | -33% | 1 | 1 | 0% | 1,492 | 2,601 | +74% | 0 | 0 | — |
case-16 | pass→pass | 11,490 | 5,348 | -53% | 1 | 1 | 0% | 2,064 | 2,513 | +22% | 0 | 0 | — |
case-17 | pass→pass | 6,917 | 1,707 | -75% | 1 | 1 | 0% | 1,008 | 1,771 | +76% | 0 | 0 | — |
case-18 | fail→fail | 12,029 | 5,077 | -58% | 1 | 1 | 0% | 2,224 | 2,323 | +4% | 0 | 0 | — |
case-19 | fail→fail | 7,798 | 6,142 | -21% | 1 | 1 | 0% | 1,470 | 2,526 | +72% | 0 | 0 | — |
case-20 | fail→fail | 7,284 | 10,441 | +43% | 1 | 1 | 0% | 1,533 | 3,744 | +144% | 0 | 0 | — |
case-21 | fail→fail | 10,519 | 11,639 | +11% | 1 | 1 | 0% | 2,205 | 3,962 | +80% | 0 | 0 | — |
case-22 | fail→fail | 12,277 | 12,063 | -2% | 1 | 1 | 0% | 2,346 | 3,999 | +70% | 0 | 0 | — |
DecimalAI ran this skill against gemini-3.6-flash twice over the same eval suite — once with the skill loaded and once without — and compared the two runs case by case. 22 cases were attempted. The headline lift of +18 percentage points is the difference between those two pass rates over the 22 comparable cases.
Without the skill loaded, the model failed this case. With it loaded, the same prompt on the same model passed. This is one improved case from the latest verified run; every case, including any that regressed, is in the table above.
Other measured skills in the registry, with their headline benchmark lift.