data-quality-and-contract-testing

data-quality-and-contract-testing is a skill for Claude Code, Codex from vaquarkhan/data-engineering-agent-skills. It costs 36 tokens per session (486 once invoked), scanned A, original, MIT.

A development guide for defining what data should look like and checking that pipelines produce it correctly. A data contract records expected fields, types, null rules, freshness, and other promises about the output.

In plain words
What is it for?
Use it when adding sources, changing schemas or transformations, creating published tables, or fixing bad metrics. It covers checks such as uniqueness, non-null values, relationships, accepted values, row counts, and reconciliations.
Why use it?
It catches broken schemas, missing or duplicate records, incorrect totals, and other data bugs before they reach users. It encourages writing a failing check first when fixing a known defect.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it when adding sources, changing schemas or transformations, creating published tables, or fixing bad metrics. It covers checks such as uniqueness, non-null values, relationships, accepted values, row counts, and reconciliations.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/vaquarkhan/data-engineering-agent-skills/data-quality-and-contract-testing
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add vaquarkhan/data-engineering-agent-skills --skill data-quality-and-contract-testing
Clone the repo
git clone --depth 1 https://github.com/vaquarkhan/data-engineering-agent-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for data-quality-and-contract-testing

README.md
[![agentmods](https://agentmods.dev/badge/skills/vaquarkhan/data-engineering-agent-skills/data-quality-and-contract-testing/github.svg)](https://agentmods.dev/skills/vaquarkhan/data-engineering-agent-skills/data-quality-and-contract-testing)
Your own site
<a href="https://agentmods.dev/skills/vaquarkhan/data-engineering-agent-skills/data-quality-and-contract-testing"><img src="https://agentmods.dev/badge/skills/vaquarkhan/data-engineering-agent-skills/data-quality-and-contract-testing/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for data-quality-and-contract-testing

Your own site · 80×15
<a href="https://agentmods.dev/skills/vaquarkhan/data-engineering-agent-skills/data-quality-and-contract-testing"><img src="https://agentmods.dev/badge/skills/vaquarkhan/data-engineering-agent-skills/data-quality-and-contract-testing.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 36 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 486 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00036 $0.00486
Opus 5 $0.00018 $0.00243
Sonnet 5 $0.00007 $0.00097
Haiku 4.5 $0.00004 $0.00049

Measured 9d ago against content hash e79e1045bf6a, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

data-quality-and-contract-testing scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

The scan reads SKILL.md. This mod also ships 4 executable files (anti-patterns/no_quality_gate_before_publish.py, checks/contract_completeness.py, checks/freshness.py, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/data-quality-and-contract-testing/SKILL.md · 75 lines

How it starts

The opening of the file, as written. The whole thing — 75 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Data Quality And Contract Testing

Overview

Data work is not complete when code runs. It is complete when source assumptions, output contracts, and quality checks prove the behavior is correct.

When to Use

  • new source ingestion
  • schema changes
  • transformation logic updates
  • new or changed published tables
  • bug fixes involving bad data or broken metrics

Do not use this only as a final cleanup step. It should guide implementation from the start.

Workflow

  1. Define the contract before implementation. Capture:

    • required fields
    • key constraints
    • expected types
    • allowed null behavior
    • freshness expectations
    • reconciliation rules
  2. Write the validation plan first. Common validations:

    • uniqueness
    • non-null thresholds
    • referential integrity
    • accepted values
    • row count deltas
    • source-to-target totals
  3. Reproduce data bugs with a failing check. If an incident or defect exists, write the failing validation or test before changing the pipeline.

  4. Implement the smallest change that satisfies the contract.

  5. Run the relevant validations and capture evidence. Evidence may include:

    • test output
    • query results
    • sample reconciliation output
    • dry-run logs

Common Rationalizations

Rationalization Reality
"The warehouse query looks right." Visual inspection does not scale and misses edge cases.
"We will add checks after the model stabilizes." Unchecked pipelines create low-trust data and harder incident response.
"A successful job means the data is valid." Jobs succeed while still producing incorrect or incomplete data.

Red Flags

  • no contract exists for a published dataset
  • an incident fix ships without a failing reproduction check
  • only happy-path sample data is validated
  • freshness or completeness expectations are absent

Verification

  • Contracts are written before or alongside implementation
  • Relevant checks exist for correctness, completeness, and freshness
  • Defects are reproduced with a failing validation before the fix
  • Evidence from validation is captured and reviewable

Read the full file on GitHub · 75 lines

Files

What ships with it

4 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 75 lines · 36 tokens per session scan A e79e1045bf6a

Subscribe to this mod's changes

data-quality-and-contract-testing is a skill published in the GitHub repository vaquarkhan/data-engineering-agent-skills (43 stars, last pushed 2mo ago), licensed MIT. It adds 36 tokens to every session and 486 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

data-quality-frameworks

Implement data quality validation with Great Expectations, dbt tests, and data contracts. Use when building data quality pipelines, implementing validation rules, or establishing data contracts.

wshobson/agents · 37 tokens

dbt-transformation-patterns

Master dbt (data build tool) for analytics engineering with model organization, testing, documentation, and incremental strategies. Use when building data transformations, creating data models, or implementing analytics engineering best practices.

wshobson/agents · 47 tokens

AI/ML Model Testing

Testing machine learning models including accuracy validation, bias detection, drift monitoring, A/B testing, and model regression testing.

PramodDutta/qaskills · 29 tokens

AI System Quality Engineer

Test LLM, RAG, MCP, and agentic systems end to end. Build golden datasets, run deterministic checks and LLM judges, score retrieval, probe prompt injection, verify tool use, and gate CI on thresholds. Orchestrates DeepEval, Ragas, promptfoo, and Langfuse.

PramodDutta/qaskills · 68 tokens

kafka-shadowtraffic-java

Generate a TestContainers Java test class that spins up ShadowTraffic in-process to populate a Kafka topic with synthetic data during tests. Invokes the kafka-shadowtraffic skill to build the ShadowTraffic config, then adapts it for a containerized test network and scaffolds a JUnit 5 test class with Kafka, optional…

lensesio/agentic-engineering-for-apache-kafka · 165 tokens

kafka-shadowtraffic

Generate a ShadowTraffic configuration to populate a Kafka topic with realistic synthetic data. Discovers the target topic, its key and value schemas, and the correct serializers from the live cluster via any attached Kafka MCP server, then writes a ready-to-run shadowtraffic-config.json and Docker command. Use when…

lensesio/agentic-engineering-for-apache-kafka · 134 tokens