rust-dev

Enforce Rust error handling, typing, and documentation standards before coding.

1|Updated Mar 30, 2026
One-click install
npx skills add https://github.com/anicdh/agstack --skill rust-dev-anicdh
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: rust-dev
Source: https://github.com/anicdh/agstack/tree/main/.claude/skills/rust
Command: npx skills add https://github.com/anicdh/agstack --skill rust-dev-anicdh

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Establishes and enforces consistent Rust development standards across a codebase, ensuring proper error handling, strong typing, disciplined async usage, and thorough documentation before writing or modifying code.

Core Features & Use Cases

  • Enforces error handling standards (e.g., typed errors, context) across library and application code.
  • Requires doc comments and unit tests for new modules and public APIs.
  • Integrates with cargo fmt and clippy to maintain code quality and consistency.

Quick Start

Review and apply the Rust development standards before coding to enforce consistent error handling, typing, async patterns, and documentation.

Frequently Asked Questions about rust-dev

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

FAQPage Schema
How do I enforce Rust development standards for error handling and documentation?

To enforce Rust development standards, apply project-wide rules requiring typed errors, context, and doc comments before implementation. This prevents drift into unsafe code by ensuring proper error handling, type safety, and documentation across all new modules.

What are typed error patterns in Rust and when do I need them?

Typed error patterns in Rust are structured error handling approaches using custom error types and context. You need them when establishing project-wide standards across library and application code to prevent undocumented or unsafe error propagation.

How do I set up pre-commit checks for Rust async code and type safety?

Set up pre-commit checks for Rust by integrating cargo fmt and clippy to maintain code quality and consistency. Apply these checks alongside standards for disciplined async usage and type safety before implementing new modules or modifying existing code.

Does this Rust development standards approach work with cargo fmt and clippy?

Yes, this Rust development standards approach integrates directly with cargo fmt and clippy. It uses these tools to maintain code quality and consistency, enforcing typed error handling, typing, async patterns, and documentation requirements before implementation.

Why does my Rust codebase drift into undocumented and unsafe code?

Rust codebases drift into undocumented and unsafe code without enforced project-wide standards. Establishing rules for typed error handling, strong typing, disciplined async usage, and thorough documentation before writing or modifying code prevents this drift.

When should I not use strict Rust development standards for new modules?

Strict Rust development standards might be excessive for quick prototypes or experimental scripts. These rules enforce typed errors, doc comments, and unit tests for new modules, adding overhead suited for production code rather than temporary exploratory work.