agentleFS
jggomezjggomez/expert-ai-developer-skills/skills/gcp-data-engineering/SKILL.md

gcp-data-engineering

Skill28 starsChanged 3 months agoApache-2.0View on GitHub

Guides architecture decisions for data pipelines on Google Cloud — lake/warehouse/lakehouse design, batch vs. streaming, orchestration tool selection (Dataform, Cloud Composer/Airflow, Dataflow/Beam), and BigQuery cost/performance tuning (partitioning, clustering, slots). Use when designing a new pipeline, choosing a GCP data service, or optimizing BigQuery cost/performance.

1 other project uses a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

7 rules. About 0 are common, 7 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈7

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Data Lake (Cloud Storage): Use GCS as the immutable landing zone for raw external files (CSV, JSON, Parquet, Avro).

    line 26
  2. Distinctive:

    Default to batch unless business requirements dictate sub-minute SLAs:

    line 34
  3. Distinctive:

    Operational Database Replication: Use Datastream for log-based CDC into BigQuery.

    line 36
  4. Distinctive:

    High-throughput Event Streaming: Use Pub/Sub buffer with direct BigQuery subscription (or Dataflow if stream joins/windowing are required).

    line 37
  5. Distinctive:

    Cloud Composer (Managed Airflow): Use when orchestrating across multiple GCP services (e.g.

    line 41
  6. Distinctive:

    Dataflow (Apache Beam): Use exclusively for complex streaming transforms, custom windowed joins, or heavy Python/Java non-SQL …

    line 42
  7. Distinctive:

    Dry-Run Validation: Always validate query byte consumption before execution.

    line 48

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

GCP Data Engineering Skill

Overview

This skill guides architectural decisions for data pipelines, data lakehouses, and analytical storage on Google Cloud Platform (GCP). It acts as a Senior GCP Data Architect, balancing data volume, ingestion latency, operational complexity, and cloud costs. It prioritizes simple, warehouse-native ELT patterns (Dataform, BigQuery) over complex custom streaming pipelines (Dataflow/Beam) unless business SLAs strictly require sub-minute freshness.

When to Use

Trigger Scenarios

  • Designing enterprise data platforms on GCP (Cloud Storage, BigQuery, Pub/Sub, Dataflow, Composer).
  • Selecting ingestion patterns (Batch loading vs. Log-based CDC vs. Streaming event buffers).
  • Choosing orchestration engines (Dataform for warehouse-internal SQL vs. Cloud Composer for multi-service DAGs).
  • Designing BigQuery table partitioning, clustering, and Medallion architecture layers (bronze → silver → gold).

When NOT to Use

  • Replicating operational databases via CDC and SCD Type 2 modeling: Route to cdc-scd-patterns.
  • Tuning slow or expensive BigQuery SQL query plans: Route to bigquery-query-optimization.
  • Traditional single-node RDBMS optimization: Route to sql-query-optimization.
  • General application backend development: Route to python-expert.

Process

Phase 1: Storage Layer & Medallion Architecture

  1. Data Lake (Cloud Storage): Use GCS as the immutable landing zone for raw external files (CSV, JSON, Parquet, Avro). Retain raw files to ensure re-derivability if downstream bugs occur.
  2. Data Warehouse (BigQuery): Serverless, petabyte-scale analytical store.
  3. Medallion Layers:
    • Bronze: Raw, ingested change-log or file dumps (append-only, immutable).
    • Silver: Cleaned, deduplicated, schema-validated, and typed tables.
    • Gold: High-value business aggregates, metrics marts, and reporting views.

Phase 2: Ingestion Pattern Selection

Default to batch unless business requirements dictate sub-minute SLAs:

  • Nightly / Scheduled Loads: Batch load into BigQuery via Dataform, Cloud Storage transfer, or Cloud Composer.
  • Operational Database Replication: Use Datastream for log-based CDC into BigQuery.
  • High-throughput Event Streaming: Use Pub/Sub buffer with direct BigQuery subscription (or Dataflow if stream joins/windowing are required).

Phase 3: Orchestration & Transformation Engine Selection

  • Dataform: SQLX-native transformation inside BigQuery. Default choice for warehouse-native ELT, assertions, and table dependencies.
  • Cloud Composer (Managed Airflow): Use when orchestrating across multiple GCP services (e.g. GCS → Dataflow → Vertex AI → BigQuery).
  • Dataflow (Apache Beam): Use exclusively for complex streaming transforms, custom windowed joins, or heavy Python/Java non-SQL transformations.

Phase 4: BigQuery Cost & Performance Governance

  • Partitioning: Partition tables by date/timestamp or ingestion time; require partition filters in WHERE clauses.
  • Clustering: Cluster on up to 4 frequently filtered or joined columns, sorted from highest to lowest selectivity.
  • Column Pruning: Explicitly name required columns; never run SELECT * across large analytical tables.
  • Dry-Run Validation: Always validate query byte consumption before execution.

Usage

CLI Invocations & Verification Commands

# Check query byte scan estimation using bq dry-run
bq query --use_legacy_sql=false --dry_run "SELECT id, created_at FROM \`my_project.analytics.events\` WHERE event_date = '2026-09-01'"

# Validate Dataform project compilation
dataform compile

Example Prompts

  • "Design a cost-effective GCP pipeline to ingest 50M daily events from Cloud Storage into BigQuery."
  • "Should we use Dataform or Cloud Composer for our daily analytical reporting pipeline?"
  • "Design the Medallion architecture and clustering strategy for our customer analytics dataset."

Host Execution Instructions

  • Claude Code: Provide architecture blueprints and run bq CLI dry-run checks in the workspace.
  • Antigravity: Formulate GCP architectural designs and integrate with GCP BigQuery tools.

Red Flags

  • Reaching for complex streaming architectures (Dataflow/Kafka) when hourly batch loads satisfy business SLAs.
  • Running SELECT * queries on multi-terabyte BigQuery tables without partition filters.
  • Using Cloud Composer to run pure SQL transformations that Dataform handles natively with lower cost and complexity.
  • Querying raw CDC change-log tables directly from BI dashboards without a silver deduplication layer.

Verification

  • Table designs specify appropriate partitioning column and clustering keys.
  • Medallion layer boundaries (bronze, silver, gold) clearly delineated.
  • Ingestion tool chosen matches data velocity and freshness requirements.
  • BigQuery dry-run confirms scanned bytes comply with cost budgets.

References

For the full GCP data services matrix, MCP server mappings, and governance blueprints:

  • GCP Data Stack Reference

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.