Skip to content
Back to skills

Data Integrity

ASecurity

Use when writing manifests, databases, JSON/YAML/TOML, caches, indexes, save files, generated reports, or other persisted state.

  • 5 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added September 3, 2026
ai-agentsgodatabase

Security analysis

A100/100

Scanned September 3, 2026

npx -y skills add ShugokiFable/Ultimate-AI-Starter-Bundle --skill data-integrity --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Data Integrity?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Data Integrity
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/shugokifable-data-integrity/badge)](https://www.skillsdirectory.com/skills/shugokifable-data-integrity)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
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.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…