rust-engineer

Guide Rust developers in writing memory-safe, idiomatic code with ownership and lifetimes.

Updated Mar 17, 2026
One-click install
npx skills add https://github.com/Blake-John/agent-config --skill rust-engineer-blake-john
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: rust-engineer
Source: https://github.com/Blake-John/agent-config/tree/main/.agents/skill_spec/rust-engineer
Command: npx skills add https://github.com/Blake-John/agent-config --skill rust-engineer-blake-john

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Helps developers write, review, and debug idiomatic Rust code focusing on memory safety and zero-cost abstractions, covering ownership, lifetimes, trait hierarchies, and async programming with tokio for reliable systems.

Core Features & Use Cases

  • Idiomatic Rust patterns for ownership, borrowing, and lifetimes
  • Trait-based API design and generics to build flexible abstractions
  • Async programming with tokio and async/await for scalable services
  • Safe error handling using Result/Option and popular crates like thiserror/anyhow
  • Guidance for high-performance code, FFI bindings, and robust testing strategies

Quick Start

Describe idiomatic Rust patterns to implement a small module that uses ownership, lifetimes, and trait-based APIs with async support.

Frequently Asked Questions about rust-engineer

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

FAQPage Schema
How do I fix lifetime and ownership errors when writing async Rust code with tokio?

Fix lifetime and ownership errors in async Rust by ensuring borrowed data outlives async tasks and moving owned values across await points. This Skill guides ownership management and concurrency with tokio to produce memory-safe, idiomatic asynchronous services.

What is the best way to design flexible trait hierarchies and generic APIs in Rust?

Design flexible trait hierarchies and generic APIs in Rust using trait objects and bounds to build zero-cost abstractions. This Skill provides patterns for trait-based API design, enabling polymorphic interfaces without runtime overhead while enforcing Rust 2021 practices.

How do I handle errors in Rust using Result, Option, thiserror, and anyhow?

Handle errors in Rust using Result and Option types combined with thiserror for library-specific errors and anyhow for application-level flexibility. This Skill enforces safe error handling patterns to ensure robust systems programming and reliable error propagation.

Does this Rust guidance support creating FFI bindings and minimizing unsafe code blocks?

This Rust guidance supports creating FFI bindings and explicitly minimizes unsafe code blocks to guarantee memory safety. It promotes zero-cost abstractions and high-performance code execution while maintaining strict safety guarantees across systems programming tasks.

When should I use cargo fmt and cargo clippy for testing discipline in Rust?

Use cargo fmt for code formatting and cargo clippy for linting as part of a strict testing discipline in Rust development. This Skill enforces these practices alongside robust testing strategies to ensure idiomatic code quality and maintain reliable systems.