Loading...
Loading...
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.
npx skill4agent add pproenca/dot-skills rust-clap| Priority | Category | Impact | Prefix |
|---|---|---|---|
| 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 | |
type-valueenum-enumstype-option-optionaltype-pathbuf-filestype-vec-multipletype-newtype-semantictype-bool-flagsderive-parser-entryderive-command-metadataderive-subcommand-enumderive-args-reusablederive-doc-commentsderive-global-optionsderive-propagate-versionarg-default-valuearg-env-fallbackarg-short-longarg-conflicts-witharg-requiresarg-value-namevalid-value-parservalid-possible-valuesvalid-fromstr-typesvalid-try-parsevalid-num-argssubcmd-nested-hierarchysubcmd-args-structsubcmd-required-helpsubcmd-arg-groupssubcmd-externalhelp-shell-completionshelp-next-headinghelp-after-helphelp-hide-optionserror-exit-codeserror-contexterror-suggestionserror-color-stylestest-assert-cmdtest-predicatestest-temp-filestest-parse-fromtest-trycmd-snapshots| File | Description |
|---|---|
| references/_sections.md | Category definitions and ordering |
| assets/templates/_template.md | Template for new rules |
| metadata.json | Version and reference information |