Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add skills/mxsm/rocketmq-rust/rust-doc-comment-generatornpx skills add mxsm/rocketmq-rust --skill rust-doc-comment-generatorgit clone --depth 1 https://github.com/mxsm/rocketmq-rustWhat it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00039 | $0.00873 |
| Opus 5 | $0.00019 | $0.00436 |
| Sonnet 5 | $0.00008 | $0.00175 |
| Haiku 4.5 | $0.00004 | $0.00087 |
Grade A, and why
rust-doc-comment-generator scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 182 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Rust Documentation & Comment Generator Skill
Overview
This skill generates standard-compliant Rust comments and documentation for Rust source code. It strictly follows Rust’s official documentation guidelines and produces output suitable for production-quality open-source and enterprise Rust projects.
The generated comments are:
- Idiomatic and precise
- Free of AI-identifiable artifacts
- Fully aligned with Rustdoc conventions
- Suitable for blocking, async, and unsafe code
Standards & References
This skill MUST comply with the following authoritative sources:
- Rust API Guidelines — Documentation
https://rust-lang.github.io/api-guidelines/documentation.html - The Rustdoc Book
https://doc.rust-lang.org/rustdoc/ - Rust Style Guide
https://doc.rust-lang.org/style-guide/
Supported Targets
This skill applies to the following Rust items:
struct,enum,uniontraitimplblocksfn/async fn- Modules (
mod) unsafeblocks and functions
Comment & Documentation Rules
1. Comment Types
| Context | Format |
|---|---|
| Public item | /// Rustdoc comment |
| Module-level documentation | //! |
| Private implementation detail | // |
| Unsafe API explanation | /// # Safety |
2. Rustdoc Section Usage
Rustdoc sections MUST be included only when semantically relevant:
# Examples# Panics# Errors# Safety# Performance
Empty or boilerplate sections are not allowed.
3. Language & Tone
- Use formal, neutral, technical language
- Avoid conversational or instructional phrasing
- Avoid marketing or subjective language
- Describe behavior, constraints, and guarantees precisely
✅ Correct:
Represents the configuration used by the message consumer.
❌ Incorrect:
This struct is very useful and highly optimized.
4. Blocking vs Async Behavior
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 3d ago First seen · 182 lines · 39 tokens per session scan A 76cab3e0082f
rust-doc-comment-generator is a skill published in the GitHub repository mxsm/rocketmq-rust (1,508 stars, last pushed yesterday), licensed Apache-2.0. It adds 39 tokens to every session and 873 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other skills, from other repositories
rust-code-quality
Run a focused Rust quality review when the user requests one, when reviewing a Rust PR/commit, or when another selected review workflow delegates Rust-specific checks. Do not auto-load for every implementation edit.
next-rspack
Maintain @next/rspack-core and @next/rspack-binding packages. Use when editing rspack/package.json, rspack/crates/binding/Cargo.toml, rspack/rust-toolchain.toml, or packages/next-rspack/package.json. Covers upgrading @rspack/core npm version, rspack crate versions, Rust toolchain version, building and linking for…
code-simplifier
Review RTK Rust code for idiomatic simplification. Detects over-engineering, unnecessary allocations, verbose patterns. Applies Rust idioms without changing behavior.
compiler-port
Port a compiler pass from TypeScript to Rust. Gathers context, plans the port, implements in a subagent with test-fix loop, then reviews.
Capsule Development
Build, test, package, install, and debug a current Unicity AOS capsule.
freya
Freya Rust GUI framework best practices, patterns, and conventions. Use when writing Freya components, hooks, elements, or working on a Freya project.