/mlops-skills:data-catalog-and-lineage-governance-datahub-amundsenfrom mlops-skills
Guides deploying and operating enterprise data catalog and governance tooling (DataHub or Amundsen) for discovering, tagging, classifying, and owning datasets, features, and models, including safe deprecation workflows with downstream consumer checks.
Ships in mlops-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
data-and-model-lineage covers building the lineage graph — which node derives from which — for root-cause and impact analysis. This skill covers the broader enterprise governance layer on top of that graph: a searchable catalog (DataHub or Amundsen) where every dataset, feature table, and model has an owner, a description, classification tags (PII, confidential, public), a glossary term, and a documented deprecation status, so that "who owns this," "is this safe to use," and "is anything still depending on this" are answerable by search rather than by asking around. The catalog and the lineage graph are complementary — DataHub in particular models lineage as part of its metadata graph — but this skill's focus is the governance surface: ownership, discoverability, classification, and the deprecation/deletion workflow that has to check the lineage graph before removing anything, rather than the graph-construction mechanics themselves.
datahub CLI's
docker quickstart for evaluation or the official Helm charts for
production. Amundsen: separate metadata, search, and frontend
services, typically backed by Neo4j or Atlas for the metadata graph and
Elasticsearch for search.acryl-datahub Python CLI/SDK (for DataHub) or Amundsen's
databuilder library, for writing and running ingestion recipes.Choose and deploy the catalog platform. DataHub's push-based
ingestion model (metadata change events over Kafka) suits environments
wanting near-real-time catalog updates and rich ML-specific entity types
(MLModel, MLModelGroup, MLFeatureTable) out of the box; Amundsen's
simpler pull-based batch ingestion (via databuilder extractors) suits
teams wanting a lighter-weight search-first catalog without the Kafka
dependency. Deploy DataHub for evaluation with:
pip install acryl-datahub
datahub docker quickstart
For production, use the DataHub Helm chart with externally-managed Kafka/Elasticsearch/MySQL rather than the quickstart's bundled containers.
Write ingestion recipes per source system, defining what metadata gets pulled and how often — a DataHub recipe for an MLflow model registry and a dbt project:
# mlflow_ingestion.yaml
source:
type: mlflow
config:
tracking_uri: "https://mlflow.internal"
sink:
type: datahub-rest
config:
server: "https://datahub-gms.internal:8080"
# dbt_ingestion.yaml
source:
type: dbt
config:
manifest_path: "./target/manifest.json"
catalog_path: "./target/catalog.json"
target_platform: snowflake
sink:
type: datahub-rest
config:
server: "https://datahub-gms.internal:8080"
datahub ingest -c mlflow_ingestion.yaml
datahub ingest -c dbt_ingestion.yaml
Model ML-specific entities explicitly, not just generic tables —
DataHub's ML entity model (MLFeatureTable, MLModel, MLModelGroup,
MLFeature) lets a registered model's catalog entry link directly to
the feature tables and training run it depends on, tying together with
the lineage graph from
data-and-model-lineage:
from datahub.emitter.rest_emitter import DatahubRestEmitter
from datahub.metadata.schema_classes import MLModelPropertiesClass, MLModelLineageInfoClass
emitter = DatahubRestEmitter("https://datahub-gms.internal:8080")
model_urn = "urn:li:mlModel:(urn:li:dataPlatform:mlflow,fraud-scorer,PROD)"
props = MLModelPropertiesClass(
description="Fraud transaction scoring model, gradient-boosted trees",
version="v14",
trainingMetrics=[{"name": "auc", "value": "0.94"}],
)
# emit as a metadata change proposal against model_urn
Set ownership, tags, and glossary terms so every cataloged entity answers "who owns this" and "what is this" without asking around:
datahub put --urn "urn:li:dataset:(urn:li:dataPlatform:snowflake,fraud.transactions_clean,PROD)" \
--aspect ownership \
--json '{"owners": [{"owner": "urn:li:corpGroup:fraud-team", "type": "DATAOWNER"}]}'
datahub put --urn "urn:li:dataset:(urn:li:dataPlatform:snowflake,fraud.transactions_clean,PROD)" \
--aspect globalTags \
--json '{"tags": [{"tag": "urn:li:tag:PII"}, {"tag": "urn:li:tag:Tier1"}]}'
Enforce a minimum-metadata policy (every dataset must have an owner and at least one classification tag) as part of the ingestion pipeline or a scheduled audit, rather than treating tagging as optional best-effort documentation.
Classify sensitive data explicitly and treat the tag as
policy-relevant, not just descriptive. A PII tag in the catalog is
metadata only — it does nothing on its own to restrict access. Pair it
with an actual access-control or policy-engine check (DataHub's native
policy framework, or an external OPA/Gatekeeper-based check on
pipelines/services that read tagged datasets) so classification
actually gates behavior:
{
"policyType": "METADATA",
"resources": {"filter": {"criteria": [{"field": "TAG", "value": "urn:li:tag:PII"}]}},
"privileges": ["VIEW_DATASET_DATA"],
"actors": {"groups": ["urn:li:corpGroup:fraud-team", "urn:li:corpGroup:data-governance"]}
}
Schedule ingestion to run continuously, not as a one-time import — run recipes via Airflow, a cron job, or DataHub's own ingestion scheduler UI so the catalog reflects the current state of source systems, not a snapshot from initial setup:
# Airflow DAG snippet scheduling the recipes from step 2
ingest_mlflow = BashOperator(task_id="ingest_mlflow", bash_command="datahub ingest -c mlflow_ingestion.yaml")
ingest_dbt = BashOperator(task_id="ingest_dbt", bash_command="datahub ingest -c dbt_ingestion.yaml")
Run impact analysis before deprecating or deleting anything,
using the catalog's lineage/dependency view to enumerate every
downstream consumer, and mark the entity Deprecated with a
grace-period date before actual deletion:
# Query DataHub for downstream consumers of a dataset before deletion
datahub get --urn "urn:li:dataset:(urn:li:dataPlatform:s3,ml-artifacts/fraud-scorer/v11,PROD)" --aspect upstreamLineage
# Mark deprecated with a grace period rather than deleting immediately
from datahub.metadata.schema_classes import DeprecationClass
deprecation = DeprecationClass(
deprecated=True,
note="Superseded by v14; scheduled for deletion 2026-09-01 pending consumer migration.",
decommissionTime=1767225600000, # epoch ms
)
v11 when
v14 is current) may still be the active rollback target for a deployed
model, referenced by a scheduled batch job, or held for a
compliance-mandated retention period. Query the catalog's
lineage/dependency view for downstream consumers first, every time,
before deletion — this is the single highest-consequence mistake this
skill exists to prevent.Symptom: An "old" model artifact or dataset version is deleted to
free up storage, and a production model deployment or scheduled batch
job that was still silently pointing at it starts failing (or, worse,
serving from a fallback/cached copy with no one aware the real source
is gone).
Warning: This is exactly the dangerous action this skill's impact
analysis step exists to prevent — a deployed model's rollback target
(see
production-model-rollback-procedure)
or an infrequently-run batch job can both depend on an artifact that
looks unused by recent-activity metrics alone.
Fix: Always run the catalog's downstream-lineage query (step 7)
before deleting anything, mark entities Deprecated with a grace period
first, and require an explicit sign-off from every listed owner of a
downstream consumer before the actual deletion proceeds.
Symptom: The catalog shows a dataset as actively used with a recent timestamp, but the ingestion job that populates it has actually been failing silently for weeks, and the catalog is serving stale metadata that nobody has corrected. Fix: Monitor ingestion job success/failure explicitly (alert on a scheduled recipe run failing, not just on the catalog UI looking populated), and surface a "metadata last refreshed" timestamp prominently in the catalog entity view so staleness is visible to users, not just to whoever owns the ingestion pipeline.
Symptom: The same logical dataset appears as two or three separate
entities in the catalog (e.g. ingested once via a warehouse connector and
again via a dbt connector with a slightly different name), fragmenting
ownership, tags, and lineage across duplicates.
Fix: Standardize the URN/identifier scheme across all ingestion
sources before onboarding new connectors — for DataHub this typically
means aligning platform and name fields consistently — and run a
deduplication pass on existing entities rather than allowing duplicates
to accumulate silently.
Symptom: A dataset is tagged PII in the catalog, but a downstream
ML pipeline reads it unrestricted anyway, because the tag was applied for
documentation purposes with no actual access-control policy attached.
Fix: Treat this as a real governance gap, not a catalog bug — wire
the classification tag into an enforced policy (DataHub's native policy
engine, or an external check on pipelines reading tagged sources) so
PII actually restricts read access to authorized groups instead of
only appearing in search results.
Symptom: After a large-scale onboarding of source systems, the
catalog fills with hundreds of entities that have no assigned owner,
and nobody can say who to ask about a specific dataset months later.
Fix: Enforce ownership assignment as a required step of the
ingestion or onboarding process (a CI check against the ingestion recipe
or a scheduled audit query for entities with an empty ownership
aspect), rather than treating owner assignment as an optional follow-up
that competes with other priorities and never happens.
Scenario: A platform team onboards their MLflow model registry and a Snowflake warehouse (via dbt) into DataHub, tags sensitive tables, and needs to safely retire an old model artifact version.
Ingestion (scheduled daily via Airflow, from step 2/6):
# snowflake_dbt_ingestion.yaml
source:
type: dbt
config:
manifest_path: "s3://dbt-artifacts/latest/manifest.json"
catalog_path: "s3://dbt-artifacts/latest/catalog.json"
target_platform: snowflake
sink: {type: datahub-rest, config: {server: "https://datahub-gms.internal:8080"}}
Tagging the raw transactions table as PII, owned by the fraud team:
datahub put --urn "urn:li:dataset:(urn:li:dataPlatform:snowflake,fraud.raw_transactions,PROD)" \
--aspect globalTags --json '{"tags": [{"tag": "urn:li:tag:PII"}]}'
datahub put --urn "urn:li:dataset:(urn:li:dataPlatform:snowflake,fraud.raw_transactions,PROD)" \
--aspect ownership --json '{"owners": [{"owner": "urn:li:corpGroup:fraud-team", "type": "DATAOWNER"}]}'
Retiring fraud-scorer model version v11 (superseded by v14):
# 1. Impact analysis first — who/what still depends on v11?
datahub get --urn "urn:li:mlModel:(urn:li:dataPlatform:mlflow,fraud-scorer-v11,PROD)" --aspect upstreamLineage
# Result: no active serving deployment references v11, but the
# production-model-rollback-procedure runbook lists v11 as the last
# known-good rollback target for v12's incident two months ago.
Given that finding, the artifact is marked deprecated with a grace period rather than deleted immediately:
deprecation = DeprecationClass(
deprecated=True,
note="Superseded by v14. Retained as rollback reference per incident INC-2026-0512; delete after 2026-10-01 once v14 has one full quarter of stable production history.",
decommissionTime=1759276800000,
)
This keeps the artifact available for the rollback procedure's schema-compatibility check for one more quarter instead of freeing storage immediately at the cost of removing a legitimate incident-response option.
MLFeatureTable/MLFeature entities alongside the datasets and models covered here.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
data-catalog, data-governance, datahub, amundsen, data-lineage, pii-classification
npx claudepluginhub selvarajmurugesan90/ops-engineering-skills --plugin mlops-skills22 skills in this plugin
/complete-mlops-platform-deployment-on-aws-from-scratchSequences a complete, end-to-end MLOps platform deployment on AWS from a bare AWS Organization to a production-ready platform serving a first retrained model — AWS landing zone, the SageMaker-vs-EKS+Kubeflow platform decision (EKS+Kubeflow is the worked path here), GPU node pools via the NVIDIA GPU Operator, MLflow experiment tracking on S3, a Kubeflow Pipelines retraining DAG, model registry/packaging with gated promotion, KServe canary/shadow serving, and drift monitoring. This is an integration/orchestration skill that sequences several existing tool-specific skills in the correct order and flags the handoff points between them — it does not restate their internals. Use when a user asks to "stand up an MLOps platform on AWS from scratch," "build the full ML training-to-serving pipeline on EKS/SageMaker," "give me the end-to-end sequence from AWS account to a retrained, monitored production model," or "decide between SageMaker and EKS+Kubeflow for our ML platform."
/complete-mlops-platform-deployment-on-azure-from-scratchSequences a complete, end-to-end MLOps platform deployment on Azure from a bare tenant to a production-ready platform serving a first retrained model — Azure landing zone, the Azure-ML-vs-AKS+Kubeflow platform decision (Azure ML is the worked path), GPU compute clusters/quota, MLflow-compatible experiment tracking, an Azure ML pipeline retraining DAG, Model Registry with gated promotion, managed online endpoints with traffic-split canary rollout, and data-drift monitoring. An integration/ orchestration skill that sequences existing tool-specific skills in the right order and flags handoff points — it does not restate their internals. Use when a user asks to "stand up an MLOps platform on Azure from scratch," "build the full ML training-to-serving pipeline on Azure ML/AKS," "give me the end-to-end sequence from Azure tenant to a retrained, monitored production model," or "decide between Azure ML and AKS+Kubeflow for our ML platform."
/complete-mlops-platform-deployment-on-gcp-from-scratchSequences a complete, end-to-end MLOps platform deployment on GCP from a bare Google Cloud Organization to a production-ready platform serving a first retrained model — GCP landing zone, the Vertex-AI-vs-GKE+Kubeflow platform decision (Vertex AI is the worked path), GPU quota and accelerator-backed custom training, Vertex AI Experiments tracking, a Vertex AI Pipelines retraining DAG, Model Registry with gated promotion, endpoints with traffic-split canary rollout, and Vertex AI Model Monitoring for drift. An integration/orchestration skill that sequences existing tool-specific skills in the right order and flags handoff points — it does not restate their internals. Use when a user asks to "stand up an MLOps platform on GCP from scratch," "build the full ML training-to-serving pipeline on Vertex AI/GKE," "give me the end-to-end sequence from GCP org to a retrained, monitored production model," or "decide between Vertex AI and GKE+Kubeflow for our ML platform."
/complete-mlops-platform-deployment-self-hosted-k8s-from-scratchSequences a complete, end-to-end, self-hosted and cloud-agnostic MLOps platform on any Kubernetes cluster — no managed ML service from any vendor — from a bare cluster to production: GPU node pools via the NVIDIA GPU Operator, a Kubeflow-vs-Ray orchestration choice, self-hosted MLflow-style tracking and registry on self-operated object storage and Postgres, on-cluster serving, and self-hosted drift monitoring. An integration/orchestration skill sequencing existing tool-specific skills in the right order, explicit about the added operational burden of self-hosting every layer versus a managed-cloud MLOps platform. Use when a user asks to "build a self-hosted MLOps platform on Kubernetes," "stand up MLflow and Kubeflow ourselves with no managed cloud ML service," "design a vendor-agnostic ML platform we can run on any cluster," or "give me the full sequence for a fully self-managed ML platform from bare cluster to production."
/data-and-model-lineageGuides tracking end-to-end lineage from raw data sources through feature computation, training runs, and model versions, to enable root-cause tracing, impact analysis, and compliance/audit answers. Use when the user asks to "trace where a feature/model came from", set up data/model lineage tracking, do impact analysis before changing an upstream table, answer an audit/compliance question about a model's training data, or debug a bad prediction back to its source.
/experiment-trackingGuides setting up experiment tracking for ML training runs — logging params, metrics, artifacts, and code/data versions so results are comparable and reproducible. Use when the user asks to "track experiments", set up MLflow/Weights & Biases/Neptune/DVC, compare training runs, reproduce a past experiment, organize hyperparameter sweeps, or figure out why a training run can't be reproduced.
Other plugins' skills for the same job