json-schema-drift-detector
Installation
SKILL.md
When to invoke
- You maintain APIs/events/config schemas and need to understand what changed between two JSON Schema documents.
- You want a machine-readable summary of breaking vs non-breaking changes.
Inputs needed
--old: Path to the previous JSON Schema (draft-07 style supported).--new: Path to the new JSON Schema.- Optional:
--out: Path to write a JSON report.
Workflow
- Load both schemas.
- Recursively index fields (JSON Pointer-like paths) for
type,required,enum, and objectproperties. - Compute added/removed/modified paths.
- Classify changes:
- Breaking: removed field, type change, required added, enum narrowed.
- Non-breaking: added optional field, required removed, enum widened, description/title-only updates.
- Emit a summary and detailed diff entries.