rust-development

Write and review Rust code with ownership, borrowing, lifetimes, and error handling.

2|Updated May 15, 2026
One-click install
npx skills add https://github.com/bdbch/ai-dotfiles --skill rust-development-bdbch
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: rust-development
Source: https://github.com/bdbch/ai-dotfiles/tree/main/skills/rust-development
Command: npx skills add https://github.com/bdbch/ai-dotfiles --skill rust-development-bdbch

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill helps developers write expert Rust code by providing guidance on ownership, borrowing, lifetimes, async, error handling, and systems programming.

Core Features & Use Cases

  • Ownership and Borrowing: Offers best practices for safety, correctness, and performance in Rust programming.
  • Error Handling: Instructs on using Result and Option effectively and avoiding common pitfalls like unwrap and expect.
  • Concurrency: Guidance on using threads, async, channels, and locks for concurrent programming in Rust.

Quick Start

Run the skill to review a section of Rust code with focus on ownership, borrowing, and error handling.

Frequently Asked Questions about rust-development

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I handle ownership and borrowing correctly in Rust?

Use Result and Option types for idiomatic Rust error handling instead of unwrap and expect. This approach safely manages recoverable errors and absent values while avoiding runtime panics in production code.

What is the best way to write concurrent code in Rust?

Rust concurrency utilizes threads, async programming, channels, and locks to achieve safe parallel execution. This approach leverages strong typing and memory management principles to prevent data races at compile time.

How do I review Rust code for lifetime and memory management issues?

Rust system programming suits CLI tools, libraries, and performance-critical code development. Its strong typing and memory management principles provide safety and correctness for low-level development scenarios.

Why does my Rust code fail due to lifetime constraints?

Rust lifetime constraints fail when references outlive the data they point to, violating memory safety rules. Resolving this requires adjusting reference scopes or using idiomatic patterns for ownership and borrowing.