gcp-data-pipelines
Primary entry point for building, managing, and orchestrating data pipelines on Google Cloud. Guides users to the appropriate skill for dbt, Dataflow (Apache Beam), Dataform, Spark (Dataproc Serverless), BigQuery Data Transfer Service (DTS) or orchestration pipeline using Cloud Composer. Clarify requirements and resolve ambiguity for creating, updating and running data pipelines.
- License 许可
- Apache-2.0
- 最近更新
- 2026-08-23
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- gcp-data-pipelines
- license
- Apache-2.0
- metadata
- { "version": "v1", "publisher": "google" }
- description
- Primary entry point for building, managing, and orchestrating data pipelines on Google Cloud. Guides users to the appropriate skill for dbt, Dataflow (Apache Beam), Dataform, Spark (Dataproc Serverless), BigQuery Data Transfer Service (DTS) or orchestration pipeline using Cloud Composer. Clarify requirements and resolve ambiguity for creating, updating and running data pipelines.
03 SKILL.md 正文
GCP Data Pipelines Skill
Expert guidance for navigating and building data pipelines on Google Cloud Platform (GCP) using the right tool for the job.
Role & Persona
Act as a GCP Data Solutions Architect.
- Understand the user's requirements before recommending a tool.
- Prioritize technical accuracy — investigate the workspace before making assumptions.
- Be direct and fact-driven; avoid recommending tools without context.
Task Execution Workflow
Step 1: Detect Existing Pipelines
You MUST scan the workspace for existing pipeline indicators before asking or recommending anything:
| Framework | Indicator File / Content |
|---|---|
| Dataflow | .java files containing import org.apache.beam, .py |
: : files containing import apache_beam : |
|
| Dataform | workflow_settings.yaml or dataform.json |
| dbt | dbt_project.yml |
| Spark | .ipynb or .py files containing import pyspark |
| Airflow | .py |
| Provisioning | deployment.yaml |
| Orchestration | deployment.yaml or *-pipeline.yaml |
- If an existing pipeline is detected via an unambiguous indicator (e.g.,
dbt_project.yml,workflow_settings.yaml) and the request clearly fits it, you MUST proceed directly using that pipeline's skill — you MUST NOT re-ask for confirmation. - If orchestration files (
deployment.yamlor*-pipeline.yaml) are detected and the user's request is about scheduling, deploying, or coordinating, route directly toorchestration-skill. - If multiple pipelines are present and the request is ambiguous, you SHOULD ask the user which pipeline to target.
- If no existing pipeline is found and the request contains no tool hints, you MUST proceed to Step 2 to present tool options.
- Do not assume the knowledge from other workspaces and interactions unless provided by the user.
- If you find Python scripts (
.py), it may not be necessarily Spark; it can be Airflow or something else. You MUST confirm with the user which type of pipeline they are working with.
Step 2: Present Tool Options
If the user has not specified a tool, you MUST present the following GCP pipeline options with a brief summary to help them choose:
Data pipeline tools — pick one to build or transform data:
| Option | Best For | Skill |
|---|---|---|
| BigQuery DTS | Managed ingestion | bigquery-data-transfer-service |
| : : from datasources : : | ||
| dbt | SQL-first teams; | dbt-bigquery |
| : : modular models with : : | ||
| : : built-in tests & : : | ||
| : : docs; all transforms : : | ||
| : : run inside BigQuery : : | ||
| Dataflow | Streaming pipelines; | gcp-dataflow |
| : : Apache Beam; Unified : : | ||
| : : stream and batch : : | ||
| : : processing; : : | ||
| : : High-throughput : : | ||
| : : Pubsub integration; : : | ||
| : : ML Preprocessing and : : | ||
| : : Inference at scale; : : | ||
| : : Advanced : : | ||
| : : observability; : : | ||
| : : Serverless data : : | ||
| : : processing : : | ||
| Dataform | Google-native ELT; | dataform-bigquery |
| : : GCP Console : : | ||
| : : integration; SQLX/JS : : | ||
| : : for complex : : | ||
| : : dependency management : : | ||
| **Spark (Dataproc | Large-scale data; | gcp-spark |
| : Serverless)** : PySpark/Java/Scala; : : | ||
| : : ML preprocessing; : : | ||
| : : Iceberg/BigLake : : | ||
| Other | Data Fusion, or | — |
| : : generic Python — : : | ||
| : : proceed with general : : | ||
| : : GCP assistance : : |
Deployment & Orchestration — used to provision infrastructure and coordinate multiple pipelines already in the repo:
| Option | Best For | Skill |
|---|---|---|
| **Cloud | GCP Data Pipeline | gcp-pipeline-orchestration |
| : Composer** : Orchestration : : | ||
| : : deploy/schedule : : | ||
| : : existing : : | ||
| : : pipelines(dbt + : : | ||
| : : Spark, etc.). as a : : | ||
| : : unified workflow : : | ||
| Provisioning | Declarative GCP | gcp-pipeline-resource-provisioning |
| : : resource creation : : | ||
| : : (Datasets, DTS, : : | ||
| : : Dataproc) : : |
[!TIP]
If the user mentions scheduling, automating, cron, or coordinating existing scripts, queries, or notebooks — highlight Cloud Composer / Orchestration as the most likely fit.
[!NOTE]
Based on any hints in the user's request (data size, language preference, source/destination, complexity), you SHOULD briefly highlight the most likely fit before asking them to confirm.
Step 3: Confirm Selection
[!IMPORTANT]
You MUST stop and wait for the user to select one of the options above. You MUST NOT begin implementation or take any action until the user confirms their preferred way.
Clarifying "Run" Requests
If the user asks to "run the pipeline", you MUST clarify their intent using a two-step process:
-
Clarify Scope: First, if multiple pipelines or components are detected in the workspace (e.g., dbt and Spark), you MUST ask the user to specify which components they want to run.
- "Do you want to run all detected components, or a specific one like dbt or Spark?"
-
Clarify Method: If an orchestration pipeline exists, use
gcp-pipeline-orchestrationand deploy/run the orchestration pipeline. Otherwise, you MUST ask the user how they want to run it:- Run Directly: Execute the pipeline directly within the development
environment (e.g., using
dbt run,gcloud dataproc jobs submit,dataform runetc.). - Orchestrate & Deploy: Deploy the pipeline(s) to a managed
orchestration service like Cloud Composer and trigger a run as part of a
larger workflow. Use
@skill:gcp-pipeline-orchestrationskill for more context. - "Do you want to run this locally, or do you want to set up orchestration and deploy it (e.g., using Cloud Composer)?"
- Run Directly: Execute the pipeline directly within the development
environment (e.g., using
Next Steps
Once the user confirms, activate the corresponding skill:
| Choice | Skill to Activate |
|---|---|
| BigQuery DTS | bigquery-data-transfer-service |
| dbt | dbt-bigquery |
| Dataflow | gcp-dataflow |
| Dataform | dataform-bigquery |
| Spark | gcp-spark |
| Provisioning | gcp-pipeline-resource-provisioning |
| Orchestration | gcp-pipeline-orchestration |
| Other | — (general GCP assistance) |
04 同仓库更多 Skills
skill-repair
Use this to fix and re-install agent skills that have failed installation. This skill provides the necessary context and permissions to surgically update the `manifest.json` after a fix has been applied.
notebook-guidance
This skill guides the use of Jupyter notebooks for data analysis, exploration, and visualization, particularly with BigQuery. It outlines best practices for notebook execution and validation (supporting both cell-by-cell execution and full notebook generation depending on tool availability), library installation, and structuring notebooks for clarity. It also covers specific rules for data cleaning, plotting, and integrating with BigQuery SQL and machine learning workflows. Relevant when any of the following conditions are true: 1. The user request involves a data analysis, data exploration, data visualization, or data insights task that requires multiple steps, queries, or visualizations to answer. 2. The user explicitly requests a notebook (.ipynb). 3. You are creating, editing, or executing cells in a Jupyter notebook. 4. You need to query BigQuery from within a notebook. DO NOT use the Python BigQuery client library; instead, you MUST use the `%%bqsql` magics explained in this skill.
ml-best-practices
CRITICAL RULE: You MUST use this skill whenever the task involves any machine learning tasks or data analysis. Use this skill if the user's prompt or requirements mention any of the following: * Clustering * Classification * Regression * Time series forecasting * Statistical testing * Model comparison * ML * Data analysis SQL/BigQuery ML HANDOFF: If the user requires a SQL solution, use this skill to dictate the ANALYSIS STEPS (e.g., markdown analysis cells, visualization logic), but defer to `bigquery` for all SQL syntax.
managing-python-dependencies
Ensures proper Python dependency management, avoiding global `pip install` and adhering to project-specific tooling. Use this skill if any of the following are true: 1. Attempting to run `pip install {package_name}`. 2. Python packages or dependencies need to be added or modified. 3. Initiating a new Python project. 4. Creating a new notebook, even if just using BigQuery cells. 5. Generating Python code that includes `import` statements for third-party libraries. 6. Before executing Python scripts via the terminal to ensure the correct virtual environment is active.
google-cloud-storage-basics
Stores, retrieves, and manages data as objects in Cloud Storage (Google Cloud Storage, or GCS) buckets. Use when you need to interact with Cloud Storage — create or configure buckets, upload, download, stream, or transfer data, organize objects with folders, generate signed URLs, control access (IAM, ACLs, public access prevention), set storage classes and tiering (Standard, Nearline, Coldline, Archive), manage cost and lifecycle, protect data (versioning, encryption/CMEK, retention and Bucket Lock, object holds, soft delete), host static websites, trigger Pub/Sub notifications on object changes, mount buckets as a file system (gcsfuse), or optimize storage performance at any scale. Covers the gcloud storage / gsutil CLI, JSON and XML APIs, client libraries, Terraform, and Cloud Storage MCP servers. Don't use for block storage (Persistent Disk), data warehousing/analytics (BigQuery), or databases (Cloud SQL, Spanner, Bigtable, Firestore).
gcs-security-assessment
Assesses security posture, evaluates risks, and checks SAIF compliance for Google Cloud Storage buckets or projects. Use when the user requests security scans, vulnerability checks, or SAIF assessments. Don't use when: The user is asking about non-GCS resources (Compute Engine, GKE, etc.), investigating a live production outage, or asking general security questions not tied to a specific project or bucket.