skillZs
★ LIVE SKILL TAGS ★
>>> LIVE SKILLS INDEX <<<
* OPEN SOURCE *
NO LOGIN, NO TRACKING
※ REAL INSTALL DATA ※
← back to all skills
pproenca/dot-skills66 installs

rust-clap

Rust Clap CLI argument parsing best practices. This skill should be used when writing, reviewing, or refactoring Rust CLI applications using clap. Triggers on tasks involving argument parsing, CLI design, subcommands, and command-line interfaces in Rust.

How do I install this agent skill?

npx skills add https://github.com/pproenca/dot-skills --skill rust-clap
view source ↗

Is this agent skill safe to install?

  • Gen Agent Trust Hubpass

    The skill is a comprehensive documentation set for Rust CLI development using the clap library. It contains best practices, educational code examples, and architectural guidance for argument parsing. No security risks, malicious patterns, or suspicious dependencies were identified.

  • Socketpass

    No alerts

  • Snykpass

    Risk: LOW · No issues

  • Runlayerwarn

    46/46 files flagged

What does this agent skill do?

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

Add the canonical catalog link to the repository README so users can inspect current installs and available audits. The publishing guide covers the complete discovery path.

<a href="https://skillzs.dev/skills/pproenca/dot-skills/rust-clap">View rust-clap on skillZs</a>