agentleFS
vaquarkhanvaquarkhan/data-engineering-agent-skills/skills/great-expectations-deequ-and-cuallee/SKILL.md

great-expectations-deequ-and-cuallee

Skill49 starsChanged 6 months agoMITView on GitHub

Guides agents through data-quality frameworks such as Great Expectations, Deequ, and Cuallee. Use when implementing framework-based validation suites, reusable checks, or evidence-driven data-quality enforcement.

The file

We split this skill into the rules it gives an agent

11 rules. About 0 are common, 11 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈11

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use this skill when the team wants structured quality enforcement through a data-quality framework instead of ad hoc checks.

    line 10
  2. Distinctive:

    Do not use this when a few inline assertions are sufficient or when the team has no plan to reuse checks across datasets.

    line 21
  3. Distinctive:

    start from the dataset contract: grain, freshness, allowed nulls, value ranges

    line 26
  4. Distinctive:

    do not invent checks that are not tied to a documented expectation

    line 27
  5. Distinctive:

    consider execution environment: batch, streaming micro-batch, or CI tests

    line 35
  6. Distinctive:

    avoid framework lock-in by keeping contract definitions separate from framework syntax

    line 36
  7. Distinctive:

    keep suites small and focused — one suite per dataset or model output

    line 40
  8. Distinctive:

    document when and why each expectation was added

    line 43
  9. Distinctive:

    run validation after transformation, before publish or downstream consumption

    line 46
  10. Distinctive:

    all checks are critical severity with no triage or routing plan

    line 76
  11. Distinctive:

    no plan for handling noisy or flapping expectations

    line 81

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Great Expectations Deequ And Cuallee

Overview

Use this skill when the team wants structured quality enforcement through a data-quality framework instead of ad hoc checks. It helps agents align contracts with expectation suites, route failures by severity, and produce reviewable validation evidence.

When to Use

  • implementing Great Expectations expectation suites or checkpoints
  • adding Deequ analyzers and constraints to Spark pipelines
  • using Cuallee for lightweight PySpark or Pandas validation
  • standardizing reusable quality checks across datasets
  • integrating framework-based quality gates into CI/CD or publish workflows
  • producing validation evidence for audits or release gates

Do not use this when a few inline assertions are sufficient or when the team has no plan to reuse checks across datasets.

Workflow

  1. Ground the validation suite in a real contract.
    • start from the dataset contract: grain, freshness, allowed nulls, value ranges
    • do not invent checks that are not tied to a documented expectation
    • map each contract field to one or more framework checks
    • classify checks by severity: critical (blocks publish), warning (alert only), informational
  2. Choose the right framework for the runtime context.
    • Great Expectations: best for warehouse/lake validation with rich documentation output
    • Deequ: best for Spark pipelines with compile-time constraint definitions
    • Cuallee: best for lightweight validation in PySpark or Pandas without heavy setup
    • consider execution environment: batch, streaming micro-batch, or CI tests
    • avoid framework lock-in by keeping contract definitions separate from framework syntax
  3. Design expectation suites with maintenance in mind.
    • organize expectations by dataset and domain, not by framework capability
    • keep suites small and focused — one suite per dataset or model output
    • parameterize thresholds so they can be adjusted without code changes
    • version suites alongside the pipeline code that produces the data
    • document when and why each expectation was added
  4. Integrate validation into the pipeline lifecycle.
    • run validation after transformation, before publish or downstream consumption
    • critical failures must block publish and trigger alerts
    • warning failures must be logged and visible but do not block
    • produce structured evidence output (JSON, HTML, or YAML) for each run
    • store validation results for historical trending and audit
  5. Make evidence reviewable and actionable.
    • validation output should be human-readable, not just pass/fail
    • include row counts, failure percentages, and sample failing records
    • route evidence to dashboards, Slack, or incident workflows based on severity
    • link validation results to the specific pipeline run and data partition
  6. Plan for expectation evolution and false positives.
    • as data changes, expectations need updates — budget for this work
    • define a process for reviewing and tuning noisy expectations
    • distinguish true data issues from expectation drift
    • retire expectations that no longer match the active contract

Common Rationalizations

RationalizationReality
"We'll add expectations later when we have time."Quality frameworks deliver value only when integrated during pipeline development. Retrofitting is harder and often abandoned.
"Every column needs an expectation."Over-instrumented suites create noise. Expectations should be grounded in contract requirements, not framework capability.
"The framework handles severity for us."Severity classification requires human judgment about business impact. Frameworks provide mechanics, not decisions.
"Validation passed so the data is correct."Validation proves conformance to documented expectations. It cannot catch requirements that were never specified.

Red Flags

  • expectation suites with no connection to a dataset contract
  • all checks are critical severity with no triage or routing plan
  • validation output is discarded after each run — no historical evidence
  • suites are never updated when contracts change
  • framework is chosen based on hype instead of runtime compatibility
  • validation runs after publish, not before
  • no plan for handling noisy or flapping expectations
  • checks exist but nobody reviews failures or trends

Verification

  • Every expectation maps to a documented contract field or business rule
  • Severity levels are defined: critical blocks publish, warning alerts, informational logs
  • Framework choice matches the runtime context (Spark, warehouse, Pandas)
  • Validation runs before publish and produces structured, stored evidence
  • Evidence output includes row counts, failure rates, and sample records
  • There is a process for reviewing, tuning, and evolving expectations over time
  • Historical validation results are available for trend analysis and audit

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.