code-quality

Enforce strict Rust code quality rules during reviews and CI checks.

Updated Jan 10, 2026
One-click install
npx skills add https://github.com/serguei9090/Agentic-Governance-Framework --skill code-quality-serguei9090
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: code-quality
Source: https://github.com/serguei9090/Agentic-Governance-Framework/tree/main/MasterPrompts/.agents/skills/code-quality
Command: npx skills add https://github.com/serguei9090/Agentic-Governance-Framework --skill code-quality-serguei9090

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Enforces rigorous Rust code quality to reduce bugs and maintenance burden by standardizing correctness practices and safe patterns.

Core Features & Use Cases

  • Correctness Rules: No hacks, assert invariants, and crash on invalid state to preserve data integrity.
  • Rust Patterns: Encourage enums over strings, exhaustive matching, and minimal allocations for predictable behavior.
  • Avoid Over-Engineering: Avoid premature abstractions; favor simple, maintainable changes.
  • Use Case: In a Rust project, guide code reviews and CI checks to enforce the quality practices.

Quick Start

Follow these guidelines when creating or reviewing Rust code to ensure correctness, readability, and maintainable patterns.

Frequently Asked Questions about code-quality

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

FAQPage Schema
How do I enforce strict Rust code quality rules during code reviews?

Enforce Rust code quality during reviews by applying rules for correctness, exhaustive matching, and clear error handling. This standardizes safe coding practices, reduces bugs, and prevents maintainability issues caused by over-engineering or premature abstractions.

What are the best Rust patterns for maintainable code and fewer bugs?

The best Rust patterns for maintainable code include using enums over strings, exhaustive matching, and minimal allocations. Favoring simple changes over premature abstractions ensures predictable behavior and reduces maintenance burden.

Can I use these code quality rules in CI checks for a Rust project?

Yes, you can apply these code quality rules in CI checks for a Rust project. They specify correct Rust patterns, safe coding practices, and error handling guidelines to ensure predictable, maintainable code automatically during integration.

Does this approach to Rust correctness allow crashing on invalid state?

Yes, this Rust correctness approach crashes on invalid state to preserve data integrity. It forbids hacks, requires asserting invariants, and enforces strict rules to ensure data remains valid and predictable throughout execution.

Why should I avoid over-engineering when writing Rust code?

Avoid over-engineering in Rust code to reduce maintenance burden and churn. Favoring simple, maintainable changes over premature abstractions ensures the codebase remains predictable, readable, and less prone to complex bugs during future updates.

How do I handle error handling correctly in Rust to ensure maintainability?

Handle errors correctly in Rust by applying clear error handling rules that ensure predictable, maintainable code. Standardizing these practices during code reviews and CI checks prevents hacks and preserves data integrity.