Data Quality Frameworks skill for Claude

Implement data quality validation with Great Expectations, dbt tests, and data contracts.

When Claude uses it

Use when building data quality pipelines, implementing validation rules, or establishing data contracts.

Data Quality Frameworks SKILL.md

The full skill file from wshobson/agents (MIT).

Data Quality Frameworks

Production patterns for implementing data quality with Great Expectations, dbt tests, and data contracts to ensure reliable data pipelines.

When to Use This Skill

  • Implementing data quality checks in pipelines
  • Setting up Great Expectations validation
  • Building comprehensive dbt test suites
  • Establishing data contracts between teams
  • Monitoring data quality metrics
  • Automating data validation in CI/CD

Core Concepts

1. Data Quality Dimensions

DimensionDescriptionExample Check
CompletenessNo missing valuesexpect_column_values_to_not_be_null
UniquenessNo duplicatesexpect_column_values_to_be_unique
ValidityValues in expected rangeexpect_column_values_to_be_in_set
AccuracyData matches realityCross-reference validation
ConsistencyNo contradictionsexpect_column_pair_values_A_to_be_greater_than_B
TimelinessData is recentexpect_column_max_to_be_between

2. Testing Pyramid for Data

          /\
         /  \     Integration Tests (cross-table)
        /────\
       /      \   Unit Tests (single column)
      /────────\
     /          \ Schema Tests (structure)
    /────────────\

Quick Start

Great Expectations Setup

# Install
pip install great_expectations

# Initialize project
great_expectations init

# Create datasource
great_expectations datasource new
# great_expectations/checkpoints/daily_validation.yml
import great_expectations as gx

# Create context
context = gx.get_context()

# Create expectation suite
suite = context.add_expectation_suite("orders_suite")

# Add expectations
suite.add_expectation(
    gx.expectations.ExpectColumnValuesToNotBeNull(column="order_id")
)
suite.add_expectation(
    gx.expectations.ExpectColumnValuesToBeUnique(column="order_id")
)

# Validate
results = context.run_checkpoint(checkpoint_name="daily_orders")

Detailed patterns and worked examples

Detailed pattern documentation lives in references/details.md. Read that file when the navigation tier above is insufficient.

Summary: {total_passed}/{total_tables} tables passed")

    report.append("")

    for table, result in results.items():
        status = "✅" if result.passed else "❌"
        report.append(f"### {status} {table}")
        report.append(f"- Expectations: {result.total_expectations}")
        report.append(f"- Failed: {result.failed_expectations}")

        if not result.passed:
            report.append("- Failed checks:")
            for detail in result.details:
                if not detail["success"]:
                    report.append(f"  - {detail['expectation']}: {detail['observed_value']}")
        report.append("")

    return "\n".join(report)

Usage

context = gx.get_context() pipeline = DataQualityPipeline(context)

tables_to_validate = { "orders": "orders_suite", "customers": "customers_suite", "products": "products_suite", }

results = pipeline.run_all(tables_to_validate) report = pipeline.generate_report(results)

Fail pipeline if any table failed

if not all(r.passed for r in results.values()): print(report) raise ValueError("Data quality checks failed!")


## Best Practices

### Do's

- **Test early** - Validate source data before transformations
- **Test incrementally** - Add tests as you find issues
- **Document expectations** - Clear descriptions for each test
- **Alert on failures** - Integrate with monitoring
- **Version contracts** - Track schema changes

### Don'ts

- **Don't test everything** - Focus on critical columns
- **Don't ignore warnings** - They often precede failures
- **Don't skip freshness** - Stale data is bad data
- **Don't hardcode thresholds** - Use dynamic baselines
- **Don't test in isolation** - Test relationships too

How to install Data Quality Frameworks

Claude Code

Copy the skill into your personal skills folder (or into .claude/skills/ inside a project):

npx degit wshobson/agents/plugins/data-engineering/skills/data-quality-frameworks#main ~/.claude/skills/data-quality-frameworks

Codex

npx degit wshobson/agents/plugins/data-engineering/skills/data-quality-frameworks#main ~/.codex/skills/data-quality-frameworks

Claude.ai and Claude Desktop

Download the skill folder from GitHub, zip it, and upload it under Settings → Capabilities → Skills.

Frequently asked questions

+What does the Data Quality Frameworks skill do?

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.

+How do I install Data Quality Frameworks in Claude Code?

Copy the skill folder into ~/.claude/skills/data-quality-frameworks, for example with "npx degit wshobson/agents/plugins/data-engineering/skills/data-quality-frameworks#main ~/.claude/skills/data-quality-frameworks". Claude Code loads it automatically and uses it when a task matches.

+Does Data Quality Frameworks work with ChatGPT or Codex?

Yes. Data Quality Frameworks uses the open SKILL.md format. In Codex, put the folder in ~/.codex/skills/data-quality-frameworks. In Claude.ai, zip the folder and upload it under Settings → Capabilities → Skills.

+Is Data Quality Frameworks free?

Data Quality Frameworks is published on GitHub by wshobson under the MIT license, which allows free use.

Related software development skills

  1. Code Review

    Review the changes since a fixed point (commit, branch, tag, or merge-base) along two axes: Standards (does the code follow this repo's…

    mattpocock/skills★ 327k
  2. Using Agent Skills

    Discovers and invokes agent skills. Use when starting a session, or when you need to decide which skill or workflow applies to the piece of…

    addyosmani/agent-skills★ 119k
  3. Build

    Fully automate a coding task with make-plan, do, and babysit.

    thedotmack/claude-mem★ 118k
  4. Debugging Strategies

    Master systematic debugging techniques, profiling tools, and root cause analysis to efficiently track down bugs across any codebase or…

    wshobson/agents★ 43k
  5. Dependency Upgrade

    Manage major dependency version upgrades with compatibility analysis, staged rollout, and comprehensive testing.

    wshobson/agents★ 43k
  6. Dotnet Backend Patterns

    Master C#/.NET backend development patterns for building robust APIs, MCP servers, and enterprise applications.

    wshobson/agents★ 43k
  7. Fastapi Templates

    Create production-ready FastAPI projects with async patterns, dependency injection, and comprehensive error handling.

    wshobson/agents★ 43k
  8. Git Advanced Workflows

    Master advanced Git workflows including rebasing, cherry-picking, bisect, worktrees, and reflog to maintain clean history and recover from…

    wshobson/agents★ 43k
  9. Go Concurrency Patterns

    Master Go concurrency with goroutines, channels, sync primitives, and context.

    wshobson/agents★ 43k

See all software development skills →

More skills from wshobson

  1. Data Storytelling

    Transform data into compelling narratives using visualization, context, and persuasive structure.

    wshobson/agents★ 43k
  2. Database Migration

    Execute database migrations across ORMs and platforms with zero-downtime strategies, data transformation, and rollback procedures.

    wshobson/agents★ 43k
  3. Dataset Curation

    Prepare, format, and validate datasets for supervised fine-tuning and preference training.

    wshobson/agents★ 43k

All skills by wshobson →

Give your whole team an AI agent with skills

Cody runs managed AI agents your team can message in Slack, Teams, WhatsApp and the web, with 50+ business integrations, scheduled tasks and memory. No terminal required.