Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
astronomer avatar

Tracing Downstream Lineage

  • 874 installs
  • 412 repo stars
  • Updated July 27, 2026
  • astronomer/agents

tracing-downstream-lineage is a Claude Code skill that traces downstream data dependencies and impact blast radius for developers changing tables, views, or Airflow DAGs in production pipelines.

About

tracing-downstream-lineage answers what breaks if a table, view, or DAG changes by tracing downstream data lineage and impact before edits land in production. The workflow identifies direct consumers by searching DAG source code for SELECT references, using Astronomer CLI commands such as af dags list and af dags source to enumerate and inspect DAG definitions. For tables, the skill guides discovery of downstream DAGs, views, and reports that read the target asset. Developers reach for tracing-downstream-lineage when assessing change risk, planning schema migrations, or validating that a pipeline modification will not break unknown dependents.

  • Answers the question "What breaks if I change this?" with concrete downstream consumers
  • 7-step impact analysis workflow covering tables, views, DAGs, and BI tools
  • Native Astro Lineage tab integration for visual dependency graphs
  • Combines static code search with runtime metadata queries
  • Hard-gate: always run before modifying any shared table or DAG

Tracing Downstream Lineage by the numbers

  • 874 all-time installs (skills.sh)
  • +15 installs in the week ending Jul 28, 2026 (Skillselion tracking)
  • Ranked #323 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-downstream-lineage

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs874
repo stars412
Security audit3 / 3 scanners passed
Last updatedJuly 27, 2026
Repositoryastronomer/agents

What breaks if I change this data table?

Quickly understand what breaks if they change a table, view, or DAG before touching production data pipelines.

Who is it for?

Data engineers using Astronomer Airflow who must assess downstream impact before altering tables, views, or DAG definitions.

Skip if: Greenfield pipeline authoring without existing downstream consumers or teams not using Airflow DAG source inspection.

When should I use this skill?

A developer asks what depends on a table or DAG, what breaks on change, or needs downstream lineage before modifying production data assets.

What you get

Downstream dependency lists, blast-radius reports, and change-risk assessments for tables, views, and DAGs.

  • dependency lists
  • blast-radius reports
  • change-risk assessments

Files

SKILL.mdMarkdownGitHub ↗

Downstream Lineage: Impacts

Answer the critical question: "What breaks if I change this?"

Use this BEFORE making changes to understand the blast radius.

Impact Analysis

Step 1: Identify Direct Consumers

Find everything that reads from this target:

For Tables:

1. Search DAG source code: Look for DAGs that SELECT from this table

  • Use af dags list to get all DAGs
  • Use af dags source <dag_id> to search for table references
  • Look for: FROM target_table, JOIN target_table

2. Check for dependent views:

   -- Snowflake
   SELECT * FROM information_schema.view_table_usage
   WHERE table_name = '<target_table>'

   -- Or check SHOW VIEWS and search definitions

3. Look for BI tool connections:

  • Dashboards often query tables directly
  • Check for common BI patterns in table naming (rpt_, dashboard_)

On Astro

If you're running on Astro, the Lineage tab in the Astro UI provides visual dependency graphs across DAGs and datasets, making downstream impact analysis faster. It shows which DAGs consume a given dataset and their current status, reducing the need for manual source code searches.

For DAGs:

1. Check what the DAG produces: Use af dags source <dag_id> to find output tables 2. Then trace those tables' consumers (recursive)

Step 2: Build Dependency Tree

Map the full downstream impact:

SOURCE: fct.orders
    |
    +-- TABLE: agg.daily_sales --> Dashboard: Executive KPIs
    |       |
    |       +-- TABLE: rpt.monthly_summary --> Email: Monthly Report
    |
    +-- TABLE: ml.order_features --> Model: Demand Forecasting
    |
    +-- DIRECT: Looker Dashboard "Sales Overview"

Step 3: Categorize by Criticality

Critical (breaks production):

  • Production dashboards
  • Customer-facing applications
  • Automated reports to executives
  • ML models in production
  • Regulatory/compliance reports

High (causes significant issues):

  • Internal operational dashboards
  • Analyst workflows
  • Data science experiments
  • Downstream ETL jobs

Medium (inconvenient):

  • Ad-hoc analysis tables
  • Development/staging copies
  • Historical archives

Low (minimal impact):

  • Deprecated tables
  • Unused datasets
  • Test data

Step 4: Assess Change Risk

For the proposed change, evaluate:

Schema Changes (adding/removing/renaming columns):

  • Which downstream queries will break?
  • Are there SELECT * patterns that will pick up new columns?
  • Which transformations reference the changing columns?

Data Changes (values, volumes, timing):

  • Will downstream aggregations still be valid?
  • Are there NULL handling assumptions that will break?
  • Will timing changes affect SLAs?

Deletion/Deprecation:

  • Full dependency tree must be migrated first
  • Communication needed for all stakeholders

Step 5: Find Stakeholders

Identify who owns downstream assets:

1. DAG owners: Check owners field in DAG definitions 2. Dashboard owners: Usually in BI tool metadata 3. Team ownership: Look for team naming patterns or documentation

Output: Impact Report

Summary

"Changing fct.orders will impact X tables, Y DAGs, and Z dashboards"

Impact Diagram

                    +--> [agg.daily_sales] --> [Executive Dashboard]
                    |
[fct.orders] -------+--> [rpt.order_details] --> [Ops Team Email]
                    |
                    +--> [ml.features] --> [Demand Model]

Detailed Impacts

DownstreamTypeCriticalityOwnerNotes
agg.daily_salesTableCriticaldata-engUpdated hourly
Executive DashboardDashboardCriticalanalyticsCEO views daily
ml.order_featuresTableHighml-teamRetraining weekly

Risk Assessment

Change TypeRisk LevelMitigation
Add columnLowNo action needed
Rename columnHighUpdate 3 DAGs, 2 dashboards
Delete columnCriticalFull migration plan required
Change data typeMediumTest downstream aggregations

Recommended Actions

Before making changes: 1. [ ] Notify owners: @data-eng, @analytics, @ml-team 2. [ ] Update downstream DAG: transform_daily_sales 3. [ ] Test dashboard: Executive KPIs 4. [ ] Schedule change during low-impact window

Related Skills

  • Trace where data comes from: tracing-upstream-lineage skill
  • Check downstream freshness: checking-freshness skill
  • Debug any broken DAGs: debugging-dags skill
  • Add manual lineage annotations: annotating-task-lineage skill
  • Build custom lineage extractors: creating-openlineage-extractors skill

Related skills

How it compares

Use tracing-downstream-lineage for pre-change Airflow impact analysis instead of generic SQL explain plans that miss DAG orchestration dependencies.

FAQ

Which CLI commands does tracing-downstream-lineage use?

tracing-downstream-lineage uses Astronomer CLI commands af dags list to enumerate DAGs and af dags source to inspect DAG code. The skill searches DAG sources for SELECT references to the target table or view.

When should tracing-downstream-lineage run?

tracing-downstream-lineage should run before modifying tables, views, or DAGs in production pipelines. The skill maps direct consumers and downstream dependencies to estimate blast radius and change risk.

Is Tracing Downstream 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.

Data Science & MLpipelinesanalytics

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.