rust-engineer

Design ownership-safe, concurrent Rust system components with tokio and explicit error handling.

Updated Mar 17, 2026
One-click install
npx skills add https://github.com/Estom/aiflex --skill rust-engineer-estom
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: rust-engineer
Source: https://github.com/Estom/aiflex/tree/main/skills-repo/Jeffallan-skills/rust-engineer
Command: npx skills add https://github.com/Estom/aiflex --skill rust-engineer-estom

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Helps engineers design and implement Rust applications that require strong memory safety, predictable ownership and borrowing, high concurrency, and zero-cost abstractions to avoid runtime errors and undefined behavior.

Core Features & Use Cases

  • Ownership & Lifetimes: Analyze ownership flows, design appropriate lifetime relationships, and recommend borrowing patterns.
  • Async & Concurrency: Provide idiomatic async/await designs with tokio, task spawning, cancellation, and channel-based communication.
  • Type & Trait Design: Define trait hierarchies, generics, associated types, and conversion patterns for extensible APIs.
  • Error Handling & Safety: Recommend Result/Option patterns, custom error types, documented unsafe blocks, and conformance to clippy and rustfmt.
  • Testing & Performance: Suggest unit/integration tests, property tests, benchmarks with criterion, and tools like MIRI for unsafe checks.

Quick Start

Use the rust-engineer skill to design a tokio-based async service with safe ownership, explicit error handling, and tests.

Frequently Asked Questions about rust-engineer

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

FAQPage Schema
How do I design ownership-safe and concurrent Rust system components?

To design ownership-safe Rust system components, you analyze ownership flows, establish appropriate lifetime relationships, and apply borrowing patterns alongside idiomatic async/await designs using tokio for high concurrency and predictable memory safety.

What is the best way to structure async services in Rust using tokio?

The best way to structure async services in Rust using tokio involves applying idiomatic async/await designs, managing task spawning and cancellation, and utilizing channel-based communication to ensure safe ownership and high concurrency.

How do I handle errors and unsafe blocks in high-performance Rust libraries?

Handling errors in high-performance Rust libraries requires explicit Result and Option patterns, custom error types, and documented unsafe blocks, ensuring zero-cost abstractions while preventing undefined behavior and runtime errors.

How do I build extensible trait-based APIs in Rust?

To build extensible trait-based APIs in Rust, you define trait hierarchies, utilize generics and associated types, and apply conversion patterns, ensuring the architecture supports zero-cost abstractions for performance-critical libraries.

What testing and benchmarking tools work with Rust systems programming?

Testing Rust systems programming components involves writing unit, integration, and property tests, running benchmarks with criterion, and using MIRI to verify unsafe blocks, ensuring clippy and rustfmt conformance.

When do I need explicit lifetimes and borrowing patterns in Rust?

You need explicit lifetimes and borrowing patterns in Rust when designing performance-critical libraries and FFI bindings where predictable ownership is required to avoid runtime errors and maintain zero-cost abstractions without garbage collection.