agentsclimarketplace

Data contract validator

Skill sisodiabhumca/agent-skills/skills/data-contract-validator

Vendor-neutral skill to validate JSON records against a lightweight data contract (schema + rules) and produce a validation report.From its SKILL.md

Install
npx -y skills add sisodiabhumca/agent-skills --skill data-contract-validator

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

SKILL.md

1.6 KB, 356 tokens by cl100k_base, as published. Nobody here has run it

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)

Workflow

  1. Load contract.
  2. Stream records from the data file.
  3. Validate each record:
    • Required fields present
    • Types match
    • Field constraints pass
    • Cross-field rules pass
  4. Emit a JSON report with counts and per-record errors.

Output format

JSON:

  • summary: totals + error counts
  • errors: list of {index, record_id, field, code, message}

Guardrails

  • Do not mutate the input data.
  • Keep error messages deterministic.
  • Validate types conservatively (e.g., do not coerce strings to numbers).

Reference code

validate_contract.py

What ships with it: 2 files

6.1 KB alongside SKILL.md, 1 of them executable

Keep looking

Skills are one crate of 326,835. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.