rust-doc-comment-generator
Skill1.5k starsChanged 5 months agoApache-2.0View on GitHub
Generate idiomatic, production-grade Rust comments and documentation strictly following official Rustdoc and Rust API documentation conventions. Designed for real-world Rust projects with zero AI-identifiable markers.
Trending
Quiet since March.thin dataabout the whole repository
Who's talking about mxsm/rocketmq-rust
- DexterWernJr/Kearney“CDL”GitHub · Aug 11, 2025 · 5 reactions
- @bearstech.com“RocketMQ-Rust : Une implémentation Rust d'Apache RocketMQ 🚧 En cours de développement 👉 Le projet : …”Bluesky · Nov 25, 2024 · 3 likes
- @rusttrending.bsky.social“mxsm / rocketmq-rust: 🚀Apache RocketMQ Rust implementation. Faster, safer, and with lower memory usage. ★608…”Bluesky · Nov 10, 2024 · 2 likes
- @rusttrending.bsky.social“mxsm / rocketmq-rust: 🚀Apache RocketMQ build in Rust🦀. Faster, safer, and with lower memory usage.⭐Star …”Bluesky · Jan 11, 2026 · 1 likes
- @rusttrending.bsky.social“mxsm / rocketmq-rust: 🚀Apache RocketMQ build in Rust🦀. Faster, safer, and with lower memory usage.⭐Star …”Bluesky · Dec 28, 2025 · 1 likes
The biggest 5 of 9 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 9
Talked about on GitHub and Bluesky (9 times).
On GitHub · 5
- Aug 11, 2025CDL — DexterWernJr/Kearney5 reactions · 5 comments
- Mar 2, 2026Rocketmq-rust — glcrazier/grocketmq0 reactions · 1 comment
- Jul 30, 2025<!-- This is an auto-generated comment: summarize by coderabbit.ai --> — DexterWernJr/Kearney0 reactions
- Jul 30, 2025<!-- Please make sure the target branch is right. In most case, the target branch should be `main`. --> Learn Teeamteœ — DexterWernJr/Kearney0 reactions
- Dec 18, 2024消息队列可以添加Rocketmq-rust — rust-boom/rust-boom0 reactions · 1 comment
On Bluesky · 4
- Nov 25, 2024RocketMQ-Rust : Une implémentation Rust d'Apache RocketMQ 🚧 En cours de développement 👉 Le projet : github.com/mxsm/rock... 👉 La… — @bearstech.com3 likes and reposts · 1 reply
- Nov 10, 2024mxsm / rocketmq-rust: 🚀Apache RocketMQ Rust implementation. Faster, safer, and with lower memory usage. ★608… — @rusttrending.bsky.social2 likes and reposts
- Jan 11, 2026mxsm / rocketmq-rust: 🚀Apache RocketMQ build in Rust🦀. Faster, safer, and with lower memory usage.⭐Star if you like it! ★1433… — @rusttrending.bsky.social1 likes and repost
- Dec 28, 2025mxsm / rocketmq-rust: 🚀Apache RocketMQ build in Rust🦀. Faster, safer, and with lower memory usage.⭐Star if you like it! ★1360… — @rusttrending.bsky.social1 likes and repost
In this repository15 other files it gives its agents.
- AGENTS.mdAGENTS.md
- fuzz/AGENTS.mdAGENTS.md
- rocketmq-example/AGENTS.mdAGENTS.md
- rocketmq-website/AGENTS.mdAGENTS.md
- rocketmq-rust-good-first-issueSkill
- rocketmq-rust-issue-generatorSkill
- rocketmq-rust-local-clusterSkill
- rocketmq-rust-pr-submitterSkill
- translate-it-doc-en-zhSkill
- rocketmq-rust-good-first-issueSkill
- rocketmq-rust-issue-generatorSkill
- rocketmq-rust-local-clusterSkill
- rocketmq-rust-pr-submitterSkill
- rust-doc-comment-generatorSkill
- translate-it-doc-en-zhSkill
The file
We split this skill into the rules it gives an agent
6 rules. About 0 are common, 6 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈6
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 69
Use formal, neutral, technical language
- Distinctive: line 70
Avoid conversational or instructional phrasing
- Distinctive: line 71
Avoid marketing or subjective language
- Distinctive: line 139
Add missing documentation where appropriate
- Distinctive: line 140
Never change code semantics
- Distinctive: line 141
Never introduce new APIs or rename identifiers
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
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
Blocking APIs
Blocking behavior MUST be explicitly documented.
/// Blocks the current thread until a message is available.Async / Non-Blocking APIs
Async behavior MUST be explicitly documented.
/// Asynchronously waits for the next message.
///
/// This function does not block the calling thread.5. Unsafe Code Documentation
Any unsafe function or block MUST include a # Safety section.
/// # Safety
///
/// The caller must ensure that the pointer is valid and properly aligned
/// for the duration of the call.Vague or generic safety statements are forbidden.
Forbidden Content
The output MUST NOT contain:
- Emojis
- Phase or workflow markers (e.g.
Phase,Step,Optimize) - TODO / FIXME / NOTE meta-comments
- AI-related indicators or explanations
- Commentary about refactoring or future improvements
Input Expectations
The user may provide:
- Undocumented Rust code
- Partially documented Rust code
- Rust code with non-standard or low-quality comments
Output Expectations
The skill MUST:
- Preserve existing correct Rustdoc comments
- Rewrite non-standard comments into idiomatic Rustdoc
- Add missing documentation where appropriate
- Never change code semantics
- Never introduce new APIs or rename identifiers
Example
Input
pub struct MessageQueue {
capacity: usize,
}Output
/// Represents a bounded message queue.
///
/// The queue can store messages up to a fixed capacity.
pub struct MessageQueue {
capacity: usize,
}Non-Goals
This skill does NOT:
- Refactor code
- Optimize performance
- Rename symbols
- Add logging
- Generate tests
Compatibility
This skill is designed to work alongside:
- Rust API naming validation skills
- Safety auditing skills
- Project-specific glossary enforcement skills
Each skill operates independently and does not overlap responsibilities.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

