What problem does it solve?
Writing Rust documentation often suffers from inconsistent voice, unclear structure, and brittle rustdoc links. This skill provides a clear, reusable guide to craft high-quality rustdoc for modules, traits, and types, ensuring professional, navigable documentation.
Core Features & Use Cases
- Voice & Tone: Establishes a serious, precise, and approachable tone for Rust documentation.
- Prose Style & Structure: Enforces opening paragraphs, proper subjects, and inverted pyramid structure.
- Intra-doc Links: Guides the use of crate:: paths and reference-style links for robust navigation.
- Constants & Formatting: Covers byte constants conventions and cargo rustdoc-fmt usage to ensure consistent formatting.
- Commands for Retroactive Fixes: Provides commands such as /fix-intradoc-links, /fix-comments, /fix-md-tables to repair existing docs.
Quick Start
Use this skill to audit and repair rustdoc across a codebase. Start by running the documentation checks, then apply fixes with the provided commands.