data-contract-enforcer
Installation
SKILL.md
Data Contract Enforcer
When to invoke
- "Run the data contract for fct_orders before merge."
- "Check the contracts of all models in CI."
- "Validate freshness on dim_users."
Inputs needed
- Contract YAML — describes expected schema, freshness, and constraints.
- Connection — Snowflake / BigQuery / DuckDB / Postgres (DuckDB used for examples).
Workflow
- Load the contract.
- Inspect the live table.
- Diff schema (columns + types + nullability).
- Run assertions: freshness, row-count bounds, uniqueness, allowed values.
- Report — Markdown + JSON; exit code 0 (pass) or 1 (violations).