rust-errors
Skill0 starsChanged 2 months agoMITView on GitHub
Failure semantics. Use when Rust CLI errors, diagnostics, exit statuses, partial success, or cleanup can misrepresent the command's outcome.
2 other projects use a version of this.
Adopted by
Most recently taken up by
- epicenter-md/epicentertheir own version, first seen Nov 9, 2026
- dawidpereira/rust-skillstheir own version, first seen Mar 22, 2026
Other versions2 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 2
- epicenter-md/epicenter★ 4.8ksame name
- dawidpereira/rust-skills★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository16 other files it gives its agents.
- AGENTS.mdAGENTS.md
- rust-buildSkill
- rust-cli-interfaceSkill
- rust-cli-testingSkill
- rust-concurrencySkill
- rust-debuggingSkill
- rust-designSkill
- rust-distributionSkill
- 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
3 rules. About 0 are common, 3 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
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
Failure semantics: Follow failure from the operation that knows what happened to the process boundary that reports it.
- Distinctive: line 14
Keep panic and unwrap out of ordinary invalid-input and I/O paths.
- Distinctive: line 18
Treat a downstream stdout BrokenPipe according to the command's pipeline contract, without suppressing unrelated read, file-write, or …
≈ “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 Errors
Failure semantics. Follow failure from the operation that knows what happened to the process boundary that reports it. Honor supplied requirements and preserve settled choices outside the requested change; resolve only what the task leaves open.
Use Result for expected failures and preserve the underlying cause when adding useful operation or path context. Retain typed distinctions when callers choose different recovery behavior; an application-level error wrapper can simplify reporting. Reuse the project's error approach before adding another crate. Classify structured errors rather than matching display strings.
Decide whether the command stops immediately, continues with individual failures, or reports partial success. Keep that decision consistent with output and side effects. A printed diagnostic followed by a successful exit can mislead automation; no matches or empty input may be a valid domain outcome.
Keep panic and unwrap out of ordinary invalid-input and I/O paths. A panic strategy is not an error policy. Render errors once at the CLI boundary, preserve causal detail where useful, and avoid leaking secrets through diagnostic context or debug output.
Complete fallible output and cleanup before reporting success. Returning ExitCode from main allows normal scope cleanup; process::exit skips Rust destructors. Resource release through Drop does not make flush or durable-write errors observable.
Treat a downstream stdout BrokenPipe according to the command's pipeline contract, without suppressing unrelated read, file-write, or stderr failures. Interruption does not reverse effects already performed.
For review, explain the failure policy and false-success risk without editing. For implementation, check the changed error distinction or rendering with focused tests; exercise the process boundary when exit status, stream completion, or post-exit state is the claim. Assert the relevant output and effect, not every failure mode in this skill. Report exactly what was exercised.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
Reviews can't be read right now.
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.

