rust-cli-interface
Skill0 starsChanged 2 months agoMITView on GitHub
Composition. Use when Rust command arguments, configuration precedence, help, terminal interaction, or human and machine output need implementation or review.
In this repository16 other files it gives its agents.
- AGENTS.mdAGENTS.md
- rust-buildSkill
- rust-cli-testingSkill
- rust-concurrencySkill
- rust-debuggingSkill
- rust-designSkill
- rust-distributionSkill
- rust-errorsSkill
- rust-filesystemSkill
- rust-idiomaticSkill
- rust-implementSkill
- rust-ioSkill
- rust-memorySkill
- rust-performanceSkill
- rust-processesSkill
- rust-testingSkill
The file
We split this skill into the rules it gives an agent
1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 8
Composition: Treat the command as an interface to both people and other programs.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Rust CLI Interface
Composition. Treat the command as an interface to both people and other programs. Identify accepted inputs, output streams, exit behavior, and effects. Honor supplied requirements and preserve settled choices outside the requested change; resolve only what the task leaves open.
Preserve the established argument parser. For a new command, match parser complexity to its grammar; clap is an established option for structured arguments, validation, and help. Reuse its supported mechanisms instead of duplicating parsing rules. Keep help and version paths inexpensive and free of unrelated initialization or effects.
Model conflicts, required combinations, defaults, and subcommands intentionally. Preserve path and argument values through OsString or PathBuf where UTF-8 is not guaranteed. Account for end-of-options markers and values beginning with a dash. Merge flags, environment, and configuration in a documented precedence order; distinguish absent values from explicit false, zero, or empty overrides.
Keep result data on stdout and diagnostics or progress on stderr. Preserve any established machine-readable schema, record framing, and ordering. Use terminal detection for presentation, with explicit user choices taking precedence; never make scripts parse decoration. Escape untrusted terminal control characters in human diagnostics while preserving the intended data format.
Prompt only when interaction is part of the command's contract and the appropriate terminal is available. Do not consume piped data as a confirmation answer. Keep noninteractive failure actionable.
For review, explain the affected interface decision without editing. For implementation, exercise the changed grammar or precedence through the actual parser or configuration merge; use the built command when process wiring, streams, or exit behavior is the claim. Check only relevant help, invalid-input, or redirected-output paths. Use a terminal test when terminal behavior matters, not for every flag change.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

