What problem does it solve?
This Skill prevents common Rust security and reliability failures while speeding up correct implementation for real-world Rust codebases, including async services and safe abstractions.
Core Features & Use Cases
- Secure coding guardrails: Block unsafe memory use patterns, command injection, path traversal, and unsafe archive extraction.
- Production-grade error handling: Avoid panics by eliminating unwrap/expect in production flows and promoting structured Result-based designs with thiserror-style errors.
- Async & systems-ready patterns: Use Tokio-appropriate patterns (spawn_blocking for CPU-bound work, async IO for network/file tasks) and disciplined unsafe documentation when unavoidable.
- Scope: Applies when implementing Rust features like services, CLI/library code, secure file handling, boundary validation, and FFI-adjacent safety wrappers.
Quick Start
Use the rust skill to generate a Rust function that validates inputs, safely reads a user-specified file under a base directory using canonicalization, and returns a Result type without panicking.