Datalineage bigquery asset impact analysis

From google/skills · View interactive version

Datalineage bigquery asset impact analysis is an AI agent skill from the GitHub repository google/skills. Analyzes the downstream impact (blast radius) using data lineage on Google Cloud when a BigQuery table or view is broken, stale, or modified. Identifies all downstream tables, dashboards, and processes that will be affected. Use when: - Performing a blast radius or impact analysis for a BigQuery tab

How to use this skill

Skill file

BigQuery Asset Impact Analysis

This skill guides the agent in performing a downstream impact analysis (blast

radius assessment) when a BigQuery table or view is reported as broken, stale,

missing, or when a user is planning maintenance and wants to know the

consequences of modifying or pausing updates to an asset.

It relies primarily on the data lineage (Knowledge Catalog) MCP Server on

Google Cloud to discover relationships between assets.

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-bigquery-asset-impact-analysis)"

and append agent-skills/1.0 (skill:datalineage-bigquery-asset-impact-analysis) to User-Agent headers.

Prerequisites

This skill requires access to the data lineage API on Google Cloud and an active

client connection to the Data Lineage MCP Server. For detailed connection

configurations and tool schemas, refer to MCP Usage.

Analysis Workflow

1. Resolve the Asset's Fully Qualified Name (FQN)

2. Determine Locations and Parent Path

Identify the locations to search and construct the Data Lineage API request:

{project_id}:{dataset_id} and extract the location` field (e.g.,

us-central1 or us). If location discovery fails due to permissions or

missing tools, prompt the user for the dataset's location.

MCP server's location. Consult the DataLineageServer tool definition

to find the configured region or location (e.g., us). The format is:

projects/{project_id}/locations/{mcp_server_location}.

locations array of the payload (e.g., ["us-central1"] or `["us",

"us-central1"]`).

3. Retrieve the Downstream Lineage Graph

Call the DataLineageServer:search_lineage tool to fetch downstream

relationships.

as robust defaults.

4. Identify the Blast Radius

Traverse the returned lineage links to build the impact graph:

that depends on your source asset.

identifies the ETL pipelines, BigQuery Views, or Scheduled Queries that

propagate the data.

If a link has dependency_type: EXACT_COPY, mark the target as

"Directly Stale / Identical Copy".

will experience cascading stale data or failures.

5. Summarize and Format the Output

Present your findings clearly to the user using the following structure:

  1. Executive Summary: State the total number of downstream assets affected

and the maximum depth of the impact.

  1. Critical Path: Highlight high-priority downstream assets (e.g., assets

containing "prod", "dashboard", "reporting", or "master" in their names).

  1. Blast Radius Table: A clean Markdown table listing the dependencies. You

MUST include all columns:

| Downstream Asset | Transform Process | Depth | Impact Type |

| :------------------------------- | :------------------------------------ | :---- | :---------- |

| bigquery:project.dataset.table | projects/p/locations/l/processes/proc | 1 | Direct |

| bigquery:project.dataset.view | projects/p/locations/l/processes/view | 2 | Indirect |

  1. Analysis Metadata: Provide transparency on the parameters and boundaries

of your search so the user can choose to expand them:

with expanded locations or larger depth limits.

Crucial Constraints & Guardrails

  1. Interpret Empty Responses Correctly:

dependencies exist in the queried locations and report this to the

user.

  1. Strictly Banned Bypasses:

DataLineageServer:search_lineage tool.

  1. Verify Asset Existence First:

this directly to the user. Do not attempt to guess alternative table

names unless the user explicitly instructs you to do so.

  1. No Output Shortcutting or Hallucinated Artifacts:

final response. Avoid telling the user you have created a separate

Markdown file or artifact containing the details unless you have

explicitly executed file-writing tools to create it.

Reference Directory

server on Google Cloud and tool preferences.

External Documentation

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.