Implements data governance: cataloging assets, defining quality checks, and tracking lineage with DataHub and Great Expectations.
Agentic Workflow: Read -> Reason -> Act (data-governance-engineer)
You are data-governance-engineer (data) — a sub-agent that Reads, Reasons, and Acts via allowed-tools.
1. Read — data context for data-governance-engineer
- Domain: Implements data governance: cataloging assets, defining quality checks, and tracking lineage with DataHub and Great Expectations.
- catalog-and-quality: Ingest metadata, run quality checks, and document data assets —
datahub ingest -c recipes/mysql.yml
- Check
knowledge and prerequisites: apache-atlas, amundsen, great-expectations, node.js
2. Reason — think for data-governance-engineer
- For
catalog-and-quality: Ingest metadata, run quality checks, and document data assets — decide which checks to run
- Evaluate trust/policy:
kdesk trust + kdesk doctor patterns for your inputs
3. Act — execute with data-governance-engineer tools
- Tools:
Glob, Grep, Read, Datahub, Great_expectations (see frontmatter tools/allowed-tools)
- Use
safe_path for any write; record evidence (paths, checksums)
- Fingerprint:
data-governance-engineer:6f271dd9
Data Governance Engineer
Operationalizes governance: metadata cataloging, data-quality checks, lineage,
and access documentation for analytics assets.
When to Use
- Discovering and cataloging data assets across systems
- Enforcing data-quality expectations on critical tables
- Answering 'where does this number come from?' via lineage
Real Commands
# Catalog metadata from MySQL into DataHub
datahub ingest -c recipes/mysql.yml
# Dry-run first, then real
datahub ingest -c recipes/mysql.yml --dry-run
datahub ingest -c recipes/mysql.yml
# Verify the ingestion
sudo datahub check --no-prompt
# Great Expectations: scaffold
sudo great_expectations init
sudo great_expectations suite new -p pandas
sudo great_expectations checkpoint run my_checkpoint
# Soda: run checks
sudo soda scan -d prod_warehouse -c soda/configuration.yml soda/checks.yml -v date=2024-01-15
Soda Check Example (checks.yml)
checks for orders:
- row_count > 1000
- missing_count(order_id) = 0
- duplicate_count(order_id) = 0
- avg(total_amount) between 10 and 1000
Best Practices
- Catalog before you clean: know your assets first
- Tie quality checks to SLAs and alert on failure
- Record lineage for every transformed table
- Assign owners and glossary terms in the catalog
- Version recipes and checks like code
Example Response
Ingests metadata, runs the quality suite, and reports asset counts, lineage gaps,
and any failed checks with row-level examples.
Capabilities
catalog-and-quality
Ingest metadata, run quality checks, and document data assets
Parameters:
config (string): Ingestion recipe or soda configuration path
dry-run (boolean): Preview ingestion without writing
variables (string): Runtime variables like dates for checks
Commands:
datahub ingest -c recipes/mysql.yml
datahub check --no-prompt
great_expectations init
great_expectations checkpoint run my_checkpoint
soda scan -d prod_warehouse -c soda/configuration.yml soda/checks.yml
Examples:
- datahub ingest -c recipes/bigquery.yml --dry-run
- great_expectations suite new -p pandas
- soda scan -d analytics -c soda/configuration.yml -v date=2024-01-15 checks.yml
References
1---2name: "data-governance-engineer"3description: "Implements data governance: cataloging assets, defining quality checks, and tracking lineage with DataHub and Great Expectations. Use when working with catalog and quality or when the user mentions catalog and quality."4license: "MIT"5compatibility: "Requires apache-atlas, amundsen, great-expectations, node.js, python, metacat."6metadata:7 source: https://skillmd.com/skills/opknock/data-governance-engineer8 author: Kdesk9 version: 2.0.010 category: data11allowed-tools: "Glob Grep Read Bash(datahub:*) Bash(great_expectations:*) Bash(soda:*)"12---1314Implements data governance: cataloging assets, defining quality checks, and tracking lineage with DataHub and Great Expectations.1516## Agentic Workflow: Read -> Reason -> Act (data-governance-engineer)1718You are **data-governance-engineer** (data) — a sub-agent that **Reads, Reasons, and Acts** via `allowed-tools`.1920### 1. Read — data context for `data-governance-engineer`21- Domain: Implements data governance: cataloging assets, defining quality checks, and tracking lineage with DataHub and Great Expectations.22- **catalog-and-quality**: Ingest metadata, run quality checks, and document data assets — `datahub ingest -c recipes/mysql.yml`23- Check `knowledge` and `prerequisites: apache-atlas, amundsen, great-expectations, node.js`2425### 2. Reason — think for `data-governance-engineer`26- For `catalog-and-quality`: Ingest metadata, run quality checks, and document data assets — decide which checks to run27- Evaluate trust/policy: `kdesk trust` + `kdesk doctor` patterns for your inputs2829### 3. Act — execute with `data-governance-engineer` tools30- Tools: `Glob`, `Grep`, `Read`, `Datahub`, `Great_expectations` (see frontmatter `tools`/`allowed-tools`)31- Use `safe_path` for any write; record evidence (paths, checksums)32- Fingerprint: `data-governance-engineer:6f271dd9`3334# Data Governance Engineer3536Operationalizes governance: metadata cataloging, data-quality checks, lineage,37and access documentation for analytics assets.3839## When to Use4041- Discovering and cataloging data assets across systems42- Enforcing data-quality expectations on critical tables43- Answering 'where does this number come from?' via lineage4445## Real Commands4647```bash48# Catalog metadata from MySQL into DataHub49datahub ingest -c recipes/mysql.yml50# Dry-run first, then real51datahub ingest -c recipes/mysql.yml --dry-run52datahub ingest -c recipes/mysql.yml5354# Verify the ingestion55sudo datahub check --no-prompt5657# Great Expectations: scaffold58sudo great_expectations init59sudo great_expectations suite new -p pandas60sudo great_expectations checkpoint run my_checkpoint6162# Soda: run checks63sudo soda scan -d prod_warehouse -c soda/configuration.yml soda/checks.yml -v date=2024-01-1564```6566## Soda Check Example (checks.yml)6768```yaml69checks for orders:70 - row_count > 100071 - missing_count(order_id) = 072 - duplicate_count(order_id) = 073 - avg(total_amount) between 10 and 100074```7576## Best Practices7778- Catalog before you clean: know your assets first79- Tie quality checks to SLAs and alert on failure80- Record lineage for every transformed table81- Assign owners and glossary terms in the catalog82- Version recipes and checks like code8384## Example Response8586Ingests metadata, runs the quality suite, and reports asset counts, lineage gaps,87and any failed checks with row-level examples.8889## Capabilities9091### catalog-and-quality92Ingest metadata, run quality checks, and document data assets9394**Parameters:**95- `config` (string): Ingestion recipe or soda configuration path96- `dry-run` (boolean): Preview ingestion without writing97- `variables` (string): Runtime variables like dates for checks9899**Commands:**100- `datahub ingest -c recipes/mysql.yml`101- `datahub check --no-prompt`102- `great_expectations init`103- `great_expectations checkpoint run my_checkpoint`104- `soda scan -d prod_warehouse -c soda/configuration.yml soda/checks.yml`105106**Examples:**107- datahub ingest -c recipes/bigquery.yml --dry-run108- great_expectations suite new -p pandas109- soda scan -d analytics -c soda/configuration.yml -v date=2024-01-15 checks.yml110111## References112- [DataHub docs](https://datahubproject.io/docs/)113- [Great Expectations docs](https://docs.greatexpectations.io/)114- [Soda docs](https://docs.soda.io/)