Zum Inhalt springen
Skillpedia
Analyse & Tabellen22k · #10250

datalineage-bigquery-asset-impact-analysis

Was er macht

Dieser Skill zeigt, was von einer BigQuery-Tabelle oder View abhängt, bevor du sie änderst oder kaputt machst. Gedacht ist das für Datenteams, die Wartungsarbeiten planen oder auf einen defekten Datensatz reagieren.

Wann du ihn nutzt

  • ✓Wenn eine BigQuery-Tabelle oder View als defekt, veraltet oder verschwunden gemeldet wird.
  • ✓Wenn du ein BigQuery-Objekt ändern, löschen oder Aktualisierungen pausieren willst und die Auswirkungen wissen möchtest.
  • ✓Wenn du einen Bericht zur Reichweite brauchst, der zeigt, welche Dashboards und Tabellen betroffen wären.

Link zum Skill

https://github.com/google/skills/blob/main/skills/cloud/datalineage-bigquery-asset-impact-analysis/SKILL.md

Kopiere ihn und füge ihn in deine KI ein (Claude, ChatGPT oder Cursor) mit der Bitte, den Anweisungen zu folgen.

So nutzt du ihn

Am einfachsten: Kopiere die Nachricht und füge sie in deine KI ein. Sie liest den Skill und folgt den Anweisungen.

Fertige Nachricht zum Einfügen

Nutze diesen Skill, um mir zu helfen: https://github.com/google/skills/blob/main/skills/cloud/datalineage-bigquery-asset-impact-analysis/SKILL.md Lies die SKILL.md unter diesem Link und folge ihren Anweisungen für meine Aufgabe.
Soll deine KI Skills wie diesen selbst finden?Installiere den kostenlosen Skillpedia-MCP: eine Zeile, und sie durchsucht vor jeder Aufgabe 15.000+ Skills.In 1 Minute installieren →

Beispielanfrage an deine KI

“Bevor ich die Verkaufstabelle in BigQuery ändere, zeig mir jedes Dashboard und jede Tabelle, die davon abhängt.”

5 neue Skills pro Woche. 1 Minute Lesezeit.

So funktioniert es

Er ermittelt den vollständigen Namen der Tabelle und durchläuft dann mit dem Data-Lineage-MCP-Server den Graphen der vor- und nachgelagerten Objekte. Danach listet er alles auf, was betroffen wäre.

Technischer Inhalt (originale SKILL.md)

Originaltext des Autors, auf Englisch, direkt von GitHub.

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)

  • Ensure you have the correct FQN format for the BigQuery asset:
    • Format: bigquery:{project_id}.{dataset_id}.{table_or_view_id}
    • Example: bigquery:my-prod-project.analytics.orders

2. Determine Locations and Parent Path

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

  • Discover Asset Location: Run the command 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.
  • Set Parent Path: Set the 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}.
  • Configure Search Scope: Include the discovered asset location in the 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.

  • Direction: Set to DOWNSTREAM.
  • Search Parameters: Use max_depth = 10 and max_process_per_link = 5 as robust defaults.

4. Identify the Blast Radius

Traverse the returned lineage links to build the impact graph:

  • Affected Assets: The target of each link represents a downstream asset that depends on your source asset.
  • Transform Processes: Inspect the processes field on each link. This identifies the ETL pipelines, BigQuery Views, or Scheduled Queries that propagate the data.
  • Direct vs. Indirect Impact:
    • Direct Impact (Depth 1): Assets directly consuming the source asset. If a link has dependency_type: EXACT_COPY, mark the target as "Directly Stale / Identical Copy".
    • Indirect Impact (Depth > 1): Assets further down the stream that 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.

  2. Critical Path: Highlight high-priority downstream assets (e.g., assets containing "prod", "dashboard", "reporting", or "master" in their names).

  3. 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
  4. Analysis Metadata: Provide transparency on the parameters and boundaries of your search so the user can choose to expand them:

    • Locations Searched: `{list_of_locations_quer
Häufige Fragen

Welche Verbindung braucht er?

Zugriff auf die Data Lineage API und eine aktive Verbindung zum Data-Lineage-MCP-Server.

Wie sieht ein vollständiger Objektname aus?

Er folgt dem Muster bigquery, dann Projekt, Datensatz und Tabelle, getrennt durch Punkte.

Deckt er Dashboards ab?

Ja. Er ermittelt die Tabellen, Dashboards und Prozesse, die betroffen wären.

Details

Originalbeschreibung des Autors

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 table or view. - Assessing the consequences of modifying, deleting, or pausing updates to a BigQuery asset. - Identifying downstream dependencies (tables, dashboards, processes) of a BigQuery asset. Don't use for: - General BigQuery querying or data analysis (use BigQuery-related tools instead). - Non-

repo: google/skills

Beliebtheit

GitHub-Sterne
22k
Platz im Ranking
#10250
Lizenz
Apache-2.0
Aktualisiert
2.11.2026

Ist dieser Skill nützlich?

0

Anmelden um abzustimmen.

Kommentare

  • …

Weitere Skills aus diesem Repository

Ähnliche Skills