annotating-task-lineage
Skill by astronomer
Adds manual lineage metadata to Airflow tasks using inlets and outlets. It is for data engineers working with operators that have no built-in OpenLineage extraction.
Install annotating-task-lineage
Built from the published package, never by AI.
git clone --depth 1 https://github.com/astronomer/agents /tmp/agents && mkdir -p ~/.claude/skills && cp -r /tmp/agents/skills/annotating-task-lineage ~/.claude/skills/annotating-task-lineageRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
Step-by-step: install annotating-task-lineage in Claude Code
git clone --depth 1 https://github.com/astronomer/agents /tmp/agents && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/agents/skills/annotating-task-lineage ~/.gemini/antigravity-cli/skills/annotating-task-lineageAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install annotating-task-lineage in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill guides an AI assistant through annotating Airflow tasks with data lineage. Tasks declare the datasets they read with inlets and the datasets they write with outlets. Datasets can be OpenLineage Dataset objects, Airflow Assets on Airflow 3+, or Airflow Datasets on Airflow 2.4 and later. The skill also covers naming helpers for Snowflake, BigQuery, S3 and PostgreSQL, so dataset names stay consistent.
The skill explains when this approach fits and when to use OpenLineage methods or a custom extractor instead. Inlets and outlets are the lowest-priority fallback, so extractors and OpenLineage methods take precedence. On Astro, the annotations appear in the enhanced Lineage tab across DAGs and deployments. It is aimed at Airflow developers who want simple table-level lineage without writing custom extraction code.
Written from the project's SKILL.md and checked against it.
What it can do
- Set inlets and outletsDeclares which datasets an Airflow task reads from and writes to.
- Use OpenLineage datasetsCreates Dataset objects for database tables and files with a namespace and name.
- Use Airflow Assets or DatasetsSupports Airflow Asset objects on Airflow 3+ and Dataset objects on Airflow 2.4 and later.
- Dataset naming helpersBuilds consistent dataset namespaces and names for Snowflake, BigQuery, S3 and PostgreSQL.
- Custom operator lineageShows how to add lineage through OpenLineage methods or by setting inlets and outlets in execute.
- Precedence guidanceExplains how OpenLineage ranks extractors, methods, hook lineage and inlets/outlets.
What you need
- Apache Airflow 2.4 or later (Airflow 3+ for Asset objects)
- OpenLineage Python client (openlineage.client)
- OpenLineage provider developer guide for supported operators
Try asking
- Add inlets and outlets to my BashOperator that reads raw.orders and writes staging.orders_clean
- Create OpenLineage Dataset objects for my Snowflake tables using the naming helper
- Set lineage on my custom operator dynamically inside its execute method
Good to know
- Table-level lineage only, with no column-level lineage
- Overridden by custom extractors or OpenLineage methods when they return datasets
- Static at DAG parse time unless set dynamically in execute
- Deferrable operators lose lineage set in execute
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: skills/annotating-task-lineage/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md11 KB
Alternatives to annotating-task-lineage
All alternatives →Guides an assistant through the Kaggle CLI, covering competitions, datasets, notebooks, models, benchmarks, authentication and quota. It is for people who use the kaggle command-line tool.
Generates Python code that uses BigQuery DataFrames (BigFrames) for data processing, analysis and machine learning on BigQuery. It is meant for Python data tasks, and the source says to use bigquery-basics for SQL-first workflows.
Discovers connected data sources and proposes loading options when a workspace lacks the data a question needs. Suited to users who want to connect database, warehouse or cloud sources from the chat.
Guides developers through enabling the Data Manager API, setting up Application Default Credentials, and installing its client libraries. Built for developers who are getting started with the API and need local environment and access setup.
Guides authoring and validating Apache Airflow DAGs for Managed Service for Apache Airflow (MSAA), formerly Cloud Composer. Built for developers who create or extend Airflow DAGs in these environments.
Extracts structured JSON data from over 40 websites, including Amazon, LinkedIn, Instagram, TikTok, Facebook and YouTube. Built on Bright Data's Web Data APIs, it returns product details, profiles, reviews, posts and comments from a URL.
Compare with kaggle-cli, bigquery-bigframes or data-loading
annotating-task-lineage: common questions
Does this skill support column-level lineage?
No. The source says inlets and outlets give table-level lineage only, and recommends OpenLineage methods or a custom extractor for column-level lineage.
Which Airflow versions can use inlets and outlets?
The source lists Airflow Datasets for Airflow 2.4 and later, and Airflow Assets for Airflow 3 and later.
What happens if an operator already has an OpenLineage extractor?
The extractor takes precedence, and inlets and outlets act only as the lowest-priority fallback.
How do I install annotating-task-lineage?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is annotating-task-lineage free?
The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.
Is annotating-task-lineage safe to use?
It scores 80 of 100. Grades: maintenance A, licence A, quality B. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to annotating-task-lineage?
Similar skills: kaggle-cli, bigquery-bigframes, data-loading, data-manager-api-setup.
