serde-code-review
Installation
SKILL.md
Serde Code Review
Review Workflow
- Check Cargo.toml — Note serde features (
derive,rc), format crates (serde_json,toml,bincode, etc.), and Rust edition (2024 has breaking changes affecting serde code) - Check derive usage — Verify
SerializeandDeserializeare derived appropriately - Check enum representations — Enum tagging affects wire format compatibility and readability
- Check field attributes — Renaming, defaults, skipping affect API contracts
- Check edition 2024 compatibility — Reserved
genkeyword, RPIT lifetime capture changes,never_type_fallback - Verify round-trip correctness — Serialized data must deserialize back to the same value
Gates (before reporting findings)
Run in order. Do not write a finding until the step that applies has passed.
-
Serde context on disk — Pass when: You have read the relevant
Cargo.toml(crate or workspace root) and can state Rustedition,serde/serde_derivefeatures if non-default (derive,rc), and which format crates apply (serde_json,toml,bincode, etc.) for the code under review. Then apply edition-specific checklist items (e.g.gen, RPIT/never_type_fallback) only when that file supports them. -
Per-finding evidence — Pass when: Each issue cites
[FILE:LINE]from the current tree for thestruct/enum,Serialize/Deserializeimpl, or attribute block in question (not from memory, docs-only, or another branch).