Agent Skillsgoogle/skills › datalineage-summary

datalineage-summary

GitHub

用于总结Google Cloud Data Lineage图谱,帮助调试数据质量问题并理解BQ/GCS的数据血缘。通过MCP工具获取上下游链路,将复杂节点转化为直观的Markdown报告,适用于上游和下游数据流分析。

skills/cloud/datalineage-summary/SKILL.md google/skills

Trigger Scenarios

需要总结特定资产的数据血缘关系 需要将复杂的Data Lineage图谱转化为易懂的Markdown报告 需要调试数据质量问题以追溯数据来源

Install

npx skills add google/skills --skill datalineage-summary -g -y
More Options

Non-standard path

npx skills add https://github.com/google/skills/tree/main/skills/cloud/datalineage-summary -g -y

Use without installing

npx skills use google/skills@datalineage-summary

指定 Agent (Claude Code)

npx skills add google/skills --skill datalineage-summary -a claude-code -g -y

安装 repo 全部 skill

npx skills add google/skills --all -g -y

预览 repo 内 skill

npx skills add google/skills --list

SKILL.md

Frontmatter
{
    "name": "datalineage-summary",
    "metadata": {
        "category": "BigDataAndAnalytics"
    },
    "description": "Summarizes Google Cloud Data Lineage graphs to help users debug data quality issues and understand data provenance for BQ\/GCS. 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)."
}

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.

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_url tool 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 the locations array. You MUST populate the locations array with all supported physical regions fetched from this link. You may optionally additionally determine the asset's specific active region (using bq show or gcloud storage ls).

  • Search Parameters: Use maxDepth = 10, maxResults = 5000 and maxProcessPerLink = 10 as robust defaults when calling search_lineage. For example, a DOWNSTREAM call should be formatted like this (expanding the locations array 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_lineage tool can find all Column-Level Lineage (CLL) by configuring the field array. 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.
  • 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

Version History

  • 513a7a5 Current 2026-07-19 19:03

Same Skill Collection

skills/ads/data-manager-api-audience-ingestion/SKILL.md
skills/ads/data-manager-api-event-ingestion/SKILL.md
skills/ads/data-manager-api-setup/SKILL.md
skills/ads/data-manager-api/data-manager-api-audience-ingestion/SKILL.md
skills/ads/data-manager-api/data-manager-api-event-ingestion/SKILL.md
skills/ads/data-manager-api/data-manager-api-setup/SKILL.md
skills/ads/google-ads-api-mcp-setup/SKILL.md
skills/ads/google-ads-api/google-ads-api-mcp-setup/SKILL.md
skills/ads/google-mobile-ads-android-migrate-to-next-gen/SKILL.md
skills/ads/google-mobile-ads-banner/SKILL.md
skills/ads/google-mobile-ads-get-started/SKILL.md
skills/ads/google-mobile-ads-interstitial/SKILL.md
skills/ads/google-mobile-ads-rewarded/SKILL.md
skills/ads/google-mobile-ads/google-mobile-ads-android-migrate-to-next-gen/SKILL.md
skills/ads/google-mobile-ads/google-mobile-ads-banner/SKILL.md
skills/ads/google-mobile-ads/google-mobile-ads-get-started/SKILL.md
skills/ads/google-mobile-ads/google-mobile-ads-interstitial/SKILL.md
skills/ads/google-mobile-ads/google-mobile-ads-rewarded/SKILL.md
skills/ads/ima-sdk-basics/SKILL.md
skills/ads/interactive-media-ads/ima-sdk-basics/SKILL.md
skills/analytics/google-analytics-admin-api-basics/SKILL.md
skills/analytics/google-analytics-data-api-basics/SKILL.md
skills/cloud/agent-platform-endpoint-management/SKILL.md
skills/cloud/agent-platform-migrate-from-ai-studio/SKILL.md
skills/cloud/agent-platform-model-registry/SKILL.md
skills/cloud/agent-platform-prompt-management/SKILL.md
skills/cloud/agent-platform-rag-engine-management/SKILL.md
skills/cloud/agent-platform-skill-registry/SKILL.md
skills/cloud/agent-platform-tuning-management/SKILL.md
skills/cloud/agent-platform-tuning/SKILL.md
skills/cloud/alloydb-basics/SKILL.md
skills/cloud/bigquery-ai-ml/SKILL.md
skills/cloud/bigquery-basics/SKILL.md
skills/cloud/bigquery-bigframes/SKILL.md
skills/cloud/bigtable-basics/SKILL.md
skills/cloud/cloud-logging-query-generation/SKILL.md
skills/cloud/cloud-monitoring-metric-selection/SKILL.md
skills/cloud/cloud-run-basics/SKILL.md
skills/cloud/detection-engineering-coverage-evaluation/SKILL.md
skills/cloud/firebase-basics/SKILL.md
skills/cloud/gcloud/SKILL.md
skills/cloud/gemini-agents-api/SKILL.md
skills/cloud/gemini-api/SKILL.md
skills/cloud/gemini-interactions-api/SKILL.md
skills/cloud/gke-app-onboarding/SKILL.md
skills/cloud/gke-backup-dr/SKILL.md
skills/cloud/gke-basics/SKILL.md
skills/cloud/gke-batch-hpc/SKILL.md
skills/cloud/gke-cluster-autoscaler/SKILL.md
skills/cloud/gke-cluster-creation/SKILL.md
skills/cloud/gke-compute-classes/SKILL.md
skills/cloud/gke-cost/SKILL.md
skills/cloud/gke-golden-path/SKILL.md
skills/cloud/gke-inference/SKILL.md
skills/cloud/gke-multitenancy/SKILL.md
skills/cloud/gke-networking/SKILL.md
skills/cloud/gke-observability/SKILL.md
skills/cloud/gke-reliability/SKILL.md
skills/cloud/gke-scaling/SKILL.md
skills/cloud/gke-security/SKILL.md
skills/cloud/gke-storage/SKILL.md
skills/cloud/gke-workload-scaling/SKILL.md
skills/cloud/google-cloud-networking-observability/SKILL.md
skills/cloud/google-cloud-recipe-auth/SKILL.md
skills/cloud/google-cloud-recipe-onboarding/SKILL.md
skills/cloud/google-cloud-solution-agentic-ai-borderless-data-lakehouse/SKILL.md
skills/cloud/google-cloud-solution-agentic-ai-data-science-workflow/SKILL.md
skills/cloud/google-cloud-waf-cost-optimization/SKILL.md
skills/cloud/google-cloud-waf-operational-excellence/SKILL.md
skills/cloud/google-cloud-waf-performance-optimization/SKILL.md
skills/cloud/google-cloud-waf-reliability/SKILL.md
skills/cloud/google-cloud-waf-security/SKILL.md
skills/cloud/google-cloud-waf-sustainability/SKILL.md
skills/cloud/iam-recommendations-fetcher/SKILL.md
skills/ads/google-ads-api-quickstart/SKILL.md
skills/ads/google-ads-api/google-ads-api-quickstart/SKILL.md
skills/cloud/agent-platform-alert-configuration/SKILL.md
skills/cloud/agent-platform-deploy/SKILL.md
skills/cloud/agent-platform-eval-flywheel/SKILL.md
skills/cloud/agent-platform-inference/SKILL.md
skills/cloud/cloud-sql-basics/SKILL.md
skills/cloud/datalineage-bigquery-asset-impact-analysis/SKILL.md
skills/cloud/gemini-live-api/SKILL.md
skills/cloud/gke-upgrades/SKILL.md
skills/cloud/google-agents-cli-onboarding/SKILL.md
skills/cloud/google-cloud-global-frontend-configuration/SKILL.md
skills/cloud/google-cloud-recipe-foundation-builder/SKILL.md
skills/cloud/google-cloud-solution-agentic-ai-bidirectional-streaming/SKILL.md
skills/cloud/google-cloud-solution-agentic-analytics-spark-knowledge-catalog/SKILL.md
skills/cloud/google-cloud-solution-architecture/SKILL.md
skills/cloud/google-cloud-solution-rag-enterprise-search-gke-sqldb/SKILL.md
skills/cloud/workload-manager-basics/SKILL.md

Metadata

Files
0
Version
513a7a5
Hash
f8a8bcb0
Indexed
2026-07-19 19:03

inicio - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-07-20 10:09
浙ICP备14020137号-1 $mapa de visitantes$