[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7AZS92SCNMSYMNRBGVR56NX":3,"skill-same:01M7AZS92SCNMSYMNRBGVR56NX":46},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":26,"commitSha":27,"skillDirectory":28,"forksCount":13,"repositoryHtmlUrl":29,"repositoryHomepageUrl":6,"ownerHtmlUrl":30,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":31,"install":32,"resources":45},"01M7AZS92SCNMSYMNRBGVR56NX","federate-lakehouse-catalog",null,"Sets up Google Cloud Lakehouse federated catalogs to remote Iceberg REST Catalogs. Currently supported catalogs: Databricks Unity, AWS Glue. Supported clouds hosting those catalogs: GCP, AWS. The primary use case is connecting to remote data to query it from GCP engines (BigQuery, Spark). Examples of when to use this: \"federate my lakehouse catalog to databricks\", \"query data in databricks\", \"query data in s3\", \"connect to aws glue\". Do NOT use for direct remote database SQL execution (e.g., Databricks SQL) or managing remote clusters and infrastructure (e.g., Databricks clusters, AWS Glue jobs).","Krishp091205\u002Fgemini-config","Krishp091205","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F307182548?v=4","01M7AXCYY4NQ9WQ7DCT3R5Q5S4","01M7AXCYYR7QFCQQ6BFRKD93YH",0,"Apache-2.0","https:\u002F\u002Fgithub.com\u002FKrishp091205\u002Fgemini-config\u002Fblob\u002Fmain\u002Fconfig\u002Fplugins\u002Fdata-agent-kit-plugin\u002Fskills\u002Ffederate_lakehouse_catalog\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: federate-lakehouse-catalog\ndescription: >-\n  Sets up Google Cloud Lakehouse federated catalogs to remote Iceberg REST Catalogs. Currently supported catalogs: Databricks Unity, AWS Glue. Supported clouds hosting those catalogs: GCP, AWS. The primary use case is connecting to remote data to query it from GCP engines (BigQuery, Spark). Examples of when to use this: \"federate my lakehouse catalog to databricks\", \"query data in databricks\", \"query data in s3\", \"connect to aws glue\". Do NOT use for direct remote database SQL execution (e.g., Databricks SQL) or managing remote clusters and infrastructure (e.g., Databricks clusters, AWS Glue jobs).\nlicense: Apache-2.0\nmetadata:\n  version: v1\n  publisher: google\n---\n\n# Federate Lakehouse Catalog via Cross-cloud Lakehouse\n\nThis skill describes how to set up a federated catalog in BigQuery to query\nremote catalogs like Databricks Unity Catalog or AWS Glue Data Catalog data in\nAWS over the public internet.\n\n## Prerequisites\n\n-   For Databricks: Databricks Workspace URL and OAuth Service Principal (Client\n    ID and Secret) with read access.\n-   For AWS Glue: AWS Administrator access to create IAM roles and permissions\n    policies.\n-   Active Google Cloud project with administrative access to create lakehouse\n    resources, and secrets in the case of Databricks.\n\n## Procedure\n\n### Step 1: Information Gathering and Region Selection\n\nBefore running any commands, the agent **MUST** collect the following\ninformation from the user:\n\n1.  Determine which catalog the user wants to federate to (e.g., Databricks\n    Unity or AWS Glue) and verify it is supported.\n2.  Determine where the remote data is located (the specific AWS region).\n3.  Using the Region Pairing Best Practice in the Gotchas section, help the user\n    pick the optimal GCP region to minimize latency.\n4.  Collect the necessary configuration variables for the chosen flow (e.g.,\n    Databricks credentials or AWS Account ID).\n\nOnly proceed to the next steps once this information is confirmed.\n\n### Step 2: API Verification\n\nVerify that the required Google Cloud APIs are enabled for the project:\n\n```bash\ngcloud services check biglake.googleapis.com\n```\n\nIf the API is not enabled, explicitly ask the user for permission to enable it.\nDo NOT proceed without their confirmation.\n\n### Flow A: Databricks Unity Catalog\n\n#### 1. Create a Regional Secret for Credentials\n\nStore the Databricks client ID and secret in Secret Manager. Ensure the\n`secretmanager.googleapis.com` API is enabled. The secret **MUST** be in the\nsame region as your Lakehouse catalog.\n\n1.  Create a JSON file named `credentials.json`:\n\n```json\n{\n  \"client_id\": \"\u003CCLIENT_ID>\",\n  \"client_secret\": \"\u003CCLIENT_SECRET>\"\n}\n```\n\n1.  Set the Secret Manager API endpoint override for the region:\n\n```bash\ngcloud config set api_endpoint_overrides\u002Fsecretmanager https:\u002F\u002Fsecretmanager.\u003CREGION>.rep.googleapis.com\u002F\n```\n\n1.  Create the secret:\n\n```bash\ngcloud secrets create \u003CSECRET_NAME> \\\n  --location=\"\u003CREGION>\" \\\n  --project=\"\u003CPROJECT_ID>\" \\\n  --data-file=credentials.json\n```\n\n#### 2. Create the Federated Catalog\n\nCreate a BigLake Iceberg catalog of type `federated` pointing to Databricks.\n\n```bash\ngcloud alpha biglake iceberg catalogs create \u003CCATALOG_NAME> \\\n   --project=\"\u003CPROJECT_ID>\" \\\n   --primary-location=\"\u003CREGION>\" \\\n   --catalog-type=\"federated\" \\\n   --federated-catalog-type=\"unity\" \\\n   --secret-name=\"projects\u002F\u003CPROJECT_ID>\u002Flocations\u002F\u003CREGION>\u002Fsecrets\u002F\u003CSECRET_NAME>\" \\\n   --unity-instance-name=\"\u003CUNITY_INSTANCE_NAME>\" \\\n   --unity-catalog-name=\"\u003CUNITY_CATALOG_NAME>\" \\\n   --refresh-interval=\"300s\"\n```\n\n#### 3. Grant Catalog Access to the Secret\n\nGrant the service account created for the catalog access to read the secret.\n\n1.  Get the service account email by describing the catalog:\n\n```bash\ngcloud alpha biglake iceberg catalogs describe \u003CCATALOG_NAME> \\\n    --project=\"\u003CPROJECT_ID>\" \\\n    --location=\"\u003CREGION>\" \\\n    --format=\"value(biglake-service-account-id)\"\n```\n\n1.  Grant access:\n\n```bash\ngcloud secrets add-iam-policy-binding \u003CSECRET_NAME> \\\n  --project=\"\u003CPROJECT_ID>\" \\\n  --location=\"\u003CREGION>\" \\\n  --member=\"serviceAccount:\u003CSERVICE_ACCOUNT_EMAIL>\" \\\n  --role=\"roles\u002Fsecretmanager.secretAccessor\"\n```\n\n### Flow B: AWS Glue\n\n#### 1. Create the AWS IAM role with a placeholder trust policy\n\nLakehouse provisions a Google service account ID after catalog creation. Create\nthe AWS IAM role with a placeholder trust policy first.\n\n1.  Create a file named `trust_policy.json`:\n\n```json\n{\n  \"Version\": \"2012-10-17\",\n  \"Statement\": [\n    {\n      \"Effect\": \"Allow\",\n      \"Principal\": {\n        \"Federated\": \"accounts.google.com\"\n      },\n      \"Action\": \"sts:AssumeRoleWithWebIdentity\",\n      \"Condition\": {\n        \"StringEquals\": {\n          \"accounts.google.com:aud\": [\"PLACEHOLDER_VALUE\"],\n          \"accounts.google.com:sub\": [\"PLACEHOLDER_VALUE\"]\n        }\n      }\n    }\n  ]\n}\n```\n\n1.  Run the AWS CLI command to create the role:\n\n```bash\naws iam create-role \\\n  --role-name \u003CAWS_ROLE_NAME> \\\n  --assume-role-policy-document file:\u002F\u002Ftrust_policy.json \\\n  --max-session-duration 43200\n```\n\n#### 2. Attach a permissions policy\n\nAttach a policy that allows Lakehouse to read from Glue and S3.\n\n> [!IMPORTANT] **Safe IAM Scoping**: The example below uses wildcard structures\n> for illustration. You **MUST** consult with the user to scope the `Resource`\n> ARNs to their specific catalog, database, and S3 buckets. Do NOT blindly apply\n> wildcard permissions.\n\n```json\n{\n  \"Version\": \"2012-10-17\",\n  \"Statement\": [\n    {\n      \"Sid\": \"GlueRead\",\n      \"Effect\": \"Allow\",\n      \"Action\": [\n        \"glue:GetCatalog\",\n        \"glue:GetDatabase\",\n        \"glue:GetDatabases\",\n        \"glue:GetTable\",\n        \"glue:GetTables\"\n      ],\n      \"Resource\": \"arn:aws:glue:\u003CAWS_REGION>:\u003CAWS_ACCOUNT_ID>:catalog\"\n    },\n    {\n      \"Sid\": \"S3Read\",\n      \"Effect\": \"Allow\",\n      \"Action\": [\n        \"s3:ListBucket\",\n        \"s3:GetObject\"\n      ],\n      \"Resource\": [\n        \"arn:aws:s3:::\u003CSPECIFIC_BUCKET>\",\n        \"arn:aws:s3:::\u003CSPECIFIC_BUCKET>\u002F*\"\n      ]\n    }\n  ]\n}\n```\n\nAttach this permissions policy to your IAM role.\n\n#### 3. Create the Federated Catalog\n\nWhen creating an AWS Glue federated catalog, the `--glue-warehouse` **MUST** be\nset to your 12-digit AWS Account ID string (not an S3 bucket URI). **Best\nPractice**: Initialize the catalog without specifying a refresh schedule to\nprevent premature metadata synchronization failures while AWS trust\nrelationships are propagating.\n\n```bash\ngcloud alpha biglake iceberg catalogs create \u003CCATALOG_NAME> \\\n  --project=\"\u003CPROJECT_ID>\" \\\n  --primary-location=\"\u003CREGION>\" \\\n  --catalog-type=\"federated\" \\\n  --federated-catalog-type=\"glue\" \\\n  --glue-warehouse=\"\u003CAWS_ACCOUNT_ID>\" \\\n  --glue-aws-region=\"\u003CAWS_REGION>\" \\\n  --glue-aws-role-arn=\"arn:aws:iam::\u003CAWS_ACCOUNT_ID>:role\u002F\u003CAWS_ROLE_NAME>\"\n```\n\n#### 4. Update the trust policy\n\nExtract the `biglake-service-account-id` from the created catalog, and update\nyour AWS IAM role's trust policy to replace `PLACEHOLDER_VALUE` in the `aud` and\n`sub` conditions with this Google Service Agent ID.\n\n#### 5. Enable background refresh\n\nUpdate the catalog to activate background refresh once the trust policy is\nupdated.\n\n```bash\ngcloud alpha biglake iceberg catalogs update \u003CCATALOG_NAME> \\\n  --project=\"\u003CPROJECT_ID>\" \\\n  --refresh-interval=\"300s\"\n```\n\n### Querying the Data\n\nOnce set up, you can query the tables via BigQuery.\n\n```sql\nSELECT * FROM `\u003CPROJECT_ID>.\u003CCATALOG_NAME>.\u003CNAMESPACE>.\u003CTABLE_NAME>` LIMIT 10;\n```\n\n## Gotchas and Pitfalls\n\n> [!IMPORTANT] **Regional Isolation**: The Secret Manager secret and the\n> Lakehouse catalog **MUST** be created in the exact same region.\n\n> [!TIP] **Region Pairing Best Practice**: When setting up the federated\n> catalog, choose GCP regions with \"Low Latency Dedicated\" or \"Partner CCI\" to\n> ensure optimal performance when federating large datasets across clouds.\n> Examples of optimal pairings: - AWS `us-east-1` (N. Virginia) pairs best with\n> GCP `us-east4` (Ashburn, VA) - AWS `us-west-2` (Oregon) pairs best with GCP\n> `us-west1` (The Dalles, OR) - AWS `eu-west-2` (London) pairs best with GCP\n> `europe-west2` (London) - AWS `eu-central-1` (Frankfurt) pairs best with GCP\n> `europe-west3` (Frankfurt) For the exhaustive list of mappings, read the full\n> capabilities table at:\n> https:\u002F\u002Fdocs.cloud.google.com\u002Flakehouse\u002Fdocs\u002Fregions-capabilities-cross-cloud-lakehouse\n\n> [!IMPORTANT] **BigQuery Query Location**: When querying the federated catalog\n> via BigQuery, you **MUST** ensure the query runs in the same region as the\n> catalog (e.g., `us-east4`). If using the `bq` CLI, use the `--location` flag.\n\n## Step 3: Validation and Next Steps\n\nAfter completing the setup, the agent **MUST** validate that the federation is\nworking and propose next steps to the user.\n\n1.  **Validate the Connection**:\n\n    -   Attempt to list the namespaces or tables in the newly federated catalog\n        using the `bq` CLI or BigQuery API. For example:\n\n        ```bash\n        bq ls --location=\"\u003CREGION>\" \u003CPROJECT_ID>.\u003CCATALOG_NAME>\n        ```\n\n    -   If the command returns a list of namespaces\u002Fschemas, the federation is\n        successful.\n\n2.  **Troubleshooting**:\n\n    -   If the validation fails (e.g., permission errors, empty results,\n        timeout), the agent should consult the Cross-Cloud Lakehouse\n        Troubleshooting documentation:\n        https:\u002F\u002Fdocs.cloud.google.com\u002Flakehouse\u002Fdocs\u002Ftroubleshooting.\n    -   For AWS Glue, verify that the trust policy correctly references the\n        `biglake-service-account-id` and that the GCP and AWS regions match your\n        configuration.\n    -   For Databricks, verify that the secret exists in the correct region and\n        the service account has `roles\u002Fsecretmanager.secretAccessor`.\n\n3.  **Explore and Propose**:\n\n    -   Assuming the federation is working, browse the available namespaces and\n        a few key tables.\n    -   Summarize to the user what kind of data was found (e.g., \"I see you have\n        tables related to e-commerce transactions and customer profiles\").\n    -   Propose a business or analytical question to the user that would result\n        in a meaningful query of their data (e.g., \"Would you like me to write a\n        query to find the top 5 purchasing customers from last month?\").\n","# Federate Lakehouse Catalog via Cross-cloud Lakehouse\n\nThis skill describes how to set up a federated catalog in BigQuery to query\nremote catalogs like Databricks Unity Catalog or AWS Glue Data Catalog data in\nAWS over the public internet.\n\n## Prerequisites\n\n-   For Databricks: Databricks Workspace URL and OAuth Service Principal (Client\n    ID and Secret) with read access.\n-   For AWS Glue: AWS Administrator access to create IAM roles and permissions\n    policies.\n-   Active Google Cloud project with administrative access to create lakehouse\n    resources, and secrets in the case of Databricks.\n\n## Procedure\n\n### Step 1: Information Gathering and Region Selection\n\nBefore running any commands, the agent **MUST** collect the following\ninformation from the user:\n\n1.  Determine which catalog the user wants to federate to (e.g., Databricks\n    Unity or AWS Glue) and verify it is supported.\n2.  Determine where the remote data is located (the specific AWS region).\n3.  Using the Region Pairing Best Practice in the Gotchas section, help the user\n    pick the optimal GCP region to minimize latency.\n4.  Collect the necessary configuration variables for the chosen flow (e.g.,\n    Databricks credentials or AWS Account ID).\n\nOnly proceed to the next steps once this information is confirmed.\n\n### Step 2: API Verification\n\nVerify that the required Google Cloud APIs are enabled for the project:\n\n```bash\ngcloud services check biglake.googleapis.com\n```\n\nIf the API is not enabled, explicitly ask the user for permission to enable it.\nDo NOT proceed without their confirmation.\n\n### Flow A: Databricks Unity Catalog\n\n#### 1. Create a Regional Secret for Credentials\n\nStore the Databricks client ID and secret in Secret Manager. Ensure the\n`secretmanager.googleapis.com` API is enabled. The secret **MUST** be in the\nsame region as your Lakehouse catalog.\n\n1.  Create a JSON file named `credentials.json`:\n\n```json\n{\n  \"client_id\": \"\u003CCLIENT_ID>\",\n  \"client_secret\": \"\u003CCLIENT_SECRET>\"\n}\n```\n\n1.  Set the Secret Manager API endpoint override for the region:\n\n```bash\ngcloud config set api_endpoint_overrides\u002Fsecretmanager https:\u002F\u002Fsecretmanager.\u003CREGION>.rep.googleapis.com\u002F\n```\n\n1.  Create the secret:\n\n```bash\ngcloud secrets create \u003CSECRET_NAME> \\\n  --location=\"\u003CREGION>\" \\\n  --project=\"\u003CPROJECT_ID>\" \\\n  --data-file=credentials.json\n```\n\n#### 2. Create the Federated Catalog\n\nCreate a BigLake Iceberg catalog of type `federated` pointing to Databricks.\n\n```bash\ngcloud alpha biglake iceberg catalogs create \u003CCATALOG_NAME> \\\n   --project=\"\u003CPROJECT_ID>\" \\\n   --primary-location=\"\u003CREGION>\" \\\n   --catalog-type=\"federated\" \\\n   --federated-catalog-type=\"unity\" \\\n   --secret-name=\"projects\u002F\u003CPROJECT_ID>\u002Flocations\u002F\u003CREGION>\u002Fsecrets\u002F\u003CSECRET_NAME>\" \\\n   --unity-instance-name=\"\u003CUNITY_INSTANCE_NAME>\" \\\n   --unity-catalog-name=\"\u003CUNITY_CATALOG_NAME>\" \\\n   --refresh-interval=\"300s\"\n```\n\n#### 3. Grant Catalog Access to the Secret\n\nGrant the service account created for the catalog access to read the secret.\n\n1.  Get the service account email by describing the catalog:\n\n```bash\ngcloud alpha biglake iceberg catalogs describe \u003CCATALOG_NAME> \\\n    --project=\"\u003CPROJECT_ID>\" \\\n    --location=\"\u003CREGION>\" \\\n    --format=\"value(biglake-service-account-id)\"\n```\n\n1.  Grant access:\n\n```bash\ngcloud secrets add-iam-policy-binding \u003CSECRET_NAME> \\\n  --project=\"\u003CPROJECT_ID>\" \\\n  --location=\"\u003CREGION>\" \\\n  --member=\"serviceAccount:\u003CSERVICE_ACCOUNT_EMAIL>\" \\\n  --role=\"roles\u002Fsecretmanager.secretAccessor\"\n```\n\n### Flow B: AWS Glue\n\n#### 1. Create the AWS IAM role with a placeholder trust policy\n\nLakehouse provisions a Google service account ID after catalog creation. Create\nthe AWS IAM role with a placeholder trust policy first.\n\n1.  Create a file named `trust_policy.json`:\n\n```json\n{\n  \"Version\": \"2012-10-17\",\n  \"Statement\": [\n    {\n      \"Effect\": \"Allow\",\n      \"Principal\": {\n        \"Federated\": \"accounts.google.com\"\n      },\n      \"Action\": \"sts:AssumeRoleWithWebIdentity\",\n      \"Condition\": {\n        \"StringEquals\": {\n          \"accounts.google.com:aud\": [\"PLACEHOLDER_VALUE\"],\n          \"accounts.google.com:sub\": [\"PLACEHOLDER_VALUE\"]\n        }\n      }\n    }\n  ]\n}\n```\n\n1.  Run the AWS CLI command to create the role:\n\n```bash\naws iam create-role \\\n  --role-name \u003CAWS_ROLE_NAME> \\\n  --assume-role-policy-document file:\u002F\u002Ftrust_policy.json \\\n  --max-session-duration 43200\n```\n\n#### 2. Attach a permissions policy\n\nAttach a policy that allows Lakehouse to read from Glue and S3.\n\n> [!IMPORTANT] **Safe IAM Scoping**: The example below uses wildcard structures\n> for illustration. You **MUST** consult with the user to scope the `Resource`\n> ARNs to their specific catalog, database, and S3 buckets. Do NOT blindly apply\n> wildcard permissions.\n\n```json\n{\n  \"Version\": \"2012-10-17\",\n  \"Statement\": [\n    {\n      \"Sid\": \"GlueRead\",\n      \"Effect\": \"Allow\",\n      \"Action\": [\n        \"glue:GetCatalog\",\n        \"glue:GetDatabase\",\n        \"glue:GetDatabases\",\n        \"glue:GetTable\",\n        \"glue:GetTables\"\n      ],\n      \"Resource\": \"arn:aws:glue:\u003CAWS_REGION>:\u003CAWS_ACCOUNT_ID>:catalog\"\n    },\n    {\n      \"Sid\": \"S3Read\",\n      \"Effect\": \"Allow\",\n      \"Action\": [\n        \"s3:ListBucket\",\n        \"s3:GetObject\"\n      ],\n      \"Resource\": [\n        \"arn:aws:s3:::\u003CSPECIFIC_BUCKET>\",\n        \"arn:aws:s3:::\u003CSPECIFIC_BUCKET>\u002F*\"\n      ]\n    }\n  ]\n}\n```\n\nAttach this permissions policy to your IAM role.\n\n#### 3. Create the Federated Catalog\n\nWhen creating an AWS Glue federated catalog, the `--glue-warehouse` **MUST** be\nset to your 12-digit AWS Account ID string (not an S3 bucket URI). **Best\nPractice**: Initialize the catalog without specifying a refresh schedule to\nprevent premature metadata synchronization failures while AWS trust\nrelationships are propagating.\n\n```bash\ngcloud alpha biglake iceberg catalogs create \u003CCATALOG_NAME> \\\n  --project=\"\u003CPROJECT_ID>\" \\\n  --primary-location=\"\u003CREGION>\" \\\n  --catalog-type=\"federated\" \\\n  --federated-catalog-type=\"glue\" \\\n  --glue-warehouse=\"\u003CAWS_ACCOUNT_ID>\" \\\n  --glue-aws-region=\"\u003CAWS_REGION>\" \\\n  --glue-aws-role-arn=\"arn:aws:iam::\u003CAWS_ACCOUNT_ID>:role\u002F\u003CAWS_ROLE_NAME>\"\n```\n\n#### 4. Update the trust policy\n\nExtract the `biglake-service-account-id` from the created catalog, and update\nyour AWS IAM role's trust policy to replace `PLACEHOLDER_VALUE` in the `aud` and\n`sub` conditions with this Google Service Agent ID.\n\n#### 5. Enable background refresh\n\nUpdate the catalog to activate background refresh once the trust policy is\nupdated.\n\n```bash\ngcloud alpha biglake iceberg catalogs update \u003CCATALOG_NAME> \\\n  --project=\"\u003CPROJECT_ID>\" \\\n  --refresh-interval=\"300s\"\n```\n\n### Querying the Data\n\nOnce set up, you can query the tables via BigQuery.\n\n```sql\nSELECT * FROM `\u003CPROJECT_ID>.\u003CCATALOG_NAME>.\u003CNAMESPACE>.\u003CTABLE_NAME>` LIMIT 10;\n```\n\n## Gotchas and Pitfalls\n\n> [!IMPORTANT] **Regional Isolation**: The Secret Manager secret and the\n> Lakehouse catalog **MUST** be created in the exact same region.\n\n> [!TIP] **Region Pairing Best Practice**: When setting up the federated\n> catalog, choose GCP regions with \"Low Latency Dedicated\" or \"Partner CCI\" to\n> ensure optimal performance when federating large datasets across clouds.\n> Examples of optimal pairings: - AWS `us-east-1` (N. Virginia) pairs best with\n> GCP `us-east4` (Ashburn, VA) - AWS `us-west-2` (Oregon) pairs best with GCP\n> `us-west1` (The Dalles, OR) - AWS `eu-west-2` (London) pairs best with GCP\n> `europe-west2` (London) - AWS `eu-central-1` (Frankfurt) pairs best with GCP\n> `europe-west3` (Frankfurt) For the exhaustive list of mappings, read the full\n> capabilities table at:\n> https:\u002F\u002Fdocs.cloud.google.com\u002Flakehouse\u002Fdocs\u002Fregions-capabilities-cross-cloud-lakehouse\n\n> [!IMPORTANT] **BigQuery Query Location**: When querying the federated catalog\n> via BigQuery, you **MUST** ensure the query runs in the same region as the\n> catalog (e.g., `us-east4`). If using the `bq` CLI, use the `--location` flag.\n\n## Step 3: Validation and Next Steps\n\nAfter completing the setup, the agent **MUST** validate that the federation is\nworking and propose next steps to the user.\n\n1.  **Validate the Connection**:\n\n    -   Attempt to list the namespaces or tables in the newly federated catalog\n        using the `bq` CLI or BigQuery API. For example:\n\n        ```bash\n        bq ls --location=\"\u003CREGION>\" \u003CPROJECT_ID>.\u003CCATALOG_NAME>\n        ```\n\n    -   If the command returns a list of namespaces\u002Fschemas, the federation is\n        successful.\n\n2.  **Troubleshooting**:\n\n    -   If the validation fails (e.g., permission errors, empty results,\n        timeout), the agent should consult the Cross-Cloud Lakehouse\n        Troubleshooting documentation:\n        https:\u002F\u002Fdocs.cloud.google.com\u002Flakehouse\u002Fdocs\u002Ftroubleshooting.\n    -   For AWS Glue, verify that the trust policy correctly references the\n        `biglake-service-account-id` and that the GCP and AWS regions match your\n        configuration.\n    -   For Databricks, verify that the secret exists in the correct region and\n        the service account has `roles\u002Fsecretmanager.secretAccessor`.\n\n3.  **Explore and Propose**:\n\n    -   Assuming the federation is working, browse the available namespaces and\n        a few key tables.\n    -   Summarize to the user what kind of data was found (e.g., \"I see you have\n        tables related to e-commerce transactions and customer profiles\").\n    -   Propose a business or analytical question to the user that would result\n        in a meaningful query of their data (e.g., \"Would you like me to write a\n        query to find the top 5 purchasing customers from last month?\").\n",{"name":5,"license":14,"metadata":23,"description":7},{"version":24,"publisher":25},"v1","google","main","1f317365436456f9c1039c414a2f6426caabc74c","config\u002Fplugins\u002Fdata-agent-kit-plugin\u002Fskills\u002Ffederate_lakehouse_catalog","https:\u002F\u002Fgithub.com\u002FKrishp091205\u002Fgemini-config","https:\u002F\u002Fgithub.com\u002FKrishp091205","2026-08-23 02:02:24",{"source":8,"skillName":5,"commands":33,"prompt":43,"zipAvailable":44},[34,37,40],{"tool":35,"command":36},"npx","npx skills add Krishp091205\u002Fgemini-config --skill federate-lakehouse-catalog",{"tool":38,"command":39},"bunx","bunx skills add Krishp091205\u002Fgemini-config --skill federate-lakehouse-catalog",{"tool":41,"command":42},"pnpm","pnpm dlx skills add Krishp091205\u002Fgemini-config --skill federate-lakehouse-catalog","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FKrishp091205\u002Fgemini-config\u002Fblob\u002Fmain\u002Fconfig\u002Fplugins\u002Fdata-agent-kit-plugin\u002Fskills\u002Ffederate_lakehouse_catalog\u002FSKILL.md",true,[],[47,54,61,68,75,82],{"skillNo":48,"name":49,"nameZh":6,"description":50,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":51,"categories":52,"keywords":53,"publishedAt":18},"01M7B0GYVAXB2M99PR4Z3N1WW0","skill-repair","Use this to fix and re-install agent skills that have failed installation.\nThis skill provides the necessary context and permissions to surgically update\nthe `manifest.json` after a fix has been applied.","https:\u002F\u002Fgithub.com\u002FKrishp091205\u002Fgemini-config\u002Fblob\u002Fmain\u002Fskills\u002Fskill-repair\u002FSKILL.md",[],[],{"skillNo":55,"name":56,"nameZh":6,"description":57,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":58,"categories":59,"keywords":60,"publishedAt":18},"01M7B0GQ2CKFX5P1DTV802XMAB","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.\nRelevant when any of the following conditions are true:\n  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.\n  2. The user explicitly requests a notebook (.ipynb).\n  3. You are creating, editing, or executing cells in a Jupyter notebook.\n  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.","https:\u002F\u002Fgithub.com\u002FKrishp091205\u002Fgemini-config\u002Fblob\u002Fmain\u002Fskills\u002Fnotebook-guidance\u002FSKILL.md",[],[],{"skillNo":62,"name":63,"nameZh":6,"description":64,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":65,"categories":66,"keywords":67,"publishedAt":18},"01M7B0GJ1K1JE2K593JZT4CAY9","ml-best-practices","CRITICAL RULE: You MUST use this skill whenever the task involves any machine learning tasks or data analysis.\nUse this skill if the user's prompt or requirements mention any of the following:\n  * Clustering\n  * Classification\n  * Regression\n  * Time series forecasting\n  * Statistical testing\n  * Model comparison\n  * ML\n  * Data analysis\n\nSQL\u002FBigQuery 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.","https:\u002F\u002Fgithub.com\u002FKrishp091205\u002Fgemini-config\u002Fblob\u002Fmain\u002Fskills\u002Fml-best-practices\u002FSKILL.md",[],[],{"skillNo":69,"name":70,"nameZh":6,"description":71,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":72,"categories":73,"keywords":74,"publishedAt":18},"01M7B0GD7FSN72WCSZ16WEDH42","managing-python-dependencies","Ensures proper Python dependency management, avoiding global `pip install` and\nadhering to project-specific tooling.\n\nUse this skill if any of the following are true:\n  1. Attempting to run `pip install {package_name}`.\n  2. Python packages or dependencies need to be added or modified.\n  3. Initiating a new Python project.\n  4. Creating a new notebook, even if just using BigQuery cells.\n  5. Generating Python code that includes `import` statements for third-party libraries.\n  6. Before executing Python scripts via the terminal to ensure the correct virtual environment is active.","https:\u002F\u002Fgithub.com\u002FKrishp091205\u002Fgemini-config\u002Fblob\u002Fmain\u002Fskills\u002Fmanaging-python-dependencies\u002FSKILL.md",[],[],{"skillNo":76,"name":77,"nameZh":6,"description":78,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":79,"categories":80,"keywords":81,"publishedAt":18},"01M7B0G6CC6JP6QTQGPSTBMJTX","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\u002FCMEK, retention and Bucket Lock, object holds, soft delete), host static websites, trigger Pub\u002FSub notifications on object changes, mount buckets as a file system (gcsfuse), or optimize storage performance at any scale. Covers the gcloud storage \u002F gsutil CLI, JSON and XML APIs, client libraries, Terraform, and Cloud Storage MCP servers. Don't use for block storage (Persistent Disk), data warehousing\u002Fanalytics (BigQuery), or databases (Cloud SQL, Spanner, Bigtable, Firestore).","https:\u002F\u002Fgithub.com\u002FKrishp091205\u002Fgemini-config\u002Fblob\u002Fmain\u002Fskills\u002Fgoogle-cloud-storage-basics\u002FSKILL.md",[],[],{"skillNo":83,"name":84,"nameZh":6,"description":85,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":86,"categories":87,"keywords":88,"publishedAt":18},"01M7B0G2DF32KW9A77S99QBZ4Q","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.","https:\u002F\u002Fgithub.com\u002FKrishp091205\u002Fgemini-config\u002Fblob\u002Fmain\u002Fskills\u002Fgcs-security-assessment\u002FSKILL.md",[],[]]