Chuyển đến nội dung
Skillpedia
Phân tích và bảng tính22k · #10251

datalineage-summary

Skill này làm gì

Skill này giải thích dữ liệu đi vào và đi ra khỏi một bảng, view hoặc tài sản lưu trữ BigQuery như thế nào. Skill dành cho những người gỡ lỗi chất lượng dữ liệu và cần một bức tranh đơn giản về nguồn gốc dữ liệu.

Khi nào nên dùng

  • ✓Khi bạn muốn biết dữ liệu của một bảng đến từ đâu và đi về đâu.
  • ✓Khi bạn đang gỡ lỗi một vấn đề chất lượng dữ liệu và cần lần ngược nguồn dữ liệu.
  • ✓Khi bạn muốn một báo cáo bằng ngôn ngữ đơn giản về đồ thị data lineage.

Liên kết skill

https://github.com/google/skills/blob/main/skills/cloud/datalineage-summary/SKILL.md

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/google/skills/blob/main/skills/cloud/datalineage-summary/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Giải thích bằng ngôn ngữ đơn giản rằng bảng doanh thu trong BigQuery lấy dữ liệu từ đâu và những báo cáo nào dùng nó.”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Skill lấy đồ thị lineage theo cả hai chiều từ tài sản, dùng máy chủ MCP Data Lineage. Sau đó skill biến đồ thị thành một bản giải thích từ trái sang phải bằng ngôn ngữ đơn giản.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

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_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 Google Cloud 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
Câu hỏi thường gặp

Skill có sửa các mối quan hệ lineage không?

Không. Skill chỉ đọc và tóm tắt lineage.

Skill có bao gồm từng cột không?

Có. Skill có thể tóm tắt lineage ở mức cột cho các trường cụ thể.

Đây có phải công cụ truy vấn BigQuery tổng quát không?

Không. Skill dành để tóm tắt lineage, không dành cho truy vấn tổng quát.

Chi tiết

Mô tả gốc của tác giả

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).

repo: google/skills

Độ phổ biến

Sao GitHub
22k
Vị trí xếp hạng
#10251
Giấy phép
Apache-2.0
Cập nhật
2/11/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự