programming-with-rust

Review and generate idiomatic Rust code with ownership and concurrency best practices.

35|10|Updated Feb 10, 2026
One-click install
npx skills add https://github.com/booklib-ai/booklib --skill programming-with-rust
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: programming-with-rust
Source: https://github.com/booklib-ai/booklib/tree/main/skills/programming-with-rust
Command: npx skills add https://github.com/booklib-ai/booklib --skill programming-with-rust

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Rust code quality and correctness are improved by systematic reviews and idiomatic writing guided by best practices.

Core Features & Use Cases

  • Review Mode: analyze existing Rust code for ownership, borrowing, lifetimes, and concurrency idioms.
  • Write Mode: generate safe, idiomatic Rust from scratch based on guidelines from Programming with Rust.
  • Use Case: learn and apply Rust patterns to real projects, from small utilities to libraries.

Quick Start

Ask me to review existing Rust code or generate new idiomatic Rust examples following best practices.

Frequently Asked Questions about programming-with-rust

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

FAQPage Schema
How do I write idiomatic Rust code that correctly follows ownership and borrowing rules?

Review Rust code by analyzing ownership, borrowing, lifetimes, and concurrency idioms. This process verifies alignment with best practices, identifies unnecessary cloning, and returns corrected code along with detailed rationale for each modification.

What is the best way to handle errors and concurrency in Rust?

Handle errors and concurrency in Rust by leveraging Result, Option, and fearless concurrency patterns. This approach verifies proper error propagation and thread safety, returning production-ready snippets that adhere to system best practices.

How do I fix Rust borrowing and lifetime errors in my existing code?

Fix Rust borrowing and lifetime errors by running existing code through a systematic review. The analysis detects ownership violations, explains the underlying lifetime conflicts, and returns corrected code with detailed rationale.

Does this support generating Rust code for both small utilities and libraries?

Yes, this supports generating Rust code for both small utilities and libraries. You can learn and apply idiomatic patterns to real projects of varying scales, ensuring safe concurrency and proper error handling across different use cases.