
Tracing Upstream Lineage
Step-by-step method for tracing where a table, column, or DAG gets its data from upstream.
- skills.sh installs
- 1.1K
- GitHub stars
- 463
- last updated
- Aug 21, 2026
What it does
- Covers three target types: tables, columns, and DAGs, each with its own tracing path
- Finds producing DAGs by name match, DAG source code (
af dags source), and task lists (af tasks list) - Identifies upstream SQL sources, external systems such as S3, Postgres, Salesforce, and REST APIs, and file drops
- Designed for Airflow users, with Astro's Lineage tab noted as a visual option and OSS Airflow relying on source code
Install
$ npx -y skills add astronomer/agents --skill tracing-upstream-lineage -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
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:
-
Search DAGs by name: Use
af dags listand look for DAG names matching the table nameload_customers->customerstableetl_daily_orders->orderstable
-
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
-
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
Details
- Repository
- github.com/astronomer/agents
- Categories
- Data Science & Analytics, Databases, Debugging
- First seen
- Apr 16, 2026
More from astronomer/agents
All 24- Profiling Tables1.1K
- Tracing Downstream Lineage1.1K
- Checking Freshness1K
- Annotating Task Lineage1K
- Cosmos Dbt Core1K
- Airflow Hitl992
- Creating Openlineage Extractors972
- Cosmos Dbt Fusion936
- Warehouse Init853
- Deploying Airflow835
- Troubleshooting Astro Deployments669
- Airflow Plugins635
- Managing Astro Deployments606
- Blueprint599
- Init176
- Managing Astro Local Env1.8K
- Airflow1.5K
- Analyzing Data1.5K
- Authoring Dags1.3K
- Debugging Dags1.3K
- Testing Dags1.2K
- Migrating Airflow 2 To 31.2K
- Setting Up Astro Project1.1K
Similar to Tracing Upstream Lineage
More Data Science & Analytics
tracing-downstream-lineageSkillastronomer/agents1.1K installsImpact analysis that maps what downstream tables, DAGs, and dashboards break before a schema or DAG change.
creating-openlineage-extractorsSkillastronomer/agents972 installsWrite custom OpenLineage extractors that capture lineage from Airflow operators lacking built-in support.
dataPluginanthropics/claude-plugins-official47.9K starsData engineering for Apache Airflow and Astronomer. Author DAGs with best practices, debug pipeline failures, trace data lineage, profile tables, migrate Airflo
creating-mermaid-dbt-dagSkilldbt-labs/dbt-agent-skills532 installsGenerates Mermaid lineage diagrams for dbt models, with fallbacks when MCP tools are unavailable.
datalineage-bigquery-asset-impact-analysisSkillgoogle/skills7.4K installsAnalyzes BigQuery blast radius by tracing downstream tables, dashboards, and processes via data lineage.