clap-scaffolder

Solid

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

AI & Automation 814 stars 53 forks Updated today MIT

Install

View on GitHub

Quality Score: 95/100

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

Skill Content

# Clap Scaffolder Generate a complete Clap CLI application with Rust, derive macros, and best practices. ## Capabilities - Generate Rust-based Clap CLI projects using derive macros - Create subcommand hierarchies with nested enums - Set up argument parsing with type validation - Configure shell completion generation - Implement colored output with anyhow error handling - Set up cargo workspace and build configurations ## Usage Invoke this skill when you need to: - Bootstrap a new CLI application using Clap - Create a Rust CLI with type-safe argument parsing - Leverage derive macros for declarative command definitions - Build fast, native cross-platform binaries ## Inputs | 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) | ### Command Structure ```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" } ...

Details

Author
a5c-ai
Repository
a5c-ai/babysitter
Created
4 months ago
Last Updated
today
Language
JavaScript
License
MIT

Related Skills