
Data Lineage Summary
FreeSummarize data lineage graphs for better data quality insights.
Free · Opens the source repo
What Data Lineage Summary does
The Data Lineage Summary skill is designed for users working with Google Cloud's Data Lineage service, specifically to assist in debugging data quality issues and understanding data provenance in BigQuery and Google Cloud Storage environments. This skill provides a structured approach to summarizing complex lineage graphs, offering both table-level and column-level lineage insights. By abstracting intricate node and link details into straightforward narratives, it allows users to focus on the essential data flows without getting lost in technical complexities.
To utilize this skill, users must ensure they have access to the Google Cloud Data Lineage MCP Server and can execute search_lineage queries effectively. The skill operates by fetching lineage data in both upstream and downstream directions, which is crucial for a comprehensive understanding of how data is processed and transformed. The skill's workflow includes fetching the lineage graph, summarizing the findings in a clear format, and providing essential metadata about the analysis, such as locations searched and limits applied during the query.
This skill is particularly beneficial for data analysts, engineers, and anyone involved in data governance who needs to trace the origins and destinations of data assets. By providing an intuitive Markdown report, it simplifies the communication of complex data flows, making it easier to share insights with stakeholders or team members. Overall, the Data Lineage Summary skill enhances the ability to maintain data integrity and quality across data pipelines.
However, users should note that this skill is not intended for generic BigQuery queries, editing lineage relationships, or conducting downstream impact analysis. For those specific needs, alternative skills are recommended. This skill shines in scenarios where a clear, summarized view of data lineage is necessary, particularly when dealing with intricate data systems and workflows.
When to use it
Use this skill when you need to summarize complex data lineage graphs for specific assets in Google Cloud.
When not to use it
Avoid using this skill for generic BigQuery queries or when needing to edit lineage relationships.
What you can build with it
Debugging Data Quality Issues
Use the skill to summarize lineage graphs when investigating data quality problems in your datasets.
Understanding Data Provenance
Quickly generate reports that clarify where your data comes from and where it goes, aiding in compliance and governance.
Presenting Data Flows to Stakeholders
Create intuitive Markdown reports that simplify complex data lineage for presentations or team discussions.
How to install Data Lineage Summary
View source1. Install with the skills CLI
npx skills add google/skills/datalineage-summary --agent claude-code2. Or install it manually
Download the skill folder and drop it into ~/.claude/skills/ for all projects, or .claude/skills/ to scope it to one repo. Restart Claude Code so it picks up the new skill.
Anthropic's agentic coding CLI, and the reference implementation of Agent Skills. Drop a skill folder into ~/.claude/skills and Claude Code loads it automatically whenever a task matches the skill's description. Claude Code docs
Inside SKILL.md
Written by googleData 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.
Prerequisites
This skill relies on the Google Cloud Data Lineage (Knowledge Catalog) MCP
Server 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 GCP 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 focal asset, mentioning key source systems, projects, and processing tasks (e.g., Spark on Dataproc). - Downstream Lineage: Use the exact bold header
**Downstream Lineage:**. Detail where data goes from the focal asset to final consumer systems. - Analysis Metadata: Display the parameters used for the API call to
provide transparency on the boundaries of the summary. The output must
contain:
- Locations Searched:
{list_of_locations_queried} - Parent Location:
{parent_path} - Depth Limit:
{maxDepth} - Process per Link Limit:
{maxProcessPerLink} - Tip for User: A prompt suggesting they can ask to rerun with expanded locations (if not all were used) or depth.
- Locations Searched:
- Granularity Constraints:
- Prioritize flows between Systems, Projects, and Datasets over individual files/tables.
- You MUST explicitly list specific asset names (e.g., source tables, intermediate views, consumer tables) if there are fewer than 5. Do not just summarize counts if there are fewer than 5; name them explicitly. Otherwise, if 5 or more, aggregate them by count (e.g., "5 GCS buckets").
- Only mention counts for ultimate sources, final consumers, and total assets.
- Do not repeat project names redundantly for every dataset if only one project is involved.
- Tone: Avoid jargon and generic phrases like "There are distinct factual points." Be direct and clear. The final output is Markdown.
3. Return the Summary
Return the final summarized output back to the user.
External Documentation
Frequently asked questions about Data Lineage Summary
Similar skills
Power BI Semantic Modeling
Optimize your Power BI data models with best practices.
Data Context Extractor
Tailor data analysis skills to your company's needs.
Power BI Performance Troubleshooting
Systematic guidance for optimizing Power BI performance.
Power BI Model Design Review
Optimize your Power BI data models with expert reviews.
Power BI DAX Formula Optimizer
Optimize your DAX formulas for better performance and clarity.
Fabric Lakehouse
Optimize your data solutions with Lakehouse best practices.
