Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Is that skill safe to install?
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
Are you the author of Rust Patterns?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/karthikrshet-rust-patterns)
---
name: rust-patterns
description: "Idiomatic Rust: ownership-friendly APIs, error types, iterators, async with tokio, and testing."
tags: [rust]
---
# Rust Patterns
## When to use
- Rust crates and services
## Procedure
1. Borrow in parameters, own in fields;thiserror for libraries, anyhow for binaries
2. Prefer iterators
3. Avoid holding locks across await
4. Doc tests for public APIs
## Checklist
- [ ] clippy clean
- [ ] No unwrap in library code
## Anti-patterns
- Cloning to silence the borrow checker everywhere