
Tracing Upstream Lineage
When you're staring at a table wondering where the hell the data actually comes from, this walks you through the investigation. It shows you how to find the DAG that populates your table, trace back through the SQL to spot upstream sources, and recursively build the full chain from external systems like Salesforce or S3 all the way to your target. The column-level tracing is genuinely useful for tracking down specific field origins through transformations. If you're on Astro you get a visual lineage tab that does some of this automatically, but on OSS Airflow you're reading DAG source code and task definitions manually. The lineage report format with diagrams and data quality implications is solid for documenting what you find.
- skills.sh installs
- 1.1K
- GitHub stars
- 459
- last updated
- Aug 21, 2026
Install
$ npx -y skills add astronomer/agents --skill tracing-upstream-lineage --agent claude-codeInstalls into .claude/skills of the current project.
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
Sponsors
Details
- Repository
- github.com/astronomer/agents
- 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 Core990
- Airflow Hitl980
- Creating Openlineage Extractors960
- Cosmos Dbt Fusion925
- Warehouse Init841
- Deploying Airflow817
- Troubleshooting Astro Deployments655
- Airflow Plugins622
- Managing Astro Deployments595
- Blueprint584
- Init176
- Managing Astro Local Env1.6K
- Airflow1.5K
- Analyzing Data1.4K
- Authoring Dags1.3K
- Debugging Dags1.2K
- Testing Dags1.2K
- Migrating Airflow 2 To 31.1K
- Setting Up Astro Project1.1K