What problem does it solve? Writing correct, production-ready Spark code on Google Cloud requires deep knowledge of Dataproc execution modes, connector configurations, and data source schemas. This Skill enforces a structured workflow that discovers schemas first, generates validated PySpark notebooks, and executes them on Dataproc Clusters or Serverless without common mistakes like missing imports, schema mismatches, or misconfigured catalogs. ## Core Features & Use Cases - Guided Spark Code Generation: Produces Python notebooks (.ipynb) following a mandatory workflow: schema discovery, source verification, code generation, schema validation, compilation, and execution. - Multi-Source Data Integration: Provides verified patterns for reading and writing BigQuery, BigLake Iceberg catalogs (GCS and S3 storage), Spanner, Cloud SQL, GCS files, and Pub/Sub. - Dataproc Resource Management: Covers listing and submitting cluster jobs, serverless batches, and interactive sessions via gcloud or MCP tools, with connector dependencies for Spanner, PostgreSQL, Iceberg, and XGBoost. - ML on Spark: Includes verified patterns for XGBoost (SparkXGBClassifier), native Spark ML, and documented workarounds for LightGBM dependency conflicts on Serverless. - Use Case: Ask the AI to build an ETL pipeline that reads a CSV from GCS, enriches it with a BigQuery reference table, and writes the result to a BigLake Iceberg table, then submit it as a Serverless batch. ## Quick Start Use the gcp-spark skill to write a PySpark notebook that reads a CSV from my GCS bucket and writes it to a BigQuery table, then run it as a Dataproc Serverless batch.