rust-code-quality-guide

Installation
SKILL.md

Rust Code Quality Guide

When to Use

  • Writing new Rust code that requires type conversions or error handling
  • Reviewing Rust code for quality issues
  • Ensuring code follows best practices for error messages and Clippy compliance
  • Fixing Clippy warnings or understanding why certain patterns are discouraged

Quick Reference

  • as casting → try_from() + map_err()
  • unwrap_or(default)map_err() with explicit error
  • format! → use inline arguments {var}
  • Error messages must include the causative value
  • #[allow(clippy::...)] only allowed in test code

Related skills
Installs
27
First Seen
Jan 24, 2026