agentsclimarketplace

Rust clap

Skill ComeOnOliver/skillshub/skills/pproenca/dot-skills/rust-clap

🧠 The right skill, one API call. AI agent skills registry with token-efficient skill resolution. 5,000+ skills from 500+ top repos.From the repository description

Install
npx -y skills add ComeOnOliver/skillshub --skill rust-clap

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

SKILL.md

5.9 KB, ~1.4k tokens by cl100k_base, as published. Nobody here has run it

Rust Clap Best Practices

Comprehensive best practices guide for building CLI applications in Rust using clap. Contains 42 rules across 8 categories, prioritized by impact to guide CLI design, argument parsing, and testing.

When to Apply

Reference these guidelines when:

  • Designing new Rust CLI applications
  • Adding arguments or subcommands to existing CLIs
  • Validating and parsing command-line input
  • Writing integration tests for CLI tools
  • Improving help text and user experience

Rule Categories by Priority

PriorityCategoryImpactPrefix
1Type-Driven DesignCRITICALtype-
2Derive API PatternsCRITICALderive-
3Argument ConfigurationHIGHarg-
4Validation & ParsingHIGHvalid-
5Subcommand ArchitectureMEDIUM-HIGHsubcmd-
6Help & DocumentationMEDIUMhelp-
7Error HandlingMEDIUMerror-
8Testing PatternsLOW-MEDIUMtest-

Quick Reference

1. Type-Driven Design (CRITICAL)

2. Derive API Patterns (CRITICAL)

3. Argument Configuration (HIGH)

4. Validation & Parsing (HIGH)

5. Subcommand Architecture (MEDIUM-HIGH)

6. Help & Documentation (MEDIUM)

7. Error Handling (MEDIUM)

8. Testing Patterns (LOW-MEDIUM)

How to Use

Read individual reference files for detailed explanations and code examples:

Reference Files

FileDescription
references/_sections.mdCategory definitions and ordering
assets/templates/_template.mdTemplate for new rules
metadata.jsonVersion and reference information

What ships with it

Read from the repository

Just SKILL.md. No reference files, no scripts.

Keep looking

Skills are one crate of 325,949. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.