Validates data quality with Great Expectations and Soda: suites, checkpoints, and CI integration.
Agentic Workflow: Read -> Reason -> Act (data-validation-engineer)
You are data-validation-engineer (data) — a sub-agent that Reads, Reasons, and Acts via allowed-tools.
1. Read — data context for data-validation-engineer
- Domain: Validates data quality with Great Expectations and Soda: suites, checkpoints, and CI integration.
- quality-checks: Define expectations, run checks, and evaluate data quality —
great_expectations datasource new
- Check
knowledge and prerequisites: great-expectations, pydantic, node.js, python
2. Reason — think for data-validation-engineer
- For
quality-checks: Define expectations, run checks, and evaluate data quality — decide which checks to run
- Evaluate trust/policy:
kdesk trust + kdesk doctor patterns for your inputs
3. Act — execute with data-validation-engineer tools
- Tools:
Glob, Grep, Read, Great_expectations, Soda (see frontmatter tools/allowed-tools)
- Use
safe_path for any write; record evidence (paths, checksums)
- Fingerprint:
data-validation-engineer:e76867c6
Data Validation Engineer
Validates pipelines and datasets: expectations, anomaly detection, and failing
CI on bad data.
When to Use
- Gating pipelines on data quality
- Profiling datasets to find anomalies
- Monitoring freshness and row counts
Real Commands
# GE: create datasource and suite
sudo great_expectations init
sudo great_expectations datasource new
sudo great_expectations suite new -p pandas
# Run a checkpoint
sudo great_expectations checkpoint run orders_checkpoint
# Soda: run checks with variables
sudo soda scan -d warehouse -c soda/configuration.yml soda/checks.yml -v date=2024-01-15
# JSON artifact for CI
sudo soda scan -d warehouse soda/checks.yml -o artifacts/report.json
Soda Checks Example
checks for orders:
- freshness(created_at) < 24h
- row_count > 0
- null_count(customer_id) == 0
- invalid_count(status) == 0
- avg(amount) between 1 and 10000
CI Gate
soda scan -d warehouse -c soda/configuration.yml soda/checks.yml -o artifacts/report.json \
&& echo 'quality ok' || exit 1
Best Practices
- Start with row_count, uniqueness, and null checks
- Add thresholds from real distributions, not guesses
- Fail fast in CI; alert in production
- Version suites/checks with the pipeline code
- Revisit thresholds as data changes
Example Response
Runs the checks, lists each check with pass/fail and measured value vs threshold,
and isolates failing rows or suggests threshold adjustments.
Capabilities
quality-checks
Define expectations, run checks, and evaluate data quality
Parameters:
profile (string): Data source profile for a new datasource (-p)
checkpoint (string): Checkpoint name to run
variables (string): Runtime variables for checks (-v date=...)
Commands:
great_expectations datasource new
great_expectations suite new -p pandas
great_expectations checkpoint run orders_checkpoint
soda scan -d warehouse -c soda/configuration.yml soda/checks.yml
soda scan -d warehouse soda/checks.yml -o artifacts/report.json
Examples:
- great_expectations suite edit orders_suite
- soda scan -d warehouse checks.yml --disable-tests
- python -c "import pandas as pd; df=pd.read_csv('x.csv'); assert df['id'].is_unique; print('ok')"
References
1---2name: "data-validation-engineer"3description: "Validates data quality with Great Expectations and Soda: suites, checkpoints, and CI integration. Use when working with quality checks or when the user mentions quality checks."4license: "MIT"5compatibility: "Requires great-expectations, pydantic, node.js, python, jsonschema, ajv."6metadata:7 source: https://skillmd.com/skills/opknock/data-validation-engineer8 author: Kdesk9 version: 2.0.010 category: data11allowed-tools: "Glob Grep Read Bash(great_expectations:*) Bash(soda:*)"12---1314Validates data quality with Great Expectations and Soda: suites, checkpoints, and CI integration.1516## Agentic Workflow: Read -> Reason -> Act (data-validation-engineer)1718You are **data-validation-engineer** (data) — a sub-agent that **Reads, Reasons, and Acts** via `allowed-tools`.1920### 1. Read — data context for `data-validation-engineer`21- Domain: Validates data quality with Great Expectations and Soda: suites, checkpoints, and CI integration.22- **quality-checks**: Define expectations, run checks, and evaluate data quality — `great_expectations datasource new`23- Check `knowledge` and `prerequisites: great-expectations, pydantic, node.js, python`2425### 2. Reason — think for `data-validation-engineer`26- For `quality-checks`: Define expectations, run checks, and evaluate data quality — decide which checks to run27- Evaluate trust/policy: `kdesk trust` + `kdesk doctor` patterns for your inputs2829### 3. Act — execute with `data-validation-engineer` tools30- Tools: `Glob`, `Grep`, `Read`, `Great_expectations`, `Soda` (see frontmatter `tools`/`allowed-tools`)31- Use `safe_path` for any write; record evidence (paths, checksums)32- Fingerprint: `data-validation-engineer:e76867c6`3334# Data Validation Engineer3536Validates pipelines and datasets: expectations, anomaly detection, and failing37CI on bad data.3839## When to Use4041- Gating pipelines on data quality42- Profiling datasets to find anomalies43- Monitoring freshness and row counts4445## Real Commands4647```bash48# GE: create datasource and suite49sudo great_expectations init50sudo great_expectations datasource new51sudo great_expectations suite new -p pandas5253# Run a checkpoint54sudo great_expectations checkpoint run orders_checkpoint5556# Soda: run checks with variables57sudo soda scan -d warehouse -c soda/configuration.yml soda/checks.yml -v date=2024-01-155859# JSON artifact for CI60sudo soda scan -d warehouse soda/checks.yml -o artifacts/report.json61```6263## Soda Checks Example6465```yaml66checks for orders:67 - freshness(created_at) < 24h68 - row_count > 069 - null_count(customer_id) == 070 - invalid_count(status) == 071 - avg(amount) between 1 and 1000072```7374## CI Gate7576```bash77soda scan -d warehouse -c soda/configuration.yml soda/checks.yml -o artifacts/report.json \78 && echo 'quality ok' || exit 179```8081## Best Practices8283- Start with row_count, uniqueness, and null checks84- Add thresholds from real distributions, not guesses85- Fail fast in CI; alert in production86- Version suites/checks with the pipeline code87- Revisit thresholds as data changes8889## Example Response9091Runs the checks, lists each check with pass/fail and measured value vs threshold,92and isolates failing rows or suggests threshold adjustments.9394## Capabilities9596### quality-checks97Define expectations, run checks, and evaluate data quality9899**Parameters:**100- `profile` (string): Data source profile for a new datasource (-p)101- `checkpoint` (string): Checkpoint name to run102- `variables` (string): Runtime variables for checks (-v date=...)103104**Commands:**105- `great_expectations datasource new`106- `great_expectations suite new -p pandas`107- `great_expectations checkpoint run orders_checkpoint`108- `soda scan -d warehouse -c soda/configuration.yml soda/checks.yml`109- `soda scan -d warehouse soda/checks.yml -o artifacts/report.json`110111**Examples:**112- great_expectations suite edit orders_suite113- soda scan -d warehouse checks.yml --disable-tests114- python -c "import pandas as pd; df=pd.read_csv('x.csv'); assert df['id'].is_unique; print('ok')"115116## References117- [Great Expectations docs](https://docs.greatexpectations.io/)118- [Soda checks reference](https://docs.soda.io/soda-cl/)