robust-code
Skill2.7k starsChanged 8 days agoApache-2.0View on GitHub
Design, implement, refactor, or review code for human comprehension and safe evolution. Prefer functional data flow, explicit effects, and representations that exclude invalid states; use typestate where it simplifies valid operation sequences. Use when these concerns matter to a coding task or when scaffolding an agent to produce such code. Not for cosmetic rewrites, mandatory functional syntax, or unrelated architecture changes during a bounded fix.
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
- comment-guidelinesSkill
- commit-messageSkill
- model-refinementSkill
- reader-oriented-explanationSkill
- research-wheelSkill
- 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
9 rules. About 0 are common, 9 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈9
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 26
Read the applicable repository instructions, affected definitions and callers, and relevant tests.
- Distinctive: line 30
Keep uncertain product requirements provisional rather than encoding guesses as permanent type-level rules.
- Distinctive: line 58
Use typestate when the operations available on a value depend on its lifecycle.
- Distinctive: line 79
Keep decisions and transformations in functions whose dependencies and results are visible.
- Distinctive: line 100
Use meaningful domain names, explicit dependencies, and cohesive functions.
- Distinctive: line 126
Run the relevant checks against the actual final code.
- Distinctive: line 132
Test the invariant, not only the example that motivated it.
- Distinctive: line 163
After interruption, re-read the live revision, diff, and relevant check results.
- Distinctive: line 166
Do not install tools, change repository policy, publish, deploy, or spend on agent evaluations without the authority required by the task.
≈ “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
Robust code
Make correct behavior easy to understand and preserve. A future maintainer should be able to identify the invariant, follow the relevant data and effects, and see what must change when the requirements change. Prefer designs in which a plausible mistake is rejected by construction or produces a focused diagnostic, rather than requiring a reviewer to remember a distant convention.
These are engineering preferences under the task's correctness, compatibility, resource, and authorization constraints, not a promise of bug freedom. Apply them to the affected boundary; do not turn a small fix into a framework or a rewrite.
Establish the behavior and the checks
Read the applicable repository instructions, affected definitions and callers, and relevant tests. Establish the required observations: accepted and rejected inputs, outputs, errors, ordering, effects, and compatibility. Existing code and tests are evidence, not permission to preserve a known defect or change a contract. Keep uncertain product requirements provisional rather than encoding guesses as permanent type-level rules.
Identify the important invariants and who can invalidate them. For each invariant that matters to the change, locate its enforcing representation or boundary and the check that would expose a violation. Keep this mapping in existing code, tests, or the task's design note; do not create a parallel ledger by default.
Find the actual build, type-check, lint, and test commands and establish a relevant baseline. For a substantial API change, test a small type/API skeleton and its callers before investing in the full implementation. Use feedback as evidence about the design, not merely as an obstacle to remove.
Represent valid situations directly
Model alternatives with variants carrying the data each alternative requires, rather than independent flags, optional fields, or sentinel values whose legal combinations callers must memorize. Derive redundant state when practical. Keep independent dimensions independent; do not merge distinct permissions, outcomes, or responsibilities just to reduce the number of fields or states.
Establish refinements at a controlled boundary and carry the evidence forward: parse untrusted input into a validated value, use an opaque constructor or module boundary when callers must not forge it, and accept that value where its invariant is required. Inspect every construction and mutation path, including deserialization, FFI, alternate factories, aliases, and test helpers that can escape into production. A type name or unchecked cast is not validation.
Use typestate when the operations available on a value depend on its lifecycle. Express a transition as an operation from the old state to the new one. Where the language's ownership discipline supports it, consume the old capability when reuse would be invalid. Avoid exposing copying, aliasing, or alternate constructors that undo this protection. Without that discipline, use an authoritative runtime state owner when single-use or sequencing matters; phantom types alone do not provide it.
Choose the least complicated representation that preserves the required behavior. A runtime enum and an exhaustive transition function can be better than a generic state machine, especially with dynamic states or heterogeneous collections. Preserve real intermediate, failure, cancellation, and unknown-outcome states. Eliminating a necessary case is not making an illegal state unrepresentable.
A local type cannot keep an external fact true. A checked path, authorization, version, lease, or remote resource may become stale. Bind the operation to the relevant authority with a transaction, compare-and-swap, version check, or other appropriate protocol when correctness requires it. A separate preflight check is insufficient when another actor can change the fact before use.
Prefer functional data flow and explicit effects
Keep decisions and transformations in functions whose dependencies and results are visible. Prefer immutable values and explicit returns to shared mutable state, output parameters, hidden caches, or mutation across callbacks. Pass clocks, randomness, configuration, and other changing inputs explicitly when they affect the decision. Separate domain decisions from the code that performs I/O.
This is a preference for local reasoning, not for particular syntax. A simple loop with a private accumulator can be easier to understand than a nested iterator chain or a clever fold. Local mutation is acceptable when it cannot escape, its lifetime is clear, and it improves clarity or meets a resource constraint. Do not copy large structures, build an effect framework, or introduce deep indirection merely to make code look functional. Explain a consequential tradeoff, not every local variable.
Make effects, their order, and ownership visible at the boundary. Separate a plan from its execution where that permits useful independent checking, but account for stale plans and partial execution. Do not move domain policy into a large imperative shell solely to keep a small helper pure. Preserve atomicity, cleanup, and error semantics when reorganizing work.
Make later mistakes conspicuous
Use meaningful domain names, explicit dependencies, and cohesive functions. Keep an invariant near the operation or owner that enforces it; encapsulate changes that must happen together. Extract an abstraction when it reduces the concepts callers must track, not just because it shortens a function or removes similar-looking text. Comments should explain a non-obvious constraint or design reason rather than restate the implementation.
Handle a closed set of cases exhaustively so adding a variant exposes the decisions that need review. Avoid catch-all success, default values, or swallowed errors that silently assign semantics to a new case. For intentionally open protocols, provide an explicit unknown-case policy instead of pretending the set is closed.
Define expected failures in the result or the language's established error mechanism. Prefer operations defined for their declared input domain; establish a precondition in the input type or handle its absence explicitly. Do not hide partial operations behind unchecked indexing, assertions, or exceptions labeled impossible without a supporting invariant. Check arithmetic and resource limits where relevant.
For externally visible effects, distinguish failure from unknown success. Do not retry a timed-out write as though it certainly did nothing. Use reconciliation, idempotency, or a transactional protocol as the domain requires. Represent cleanup, cancellation, and recovery obligations so that an added early return cannot silently skip them.
Verify the implementation and its resistance to change
Run the relevant checks against the actual final code. Repair the cause of a failed check; do not get green results by widening types, inserting casts, disabling rules, weakening assertions, or removing an inconvenient test. A legitimate contract or test correction needs its own rationale and evidence, not silent acceptance of the candidate's behavior.
Test the invariant, not only the example that motivated it. Select checks according to the risk: compile-fail API tests for forbidden calls, property or model-based tests for state transitions, differential tests for behavior-preserving changes, and integration or fault-injection tests for effects and recovery. State what each check does not cover. A passing compiler does not establish the business contract; a passing test suite does not establish human comprehension.
For a consequential changed boundary, challenge a plausible small future edit: add a variant, bypass a constructor, change a boundary comparison, introduce an alias, or insert an early return. Ask which compiler error, focused test, or local review obligation catches it. Use a temporary mutation or extension probe when it adds useful evidence, and remove the probe afterward. Investigate a surviving violation; do not add brittle tests for changes that preserve the contract merely to increase a mutation score.
Review the patch from the maintainer's perspective: can they explain why each state is valid, trace effects and failures, and locate the obligations of a new case without reconstructing distant assumptions? Simplify the representation or supply the missing local explanation when they cannot. Do not substitute naming, line counts, or a readability score for this check.
Use the surrounding agent scaffold honestly
Prompting is one control, not enforcement. Keep repository guidance short and specific to facts the agent would otherwise miss. When authorized to configure a workflow, make the relevant checks runnable, return actionable diagnostics, and have the host verify completion against actual artifacts rather than the agent's success statement. Protect required acceptance checks outside the candidate's unreviewed edit authority when an enforced gate is needed. Do not claim that prose, a hook the agent can bypass, or a checker it can rewrite enforces that boundary.
After interruption, re-read the live revision, diff, and relevant check results; a prior success applies only to the artifact and environment it checked. Preserve other contributors' work. Revalidate uncertain external writes before retrying. Do not install tools, change repository policy, publish, deploy, or spend on agent evaluations without the authority required by the task.
Load design examples when a representation choice needs clarification; this reference is not required for every edit. Use separately available domain, writing, and model-refinement guidance when applicable; this package does not bundle or automatically activate other skills.
Deliver the requested code or review with the important invariant, consequential tradeoff, checks actually run, and remaining limits. Keep that explanation as small as the change permits. Distinguish a proposed guardrail, an implemented guardrail, a successfully exercised check, and evidence that an agent follows the workflow.
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.

