Write idiomatic Rust from C
idiomatic-rustskillsetup L2★381
majiayu000/claude-skill-registry ↗What it does
Write Rust code following ownership, borrowing, and idiomatic patterns
Best for
Systems code where memory safety must hold at compile-time without runtime GC overhead.
Inputs
- · problem domain
- · performance requirements
- · safety constraints
Outputs
- · Rust implementation
- · error types with ? operator
- · trait bounds and generics
Requires
- · Rust compiler (rustc)
- · cargo package manager
Preconditions
Understanding of ownership model; comfort with borrow checker; no garbage-collected language assumptions
Failure modes
- · Borrow checker conflicts (multiple mutable refs)
- · Trait object runtime cost
- · Panic in library code (violates contract)
- · Unsafe code without proof
Trust signals
- · Ownership guarantees at compile-time
- · Zero-cost abstractions
- · Type system correctness