Datalineage Summary
Install this skill
No account required. Pick your tool, then copy.
Run in your terminal. It detects your AI tool.
npx @skills-hub-ai/cli install google-cloud-skills-datalineage-summaryWhat this does: 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).
Manual setup by platform
Claude Code
~/.claude/skills/google-cloud-skills-datalineage-summary/SKILL.md
Signing
SignedSLSA L2- Signed by
- skills-hub.ai distributor
- Method
- Distributor-signed by skills-hub.aiSigned with the skills-hub.ai Ed25519 distributor key over this exact slug, version and content. Check it with `npx @skills-hub-ai/cli verify`.
- Key
- skills-hub-ed25519-2026-11
- Signed
Instructions
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 the
locationsarray. 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 show
orgcloud storage ls). -
Search Parameters: Use
maxDepth = 10,maxResults = 5000and
maxProcessPerLink = 10as robust defaults when callingsearch_lineage.
For example, a DOWNSTREAM call should be formatted like this (expanding the
locationsarray 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:
- Overall Flow Type: State the inferred workflow type and data domain
- 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 Cloud
Storage 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.
- Prioritize flows between Systems, Projects, and Datasets over individual
- 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
- Knowledge Catalog Data Lineage Documentation
- Use the Data Lineage MCP server
- Knowledge Catalog Data Lineage API Reference
Security
Reviews (0)
Related skills
Browse all →More from Google Cloud Skills
View source →More Build skills
Browse category →Frequently asked questions about datalineage-summary
What does the datalineage-summary skill do?
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). It's a reusable SKILL.md instruction set that loads into your AI coding assistant on demand, no prompt engineering, no copy-pasting every session.
How do I install the datalineage-summary skill?
Run `npx @skills-hub-ai/cli install google-cloud-skills-datalineage-summary` from your terminal. The CLI writes the SKILL.md to the correct location for your AI tool (e.g. ~/.claude/skills/google-cloud-skills-datalineage-summary/ for Claude Code or ~/.cursor/skills/ for Cursor with --target cursor) and adds it to your project's .skills.json lockfile.
Which AI tools does datalineage-summary work with?
datalineage-summary runs in Claude Code. It follows the open Agent Skills standard (SKILL.md), so the same skill works in every supported tool without modification.
Is the datalineage-summary skill free?
Yes. Every skill on skills-hub.ai is free and open-source. There are no premium tiers, paywalls, or usage limits. You only pay for whatever AI assistant you're already using.
How do I use datalineage-summary after installing it?
In Claude Code, type `/google-cloud-skills-datalineage-summary` (or whatever slash command the skill registers) and the AI follows the skill's instructions immediately. You can also reference it by name in natural language, your AI loads the skill into context when relevant.
Can I share the datalineage-summary skill with my team?
Yes. Commit your project's .skills.json lockfile and teammates run `npx @skills-hub-ai/cli install` (no args) to install every skill at the exact version you pinned. Organization-scoped installs work via skills-hub.ai organizations.