Analyzes the downstream impact (blast radius) when a BigQuery table or view is broken, stale, or modified. Identifies all downstream tables, dashboards, and pro
复制下面这句话,粘贴给 Claude Code、Codex、Cursor 等 AI 编程工具,它会读取安装说明并在你确认后完成安装。
请阅读 https://ai.atlankj.com/install/asset/gh-datalineage-bigquery-asset-impact-analysis-876e23bccedc ,按照其中的说明把「datalineage-bigquery-asset-impact-analysis」安装到你(当前 AI 工具)中。执行前先告诉我将运行的命令和写入的位置,等我确认。
查看 AI 将读取的安装说明正在读取 GitHub 原文…
内容来自 GitHub 原始文件,由原作者维护。在 GitHub 查看
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 Google Cloud Data Lineage (Knowledge Catalog) MCP Server to discover relationships between assets.
This skill requires access to the Google Cloud Data Lineage API and an active client connection to the Data Lineage MCP Server. For detailed connection configurations and tool schemas, refer to MCP Usage.
bigquery:{project_id}.{dataset_id}.{table_or_view_id}bigquery:my-prod-project.analytics.ordersIdentify the locations to search and construct the Data Lineage API request:
bq show --format=json {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.parent path using the project ID and the
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"]).Call the DataLineageServer:search_lineage tool to fetch downstream
relationships.
DOWNSTREAM.max_depth = 10 and max_process_per_link = 5
as robust defaults.Traverse the returned lineage links to build the impact graph:
target of each link represents a downstream asset
that depends on your source asset.processes field on each link. This
identifies the ETL pipelines, BigQuery Views, or Scheduled Queries that
propagate the data.dependency_type: EXACT_COPY, mark the target as
"Directly Stale / Identical Copy".Present your findings clearly to the user using the following structure:
Executive Summary: State the total number of downstream assets affected and the maximum depth of the impact.
Critical Path: Highlight high-priority downstream assets (e.g., assets containing "prod", "dashboard", "reporting", or "master" in their names).
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 |
Analysis Metadata: Provide transparency on the parameters and boundaries of your search so the user can choose to expand them:
{list_of_locations_queried}{parent_path}{max_depth}{max_process_per_link}DataLineageServer:search_lineage tool.bq show indicates the source table does not exist, stop and report
this directly to the user. Do not attempt to guess alternative table
names unless the user explicitly instructs you to do so.