auto-serialization
Installation
SKILL.md
Serialization — What Claude Gets Wrong
You serialize data like it will only ever be read by the exact code that wrote it. In reality, serialized data crosses service boundaries, survives schema changes, gets cached, and is read by code versions that don't exist yet.
The Five Rules
- Financial/precise values → string or decimal type, never float
- Datetimes → always UTC, always with timezone suffix
- Enums → unknown variants must not crash deserialization
- New fields → must be optional or defaulted for old data
- Canonical form → same input produces same bytes