data-contract-validator

Installation
SKILL.md

When to invoke

  • You receive JSON lines / JSON arrays from another system and need to ensure they meet a contract.
  • You want a machine-readable report of missing fields, type mismatches, and simple rule violations.

Inputs needed

  • --contract: path to a contract JSON file describing fields, requiredness, and simple constraints.
  • --data: path to a JSON file (either an array of objects or JSON Lines).

Contract format (example)

  • fields: object keyed by field name with:
    • type: one of string|number|integer|boolean|object|array|null
    • required: true/false
    • min_length / max_length (strings)
    • min / max (numbers)
    • regex (strings)
  • rules: list of cross-field rules:
    • name
    • if: list of conditions (field, op, value)
    • then: list of requirements (field, op, value)
Installs
7
First Seen
May 13, 2026
data-contract-validator — sisodiabhumca/agent-skills