Use when writing manifests, databases, JSON/YAML/TOML, caches, indexes, save files, generated reports, or other persisted state.
Scanned 9/3/2026
Install to Claude Code
npx -y skills add ShugokiFable/Ultimate-AI-Starter-Bundle --skill data-integrity --agent claude-codeInstalls into .claude/skills of the current project.
Are you the author of Data Integrity?
Add the live security badge to your README — it updates automatically with every re-scan.
[](https://www.skillsdirectory.com/skills/shugokifable-data-integrity-45845fc2)More formats (shields.io, HTML) on the badges page.
---
name: data-integrity
description: Use when writing manifests, databases, JSON/YAML/TOML, caches, indexes, save files, generated reports, or other persisted state.
---
# Data Integrity
## Core rule
Persisted state needs validated **serialization**, safe writes, and post-write verification.
## Contract
Parse/validate input before mutation. Write to a temporary sibling and use an **atomic** replace when supported. Preserve the original until the replacement is known-good. Re-open and **validate** the result against schema/invariants after writing.
For multi-file state, define ordering or a transaction marker so interruption cannot leave a believable half-update. For manifests/checksums, generate from final bytes and verify every entry. For caches, make corruption recoverable by rebuilding rather than propagating bad data.
Do not equate “write() returned” with durable correctness. Consider disk-full, interrupted process, encoding errors, duplicate keys, partial JSON, stale cache, and concurrent writers.
Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.
No comments yet. Be the first to comment!