datalineage-summary
What it does
This skill explains how data flows into and out of a BigQuery table, view or storage asset. It is for people debugging data quality who need a simple picture of where the data came from.
When to use it
- ✓When you want to know where a table's data comes from and where it goes.
- ✓When you are debugging a data quality issue and need to trace the source of the data.
- ✓When you want a plain-language report of a data lineage graph.
Skill link
https://github.com/google/skills/blob/main/skills/cloud/datalineage-summary/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
Example of what to ask your AI
“Explain in simple terms where the revenue table in BigQuery gets its data and which reports use it.”
5 new skills a week. 1 minute to read.
How it works
It fetches the lineage graph in both directions from the asset, using the Data Lineage MCP server. Then it turns the graph into a left-to-right walkthrough in plain English.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
Data Lineage Summary
This skill guides the agent in investigating and summarizing the Data Lineage graph for a specific focal asset (Table-Level Lineage) or specific fields (Column-Level Lineage). It provides an intuitive left-to-right walkthrough of how data enters and leaves the asset, abstracting away complex node and link details into plain English.
Attribution
MUST READ: Before executing any gcloud, REST API, or MCP command, you
MUST read Usage Attribution. For commands executed
directly in the terminal (never in generated scripts, Terraform, or user code),
prefix gcloud with
CLOUDSDK_METRICS_REQUEST_ATTRIBUTION="agent-skills/1.0 (skill:datalineage-summary)"
and append agent-skills/1.0 (skill:datalineage-summary) to User-Agent headers.
Prerequisites
This skill relies on the data lineage (Knowledge Catalog) MCP Server on
Google Cloud for graph traversal. Ensure you can run search_lineage queries in
both upstream and downstream directions. For detailed connection configurations
and tool schemas, refer to MCP Usage.
Workflow Logic
1. Get Lineage
Fetch the lineage graph in both directions from the focal point (both upstream
and downstream) by making two separate calls to the MCP tool: one with
"direction": "UPSTREAM" and another with "direction": "DOWNSTREAM".
Location Strategy: You MUST use the
read_urltool to fetch the comprehensive list of locations dynamically from the provided Knowledge Catalog Locations link. To ensure cross-regional lineage is not missed, always verify the current list of Google Cloud regions using this link before populating thelocationsarray. You MUST populate thelocationsarray with all supported physical regions fetched from this link. You may optionally additionally determine the asset's specific active region (usingbq showorgcloud storage ls).Search Parameters: Use
maxDepth = 10,maxResults = 5000andmaxProcessPerLink = 10as robust defaults when callingsearch_lineage. For example, a DOWNSTREAM call should be formatted like this (expanding thelocationsarray as needed):{ "parent": "projects/project_id/locations/us", "locations": [ "us", "us-central1", "us-east1", "us-west1", "europe-west1", "asia-northeast1" ], "rootCriteria": { "entities": { "entities": [ { "fullyQualifiedName": "bigquery:project.dataset.table" } ] } }, "direction": "DOWNSTREAM", "limits": { "maxDepth": 10, "maxResults": 5000, "maxProcessPerLink": 10 } }Ensure you make a similar call with
"direction": "UPSTREAM"to fetch the upstream lineage.Column-Level Lineage (CLL): The
search_lineagetool can find all Column-Level Lineage (CLL) by configuring thefieldarray. If Table-Level Lineage (TLL) is requested, configure the call to get CLL links along with the TLL links by exploiting the"*"wildcard. For example:"rootCriteria": { "entities": { "entities": [ { "fullyQualifiedName": "bigquery:project.dataset.table", "field": [ "*" ] } ] } }If evaluating a specific column, replace
"*"with the specific column name (e.g.,"efficiency_score").
2. Summarize
Generate the summary using the prompt guidelines below.
- Persona: Act as an expert Data Lineage Analyst generating a concise, easy-to-understand left-to-right walkthrough of the data flow.
- Structure & Flow: Start immediately with the summary text, structured as
follows:
- Overall Flow Type: State the inferred workflow type and data domain (e.g., "This appears to be a Feature Engineering workflow...").
- Systems Overview: List the primary systems involved up front. If the request is for Column-Level Lineage, you MUST explicitly declare that the scope of the analysis is limited to the specified field up front.
- Upstream Lineage: Use the exact bold header
**Upstream Lineage:**. Narrative must detail how data arrives at the
FAQ
Does it edit lineage relationships?
No. It only reads and summarizes the lineage.
Does it cover individual columns?
Yes. It can summarize column-level lineage for specific fields.
Is it a general BigQuery query tool?
No. It is for lineage summaries, not for generic queries.
Details
Original description by the author
Summarizes data lineage graphs on Google Cloud to help users debug data quality issues and understand data provenance for BigQuery and Cloud Storage. Use when summarizing upstream and downstream data flows, and presenting complex lineage data as an intuitive Markdown report. Don't use for generic BigQuery queries, editing lineage relationships, or downstream deprecation. Don't use for downstream blast-radius impact analysis (use datalineage-bigquery-asset-impact-analysis skill instead).
repo: google/skills
Popularity
- GitHub stars
- 22k
- Ranking position
- #10251
- License
- Apache-2.0
- Updated
- 11/2/2026
Comments
- …
More skills from this repository
finding-google-skills
22kHelps your agent find the right Google guides for a setup task, such as hosting, databases, storage, sign-in or AI model serving.
gcloud
22kHelps your agent write and check Google Cloud gcloud commands, looking up exact syntax before it runs anything so it does not guess flags.
google-cloud-recipe-auth
22kGuides your agent through Google Cloud identity and access, including how people and services sign in and which permissions they get.
google-cloud-recipe-onboarding
22kWalks a new developer through first steps on Google Cloud, including choosing a project, linking billing, and deploying a first resource.
Similar skills
gitcrawl
394kLets your agent search a saved archive of GitHub issues and pull requests, group duplicates, and check their current status on GitHub.
slacrawl
394kLets your agent search and count messages in a local Slack archive, check how fresh that archive is, and refresh it when needed.
goplaces
394kHelps your agent search for places, get their details and reviews, and resolve place names using Google Places, with JSON output for scripts.