rust-documentation

Standardize Rust and WebAssembly documentation with rustdoc conventions and security notes.

Updated Jan 24, 2026
One-click install
npx skills add https://github.com/JLSed/Novault --skill rust-documentation
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: rust-documentation
Source: https://github.com/JLSed/Novault/tree/main/.github/skills/rust-documentation
Command: npx skills add https://github.com/JLSed/Novault --skill rust-documentation

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Rust codebases often lack consistent documentation, leading to maintenance challenges and onboarding friction.

Core Features & Use Cases

  • Enforces doc comments on all public items (functions, structs, enums, traits) with clear rationale ("why" and "what").
  • Provides a standard rustdoc template, including section structure, cross-references, and module-level docs across Rust/WASM components.
  • Supports crypto-related code by embedding security notes and practical examples to drive secure documentation.

Quick Start

Document a new Rust module by adding public doc comments and module-level notes following the standard template.

Frequently Asked Questions about rust-documentation

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

FAQPage Schema
How do I enforce consistent Rust documentation standards across my project?

Standardized Rust documentation enforces doc comments on public items and uses a structured rustdoc template. This approach reduces onboarding friction and maintenance challenges by ensuring consistent module-level documentation across the project.

What is the best way to document cryptographic code in Rust?

Documenting cryptographic code in Rust requires embedding specific security notes and practical examples within the doc comments. This drives secure documentation practices by ensuring users understand the security implications and proper usage of the crypto-related functions.

Does this documentation approach work with WebAssembly components in Rust?

Yes, this documentation approach applies to WebAssembly components in Rust. It provides a standard rustdoc template that includes section structure, cross-references, and module-level documentation specifically tailored for Rust and WASM components.

How do I structure rustdoc comments for public APIs, modules, and traits?

Structuring rustdoc comments for public APIs, modules, and traits involves applying a standard template with clear section structures and cross-references. This enforces documentation conventions by requiring clear rationale explaining the 'why' and 'what' for all public items.

Why do I need module-level documentation in my Rust codebase?

Module-level documentation in Rust is needed to provide context and standard structure across your codebase. It reduces onboarding time and maintenance challenges by giving developers immediate access to high-level rationale and cross-references for the module.