[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6F6635T0DWAW83ECX2JEHXX":3,"skill-same:01M6F6635T0DWAW83ECX2JEHXX":79},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":23,"publishedAt":47,"linkOnly":48,"markdownContent":49,"markdownBody":50,"frontMatter":51,"refName":56,"commitSha":57,"skillDirectory":58,"forksCount":59,"repositoryHtmlUrl":60,"repositoryHomepageUrl":6,"ownerHtmlUrl":61,"ownerBlogUrl":62,"ownerDescription":63,"updatedAt":64,"install":65,"resources":78},"01M6F6635T0DWAW83ECX2JEHXX","databricks-core-workflow-a",null,"Execute Databricks primary workflow: Delta Lake ETL pipelines.\nUse when building data ingestion pipelines, implementing medallion architecture,\nor creating Delta Lake transformations.\nTrigger with phrases like \"databricks ETL\", \"delta lake pipeline\",\n\"medallion architecture\", \"databricks data pipeline\", \"bronze silver gold\".","Dicklesworthstone\u002Fpi_agent_rust","Dicklesworthstone","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F35050222?v=4","01M6CG26AR942CSVMN1M5E3DSE","Jeff Emanuel","01M6CG26EPP71PSHW1VDS71121",1992,"MIT","https:\u002F\u002Fgithub.com\u002FDicklesworthstone\u002Fpi_agent_rust\u002Fblob\u002Fmain\u002Ftests\u002Fext_conformance\u002Fartifacts\u002Fplugins-community\u002Fplugins\u002Fsaas-packs\u002Fdatabricks-pack\u002Fskills\u002Fdatabricks-core-workflow-a\u002FSKILL.md",[18],{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000023","Skill与智能体开发","SCENARIO","使用场景",[24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],"databricks","core","databricks core workflow a","workflow","read","when","implementing","with","trigger","io","delta","ingestion","use","edit","write","Bash","pipeline","data","data ingestion","delta lake","etl","data pipeline","architecture","2026-11-10 10:12:30",false,"---\nname: databricks-core-workflow-a\ndescription: |\n  Execute Databricks primary workflow: Delta Lake ETL pipelines.\n  Use when building data ingestion pipelines, implementing medallion architecture,\n  or creating Delta Lake transformations.\n  Trigger with phrases like \"databricks ETL\", \"delta lake pipeline\",\n  \"medallion architecture\", \"databricks data pipeline\", \"bronze silver gold\".\nallowed-tools: Read, Write, Edit, Bash(databricks:*), Grep\nversion: 1.0.0\nlicense: MIT\nauthor: Jeremy Longshore \u003Cjeremy@intentsolutions.io>\n---\n\n# Databricks Core Workflow A: Delta Lake ETL\n\n## Overview\nBuild production Delta Lake ETL pipelines using medallion architecture.\n\n## Prerequisites\n- Completed `databricks-install-auth` setup\n- Understanding of Delta Lake concepts\n- Unity Catalog configured (recommended)\n\n## Medallion Architecture\n\n```\nRaw Sources → Bronze (Raw) → Silver (Cleaned) → Gold (Aggregated)\n                  ↓              ↓                  ↓\n           Landing Zone    Business Logic    Analytics Ready\n```\n\n## Instructions\n\n### Step 1: Bronze Layer - Raw Ingestion\n```python\n# src\u002Fpipelines\u002Fbronze.py\nfrom pyspark.sql import SparkSession, DataFrame\nfrom pyspark.sql.functions import current_timestamp, input_file_name, lit\nfrom delta.tables import DeltaTable\n\ndef ingest_to_bronze(\n    spark: SparkSession,\n    source_path: str,\n    target_table: str,\n    source_format: str = \"json\",\n    schema: str = None,\n) -> DataFrame:\n    \"\"\"\n    Ingest raw data to Bronze layer with metadata.\n\n    Args:\n        spark: SparkSession\n        source_path: Path to source data\n        target_table: Unity Catalog table name (catalog.schema.table)\n        source_format: Source file format (json, csv, parquet)\n        schema: Optional schema string\n    \"\"\"\n    # Read raw data\n    reader = spark.read.format(source_format)\n    if schema:\n        reader = reader.schema(schema)\n\n    df = reader.load(source_path)\n\n    # Add ingestion metadata\n    df_with_metadata = (\n        df\n        .withColumn(\"_ingested_at\", current_timestamp())\n        .withColumn(\"_source_file\", input_file_name())\n        .withColumn(\"_source_format\", lit(source_format))\n    )\n\n    # Write to Delta with merge for idempotency\n    df_with_metadata.write \\\n        .format(\"delta\") \\\n        .mode(\"append\") \\\n        .option(\"mergeSchema\", \"true\") \\\n        .saveAsTable(target_table)\n\n    return df_with_metadata\n\n# Auto Loader for streaming ingestion\ndef stream_to_bronze(\n    spark: SparkSession,\n    source_path: str,\n    target_table: str,\n    checkpoint_path: str,\n    schema_location: str,\n) -> None:\n    \"\"\"Stream data to Bronze using Auto Loader.\"\"\"\n    (\n        spark.readStream\n        .format(\"cloudFiles\")\n        .option(\"cloudFiles.format\", \"json\")\n        .option(\"cloudFiles.schemaLocation\", schema_location)\n        .option(\"cloudFiles.inferColumnTypes\", \"true\")\n        .load(source_path)\n        .withColumn(\"_ingested_at\", current_timestamp())\n        .writeStream\n        .format(\"delta\")\n        .option(\"checkpointLocation\", checkpoint_path)\n        .option(\"mergeSchema\", \"true\")\n        .trigger(availableNow=True)\n        .toTable(target_table)\n    )\n```\n\n### Step 2: Silver Layer - Data Cleansing\n```python\n# src\u002Fpipelines\u002Fsilver.py\nfrom pyspark.sql import SparkSession, DataFrame\nfrom pyspark.sql.functions import (\n    col, when, trim, lower, to_timestamp,\n    regexp_replace, sha2, concat_ws\n)\nfrom delta.tables import DeltaTable\n\ndef transform_to_silver(\n    spark: SparkSession,\n    bronze_table: str,\n    silver_table: str,\n    primary_keys: list[str],\n    watermark_column: str = \"_ingested_at\",\n) -> DataFrame:\n    \"\"\"\n    Transform Bronze to Silver with cleansing and deduplication.\n\n    Args:\n        spark: SparkSession\n        bronze_table: Source Bronze table\n        silver_table: Target Silver table\n        primary_keys: Columns for deduplication\u002Fmerge\n        watermark_column: Column for incremental processing\n    \"\"\"\n    # Read Bronze (incremental using CDF)\n    bronze_df = spark.readStream \\\n        .format(\"delta\") \\\n        .option(\"readChangeFeed\", \"true\") \\\n        .table(bronze_table)\n\n    # Apply transformations\n    silver_df = (\n        bronze_df\n        # Standardize strings\n        .withColumn(\"name\", trim(col(\"name\")))\n        .withColumn(\"email\", lower(trim(col(\"email\"))))\n        # Parse timestamps\n        .withColumn(\"created_at\", to_timestamp(col(\"created_at\")))\n        # Remove PII for analytics\n        .withColumn(\"email_hash\", sha2(col(\"email\"), 256))\n        # Data quality filters\n        .filter(col(\"email\").isNotNull())\n        .filter(col(\"created_at\").isNotNull())\n        # Generate surrogate key\n        .withColumn(\n            \"_row_key\",\n            sha2(concat_ws(\"||\", *[col(k) for k in primary_keys]), 256)\n        )\n    )\n\n    # Merge into Silver (upsert pattern)\n    if DeltaTable.isDeltaTable(spark, silver_table):\n        delta_table = DeltaTable.forName(spark, silver_table)\n        merge_condition = \" AND \".join(\n            [f\"target.{k} = source.{k}\" for k in primary_keys]\n        )\n        (\n            delta_table.alias(\"target\")\n            .merge(silver_df.alias(\"source\"), merge_condition)\n            .whenMatchedUpdateAll()\n            .whenNotMatchedInsertAll()\n            .execute()\n        )\n    else:\n        silver_df.write \\\n            .format(\"delta\") \\\n            .mode(\"overwrite\") \\\n            .saveAsTable(silver_table)\n\n    return silver_df\n```\n\n### Step 3: Gold Layer - Business Aggregations\n```python\n# src\u002Fpipelines\u002Fgold.py\nfrom pyspark.sql import SparkSession, DataFrame\nfrom pyspark.sql.functions import (\n    col, count, sum, avg, max, min,\n    date_trunc, window, current_timestamp\n)\n\ndef aggregate_to_gold(\n    spark: SparkSession,\n    silver_table: str,\n    gold_table: str,\n    group_by_columns: list[str],\n    aggregations: dict[str, str],\n    time_grain: str = \"day\",\n) -> DataFrame:\n    \"\"\"\n    Aggregate Silver to Gold for analytics.\n\n    Args:\n        spark: SparkSession\n        silver_table: Source Silver table\n        gold_table: Target Gold table\n        group_by_columns: Columns to group by\n        aggregations: Dict of {output_col: \"agg_func(source_col)\"}\n        time_grain: Time aggregation grain (hour, day, week, month)\n    \"\"\"\n    silver_df = spark.table(silver_table)\n\n    # Build aggregation expressions\n    agg_exprs = []\n    for output_col, expr in aggregations.items():\n        agg_exprs.append(f\"{expr} as {output_col}\")\n\n    # Apply aggregations\n    gold_df = (\n        silver_df\n        .withColumn(\"time_period\", date_trunc(time_grain, col(\"created_at\")))\n        .groupBy(*group_by_columns, \"time_period\")\n        .agg(*[eval(e) for e in agg_exprs])\n        .withColumn(\"_aggregated_at\", current_timestamp())\n    )\n\n    # Write to Gold (overwrite partition)\n    gold_df.write \\\n        .format(\"delta\") \\\n        .mode(\"overwrite\") \\\n        .option(\"replaceWhere\", f\"time_period >= '{get_min_date()}'\") \\\n        .saveAsTable(gold_table)\n\n    return gold_df\n\n# Example usage\ngold_df = aggregate_to_gold(\n    spark=spark,\n    silver_table=\"catalog.silver.events\",\n    gold_table=\"catalog.gold.daily_metrics\",\n    group_by_columns=[\"region\", \"product_category\"],\n    aggregations={\n        \"total_orders\": \"count(*)\",\n        \"total_revenue\": \"sum(amount)\",\n        \"avg_order_value\": \"avg(amount)\",\n        \"unique_customers\": \"count(distinct customer_id)\",\n    },\n    time_grain=\"day\"\n)\n```\n\n### Step 4: Delta Live Tables (DLT) Pipeline\n```python\n# pipelines\u002Fdlt_pipeline.py\nimport dlt\nfrom pyspark.sql.functions import *\n\n@dlt.table(\n    name=\"bronze_events\",\n    comment=\"Raw events from source\",\n    table_properties={\"quality\": \"bronze\"}\n)\ndef bronze_events():\n    return (\n        spark.readStream\n        .format(\"cloudFiles\")\n        .option(\"cloudFiles.format\", \"json\")\n        .load(\"\u002Fmnt\u002Flanding\u002Fevents\u002F\")\n        .withColumn(\"_ingested_at\", current_timestamp())\n    )\n\n@dlt.table(\n    name=\"silver_events\",\n    comment=\"Cleansed and validated events\",\n    table_properties={\"quality\": \"silver\"}\n)\n@dlt.expect_or_drop(\"valid_email\", \"email IS NOT NULL\")\n@dlt.expect_or_drop(\"valid_amount\", \"amount > 0\")\ndef silver_events():\n    return (\n        dlt.read_stream(\"bronze_events\")\n        .withColumn(\"email\", lower(trim(col(\"email\"))))\n        .withColumn(\"event_time\", to_timestamp(col(\"event_time\")))\n    )\n\n@dlt.table(\n    name=\"gold_daily_summary\",\n    comment=\"Daily aggregated metrics\",\n    table_properties={\"quality\": \"gold\"}\n)\ndef gold_daily_summary():\n    return (\n        dlt.read(\"silver_events\")\n        .groupBy(date_trunc(\"day\", col(\"event_time\")).alias(\"date\"))\n        .agg(\n            count(\"*\").alias(\"total_events\"),\n            sum(\"amount\").alias(\"total_revenue\"),\n            countDistinct(\"customer_id\").alias(\"unique_customers\")\n        )\n    )\n```\n\n## Output\n- Bronze layer with raw data and metadata\n- Silver layer with cleansed, deduplicated data\n- Gold layer with business aggregations\n- Delta Lake tables with ACID transactions\n\n## Error Handling\n| Error | Cause | Solution |\n|-------|-------|----------|\n| Schema mismatch | Source schema changed | Use `mergeSchema` option |\n| Duplicate records | Missing deduplication | Add merge logic with primary keys |\n| Null values | Data quality issues | Add expectations\u002Ffilters |\n| Memory errors | Large aggregations | Increase cluster size or partition data |\n\n## Examples\n\n### Complete Pipeline Orchestration\n```python\n# Run full medallion pipeline\nfrom src.pipelines import bronze, silver, gold\n\n# Bronze ingestion\nbronze.ingest_to_bronze(\n    spark, \"\u002Fmnt\u002Flanding\u002Forders\u002F\", \"catalog.bronze.orders\"\n)\n\n# Silver transformation\nsilver.transform_to_silver(\n    spark, \"catalog.bronze.orders\", \"catalog.silver.orders\",\n    primary_keys=[\"order_id\"]\n)\n\n# Gold aggregation\ngold.aggregate_to_gold(\n    spark, \"catalog.silver.orders\", \"catalog.gold.order_metrics\",\n    group_by_columns=[\"region\"], time_grain=\"day\"\n)\n```\n\n## Resources\n- [Delta Lake Guide](https:\u002F\u002Fdocs.databricks.com\u002Fdelta\u002Findex.html)\n- [Medallion Architecture](https:\u002F\u002Fwww.databricks.com\u002Fglossary\u002Fmedallion-architecture)\n- [Delta Live Tables](https:\u002F\u002Fdocs.databricks.com\u002Fdelta-live-tables\u002Findex.html)\n- [Auto Loader](https:\u002F\u002Fdocs.databricks.com\u002Fingestion\u002Fauto-loader\u002Findex.html)\n\n## Next Steps\nFor ML workflows, see `databricks-core-workflow-b`.\n","# Databricks Core Workflow A: Delta Lake ETL\n\n## Overview\nBuild production Delta Lake ETL pipelines using medallion architecture.\n\n## Prerequisites\n- Completed `databricks-install-auth` setup\n- Understanding of Delta Lake concepts\n- Unity Catalog configured (recommended)\n\n## Medallion Architecture\n\n```\nRaw Sources → Bronze (Raw) → Silver (Cleaned) → Gold (Aggregated)\n                  ↓              ↓                  ↓\n           Landing Zone    Business Logic    Analytics Ready\n```\n\n## Instructions\n\n### Step 1: Bronze Layer - Raw Ingestion\n```python\n# src\u002Fpipelines\u002Fbronze.py\nfrom pyspark.sql import SparkSession, DataFrame\nfrom pyspark.sql.functions import current_timestamp, input_file_name, lit\nfrom delta.tables import DeltaTable\n\ndef ingest_to_bronze(\n    spark: SparkSession,\n    source_path: str,\n    target_table: str,\n    source_format: str = \"json\",\n    schema: str = None,\n) -> DataFrame:\n    \"\"\"\n    Ingest raw data to Bronze layer with metadata.\n\n    Args:\n        spark: SparkSession\n        source_path: Path to source data\n        target_table: Unity Catalog table name (catalog.schema.table)\n        source_format: Source file format (json, csv, parquet)\n        schema: Optional schema string\n    \"\"\"\n    # Read raw data\n    reader = spark.read.format(source_format)\n    if schema:\n        reader = reader.schema(schema)\n\n    df = reader.load(source_path)\n\n    # Add ingestion metadata\n    df_with_metadata = (\n        df\n        .withColumn(\"_ingested_at\", current_timestamp())\n        .withColumn(\"_source_file\", input_file_name())\n        .withColumn(\"_source_format\", lit(source_format))\n    )\n\n    # Write to Delta with merge for idempotency\n    df_with_metadata.write \\\n        .format(\"delta\") \\\n        .mode(\"append\") \\\n        .option(\"mergeSchema\", \"true\") \\\n        .saveAsTable(target_table)\n\n    return df_with_metadata\n\n# Auto Loader for streaming ingestion\ndef stream_to_bronze(\n    spark: SparkSession,\n    source_path: str,\n    target_table: str,\n    checkpoint_path: str,\n    schema_location: str,\n) -> None:\n    \"\"\"Stream data to Bronze using Auto Loader.\"\"\"\n    (\n        spark.readStream\n        .format(\"cloudFiles\")\n        .option(\"cloudFiles.format\", \"json\")\n        .option(\"cloudFiles.schemaLocation\", schema_location)\n        .option(\"cloudFiles.inferColumnTypes\", \"true\")\n        .load(source_path)\n        .withColumn(\"_ingested_at\", current_timestamp())\n        .writeStream\n        .format(\"delta\")\n        .option(\"checkpointLocation\", checkpoint_path)\n        .option(\"mergeSchema\", \"true\")\n        .trigger(availableNow=True)\n        .toTable(target_table)\n    )\n```\n\n### Step 2: Silver Layer - Data Cleansing\n```python\n# src\u002Fpipelines\u002Fsilver.py\nfrom pyspark.sql import SparkSession, DataFrame\nfrom pyspark.sql.functions import (\n    col, when, trim, lower, to_timestamp,\n    regexp_replace, sha2, concat_ws\n)\nfrom delta.tables import DeltaTable\n\ndef transform_to_silver(\n    spark: SparkSession,\n    bronze_table: str,\n    silver_table: str,\n    primary_keys: list[str],\n    watermark_column: str = \"_ingested_at\",\n) -> DataFrame:\n    \"\"\"\n    Transform Bronze to Silver with cleansing and deduplication.\n\n    Args:\n        spark: SparkSession\n        bronze_table: Source Bronze table\n        silver_table: Target Silver table\n        primary_keys: Columns for deduplication\u002Fmerge\n        watermark_column: Column for incremental processing\n    \"\"\"\n    # Read Bronze (incremental using CDF)\n    bronze_df = spark.readStream \\\n        .format(\"delta\") \\\n        .option(\"readChangeFeed\", \"true\") \\\n        .table(bronze_table)\n\n    # Apply transformations\n    silver_df = (\n        bronze_df\n        # Standardize strings\n        .withColumn(\"name\", trim(col(\"name\")))\n        .withColumn(\"email\", lower(trim(col(\"email\"))))\n        # Parse timestamps\n        .withColumn(\"created_at\", to_timestamp(col(\"created_at\")))\n        # Remove PII for analytics\n        .withColumn(\"email_hash\", sha2(col(\"email\"), 256))\n        # Data quality filters\n        .filter(col(\"email\").isNotNull())\n        .filter(col(\"created_at\").isNotNull())\n        # Generate surrogate key\n        .withColumn(\n            \"_row_key\",\n            sha2(concat_ws(\"||\", *[col(k) for k in primary_keys]), 256)\n        )\n    )\n\n    # Merge into Silver (upsert pattern)\n    if DeltaTable.isDeltaTable(spark, silver_table):\n        delta_table = DeltaTable.forName(spark, silver_table)\n        merge_condition = \" AND \".join(\n            [f\"target.{k} = source.{k}\" for k in primary_keys]\n        )\n        (\n            delta_table.alias(\"target\")\n            .merge(silver_df.alias(\"source\"), merge_condition)\n            .whenMatchedUpdateAll()\n            .whenNotMatchedInsertAll()\n            .execute()\n        )\n    else:\n        silver_df.write \\\n            .format(\"delta\") \\\n            .mode(\"overwrite\") \\\n            .saveAsTable(silver_table)\n\n    return silver_df\n```\n\n### Step 3: Gold Layer - Business Aggregations\n```python\n# src\u002Fpipelines\u002Fgold.py\nfrom pyspark.sql import SparkSession, DataFrame\nfrom pyspark.sql.functions import (\n    col, count, sum, avg, max, min,\n    date_trunc, window, current_timestamp\n)\n\ndef aggregate_to_gold(\n    spark: SparkSession,\n    silver_table: str,\n    gold_table: str,\n    group_by_columns: list[str],\n    aggregations: dict[str, str],\n    time_grain: str = \"day\",\n) -> DataFrame:\n    \"\"\"\n    Aggregate Silver to Gold for analytics.\n\n    Args:\n        spark: SparkSession\n        silver_table: Source Silver table\n        gold_table: Target Gold table\n        group_by_columns: Columns to group by\n        aggregations: Dict of {output_col: \"agg_func(source_col)\"}\n        time_grain: Time aggregation grain (hour, day, week, month)\n    \"\"\"\n    silver_df = spark.table(silver_table)\n\n    # Build aggregation expressions\n    agg_exprs = []\n    for output_col, expr in aggregations.items():\n        agg_exprs.append(f\"{expr} as {output_col}\")\n\n    # Apply aggregations\n    gold_df = (\n        silver_df\n        .withColumn(\"time_period\", date_trunc(time_grain, col(\"created_at\")))\n        .groupBy(*group_by_columns, \"time_period\")\n        .agg(*[eval(e) for e in agg_exprs])\n        .withColumn(\"_aggregated_at\", current_timestamp())\n    )\n\n    # Write to Gold (overwrite partition)\n    gold_df.write \\\n        .format(\"delta\") \\\n        .mode(\"overwrite\") \\\n        .option(\"replaceWhere\", f\"time_period >= '{get_min_date()}'\") \\\n        .saveAsTable(gold_table)\n\n    return gold_df\n\n# Example usage\ngold_df = aggregate_to_gold(\n    spark=spark,\n    silver_table=\"catalog.silver.events\",\n    gold_table=\"catalog.gold.daily_metrics\",\n    group_by_columns=[\"region\", \"product_category\"],\n    aggregations={\n        \"total_orders\": \"count(*)\",\n        \"total_revenue\": \"sum(amount)\",\n        \"avg_order_value\": \"avg(amount)\",\n        \"unique_customers\": \"count(distinct customer_id)\",\n    },\n    time_grain=\"day\"\n)\n```\n\n### Step 4: Delta Live Tables (DLT) Pipeline\n```python\n# pipelines\u002Fdlt_pipeline.py\nimport dlt\nfrom pyspark.sql.functions import *\n\n@dlt.table(\n    name=\"bronze_events\",\n    comment=\"Raw events from source\",\n    table_properties={\"quality\": \"bronze\"}\n)\ndef bronze_events():\n    return (\n        spark.readStream\n        .format(\"cloudFiles\")\n        .option(\"cloudFiles.format\", \"json\")\n        .load(\"\u002Fmnt\u002Flanding\u002Fevents\u002F\")\n        .withColumn(\"_ingested_at\", current_timestamp())\n    )\n\n@dlt.table(\n    name=\"silver_events\",\n    comment=\"Cleansed and validated events\",\n    table_properties={\"quality\": \"silver\"}\n)\n@dlt.expect_or_drop(\"valid_email\", \"email IS NOT NULL\")\n@dlt.expect_or_drop(\"valid_amount\", \"amount > 0\")\ndef silver_events():\n    return (\n        dlt.read_stream(\"bronze_events\")\n        .withColumn(\"email\", lower(trim(col(\"email\"))))\n        .withColumn(\"event_time\", to_timestamp(col(\"event_time\")))\n    )\n\n@dlt.table(\n    name=\"gold_daily_summary\",\n    comment=\"Daily aggregated metrics\",\n    table_properties={\"quality\": \"gold\"}\n)\ndef gold_daily_summary():\n    return (\n        dlt.read(\"silver_events\")\n        .groupBy(date_trunc(\"day\", col(\"event_time\")).alias(\"date\"))\n        .agg(\n            count(\"*\").alias(\"total_events\"),\n            sum(\"amount\").alias(\"total_revenue\"),\n            countDistinct(\"customer_id\").alias(\"unique_customers\")\n        )\n    )\n```\n\n## Output\n- Bronze layer with raw data and metadata\n- Silver layer with cleansed, deduplicated data\n- Gold layer with business aggregations\n- Delta Lake tables with ACID transactions\n\n## Error Handling\n| Error | Cause | Solution |\n|-------|-------|----------|\n| Schema mismatch | Source schema changed | Use `mergeSchema` option |\n| Duplicate records | Missing deduplication | Add merge logic with primary keys |\n| Null values | Data quality issues | Add expectations\u002Ffilters |\n| Memory errors | Large aggregations | Increase cluster size or partition data |\n\n## Examples\n\n### Complete Pipeline Orchestration\n```python\n# Run full medallion pipeline\nfrom src.pipelines import bronze, silver, gold\n\n# Bronze ingestion\nbronze.ingest_to_bronze(\n    spark, \"\u002Fmnt\u002Flanding\u002Forders\u002F\", \"catalog.bronze.orders\"\n)\n\n# Silver transformation\nsilver.transform_to_silver(\n    spark, \"catalog.bronze.orders\", \"catalog.silver.orders\",\n    primary_keys=[\"order_id\"]\n)\n\n# Gold aggregation\ngold.aggregate_to_gold(\n    spark, \"catalog.silver.orders\", \"catalog.gold.order_metrics\",\n    group_by_columns=[\"region\"], time_grain=\"day\"\n)\n```\n\n## Resources\n- [Delta Lake Guide](https:\u002F\u002Fdocs.databricks.com\u002Fdelta\u002Findex.html)\n- [Medallion Architecture](https:\u002F\u002Fwww.databricks.com\u002Fglossary\u002Fmedallion-architecture)\n- [Delta Live Tables](https:\u002F\u002Fdocs.databricks.com\u002Fdelta-live-tables\u002Findex.html)\n- [Auto Loader](https:\u002F\u002Fdocs.databricks.com\u002Fingestion\u002Fauto-loader\u002Findex.html)\n\n## Next Steps\nFor ML workflows, see `databricks-core-workflow-b`.\n",{"name":5,"author":52,"license":15,"version":53,"description":54,"allowed-tools":55},"Jeremy Longshore \u003Cjeremy@intentsolutions.io>","1.0.0","Execute Databricks primary workflow: Delta Lake ETL pipelines.\nUse when building data ingestion pipelines, implementing medallion architecture,\nor creating Delta Lake transformations.\nTrigger with phrases like \"databricks ETL\", \"delta lake pipeline\",\n\"medallion architecture\", \"databricks data pipeline\", \"bronze silver gold\".\n","Read, Write, Edit, Bash(databricks:*), Grep","main","90b50ed0778745a80fd5bfb13b1843d45b9e82f7","tests\u002Fext_conformance\u002Fartifacts\u002Fplugins-community\u002Fplugins\u002Fsaas-packs\u002Fdatabricks-pack\u002Fskills\u002Fdatabricks-core-workflow-a",233,"https:\u002F\u002Fgithub.com\u002FDicklesworthstone\u002Fpi_agent_rust","https:\u002F\u002Fgithub.com\u002FDicklesworthstone","https:\u002F\u002Fwww.jeffreyemanuel.com\u002F","Building in NY","2026-11-15 01:54:15",{"source":8,"skillName":5,"commands":66,"prompt":76,"zipAvailable":77},[67,70,73],{"tool":68,"command":69},"npx","npx skills add Dicklesworthstone\u002Fpi_agent_rust --skill databricks-core-workflow-a",{"tool":71,"command":72},"bunx","bunx skills add Dicklesworthstone\u002Fpi_agent_rust --skill databricks-core-workflow-a",{"tool":74,"command":75},"pnpm","pnpm dlx skills add Dicklesworthstone\u002Fpi_agent_rust --skill databricks-core-workflow-a","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FDicklesworthstone\u002Fpi_agent_rust\u002Fblob\u002Fmain\u002Ftests\u002Fext_conformance\u002Fartifacts\u002Fplugins-community\u002Fplugins\u002Fsaas-packs\u002Fdatabricks-pack\u002Fskills\u002Fdatabricks-core-workflow-a\u002FSKILL.md",true,[],[80,111,146,169,194,219],{"skillNo":81,"name":82,"nameZh":6,"description":83,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":84,"licenseFileUrl":85,"sourceHtmlUrl":86,"categories":87,"keywords":91,"publishedAt":110},"01M6FCR7G5A005P364Z6ZWCJDP","theme-factory","Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with colors\u002Ffonts that you can apply to any artifact that has been creating, or can generate a new theme on-the-fly.","Apache-2.0","https:\u002F\u002Fgithub.com\u002FDicklesworthstone\u002Fpi_agent_rust\u002Fblob\u002Fmain\u002Ftests\u002Fext_conformance\u002Fartifacts\u002Ftemplates-davila7\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fcreative-design\u002Ftheme-factory\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002FDicklesworthstone\u002Fpi_agent_rust\u002Fblob\u002Fmain\u002Ftests\u002Fext_conformance\u002Fartifacts\u002Ftemplates-davila7\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fcreative-design\u002Ftheme-factory\u002FSKILL.md",[88],{"categoryNo":89,"categoryName":90,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000015","视觉设计",[92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,31,108,109],"theme factory","factory","theme","docs","toolkit","generate","artifacts","SET","fly","slides","landing","html","styling","artifact","pages","themes","you","fonts","2026-11-11 15:11:14",{"skillNo":112,"name":113,"nameZh":6,"description":114,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":84,"licenseFileUrl":115,"sourceHtmlUrl":116,"categories":117,"keywords":121,"publishedAt":47},"01M6FEGPPK0ZTKCCM0R3E3KS33","web-artifacts-builder","Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn\u002Fui). Use for complex artifacts requiring state management, routing, or shadcn\u002Fui components - not for simple single-file HTML\u002FJSX artifacts.","https:\u002F\u002Fgithub.com\u002FDicklesworthstone\u002Fpi_agent_rust\u002Fblob\u002Fmain\u002Ftests\u002Fext_conformance\u002Fartifacts\u002Ftemplates-davila7\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Futilities\u002Fweb-artifacts-builder\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002FDicklesworthstone\u002Fpi_agent_rust\u002Fblob\u002Fmain\u002Ftests\u002Fext_conformance\u002Fartifacts\u002Ftemplates-davila7\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Futilities\u002Fweb-artifacts-builder\u002FSKILL.md",[118],{"categoryNo":119,"categoryName":120,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000009","前端开发",[122,123,98,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,36,103,139,140,141,142,143,144,145],"web artifacts builder","web","artifacts builder","builder","frontend","css","components","react","component","routing","state management","state","shadcn","file","ui","Tools","Tailwind","single-file","simple","ui components","multi","for","jsx","suite",{"skillNo":147,"name":148,"nameZh":6,"description":149,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":84,"licenseFileUrl":150,"sourceHtmlUrl":151,"categories":152,"keywords":157,"publishedAt":47},"01M6FEE9VTK1W4GY21AKREJXRG","webapp-testing","Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.","https:\u002F\u002Fgithub.com\u002FDicklesworthstone\u002Fpi_agent_rust\u002Fblob\u002Fmain\u002Ftests\u002Fext_conformance\u002Fartifacts\u002Ftemplates-davila7\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fsecurity\u002Fwebapp-testing\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002FDicklesworthstone\u002Fpi_agent_rust\u002Fblob\u002Fmain\u002Ftests\u002Fext_conformance\u002Fartifacts\u002Ftemplates-davila7\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fsecurity\u002Fwebapp-testing\u002FSKILL.md",[153,156],{"categoryNo":154,"categoryName":155,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000008","测试与质量",{"categoryNo":119,"categoryName":120,"taxonomyType":21,"taxonomyTypeDesc":22},[158,159,160,126,161,162,123,163,96,164,136,165,166,167,168,31,143],"testing","webapp testing","webapp","screenshots","playwright","debugging","browser","logs","applications","behavior","local",{"skillNo":170,"name":171,"nameZh":6,"description":172,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":173,"sourceHtmlUrl":174,"categories":175,"keywords":176,"publishedAt":47},"01M6FE20F7ZTQBFWKF4MPJ2SBX","neuropixels-analysis","Neuropixels neural recording analysis. Load SpikeGLX\u002FOpenEphys data, preprocess, motion correction, Kilosort4 spike sorting, quality metrics, Allen\u002FIBL curation, AI-assisted visual analysis, for Neuropixels 1.0\u002F2.0 extracellular electrophysiology. Use when working with neural recordings, spike sorting, extracellular electrophysiology, or when the user mentions Neuropixels, SpikeGLX, Open Ephys, Kilosort, quality metrics, or unit curation.","https:\u002F\u002Fgithub.com\u002FDicklesworthstone\u002Fpi_agent_rust\u002Fblob\u002Fmain\u002Ftests\u002Fext_conformance\u002Fartifacts\u002Ftemplates-davila7\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fscientific\u002Fneuropixels-analysis\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002FDicklesworthstone\u002Fpi_agent_rust\u002Fblob\u002Fmain\u002Ftests\u002Fext_conformance\u002Fartifacts\u002Ftemplates-davila7\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fscientific\u002Fneuropixels-analysis\u002FSKILL.md",[],[177,178,179,180,41,181,182,183,36,184,185,186,187,188,189,190,31,191,192,193,143,29],"analysis","neuropixels analysis","spike","metrics","open","quality","user","recordings","Neural","motion","visual","quality metrics","unit","sorting","curation","recording","load",{"skillNo":195,"name":196,"nameZh":6,"description":197,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":84,"licenseFileUrl":198,"sourceHtmlUrl":199,"categories":200,"keywords":202,"publishedAt":47},"01M6FDP0PDK6F1GGX395C7625Z","skill-creator","Guide for creating effective skills. This skill should be used when users want to create a new skill (or update an existing skill) that extends Claude's capabilities with specialized knowledge, workflows, or tool integrations.","https:\u002F\u002Fgithub.com\u002FDicklesworthstone\u002Fpi_agent_rust\u002Fblob\u002Fmain\u002Ftests\u002Fext_conformance\u002Fartifacts\u002Ftemplates-davila7\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fproductivity\u002Fskill-creator\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002FDicklesworthstone\u002Fpi_agent_rust\u002Fblob\u002Fmain\u002Ftests\u002Fext_conformance\u002Fartifacts\u002Ftemplates-davila7\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fproductivity\u002Fskill-creator\u002FSKILL.md",[201],{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},[203,204,205,206,207,208,209,210,211,212,213,214,215,216,31,143,217,29,218],"skill creator","creator","workflows","create","update","capabilities","knowledge","tool","integrations","specialized","guide","new skill","existing skill","users","Existing","new",{"skillNo":220,"name":221,"nameZh":6,"description":222,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":223,"sourceHtmlUrl":224,"categories":225,"keywords":227,"publishedAt":47},"01M6FDM8Y7VK7NYG9SM7QPA3PW","notebooklm","Use this skill to query your Google NotebookLM notebooks directly from Claude Code for source-grounded, citation-backed answers from Gemini. Browser automation, library management, persistent auth. Drastically reduced hallucinations through document-only responses.","https:\u002F\u002Fgithub.com\u002FDicklesworthstone\u002Fpi_agent_rust\u002Fblob\u002Fmain\u002Ftests\u002Fext_conformance\u002Fartifacts\u002Ftemplates-davila7\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fproductivity\u002Fnotebooklm\u002FLICENSE","https:\u002F\u002Fgithub.com\u002FDicklesworthstone\u002Fpi_agent_rust\u002Fblob\u002Fmain\u002Ftests\u002Fext_conformance\u002Fartifacts\u002Ftemplates-davila7\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fproductivity\u002Fnotebooklm\u002FSKILL.md",[226],{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},[221,228,229,230,231,232,233,164,234,235,36,236,237,238,239,143,240],"google","browser automation","gemini","automation","auth","code","library","management","only","document","query","Citation","source"]