data-lineage
Use when the user asks about data lineage, OpenLineage, Marquez, column-level lineage, impact analysis of a schema change or data provenance. Produces lineage…
от j4flmao★ 47 звёзд на GitHub
Установить data-lineage в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Data Lineage
Purpose
Capture, store, query, and visualize end-to-end data lineage from source systems through transformations to dashboards, supporting impact analysis, root cause investigation, and data governance compliance.
Agent Protocol
Trigger
Exact user phrases: "data lineage", "OpenLineage", "Marquez", "DataHub lineage", "column-level lineage", "impact analysis", "data provenance", "lineage graph", "data dependency", "producer consumer lineage", "field-level lineage".
Input Context
Before activating, verify:
- Source systems (databases, event streams, file systems)
- Transformation tools (dbt, Airflow, Spark, custom SQL)
- Existing lineage infrastructure (OpenLineage, DataHub, Amundsen, manual)
- Compliance requirements (GDPR, SOX, BCBS 239)
- Consumer tools (Looker, Tableau, custom dashboards)
Output Artifact
Lineage configuration with OpenLineage integration, Marquez deployment, column-level lineage SQL parser config, and impact analysis report.
Response Format
# OpenLineage integration config
# Marquez deployment
# Lineage event emission
# SQL parser setup
# Lineage extraction queries
No preamble. No postamble. No explanations. No filler/hedging/transitions. Compress output — why use many token when few do trick.
Completion Criteria
- OpenLineage configured for Airflow/dbt/Spark integration
- Marquez or DataHub deployed for lineage storage and querying
- Column-level lineage extracted via SQL parser
- Impact analysis queryable for any dataset
- Lineage visualized in UI with upstream/downstream navigation
- Automated lineage collection integrated into CI/CD
- Backward lineage (producers) and forward lineage (consumers) documented
Max Response Length
300 lines of code and configuration.
Lineage Graph Model
Core Entities
Dataset (table, file, topic) → Transformation (dbt model, Spark job, SQL query) → Consumer (dashboard, report, ML model)
Each entity has a unique identifier (FQN), type, and metadata. Edges represent data flow: Dataset —[produces]→ Transformation —[consumes]→ Dataset.
OpenLineage Facets
columnLineage: input/output column mappings per transformationdataSource: connection details (JDBC URI, S3 bucket, Kafka topic)schema: field names, types, descriptionsownership: responsible team or individualdocumentation: markdown descriptions attached to datasets and runs
OpenLineage Integration
Airflow Integration
Install apache-airflow-providers-openlineage; supported operators (SQL, dbt Cloud, Spark, BigQuery, Snowflake, ...) emit lineage automatically. No DAG code changes are needed.
# airflow.cfg (or env AIRFLOW__OPENLINEAGE__TRANSPORT / AIRFLOW__OPENLINEAGE__NAMESPACE)
[openlineage]
namespace = prod_airflow
transport = {"type": "http", "url": "http://marquez:5000", "endpoint": "api/v1/lineage"}
For PythonOperator code, declare lineage with inlets=/outlets= or emit events with the OpenLineage client.
dbt Integration
Run dbt through the dbt-ol wrapper (package openlineage-dbt); it reads the run artifacts and emits lineage per model.
export OPENLINEAGE_URL=http://marquez:5000
export OPENLINEAGE_NAMESPACE=prod_warehouse
dbt-ol run --select orders
Spark Integration
# spark-defaults.conf (pin the openlineage-spark version matching your Spark/Scala build)
spark.jars.packages=io.openlineage:openlineage-spark_2.12:<version>
spark.extraListeners=io.openlineage.spark.agent.OpenLineageSparkListener
spark.openlineage.transport.type=http
spark.openlineage.transport.url=http://marquez:5000
spark.openlineage.namespace=prod_spark
spark.openlineage.parentJobName=daily_aggregations
Marquez Deployment
Docker Compose
version: '3.8'
services:
marquez:
image: marquezproject/marquez:latest
ports:
- "5000:5000"
- "5001:5001"
environment:
MARQUEZ_DB_HOST: postgres
MARQUEZ_DB_PORT: 5432
MARQUEZ_DB_USER: marquez
MARQUEZ_DB_PASSWORD: marquez
depends_on:
postgres:
condition: service_healthy
postgres:
image: postgres:15
environment:
POSTGRES_USER: marquez
POSTGRES_PASSWORD: marquez
POSTGRES_DB: marquez
healthcheck:
test: ["CMD", "pg_isready", "-U", "marquez"]
interval: 10s
timeout: 5s
retries: 5
API Queries
# List all datasets
curl http://localhost:5000/api/v1/namespaces/prod_warehouse/datasets
# Get lineage for a dataset
curl http://localhost:5000/api/v1/lineage?nodeId=postgresql://warehouse:5432/prod.public.orders
# List recent runs
curl http://localhost:5000/api/v1/namespaces/prod_warehouse/jobs
Column-Level Lineage
SQL Parsing with sqllineage
from sqllineage.runner import LineageRunner
sql = """
CREATE TABLE mart.daily_orders AS
SELECT
o.order_id,
o.customer_id,
c.customer_name,
o.order_date,
o.t
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- references/column-lineage.md
- references/lineage-automation.md
- references/lineage-governance.md
- references/lineage-graph-model.md
- references/lineage-impact-analysis.md
- references/lineage-tools.md
- references/lineage-visualization.md
- references/openlineage-integration.md
FAQ
Что делает скилл data-lineage?
Use when the user asks about data lineage, OpenLineage, Marquez, column-level lineage, impact analysis of a schema change or data provenance. Produces lineage collection setup (Airflow provider, dbt-ol, Spark listener), storage and impact queries. Not for catalog search and glossary (use data-data-catalog).
Как установить скилл data-lineage?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл data-lineage запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
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…