comment-guidelines
Skill2.7k starsChanged 8 days agoApache-2.0View on GitHub
Write or review explanatory code comments that preserve non-obvious rationale, invariants, assumptions, contracts, and behavior without becoming stale. Use when adding, revising, or reviewing explanatory inline comments or documentation comments. Not for standalone prose documentation, non-prose tool directives, or pure task-tracking markers unless explanatory comment editing is also part of the task.
Trending
More talk lately.about the whole repository
Who's talking about google/zerocopy
- rust-lang/rust“Tracking Issue for `f16` and `f128` float types”GitHub · Oct 18, 2023 · 132 reactions
- rust-lang/rust“Expose the `Freeze` trait again (unstably) and forbid implementing it manually”GitHub · Feb 23, 2024 · 11 reactions
- rust-random/rand“Tracker: rand 0.9”GitHub · Aug 24, 2021 · 8 reactions
- rust-lang/rust“Expose the Freeze trait again (unstably) and forbid implementing it manually”GitHub · Mar 1, 2024 · 6 reactions
- @rusttrending.bsky.social“google / zerocopy: Zerocopy makes zero-cost memory manipulation effortless. We write `unsafe` so you don’t …”Bluesky · Jul 4, 2026 · 2 likes
The biggest 5 of 53 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 53
Talked about on GitHub, Bluesky and Hacker News (53 times).
On GitHub · 50
- Oct 18, 2023Tracking Issue for `f16` and `f128` float types — rust-lang/rust132 reactions · 47 comments
- Feb 23, 2024Expose the `Freeze` trait again (unstably) and forbid implementing it manually — rust-lang/rust11 reactions · 20 comments
- Aug 24, 2021Tracker: rand 0.9 — rust-random/rand8 reactions · 47 comments
- Mar 1, 2024Expose the Freeze trait again (unstably) and forbid implementing it manually — rust-lang/rust6 reactions · 5 comments
- Jan 12, 2026Allow derives to `allow(non_ascii_idents)` at the non-crate level — rust-lang/rust2 reactions · 5 comments
45 more on GitHub
- Oct 11, 2024Add support for zerocopy trait impls — tokio-rs/bytes2 reactions · 13 comments
- Oct 14, 2026chore(deps): bump the cargo group with 13 updates — oxidezap/whatsapp-rust1 reaction · 3 comments
- Oct 3, 2026chore(deps): bump the cargo group across 1 directory with 3 updates — splotlabs/splot1 reaction
- Sep 28, 2026chore(deps): bump the cargo group across 1 directory with 10 updates — oxidezap/whatsapp-rust1 reaction · 3 comments
- Sep 19, 2026chore(deps): bump the cargo group across 1 directory with 2 updates — splotlabs/splot1 reaction
- Sep 14, 2026chore(deps): bump the cargo group with 8 updates — oxidezap/whatsapp-rust1 reaction · 3 comments
- Aug 11, 2026build(deps): bump zerocopy from 0.8.55 to 0.8.56 — oxidezap/whatsapp-rust1 reaction · 1 comment
- Aug 7, 2026chore(deps): bump zerocopy from 0.7.35 to 0.8.55 — duketopceo/kurultai1 reaction · 2 comments
- Aug 1, 2026build(deps): bump the cargo group with 4 updates — splotlabs/splot1 reaction
- Jul 21, 2026chore(deps): bump zerocopy from 0.8.54 to 0.8.55 — oxidezap/whatsapp-rust1 reaction · 2 comments
- Jul 18, 2026build(deps): bump the cargo group with 2 updates — splotlabs/splot1 reaction
- Jun 20, 2026build(deps): bump zerocopy from 0.8.50 to 0.8.52 in the cargo group — splotlabs/splot1 reaction
- Jun 13, 2026build(deps): bump the rust-dependencies group across 1 directory with 3 updates — ness-e/Vantadb1 reaction · 1 comment
- Jun 6, 2026chore(deps): bump the patches group across 1 directory with 16 updates — vectordotdev/vrl1 reaction
- Jun 1, 2026chore(deps): bump the patches group with 11 updates — vectordotdev/vrl1 reaction · 1 comment
- Mar 12, 2026Feature request: Publish pre-builts on GitHub — AeneasVerif/aeneas1 reaction · 5 comments
- Nov 5, 2025`undocumented_unsafe_blocks` false positive despite `accept-comment-above-attributes = true` — rust-lang/rust-clippy1 reaction · 2 comments
- Mar 6, 2025Derive zerocopy traits via macro, remove custom derive dependency — cryptocorrosion/cryptocorrosion1 reaction · 4 comments
- Feb 13, 2025added fat16/32 superblock detection — aerynOS/disks-rs1 reaction · 1 comment
- Oct 20, 2024Derive macros are unsound — Lokathor/bytemuck1 reaction · 9 comments
- May 6, 2024`unexpected_cfgs` lint doesn't recognize some standard `cfg`s — rust-lang/rust1 reaction · 2 comments
- Mar 3, 2024Clarify atomic bit validity — rust-lang/rust1 reaction · 3 comments
- Nov 23, 2026build(deps): bump zerocopy from 0.8.53 to 0.8.63 in /verthys-tauri/verthys-worker — K1Super/Verthys0 reactions · 1 comment
- Nov 18, 2026Remove the uncommon_codepoints allow in udp-protocol once zerocopy is fixed — torrust/torrust-tracker0 reactions
- Nov 11, 2026build(deps): bump zerocopy from 0.8.25 to 0.8.63 in /userspace/ksud — sg-scale/KernelSU--v3.0.00 reactions
- Nov 9, 2026Bump zerocopy from 0.8.48 to 0.8.63 in /src-tauri — aj-seven/ai-hub0 reactions · 1 comment
- Oct 26, 2026chore(deps): bump zerocopy from 0.8.57 to 0.8.63 — ArthurHeymans/rem1000 reactions · 1 comment
- Oct 24, 2026Bump zerocopy from 0.7.14 to 0.7.35 — t-k/qiskit0 reactions
- Oct 22, 2026build(deps): bump zerocopy from 0.8.62 to 0.8.63 — boluomi2001/ctrllingo0 reactions
- Oct 20, 2026build(deps): bump zerocopy from 0.8.59 to 0.8.63 — AdallomRoy/rnginx0 reactions
- Oct 19, 2026build(deps): bump zerocopy from 0.8.59 to 0.8.63 — WhiteCloud-OuO/CloudInputMethodEditor0 reactions
- Oct 18, 2026build(deps): bump zerocopy from 0.8.56 to 0.8.63 — Artemides/hadris-winusb0 reactions
- Oct 17, 2026Bump zerocopy from 0.8.57 to 0.8.63 — openheartlibre/yiyan0 reactions
- Oct 14, 2026build(deps): bump zerocopy from 0.8.59 to 0.8.62 — zhangenrui123666/-0 reactions
- Oct 13, 2026build(deps): bump zerocopy from 0.8.57 to 0.8.62 — shellinea/qingjian-android0 reactions
- Sep 23, 2026`unsafe_rust_review_experimental`: Requires citation of un-citable facts? — google/rust-skills0 reactions · 1 comment
- Aug 27, 2026Updating an interior PR can fail to trigger pull_request workflows — joshlf/gherrit0 reactions
- Jun 13, 2026Use dataful enums for deserialization of all messages — rosenpass/rosenpass0 reactions · 2 comments
- Jun 3, 2026`zerocopy` wanted features & bugfixes — Rust-for-Linux/linux0 reactions
- Apr 6, 2026[Project]: Zerocopy — yncyrydybyl/ex-od-us0 reactions
- Feb 4, 2026Support passing attributes on the command line — rust-lang/rust-bindgen0 reactions
- Dec 23, 2025Compress patch comparison table over a certain size — joshlf/gherrit0 reactions · 1 comment
- Sep 27, 2024Apparent race condition in "waiting for" recently-published package to be available — rust-lang/cargo0 reactions · 10 comments
- Sep 19, 2024`#[diagnostic::on_unimplemented]` fails to trigger when certain impls are present — rust-lang/rust0 reactions · 2 comments
- Feb 21, 2024`cargo vendor` should offer the ability to omit the `tests/` directory — rust-lang/cargo0 reactions · 6 comments
On Bluesky · 2
- Jul 4, 2026google / zerocopy: Zerocopy makes zero-cost memory manipulation effortless. We write `unsafe` so you don’t have to. ★2472… — @rusttrending.bsky.social2 likes and reposts
- Sep 30, 2024google / zerocopy: ★1288 https://github.com/google/zerocopy — @rusttrending.bsky.social1 likes and repost
On Hacker News · 1
- Oct 9, 2024Zerocopy 0.81 point · 1 comment
In this repository32 other files it gives its agents.
- AGENTS.mdAGENTS.md
- anneal/AGENTS.mdAGENTS.md
- zerocopy/AGENTS.mdAGENTS.md
- anneal/CLAUDE.mdCLAUDE.md
- change-reviewSkill
- proof-scalingSkill
- source-controlSkill
- spec-authoringSkill
- trust-reviewSkill
- proof-scalingSkill
- spec-authoringSkill
- cargo-annealSkill
- unsafe-rustSkill
- unsafe-rustSkill
- unsafe-rustSkill
- unsafe-rustSkill
- unsafe-rustSkill
- unsafe-rustSkill
- architectural-designSkill
- authorship-disclosureSkill
- clear-writingSkill
- commit-messageSkill
- model-refinementSkill
- reader-oriented-explanationSkill
- research-wheelSkill
- robust-codeSkill
- skill-authorshipSkill
- swarm-model-refinementSkill
- tech-leadSkill
- unsafe-rustSkill
- zerocopy-developmentSkill
- zerocopy-reviewSkill
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 14
Write comments for the reader and interface they serve.
- Distinctive: line 34
Do not narrate syntax or obvious control flow.
- Distinctive: line 62
When a cross-code relationship is essential, name the stable concept or identifier and explain the relationship that must remain true.
- Distinctive: line 77
Write prose comments as full sentences with proper grammar, capitalization, and punctuation.
- Distinctive: line 80
Use straightforward, factual language.
- Distinctive: line 88
Put a blank comment line between prose paragraphs and between a section header and the first line of that section.
≈ “Common” is an estimate: at least 1 in 5 of the 383,637 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
Comment guidelines
Write comments for the reader and interface they serve. Help that reader understand information they should not have to reconstruct from elsewhere, and keep that information accurate as the code evolves. Do not add an explanatory comment merely because this skill is active; clear implementation code may need no implementation comment.
Content
Match the comment to its audience
For implementation comments, prioritize information a source reader cannot reliably infer from the surrounding code:
- why a design or implementation choice exists;
- invariants and constraints that must remain true;
- non-obvious semantics, contracts, side effects, edge cases, or safety considerations; and
- assumptions about external systems, data, or environments when they materially affect correctness, safety, compatibility, or interoperability.
Do not narrate syntax or obvious control flow. When the task permits a code change and the code can express a fact more directly and durably, prefer making the code clearer rather than using a comment to excuse avoidable obscurity.
Caller-facing documentation comments are part of the API. Document the behavior, obligations, side effects, errors, safety conditions, and usage context that callers need without reading the implementation, as relevant to that API and the project's documentation conventions. Do not omit needed API documentation merely because the implementation or type signature makes the information discoverable. Do not expose mutable implementation details as API contract.
Describe the current code, not its chronology
State current facts and current reasons. Do not use explanatory comments as a changelog or roadmap. Mention an ongoing transition, future condition, or prior design only when it is needed to explain why the current code has its present shape or to preserve a lesson that constrains the current design. Make the present constraint understandable without requiring the reader to reconstruct that history.
Keep the relevant context local
A reader should not need unexplained knowledge of distant code to understand a comment. At the same time, do not duplicate mutable implementation details from elsewhere merely to make a comment self-contained; that creates another source of truth that can become stale.
When a cross-code relationship is essential, name the stable concept or identifier and explain the relationship that must remain true. Avoid claims whose correctness silently depends on unrelated mutable details elsewhere in the codebase.
Document assumptions precisely
Explicitly comment a non-obvious external assumption when violating it would change behavior or invalidate correctness, safety, compatibility, or interoperability, unless nearby code, types, APIs, or checks already make the assumption clear. State what must remain true and why it matters. A comment records an assumption; it does not enforce it.
Style
- Write prose comments as full sentences with proper grammar, capitalization, and punctuation. Headings, table cells, diagrams, and code fragments need not be sentences.
- Use straightforward, factual language. Avoid subjective or superlative claims such as "flawlessly", "seamlessly", or "beautifully".
- Wrap comment prose at 80 columns from the left margin, including
indentation and any comment marker such as
//,///, or//!. a. Exceptions: Markdown tables, ASCII diagrams, long URLs, code blocks, or other cases where wrapping would impair readability. b. In bulleted lists, indent continuation lines by 2 spaces. c. Do not wrap a link if doing so would break it. Put a blank comment line between prose paragraphs and between a section header and the first line of that section. Do not write:
// Lorem ipsum. // Dolor sit amet ...Instead, write:
// Lorem ipsum. // // Dolor sit amet ...
Self-check
- Is each explanatory comment appropriate for the reader and interface it serves?
- Does each implementation comment add information the surrounding code does not make clear on its own?
- Does each caller-facing documentation comment state the contract callers need without requiring them to read the implementation?
- Does the comment explain the current rationale, invariant, contract, or assumption instead of merely narrating the code or its history?
- Can a reader understand it without unstated knowledge of distant code, and does it avoid duplicating mutable details from elsewhere?
- Are material, non-obvious external assumptions documented?
- Are prose comments complete, grammatical sentences using factual language?
- Are prose lines wrapped at 80 columns, with the documented exceptions?
- Are paragraphs and section bodies separated as required?
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.

