airflow-adapter
Airflow adapter pattern for v2/v3 API compatibility. Use when working with adapters, version detection, or adding new API methods that need to work across…
Trace upstream data lineage. Use when the user asks where data comes from, what feeds a table, upstream dependencies, data sources, or needs to understand data origins.
$ npx -y skills add astronomer/agents --skill tracing-upstream-lineage --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/tracing-upstream-lineageContext preview
The summary Claude sees to decide when to auto-load this skill.
Trace upstream data lineage. Use when the user asks where data comes from, what feeds a table, upstream dependencies, data sources, or needs to understand data origins.
name: tracing-upstream-lineage description: Trace upstream data lineage. Use when the user asks where data comes from, what feeds a table, upstream dependencies, data sources, or needs to understand data origins.
Trace the origins of data - answer "Where does this data come from?"
Determine what we're tracing:
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
2. **Explore DAG source code**: Use `af dags source <dag_id>` to read the DAG definition
3. **Check DAG tasks**: Use `af tasks list <dag_id>` to see what operations the DAG performs
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.
Use DAG source code and task logs to trace lineage (no built-in cross-DAG UI).
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 source
**External Sources** (look for connection references):
**File Sources**:
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)For each upstream source:
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:
One-line answer: "This table is populated by DAG X from sources Y and Z"
[Salesforce] --> [raw.opportunities] --> [stg.opportunities] --> [fct.sales]
| |
DAG: ingest_sfdc DAG: transform_sales| Source | Type | Connection | Freshness | Owner | |--------|------|------------|-----------|-------| | raw.orders | Table | Internal | 2h ago | data-team | | Salesforce | API | salesforce_conn | Real-time | sales-ops |
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`
AI agent tooling for data engineering workflows. Includes an MCP server for Airflow, a CLI tool (af) for interacting with Airflow from your terminal, and skills that extend AI coding agents with specialized capabilities for working with Airflow and data
Airflow adapter pattern for v2/v3 API compatibility. Use when working with adapters, version detection, or adding new API methods that need to work across…
Builds human-in-the-loop (HITL) Airflow workflows - approval gates, form input, and human-driven branching. Use when a DAG needs a human in the loop - an…
Builds Airflow 3.1+ plugins that embed FastAPI apps, custom UI pages, React components, middleware, macros, and operator links directly into the Airflow UI.…
Persists task and asset state across retries and DAG runs using Airflow 3.3's AIP-103 key/value stores (`task_state_store`, `asset_state_store`) and the…
Queries, manages, and troubleshoots Apache Airflow using the `af` CLI. Use when working with anything related to Airflow - a DAG, a DAG run, a task log, an…
Queries the data warehouse with SQL and answers business questions about data. Use when answering anything that needs warehouse data - counts, metrics, trends,…