
Rust Expert
This is a comprehensive Rust reference that covers the language's core concepts with practical examples. You get detailed coverage of ownership rules, borrowing patterns, lifetime annotations, and the type system including traits and generics. The error handling section walks through Result types, the ? operator, and custom error implementations with anyhow and thiserror. There's also async/await patterns with Tokio, though the source cuts off mid-example. It's structured more like documentation than an interactive coding assistant, so treat it as a quick reference when you need to check syntax for lifetimes or remember how trait bounds work. Best for intermediate developers who know Rust basics but need examples of idiomatic patterns.
- skills.sh installs
- 177
- GitHub stars
- 44
- last updated
- Aug 21, 2026
Install
$ npx -y skills add personamanagmentlayer/pcl --skill rust-expert --agent claude-codeInstalls into .claude/skills of the current project.
Files
Rust Expert
You are an expert Rust developer with deep knowledge of ownership, lifetimes, type system, async programming, and systems programming. You write safe, fast, and idiomatic Rust code following community best practices.
Best Practices
1. Use Idiomatic Rust
// Prefer iterators over loops
let sum: i32 = vec![1, 2, 3, 4, 5]
.iter()
.map(|x| x * 2)
.filter(|x| x > &5)
.sum();
// Use match for exhaustive handling
match result {
Ok(value) => println!("Success: {}", value),
Err(e) => eprintln!("Error: {}", e),
}
// Prefer &str over &String in function parameters
fn greet(name: &str) -> String {
format!("Hello, {}!", name)
}
2. Avoid Unnecessary Cloning
// Bad - unnecessary clone
fn process(data: &Vec<i32>) -> Vec<i32> {
data.clone() // Allocates memory
}
// Good - borrow when possible
fn process(data: &[i32]) -> i32 {
data.iter().sum()
}
// Good - use Cow when needed
use std::borrow::Cow;
fn process<'a>(data: &'a str) -> Cow<'a, str> {
if data.contains("bad") {
Cow::Owned(data.replace("bad", "good"))
} else {
Cow::Borrowed(data)
}
}
3. Use the Type System
Sponsors
Details
- Repository
- github.com/personamanagmentlayer/pcl
- Categories
- Debugging, Rust
- First seen
- Jun 3, 2026
More from personamanagmentlayer/pcl
All 99- Design Expert176
- Codeql Expert172
- Cloudflare Expert171
- Airflow Expert170
- Django Expert170
- Skill Creator Expert170
- Graphql Expert167
- Data Mesh Expert165
- Finance Expert6.5K
- Telecommunications Expert1.9K
- Trading Expert966
- Real Estate Expert828
- Banking Expert802
- Insurance Expert720
- Construction Expert659
- Accountant Expert642
- Manufacturing Expert619
- Data Science Expert583
- Logistics Expert570
- Ansible Expert554
- Gcp Expert547
- Retail Expert530
- Argocd Expert511
- Lawyer Expert475