data-lineage-observer
Observe data pipelines through OpenLineage events and lineage catalogs (Marquez, DataHub, OpenMetadata) to answer where a dataset comes from, what depends on…
от Navinspire-ia★ 37 звёзд на GitHub
Установить data-lineage-observer в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Data Lineage Observer
Overview
This skill reads data lineage as a graph of datasets and jobs built from OpenLineage events, then answers operational questions: downstream impact of a schema change, root cause of stale or wrong data, propagation of personal data, orphan datasets and freshness against expected cadences. It works from a Marquez, DataHub or OpenMetadata instance when one exists and from raw event exports otherwise. The default posture is read-only and evidence-based: pull events and graph responses, compute offline, cite run ids, job names and event times, and never change a pipeline, a producer configuration or a catalog entry without the user's explicit approval.
When it applies
- A table, column or file layout is about to change and the owner needs the list of jobs and datasets that read it, with their owners.
- A dashboard or report shows stale or wrong numbers and the source of the problem is somewhere upstream.
- Privacy asks where an email, a national id or a phone number column ends up (warehouse, exports, feature stores).
- The platform team wants to find datasets nobody reads, jobs with no declared datasets, or namespaces that split the graph.
- Freshness SLAs must be verified from run history rather than from the scheduler's green ticks.
- A new producer (Airflow, dbt, Spark, Flink, Dagster, Great Expectations) must be wired to the lineage backend.
Hand over to data-quality-agent for profiling and assertion design, to
sql-analyst for query-level debugging and to data-privacy-auditor for the
legal classification of the fields found.
Engines and sources
OpenLineage events
RunEventwitheventTypeinSTART,RUNNING,COMPLETE,ABORT,FAIL,OTHER;eventTime;producer;schemaURL;run.runIdandrun.facets(nominalTime,parent,errorMessage,processing_engine);job.namespace,job.name,job.facets(sql,sourceCode,sourceCodeLocation,jobType);inputs[]andoutputs[]withnamespace,name,facets(schema,dataSource,columnLineage,lifecycleStateChange,symlinks),inputFacets(dataQualityMetrics,dataQualityAssertions) andoutputFacets(outputStatistics).DatasetEventandJobEventcarry static metadata without a run.- Naming: namespace is the datasource URI (
postgres://host:5432,snowflake://account,s3://bucket,kafka://broker:9092), name isschema.tableor the object path. Field tables, state machine and minimal events:references/openlineage-schema.md.
Marquez
- Ingest:
POST /api/v1/lineage. - Read:
GET /api/v1/namespaces,GET /api/v1/namespaces/{ns}/datasets/{name},GET /api/v1/namespaces/{ns}/jobs/{job}/runs,GET /api/v1/lineage?nodeId=dataset:{ns}:{name}&depth=3,GET /api/v1/column-lineage?nodeId=datasetField:{ns}:{name}:{field},GET /api/v1/events/lineage?after=&before=&limit=for raw events,GET /api/v1/search?q=. - DataHub (
/openapi/openlineage/api/v1/lineage, GraphQLsearchAcrossLineage) and OpenMetadata (GET /api/v1/lineage/table/name/{fqn}?downstreamDepth=3) equivalents:references/marquez-api.md.
Producers
- Airflow:
apache-airflow-providers-openlineage,[openlineage] transportandnamespaceinairflow.cfg, job namedag_id.task_id. - dbt:
openlineage-dbt, run withdbt-ol run,OPENLINEAGE_URL,OPENLINEAGE_NAMESPACE. - Spark:
spark.extraListeners=io.openlineage.spark.agent.OpenLineageSparkListenerandspark.openlineage.transport.*,spark.openlineage.namespace. - Flink listener, Great Expectations
OpenLineageValidationAction, Dagster. - Config snippets and the post-enable checklist:
references/producers-setup.md.
Navin integration
- Scheduler pods, Spark clusters, warehouse hosts and object storage are
inspected through the
infratool at observe level (kubectl get configmap airflow-config -o yaml,aws s3 ls); prepare and execute levels only for changes the user approved. - Datadog, Grafana, Slack, GitHub, Notion: deliver findings and read
pipeline alerts through the
connectorstool. MARQUEZ_API_KEY,DATAHUB_TOKEN,OPENMETADATA_JWT, warehouse passwords come from environment variables; report their presence only.jq,curl,dot(Graphviz) are installed with thetoolbeltskill when missing.- Event exports can reach hundreds of megabytes: search them with the
greptool ("eventType": "FAIL", a dataset name, arunId) before reading.
Workflow
- Frame the question as a graph query: a start node (dataset
namespace/nameor job), a direction (downstream for impact, upstream for root cause), a depth and a time window. Write down the naming convention in use so the node can be addressed exactly. - Choose the source. Catalog present and reachable: query the lineage API
directly and export the raw events for the window with
GET /api/v1/events/lineage?after=<iso>&limit=5000(Marquez
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- examples/expected_cadence.json
- examples/openlineage_events.jsonl
- references/marquez-api.md
- references/openlineage-schema.md
- references/producers-setup.md
- scripts/freshness_check.py
- scripts/lineage_graph.py
FAQ
Что делает скилл data-lineage-observer?
Observe data pipelines through OpenLineage events and lineage catalogs (Marquez, DataHub, OpenMetadata) to answer where a dataset comes from, what depends on it and whether it is fresh. Reads RunEvents (START, COMPLETE, FAIL, facets schema, columnLineage, errorMessage, outputStatistics) emitted by Airflow, dbt, Spark, Flink or Dagster, walks the graph for impact and root cause, finds orphan datasets, traces personal data column by column and checks freshness SLAs from a JSONL export. Use when the user asks to "what breaks if I change this table", "why is this dashboard stale", "where does this column come from", "set up OpenLineage for Airflow", "which datasets are orphaned", or when a data quality incident needs a producer and a timeline. In French "analyse d'impact sur une table", "lineage des donnees", "pourquoi la donnee est perimee".
Как установить скилл data-lineage-observer?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл data-lineage-observer запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
skill-creator
AnthropicCreate new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
discernment-nudge
AnthropicAfter you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
data-consolidate
AnthropicJoins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
inspection-to-capa
AnthropicRuns the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…