rust-standards

Enforce Rust coding standards for dirctl core crates and tooling.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/DaniyalFaraz2003/dirctl --skill rust-standards-daniyalfaraz2003
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: rust-standards
Source: https://github.com/DaniyalFaraz2003/dirctl/tree/main/.claude/skills/rust-standards
Command: npx skills add https://github.com/DaniyalFaraz2003/dirctl --skill rust-standards-daniyalfaraz2003

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides explicit Rust coding standards for dirctl, ensuring idiomatic, safe core implementations by banning unwrap/expect in core, enforcing deterministic iteration, and requiring robust error handling, documentation, formatting, and linting.

Core Features & Use Cases

  • No unwrap() or expect() in core crates; allowed only in tests.
  • Use thiserror for crate-local error types; map external errors at boundaries.
  • No panic! in library code.
  • Explicit ordering for any iteration affecting semantics (deterministic processing).
  • Enforce rustfmt and clippy compliance across the codebase.

Quick Start

Apply these standards to any Rust core changes for dirctl and run the verification commands to ensure compliance.

Frequently Asked Questions about rust-standards

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

FAQPage Schema
How do I enforce no unwrap or expect in Rust core crates?

Enforce no unwrap or expect in Rust core crates by applying coding standards that ban these methods in library code and permit them only in tests, ensuring safety and preventing runtime panics during execution.

What is the best way to handle errors in Rust without causing panics?

Handle errors in Rust without panics by using thiserror for crate-local error types and mapping external errors at boundaries, explicitly eliminating panic macros from library code to ensure deterministic safety.

How do I ensure deterministic iteration in Rust codebases?

Ensure deterministic iteration in Rust codebases by applying standards that require explicit ordering for any iteration affecting semantics, guaranteeing consistent processing order and deterministic behavior across operations.

Does this Rust code quality standard require clippy and rustfmt compliance?

Yes, this Rust code quality standard requires strict rustfmt and clippy compliance across the codebase, enforcing idiomatic formatting and static analysis checks during code generation, refactors, and reviews.

Why does my Rust library code fail static analysis checks?

Rust library code fails static analysis checks when it contains unwrap, expect, or panic macros, lacks thiserror error types, or violates clippy and rustfmt compliance rules during linting.