documenting-rust-code
Guidelines for writing high-quality Rust documentation following industry standards.
Install
mkdir -p .claude/skills/documenting-rust-code && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/3502" && unzip -o skill.zip -d .claude/skills/documenting-rust-code && rm skill.zipInstalls to .claude/skills/documenting-rust-code
Activation
This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.
Rust documentation practices for HASH codebase. Use when writing doc comments, documenting functions/types/traits/modules, creating error sections, using intra-doc links, or following rustdoc conventions.Key capabilities
- →Write doc comments with summaries
- →Create intra-doc links for types
- →Document error conditions
- →Include practical API examples
- →Format module-level documentation
How it works
The skill enforces rustdoc conventions by requiring summaries, error sections, and intra-doc links for all public APIs.
Inputs & outputs
When to use documenting-rust-code
- →Write module doc comments
- →Add error sections to documentation
- →Link to standard library types
- →Document a public trait
About documenting-rust-code
Enforces consistent documentation practices including intra-doc linking, error handling sections, and usage examples. Ensures that public APIs are well-documented for end users.
Rust documentation practices for HASH codebase. Use when writing doc comments, documenting functions/types/traits/modules, creating error sections, using intra-doc links, or following rustdoc conventions.
When not to use it
- →Documenting standard trait implementations
Prerequisites
Limitations
- →Requires manual maintenance of doc comments
- →Limited to Rust documentation conventions
How it compares
It mandates a high-quality standard similar to major Rust crates, ensuring consistency across the entire codebase.
Compared to similar skills
documenting-rust-code side by side with the closest alternatives in the catalog.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| documenting-rust-code (this skill) | 1 | 4mo | Review | Beginner |
| review-rust-docs | 1 | 7mo | No flags | Beginner |
| deepwiki-rs | 25 | 11mo | Review | Intermediate |
| code-review | 0 | 8mo | No flags | Intermediate |
Try saying
Example prompts that trigger this skill in your AI assistant.
More by hashintel
View all by hashintel →You might also like
review-rust-docs
RediSearch
Review the documentation of a Rust crate to ensure it meets our requirements and standards.
deepwiki-rs
sopaco
AI-powered Rust documentation generation engine for comprehensive codebase analysis, C4 architecture diagrams, and automated technical documentation. Use when Claude needs to analyze source code, understand software architecture, generate technical specs, or create professional documentation from any programming language.
code-review
jonatron55
Instructions for reviewing changes and ensuring quality before completion. Use when asking for a review or before committing changes.
rust-docs-guidelines
RediSearch
Guidelines for writing Rust documentation
write-documentation
r3bl-org
Write and format Rust documentation correctly. Apply proactively when writing code with rustdoc comments (//! or ///). Covers voice & tone, prose style (opening lines, explicit subjects, verb tense), structure (inverted pyramid), intra-doc links (crate:: paths, reference-style), constant conventions (binary/byte literal/decimal), and formatting (cargo rustdoc-fmt). Also use retroactively via /fix-intradoc-links, /fix-comments, or /fix-md-tables commands.
doc-cli-usage
BA-CalderonMorales
Use the Rust-based documentation CLI for common tasks.