Skip to content
Back to skills

Data Quality

ASecurity

Profile data, detect schema evolution/drift, and implement enterprise-grade data quality checks (Soda/Great Expectations).

  • 225 stars
  • 0 votes
  • 1 copy
  • 10 views
  • Added November 25, 2026
datapythongosqldatabase

Security analysis

A100/100

Pro scans all 10 files and shows the line behind each finding

Scanned November 25, 2026

npx -y skills add NeverSight/skills_feed --skill data-quality --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Data Quality?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Data Quality
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/neversight-data-quality-learn-skills-dev/badge)](https://www.skillsdirectory.com/skills/neversight-data-quality-learn-skills-dev)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: data-quality
description: Profile data, detect schema evolution/drift, and implement enterprise-grade data quality checks (Soda/Great Expectations).
---

# Skill: Enterprise Lakehouse Data Quality & Schema Drift

## Description
Enables the agent to profile data, detect schema evolution/drift over time, and implement enterprise-grade data quality checks using frameworks like Soda Core or Great Expectations.

## Context
Lakehouse architectures enforce schema on write. However, schemas evolve over time. Data quality issues like sudden drops in row counts, increased nulls, or delayed data arrivals can silently break downstream analytics.

## Instructions

### 1. Schema Drift Detection
Compare the schema of the earliest available snapshot/commit with the latest snapshot.
- List **Added Columns**.
- List **Removed Columns**.
- List **Type Changes** (e.g., `INT` to `LONG`).

*For Delta Lake:* Use `.history()` to find schema changes or parse the transaction log.
*For Iceberg:* Use the catalog to compare schemas across `table.history()`.

### 2. Enterprise Data Quality Frameworks
If asked to build data quality checks, prefer industry-standard frameworks over raw SQL where applicable.

**Soda Core YAML Pattern:**
Provide the user with a `.yml` definition for Soda:
```yaml
checks for catalog.database.table_name:
  - row_count > 0
  - freshness(updated_at) < 1h
  - duplicate_count(transaction_id) = 0
  - missing_count(user_id) = 0
  - schema:
      fail: when required column missing [id, user_id, updated_at]
```

**Great Expectations Pattern:**
```python
import great_expectations as gx

context = gx.get_context()
validator = context.sources.pandas_default.read_parquet("s3://bucket/path")

validator.expect_column_values_to_not_be_null("user_id")
validator.expect_column_values_to_be_unique("transaction_id")
validator.expect_table_row_count_to_be_between(min_value=1000)
```

### 3. Anomaly Detection (Statistical Bounds)
If the user wants advanced quality checks, suggest statistical anomaly detection using moving averages or Z-scores in SQL.

**Example Statistical Check:**
```sql
WITH daily_counts AS (
  SELECT date_trunc('day', created_at) as dt, COUNT(*) as cnt
  FROM my_table GROUP BY 1
),
stats AS (
  SELECT AVG(cnt) as mean, STDDEV(cnt) as stddev FROM daily_counts
)
SELECT dt, cnt, (cnt - mean) / stddev as z_score
FROM daily_counts, stats
WHERE abs((cnt - mean) / stddev) > 3; -- Flags days > 3 standard deviations
```

## Output Format: Quality Profiling Report
```markdown
### 📉 Data Quality & Schema Profile: `[Table Name]`

#### 🔄 Schema Evolution
- **Initial Version:** 34 columns
- **Current Version:** 36 columns
- **Changes:**
  - `+` `user_segment` (STRING)
  - `~` `transaction_id` (INT -> BIGINT)

#### ✅ Quality Metrics (Soda Profile)
| Check | Threshold | Result | Status |
|-------|-----------|--------|--------|
| **Freshness** | `< 1h` | 2 mins ago | 🟢 Pass |
| **Duplicates** | `= 0` | 5 records | 🔴 Fail |
| **Null Rate** | `= 0%` | 0% | 🟢 Pass |
```

Files in this skill

  • SKILL.md3 KB
  • description_cn.txt112 B
  • description_de.txt157 B
  • description_en.txt123 B
  • description_es.txt159 B
  • description_fr.txt183 B
  • description_ja.txt184 B
  • description_ko.txt141 B
  • description_tw.txt117 B
  • stats.json68 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in data →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.