code-quality

Enforce exhaustive pattern matching and explicit error handling in Rust code.

Updated Feb 16, 2026
One-click install
npx skills add https://github.com/durancristhian/colore.ar --skill code-quality-durancristhian
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: code-quality
Source: https://github.com/durancristhian/colore.ar/tree/main/.agents/skills/code-quality
Command: npx skills add https://github.com/durancristhian/colore.ar --skill code-quality-durancristhian

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This guide codifies general correctness expectations for Rust development, emphasizing correctness, safety, and maintainable code.

Core Features & Use Cases

  • Enforces exhaustive pattern matching, prevents silent failures, and pushes for proper error handling.
  • Encourages clear, documented code and avoidance of over-engineering.
  • Provides practical patterns for safe and predictable Rust code in production.

Quick Start

Apply these rules in your Rust projects to improve correctness and maintainability.

Frequently Asked Questions about code-quality

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

FAQPage Schema
How do I enforce exhaustive pattern matching in Rust to prevent silent failures?

Exhaustive pattern matching in Rust prevents silent failures by forcing the compiler to verify all enum variants are handled. This Skill enforces that pattern, ensuring explicit error handling and predictable code execution in production environments.

What is the best way to improve Rust code correctness and maintainability in production services?

The best way to improve Rust code correctness is by enforcing robust patterns like exhaustive matching and explicit error handling. This Skill provides practical rules to ensure safety, readability, and maintainability across production Rust services and libraries.

How do I add meaningful comments to Rust code without over-engineering?

You add meaningful comments to Rust code without over-engineering by following guidelines that encourage clear, documented code while avoiding unnecessary complexity. This Skill enforces those rules to maintain readability and prevent bloated implementations.

Does this Rust code quality approach work for both libraries and production modules?

Yes, this Rust code quality approach works for libraries and production modules. It applies correctness expectations to any Rust project where safety, readability, and maintainability are priorities, enforcing robust patterns across diverse codebases.

Why does explicit error handling matter for Rust safety and predictability?

Explicit error handling matters for Rust safety because it prevents silent failures and unexpected panics. This Skill enforces proper error handling patterns to guarantee safe, predictable execution in production Rust environments.