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
ascasting →try_from()+map_err()unwrap_or(default)→map_err()with explicit errorformat!→ use inline arguments{var}- Error messages must include the causative value
#[allow(clippy::...)]only allowed in test code
Related skills
More from masayuki-kono/agent-skills
implementation-plan
Guide for creating implementation plans. USE WHEN: planning new features, refactoring, or significant code changes.
44hses-protocol
HSES (High Speed Ethernet Server) protocol specification for Yaskawa robot controllers. USE WHEN: understanding UDP-based communication protocol, message structure, command formats, or error codes for Yaskawa robots.
17moto-hses-usage
moto-hses Rust crate usage guide. USE WHEN: implementing HSES (High Speed Ethernet Server) communication with Yaskawa robot controllers.
16hses-packet-analysis
Analyze HSES protocol packet captures and generate a markdown report. USE WHEN: debugging moto-hses communication, interpreting HSES packet data, identifying protocol errors.
7