spec-authoring
Skill2.7k starsChanged 9 days agoApache-2.0View on GitHub
Use when translating Rust or C reference intent into formal Anneal Lean specifications, auditing specs for echo or vacuity traps, checking client sufficiency, or separating spec changes from proofs. Not for CLI flags or receipt parsing (use cargo-anneal) or Lean proof scaling (use proof-scaling).
8 other projects use a version of this.
Adopted by
Steady: 0 new projects took it in the last 4 weeks, none the 4 weeks before.thin data
Most recently taken up by
- cypher0n3/dotagentstheir own version, first seen Nov 25, 2026
- Muvon/octomind-taptheir own version, first seen Nov 12, 2026
- AlexCiortan/setlisttheir own version, first seen Oct 29, 2026
- NashEQify/forgetheir own version, first seen Oct 25, 2026
- attilaszasz/sdd-pilottheir own version, first seen Oct 20, 2026
- sanzhardanybayev/synergytheir own version, first seen Oct 13, 2026
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
Other versions8 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 8
- attilaszasz/sdd-pilot★ 98same name
- Muvon/octomind-tap★ 6same name
- galimba/agentic-builder-forge★ 4same name
- cypher0n3/dotagents★ 3same name
- AlexCiortan/setlist★ 2same name
- NashEQify/forge★ 2same name
- sanzhardanybayev/synergy★ 2same name
- bmarshall511/Trellis★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
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
- 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
- robust-codeSkill
- skill-authorshipSkill
- swarm-model-refinementSkill
- tech-leadSkill
- unsafe-rustSkill
- zerocopy-developmentSkill
- zerocopy-reviewSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
13 rules. 0 are common, 3 are distinctive, and 10 are very specific to this project.
0
Common
Most of the 8 edited versions we read keep these.
3
Distinctive
This author's own choices. Worth a look.
10
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 21
Do not read the Rust implementation body to invent the spec.
- Very specific: line 29
Only after writing the initial Specs.safety (caller preconditions) and Spec.specs / Specs.property (postconditions) from those channels, …
- Very specific: line 34
Discrepancy rule: If the Rust body contradicts >= 2 non-body channels, stop and raise an Intent Decision with the user (bug in Rust vs …
- Distinctive: line 36
Never silently relax a spec to fit suspicious code.
- Very specific: line 40
Write specs in pure Lean term logic importing prelude plus only Init.* modules admitted by cargo anneal's embedded foundation and library …
- Very specific: line 55
Zero unguarded partial traps: Never rely on saturating Nat.sub (a - b clamping to 0), totalized Nat / or % (x / 0 = 0), or unguarded …
- Distinctive: line 73
Check client sufficiency before freezing the spec:
- Very specific: line 75
Write a temporary scratch theorem (note: spec-preflight permits theorem and excludes example in Spec modules) proving the caller's needed …
- Very specific: line 86
Run these lightweight checks *before* writing Proof.*, and label results explicitly as assumptions-only [A4] sanity (never as a replacement …
- Very specific: line 90
Vacuity & consistency (
cargo anneal verify): Check a temporary scratch theorem witnessing concrete valid arguments satisfying … - Very specific: line 99
Positive polarity (forbidden input): Verify a caller violating one conjunct of Specs.safety cannot satisfy the precondition witness.
- Distinctive: line 104
Keep specification edits cleanly isolated from proof edits:
- Very specific: line 105
Put Spec.lean / Spec.* and request.json scope/precondition updates in their own reviewable commit ahead of Proof.lean / Proof.* changes.
“Common” is measured: kept by at least 6 in 10 of the 8 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Author and audit Anneal specifications
Good proofs of weak, vacuous, or echoed specs create false confidence. Author
and freeze Spec.lean / Spec.* (AuthoredRole::Specification, defining
Spec.specs of type Trusted.MirSemantics.Specs with Specs.safety and
Specs.property) before investing in Proof.lean / Proof.*.
specification modules define what holds; they must not import Anneal.*
proof libraries (rejected by audit).
Step 1: Body-last spec archaeology
Do not read the Rust implementation body to invent the spec. Gather >= 2
non-body channels first and synthesize an initial contract from them plus the
Rust signature:
- Docstrings,
/// # Safetycomments, type invariants, and module docs. - Unit tests, doc tests, Miri tests, and real callers / downstream clients.
- Upstream RFCs, reference C/hardware specs, or ABI documentation.
Only after writing the initial Specs.safety (caller preconditions) and
Spec.specs / Specs.property (postconditions) from those channels, inspect
the Rust body to check edge behavior (integer width, error variants,
truncation).
Discrepancy rule: If the Rust body contradicts >= 2 non-body channels,
stop and raise an Intent Decision with the user (bug in Rust vs stale docs).
Never silently relax a spec to fit suspicious code.
Step 2: Trap-free total-logic defaults
Write specs in pure Lean term logic importing prelude plus only Init.*
modules admitted by cargo anneal's embedded foundation and library lockfiles
(e.g., Init.Data.BitVec.Basic; recorded at
anneal/trusted/lean/foundation-lock.json and
anneal/trusted/audit/library-lock.json in a google/zerocopy source
checkout). Monolithic import Init (~473 MiB RSS vs ~152 MiB targeted) is
rejected fail-closed in pinned cargo anneal verify unless
--allow-unpinned-lean is passed.
- Total correctness default: Require termination (
¬ Diverges/Behavior, ensuringwpProg/execProgfuel covers execution to return or unwound outcome rather than hitting afuel = 0Falsecutoff) unless the item is explicitly documented to loop or abort on stated inputs. - Exact machine arithmetic: Model fixed-width and signed operations via
BitVec wandInt.tdiv(or explicit integer bounds), not partialNat. - Zero unguarded partial traps: Never rely on saturating
Nat.sub(a - bclamping to0), totalizedNat/or%(x / 0 = 0), or unguardedBitVec.toNat/Int.toNatcasts. Either prove domain preconditions exclude underflow/division-by-zero inSpecs.safety, or represent truncation explicitly. - Explicit non-vacuous
Specs.safety: State exact input bounds and domain invariants callers must establish (note: current scalar Profile v1 rejects pointers/references and enforces empty caller memory). WritingFalseinSpecs.safetylets proofs pass trivially while admitting zero callers.
Step 3: Anti-echo and client-sufficiency gate
Reject tautological echo specs that merely copy the Rust control flow or arithmetic AST branch-for-branch into Lean. State mathematical or behavioral properties that an independent reader can verify: bounds, conservation laws, bit-exact equivalence to a simpler scalar/reference model, order preservation, or round-trip invertibility.
Check client sufficiency before freezing the spec:
- Identify real caller expectations (tests, callers, or downstream invariants).
- Write a temporary scratch
theorem(note:spec-preflightpermitstheoremand excludesexampleinSpecmodules) proving the caller's needed post-state property using onlySpecs.safety+Specs.property(never peeking intoProof.*orCaptured.lean), then remove it before commit. - Record a clause coverage tally in your review note or commit context:
clauses: N, client-exercised: M. Justify any unexercised clause (M < N) or prune dead spec obligations.
Step 4: [A4] pre-proof sanity and dual-polar mutation checks
Run these lightweight checks before writing Proof.*, and label results
explicitly as assumptions-only [A4] sanity (never as a replacement for
proofs):
- Vacuity & consistency (
cargo anneal verify): Check a temporary scratchtheoremwitnessing concrete valid arguments satisfyingSpecs.safety, and a valid(input, output)pair satisfyingSpecs.property(Specadmitstheorem, notexample). ConfirmSpecs.safetycannot deriveFalse, then delete the temporarytheorem. - Dual-polar mutation check (temporary, revert before committing):
- Negative polarity (wrong body): Temporarily perturb a return value or
comparison in Rust (e.g.,
+ 1or<-><=) and verify eithercargo testfails orExpected.leanrejects the unguarded spec. - Positive polarity (forbidden input): Verify a caller violating one
conjunct of
Specs.safetycannot satisfy the precondition witness.
- Negative polarity (wrong body): Temporarily perturb a return value or
comparison in Rust (e.g.,
Step 5: Spec vs Proof separation and handoff
Keep specification edits cleanly isolated from proof edits:
- Put
Spec.lean/Spec.*andrequest.jsonscope/precondition updates in their own reviewable commit ahead ofProof.lean/Proof.*changes. - Classify every spec diff explicitly using a
Spec-Change:line in the commit or PR note:initial|tightening|weakening|refactor. - Any
weakeningrequires explicit user authorization and re-running Steps 3-4.
Once the spec passes Steps 1-4, hand off to proof-scaling to prove
Expected.claim, or to cargo-anneal for single-command verification.
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.

