Skip to content
Back to skills

Rust Patterns

ASecurity

Idiomatic Rust: ownership-friendly APIs, error types, iterators, async with tokio, and testing.

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 2, 2026
ai-agentsrusttestingapi

Works with

  • cli
  • api

Security analysis

A100/100

Scanned December 2, 2026

npx -y skills add karthikrshet/saarthi --skill rust-patterns --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Rust Patterns?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Rust Patterns
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/karthikrshet-rust-patterns/badge)](https://www.skillsdirectory.com/skills/karthikrshet-rust-patterns)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
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

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.