
Tracing Upstream Lineage
- 894 installs
- 412 repo stars
- Updated July 27, 2026
- astronomer/agents
tracing-upstream-lineage is a Claude Code skill that traces where data in a table, column, or Airflow DAG originated by searching producing DAGs and upstream dependencies for developers debugging data pipelines.
About
tracing-upstream-lineage is a data-lineage skill from astronomer/agents that helps developers answer "where does this data come from?" by inspecting Airflow DAGs. The workflow starts by identifying whether the target is a table, column, or entire DAG, then searches DAG definitions to find the producing pipeline and upstream data sources. It supports questions about upstream dependencies, data sources, and column-level origins in scheduled Airflow environments. Reach for tracing-upstream-lineage when a warehouse table's provenance is unknown, a column's source DAG must be identified, or an Airflow DAG's read dependencies need mapping before changing pipeline logic.
- 3-step lineage investigation process: identify target, find producing DAG, trace data sources
- Supports tracing for tables, columns, and DAGs
- Works with both Astro UI Lineage tab and OSS Airflow source inspection
- Uses commands like af dags list, af dags source, and af tasks list
- Delivers clear upstream dependency mapping before any data pipeline changes
Tracing Upstream Lineage by the numbers
- 894 all-time installs (skills.sh)
- +15 installs in the week ending Jul 28, 2026 (Skillselion tracking)
- Ranked #312 of 2,066 Data Science & ML skills by installs in the Skillselion catalog
- Security screen: MEDIUM risk (skills.sh audit)
- Data as of Jul 28, 2026 (Skillselion catalog sync)
npx skills add https://github.com/astronomer/agents --skill tracing-upstream-lineageAdd your badge
Show developers this skill is listed on Skillselion. Paste this into your README.
| Installs | 894 |
|---|---|
| repo stars | ★ 412 |
| Security audit | 3 / 3 scanners passed |
| Last updated | July 27, 2026 |
| Repository | astronomer/agents ↗ |
Where does data in this Airflow table come from?
Quickly trace where data in a table or column originated from by inspecting Airflow DAGs.
Who is it for?
Data engineers and analytics developers debugging Airflow pipelines who need to identify which DAG populates a table or column.
Skip if: Skip tracing-upstream-lineage when no Airflow DAGs exist or the question is about downstream consumers rather than upstream sources.
When should I use this skill?
The user asks where data comes from, what feeds a table, about upstream dependencies, or needs to understand data origins in Airflow.
What you get
Upstream DAG mappings, producing-pipeline identifications, and column-to-source lineage notes for target tables or columns.
- Producing-DAG identification for tables or columns
- Upstream dependency maps
Files
Upstream Lineage: Sources
Trace the origins of data - answer "Where does this data come from?"
Lineage Investigation
Step 1: Identify the Target Type
Determine what we're tracing:
- Table: Trace what populates this table
- Column: Trace where this specific column comes from
- DAG: Trace what data sources this DAG reads from
Step 2: Find the Producing DAG
Tables are typically populated by Airflow DAGs. Find the connection:
1. Search DAGs by name: Use af dags list and look for DAG names matching the table name
load_customers->customerstableetl_daily_orders->orderstable
2. Explore DAG source code: Use af dags source <dag_id> to read the DAG definition
- Look for INSERT, MERGE, CREATE TABLE statements
- Find the target table in the code
3. Check DAG tasks: Use af tasks list <dag_id> to see what operations the DAG performs
On Astro
If you're running on Astro, the Lineage tab in the Astro UI provides visual lineage exploration across DAGs and datasets. Use it to quickly trace upstream dependencies without manually searching DAG source code.
On OSS Airflow
Use DAG source code and task logs to trace lineage (no built-in cross-DAG UI).
Step 3: Trace Data Sources
From the DAG code, identify source tables and systems:
SQL Sources (look for FROM clauses):
# In DAG code:
SELECT * FROM source_schema.source_table # <- This is an upstream sourceExternal Sources (look for connection references):
S3Operator-> S3 bucket sourcePostgresOperator-> Postgres database sourceSalesforceOperator-> Salesforce API sourceHttpOperator-> REST API source
File Sources:
- CSV/Parquet files in object storage
- SFTP drops
- Local file paths
Step 4: Build the Lineage Chain
Recursively trace each source:
TARGET: analytics.orders_daily
^
+-- DAG: etl_daily_orders
^
+-- SOURCE: raw.orders (table)
| ^
| +-- DAG: ingest_orders
| ^
| +-- SOURCE: Salesforce API (external)
|
+-- SOURCE: dim.customers (table)
^
+-- DAG: load_customers
^
+-- SOURCE: PostgreSQL (external DB)Step 5: Check Source Health
For each upstream source:
- Tables: Check freshness with the checking-freshness skill
- DAGs: Check recent run status with
af dags stats - External systems: Note connection info from DAG code
Lineage for Columns
When tracing a specific column:
1. Find the column in the target table schema 2. Search DAG source code for references to that column name 3. Trace through transformations:
- Direct mappings:
source.col AS target_col - Transformations:
COALESCE(a.col, b.col) AS target_col - Aggregations:
SUM(detail.amount) AS total_amount
Output: Lineage Report
Summary
One-line answer: "This table is populated by DAG X from sources Y and Z"
Lineage Diagram
[Salesforce] --> [raw.opportunities] --> [stg.opportunities] --> [fct.sales]
| |
DAG: ingest_sfdc DAG: transform_salesSource Details
| Source | Type | Connection | Freshness | Owner |
|---|---|---|---|---|
| raw.orders | Table | Internal | 2h ago | data-team |
| Salesforce | API | salesforce_conn | Real-time | sales-ops |
Transformation Chain
Describe how data flows and transforms: 1. Raw data lands in raw.orders via Salesforce API sync 2. DAG transform_orders cleans and dedupes into stg.orders 3. DAG build_order_facts joins with dimensions into fct.orders
Data Quality Implications
- Single points of failure?
- Stale upstream sources?
- Complex transformation chains that could break?
Related Skills
- Check source freshness: checking-freshness skill
- Debug source DAG: debugging-dags skill
- Trace downstream impacts: tracing-downstream-lineage skill
- Add manual lineage annotations: annotating-task-lineage skill
- Build custom lineage extractors: creating-openlineage-extractors skill
Related skills
How it compares
Pick tracing-upstream-lineage over generic data-catalog tools when the source of truth is Airflow DAG code rather than an external metadata store.
FAQ
What can tracing-upstream-lineage trace?
tracing-upstream-lineage traces three target types: entire tables, individual columns, and Airflow DAGs. For tables and columns, the skill finds the producing DAG; for DAGs, it maps upstream data sources the pipeline reads from.
How does tracing-upstream-lineage find data origins?
tracing-upstream-lineage searches Airflow DAG definitions to locate the pipeline that populates a target table or column. It then follows upstream read dependencies to identify external data sources feeding the producing DAG.
When should developers use tracing-upstream-lineage?
Developers should use tracing-upstream-lineage when they ask where data comes from, what feeds a table, or need upstream dependency context before modifying Airflow pipeline logic. The skill is search-shaped around Airflow DAG inspection.
Is Tracing Upstream Lineage safe to install?
skills.sh reports 3 of 3 security scanners passed. Review the Security Audits panel on this page before installing in production.