[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6997WCXG0HS4TW0FT8MCGR4":3,"skill-same:01M6997WCXG0HS4TW0FT8MCGR4":146},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":8,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":18,"categories":19,"keywords":30,"publishedAt":51,"linkOnly":52,"markdownContent":53,"markdownBody":54,"frontMatter":55,"refName":59,"commitSha":60,"skillDirectory":61,"forksCount":62,"repositoryHtmlUrl":63,"repositoryHomepageUrl":17,"ownerHtmlUrl":64,"ownerBlogUrl":65,"ownerDescription":66,"updatedAt":67,"install":68,"resources":81},"01M6997WCXG0HS4TW0FT8MCGR4","managed-airflow-migrations","Airflow DAG 版本迁移","Provides guidance for migrating Apache Airflow DAGs in Managed Service for Apache Airflow (MSAA; formerly Cloud Composer). Covers migration to Airflow 2.11.1 (MSAA Gen 2 and 3) and Airflow 3 (MSAA Gen 3), including environment inspection, GCS download\u002Fupload and scanning patterns for breaking changes. Use when migrating the DAG code to newer Airflow version. Don't use when checking DAG run failures unrelated to code migration.","提供在 Apache Airflow 托管服务（Managed Service for Apache Airflow，MSAA；原名 Cloud Composer）中迁移 Apache Airflow DAG 的指导。涵盖迁移到 Airflow 2.11.1（MSAA Gen 2 和 3）以及 Airflow 3（MSAA Gen 3），包括环境检查、GCS 下载\u002F上传以及针对破坏性变更的扫描模式。在将 DAG 代码迁移到较新的 Airflow 版本时使用。不要用于检查与代码迁移无关的 DAG 运行失败问题。","google\u002Fskills","google","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F1342004?v=4","01M698VYEFDM0VJBZDYYJ2T83S","Google","01M698WR0H76ENHE587T9EJT89",24235,"Apache-2.0",null,"https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fcloud\u002Fmanaged-airflow-migrations\u002FSKILL.md",[20,25],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BSFHC0DJXKNN0QBZDDS4K9","定时任务与自动化编排","SCENARIO","使用场景",{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BTGTEHKD89NSZ5CT4Y5AGV","数据工程师","PROFESSION","适用职业",[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50],"managed airflow migrations","managed","migrations","airflow","code","apache","apache airflow","environment","scanning","unrelated","run","patterns","Managed Service","code migration","composer","airflow dags","for","dag","when","inspection","2026-11-10 10:12:30",false,"---\nname: managed-airflow-migrations\ndescription: Provides guidance for migrating Apache Airflow DAGs in Managed Service for Apache Airflow (MSAA; formerly Cloud Composer). Covers migration to Airflow 2.11.1 (MSAA Gen 2 and 3) and Airflow 3 (MSAA Gen 3), including environment inspection, GCS download\u002Fupload and scanning patterns for breaking changes. Use when migrating the DAG code to newer Airflow version. Don't use when checking DAG run failures unrelated to code migration.\nmetadata:\n  version: \"1.0.1\"\n  category: BigDataAndAnalytics\n---\n\n# Managed Service for Apache Airflow (formerly Cloud Composer) Migration Guide\n\nThis skill guides you through the process of adjusting Airflow DAGs from an\nexisting Managed Service for Apache Airflow (formerly Cloud Composer)\nenvironment (or available locally) to make them compatible with **Airflow\n2.11.1** (MSAA Gen 2 or 3) or **Airflow 3** (MSAA Gen 3).\n\n--------------------------------------------------------------------------------\n\n## Attribution\n\n**MUST READ**: Before executing any `gcloud`, REST API, or MCP command, you\nMUST read [Usage Attribution](references\u002Fattribution.md). For commands executed\ndirectly in the terminal (never in generated scripts, Terraform, or user code),\nprefix `gcloud` with\n`CLOUDSDK_METRICS_REQUEST_ATTRIBUTION=\"agent-skills\u002F1.0 (skill:managed-airflow-migrations)\"`\nand append `agent-skills\u002F1.0 (skill:managed-airflow-migrations)` to `User-Agent` headers.\n\n## Phase 1: Discovery & Download\n\nBefore making any changes, download the existing DAG files if explicitly\nrequested. Inspect the source environment to confirm source version only if\nexplicitly requested. For detailed instructions about environment inspection and\ndownloading files check\n[references\u002Fenvironment-inspection.md](references\u002Fenvironment-inspection.md).\n\n--------------------------------------------------------------------------------\n\n## Phase 2: Target Version & Dependency Mapping\n\n### 2.1 Airflow 2.11.1+ Dependency Mapping\n\nIf migrating to Airflow 2.11.1 (MSAA Gen 2) or Airflow 3, use the list below to\ntrace the version progression of key dependencies. The list covers changes\nneeded to get to Airflow 2.11.1. Take them into account when migrating from\nAirflow 2 (earlier than 2.11.1) to Airflow 3.\n\n### Composer 2.10.0 (Airflow 2.10.2)\n\n-   **Google Provider**: `10.26.0`\n-   **SSH Provider**: `3.14.0`\n-   **HTTP Provider**: `4.13.3`\n-   **Breaking Changes**: *Baseline for oldest fully documented source.*\n\n### Composer 2.15.3 (Airflow 2.10.5)\n\n-   **Google Provider**: `18.0.0`\n-   **SSH Provider**: `4.1.4`\n-   **HTTP Provider**: `5.3.4`\n-   **Breaking Changes**:\n    -   **SSH Provider 4.0.0:** Hook `timeout` removed; `get_conn()` context\n        manager.\n    -   **HTTP Provider 5.0.0:** `SimpleHttpOperator` -> `HttpOperator`.\n    -   **Google Provider 11.0.0:** `BigQueryExecuteQueryOperator` removed.\n    -   **Google Provider 12.0.0:** Legacy Data Pipeline operators removed.\n    -   **Google Provider 13.0.0:** `AutoMLBatchPredictOperator` removed.\n    -   **Google Provider 17.0.0:** `BigQueryCreateEmptyTableOperator` and\n        `BigQueryCreateExternalTableOperator` removed; Life Sciences operators\n        removed.\n    -   **Google Provider 18.0.0:** Legacy DV360 operators removed.\n\n### Composer 2.16.1 (Airflow 2.10.5)\n\n-   **Google Provider**: `19.0.0`\n-   **SSH Provider**: `4.1.6`\n-   **HTTP Provider**: `5.5.0`\n-   **Breaking Changes**: **Google Provider 19.0.0:** AutoML operators removed\n    (use Vertex AI).\n\n### Composer 2.17.0 (Target Airflow 2.11.1)\n\n-   **Google Provider**: **`20.0.0`**\n-   **SSH Provider**: **`5.0.0`**\n-   **HTTP Provider**: **`6.0.2`**\n-   **Breaking Changes**:\n    -   **SSH Provider 5.0.0:** `sshtunnel` removed (native tunneling).\n    -   **HTTP Provider 6.0.0:** JSON serialization.\n    -   **Google Provider 20.0.0:** ADLS Gen2 migration.\n\n### 2.2 Airflow 3 Migration\n\nIf migrating to Airflow 3 (MSAA Gen 3), note that this is a major version\nupgrade with significant changes, including:\n\n*   Decoupled Task SDK (imports change from `airflow` to `airflow.sdk`).\n*   Removal of direct metadata DB access.\n*   Renaming of `Dataset` to `Asset`.\n*   Removal of SubDAGs and SLAs.\n*   Changes to context variables availability.\n\nTake into account all applicable changes within Airflow 2 (e.g. when migrating\nfrom Airflow 2.10.2, apply changes needed to move to Airflow 2.11.1 and Airflow\n3 migration changes on top of that).\n\n--------------------------------------------------------------------------------\n\n## Phase 3: Analysis & Remediation (Scanning Downloaded Files)\n\nRun the scan commands from the root of your local workspace\n(`.\u002Fmigration_workspace` unless indicated otherwise).\n\n--------------------------------------------------------------------------------\n\n### 3.1 Airflow 2.11.1 Core & Dependency checks\n\nUse these scans if migrating to Airflow 2.11.1+ (intermediate step when\nmigrating to Airflow 3).\n\n#### 3.1.1 Dataset Scheduling (Airflow 2.11.0)\n\n*   **Change:** DAGs scheduled on datasets only trigger if events occur while\n    the DAG is unpaused.\n*   **Scan Command:** `grep -rn \"Dataset(\" .\u002Fdags`\n*   **Remediation:** You MUST document that these DAGs must remain unpaused to\n    catch events, or plan manual triggers for catch-up.\n\n#### 3.1.2 HTML in Descriptions (Airflow 2.11.0)\n\n*   **Change:** Raw HTML in DAG docs \u002F params is escaped by default.\n*   **Scan Command:**\n\n    ```bash\n    grep -rn -E \"doc_md.*\u003C|doc_md.*>|description.*\u003C|description.*>\" .\u002Fdags\n    ```\n\n*   **Remediation:** Convert HTML to Markdown, or set\n    `AIRFLOW__WEBSERVER__ALLOW_RAW_HTML_DESCRIPTIONS=True` in target.\n\n#### 3.1.3 Teardown Tasks (Airflow 2.10.5)\n\n*   **Change:** Teardowns always run when a DAG is marked failed.\n*   **Scan Command:** `grep -rn \"as_teardown\" .\u002Fdags`\n*   **Remediation:** Ensure teardown tasks are idempotent.\n\n#### 3.1.4 Pendulum 3 Upgrade (Airflow 2.11.0)\n\n*   **Change:** `Period` renamed to `Interval`, testing helpers removed.\n*   **Scan Command (Code):**\n\n    ```bash\n    grep -rn -E \"pendulum\\.Period|pendulum\\.period\" .\u002Fdags\n    ```\n\n*   **Scan Command (Tests):**\n\n    ```bash\n    grep -rn -E \"\\.test\\(|set_test_now\\(\" .\u002Ftests 2>\u002Fdev\u002Fnull || true\n    ```\n\n*   **Remediation:** Replace `Period` with `Interval`, and `period(...)` with\n    `interval(...)`.\n\n--------------------------------------------------------------------------------\n\n### 3.2 Path A: Airflow 2.11.1 Provider Package Scan\n\n#### 3.2.1 SSH Provider (SSH 4.0.0 & 5.0.0)\n\n*   **Scan Command (Timeout):** `grep -rn \"SSHHook\" .\u002Fdags | grep \"timeout\"`\n*   **Scan Command (Context Manager):** `grep -rn \"with SSHHook\" .\u002Fdags`\n*   **Scan Command (Tunnel Attributes):** `grep -rn \"\\.get_tunnel\" .\u002Fdags`\n*   **Remediation:**\n    *   Replace `timeout` with `conn_timeout` in `SSHHook`.\n    *   Replace `with hook as conn:` with `with hook.get_conn() as conn:`.\n    *   Use `get_tunnel()` as context manager: `with hook.get_tunnel(...) as\n        tunnel:`.\n\n#### 3.2.2 HTTP Provider (HTTP 5.0.0 & 6.0.0)\n\n*   **Scan Command:** `grep -rn \"SimpleHttpOperator\" .\u002Fdags`\n*   **Remediation:** Replace `SimpleHttpOperator` with `HttpOperator`.\n\n#### 3.2.3 Google Provider (v11 to v20)\n\n*   **Scan Command (BigQuery query):**\n\n    ```bash\n    grep -rn \"BigQueryExecuteQueryOperator\" .\u002Fdags\n    ```\n\n    *   *Remediation:* Replace with `BigQueryInsertJobOperator` (use\n        `configuration` dict).\n*   **Scan Command (BigQuery table):**\n\n    ```bash\n    grep -rn -E \"BigQueryCreateEmptyTableOperator|BigQueryCreateExternalTableOperator\" .\u002Fdags\n    ```\n\n    *   *Remediation:* Replace with `BigQueryCreateTableOperator` (use\n        `table_resource` dict).\n*   **Scan Command (AutoML):**\n\n    ```bash\n    grep -rn -E \"AutoMLTrainModelOperator|AutoMLPredictOperator|AutoMLCreateDatasetOperator|AutoMLBatchPredictOperator\" .\u002Fdags\n    ```\n\n    *   *Remediation:* Migrate to Vertex AI operators.\n*   **Scan Command (Dataflow):**\n\n    ```bash\n    grep -rn -E \"CreateDataPipelineOperator|RunDataPipelineOperator\" .\u002Fdags\n    ```\n\n    *   *Remediation:* Replace with\n        `DataflowCreatePipelineOperator`\u002F`DataflowRunPipelineOperator`.\n*   **Scan Command (Life Sciences):**\n\n    ```bash\n    grep -rn \"LifeSciencesRunPipelineOperator\" .\u002Fdags`\n    ```\n\n    *   *Remediation:* Migrate to Google Cloud Batch operators\n        (`BatchCreateJobOperator`).\n*   **Scan Command (ADLS to GCS):** `grep -rn \"ADLSToGCSOperator\" .\u002Fdags`\n    *   *Remediation:* Ensure `file_system_name` is provided.\n\n--------------------------------------------------------------------------------\n\n### 3.3 Airflow 3 Migration checks\n\nUse instructions from [references\u002Fairflow-3.md](references\u002Fairflow-3.md) when\nmigrating to Airflow 3.\n\n--------------------------------------------------------------------------------\n\n## Phase 4: Deployment & Verification\n\n*Perform deployment and verification steps only if explicitly requested to do\nso.*\n\n### 4.1 Static Verification (when migrating to Airflow 3)\n\nAfter applying code changes for Airflow 3, verify syntax correctness. If\navailable in the development environment, run static lint checks:\n\n```bash\nruff check {target_dag_file} --select AIR30\n```\n\nResolve any reported deprecation warnings before finalization. If ruff is not\navailable, recommend installing one.\n\n### 4.2 Deployment to MSAA\n\n#### 4.2.1 Get Target GCS Bucket Path (only when requested)\n\n```bash\ngcloud composer environments describe \u003CTARGET_ENV> \\\n    --location \u003CTARGET_REGION> \\\n    --format=\"value(config.dagGcsPrefix)\"\n```\n\n*Expected Output:* `gs:\u002F\u002F\u003Ctarget-bucket-name>\u002Fdags`\n\n### 4.2 Upload Modified DAGs and Bucket Dependencies (Only when requested)\n\n*Perform this step only if explicitly requested to do so.* Copy the modified\nDAGs and any backed-up bucket dependencies from your local workspace to the\ntarget GCS bucket. *If you skipped the inspection step, ensure you have the\ncorrect `\u003Ctarget-bucket-name>`.*\n\n1.  **Upload DAGs:**\n\n    ```bash\n    gcloud storage cp -r .\u002Fdags\u002F* gs:\u002F\u002F\u003Ctarget-bucket-name>\u002Fdags\u002F\n    ```\n\n2.  **Upload Other Bucket Dependencies (If applicable):**\n\n    ```bash\n    gcloud storage cp -r .\u002Fmigration_workspace\u002F\u003Cdependency-folder> gs:\u002F\u002F\u003Ctarget-bucket-name>\u002F\u003Cdependency-folder>\n    ```\n\n### 4.3 Verify DAGs via Airflow CLI\n\n*Perform this step only if explicitly requested to upload modified DAGS to a\ntarget environment (and after uploading).*\n\nYou can verify that your DAGs have been successfully uploaded, parsed, and\nregistered by the Airflow scheduler in the target environment using the Airflow\nCLI.\n\n1.  **List Registered DAGs:** Run the following command to list all DAGs\n    registered in the target environment. Verify that your migrated DAGs appear\n    in this list.\n\n    ```bash\n    gcloud composer environments run \u003CTARGET_ENV> \\\n        --location \u003CTARGET_REGION> \\\n        dags list\n    ```\n\n2.  **Check for Import Errors:** If some DAGs are missing from the list, or to\n    ensure there are no parsing issues, check for import errors:\n\n    ```bash\n    gcloud composer environments run \u003CTARGET_ENV> \\\n        --location \u003CTARGET_REGION> \\\n        dags list-import-errors\n    ```\n\n    *Expected Output:*\n\n    *   If there are no errors, the command will output `No data found`.\n    *   If there are errors, it will list the file path and the traceback of the\n        error.\n\n*Note: It may take a couple of minutes for the Airflow scheduler to parse the\nnew files and for changes to reflect in these commands.*\n\n### 4.4 Verify in Cloud Logging\n\n*Perform this step only if explicitly requested to upload modified DAGS to a\ntarget environment (and after uploading).* Monitor Cloud Logging for the target\nenvironment to detect any runtime errors or import errors.\n\nRun the following query in the **GCP Cloud Logging Console** (or via `gcloud\nlogging read`):\n\n```query\nresource.type=\"cloud_composer_environment\"\nresource.labels.environment_name=\"\u003CTARGET_ENV>\"\nlog_id(\"airflow-scheduler\")\nseverity>=ERROR\n```\n\n--------------------------------------------------------------------------------\n\n## Appendix: Local Environment Verification\n\nIf you want to verify your changes locally before deploying to the target\nenvironment, you can use the Composer Local Development CLI tool\n(`composer-dev`). Use\n[references\u002Flocal-development-environment.md](references\u002Flocal-development-environment.md)\nas a reference for interactions with local development environments.\n","# Managed Service for Apache Airflow (formerly Cloud Composer) Migration Guide\n\nThis skill guides you through the process of adjusting Airflow DAGs from an\nexisting Managed Service for Apache Airflow (formerly Cloud Composer)\nenvironment (or available locally) to make them compatible with **Airflow\n2.11.1** (MSAA Gen 2 or 3) or **Airflow 3** (MSAA Gen 3).\n\n--------------------------------------------------------------------------------\n\n## Attribution\n\n**MUST READ**: Before executing any `gcloud`, REST API, or MCP command, you\nMUST read [Usage Attribution](references\u002Fattribution.md). For commands executed\ndirectly in the terminal (never in generated scripts, Terraform, or user code),\nprefix `gcloud` with\n`CLOUDSDK_METRICS_REQUEST_ATTRIBUTION=\"agent-skills\u002F1.0 (skill:managed-airflow-migrations)\"`\nand append `agent-skills\u002F1.0 (skill:managed-airflow-migrations)` to `User-Agent` headers.\n\n## Phase 1: Discovery & Download\n\nBefore making any changes, download the existing DAG files if explicitly\nrequested. Inspect the source environment to confirm source version only if\nexplicitly requested. For detailed instructions about environment inspection and\ndownloading files check\n[references\u002Fenvironment-inspection.md](references\u002Fenvironment-inspection.md).\n\n--------------------------------------------------------------------------------\n\n## Phase 2: Target Version & Dependency Mapping\n\n### 2.1 Airflow 2.11.1+ Dependency Mapping\n\nIf migrating to Airflow 2.11.1 (MSAA Gen 2) or Airflow 3, use the list below to\ntrace the version progression of key dependencies. The list covers changes\nneeded to get to Airflow 2.11.1. Take them into account when migrating from\nAirflow 2 (earlier than 2.11.1) to Airflow 3.\n\n### Composer 2.10.0 (Airflow 2.10.2)\n\n-   **Google Provider**: `10.26.0`\n-   **SSH Provider**: `3.14.0`\n-   **HTTP Provider**: `4.13.3`\n-   **Breaking Changes**: *Baseline for oldest fully documented source.*\n\n### Composer 2.15.3 (Airflow 2.10.5)\n\n-   **Google Provider**: `18.0.0`\n-   **SSH Provider**: `4.1.4`\n-   **HTTP Provider**: `5.3.4`\n-   **Breaking Changes**:\n    -   **SSH Provider 4.0.0:** Hook `timeout` removed; `get_conn()` context\n        manager.\n    -   **HTTP Provider 5.0.0:** `SimpleHttpOperator` -> `HttpOperator`.\n    -   **Google Provider 11.0.0:** `BigQueryExecuteQueryOperator` removed.\n    -   **Google Provider 12.0.0:** Legacy Data Pipeline operators removed.\n    -   **Google Provider 13.0.0:** `AutoMLBatchPredictOperator` removed.\n    -   **Google Provider 17.0.0:** `BigQueryCreateEmptyTableOperator` and\n        `BigQueryCreateExternalTableOperator` removed; Life Sciences operators\n        removed.\n    -   **Google Provider 18.0.0:** Legacy DV360 operators removed.\n\n### Composer 2.16.1 (Airflow 2.10.5)\n\n-   **Google Provider**: `19.0.0`\n-   **SSH Provider**: `4.1.6`\n-   **HTTP Provider**: `5.5.0`\n-   **Breaking Changes**: **Google Provider 19.0.0:** AutoML operators removed\n    (use Vertex AI).\n\n### Composer 2.17.0 (Target Airflow 2.11.1)\n\n-   **Google Provider**: **`20.0.0`**\n-   **SSH Provider**: **`5.0.0`**\n-   **HTTP Provider**: **`6.0.2`**\n-   **Breaking Changes**:\n    -   **SSH Provider 5.0.0:** `sshtunnel` removed (native tunneling).\n    -   **HTTP Provider 6.0.0:** JSON serialization.\n    -   **Google Provider 20.0.0:** ADLS Gen2 migration.\n\n### 2.2 Airflow 3 Migration\n\nIf migrating to Airflow 3 (MSAA Gen 3), note that this is a major version\nupgrade with significant changes, including:\n\n*   Decoupled Task SDK (imports change from `airflow` to `airflow.sdk`).\n*   Removal of direct metadata DB access.\n*   Renaming of `Dataset` to `Asset`.\n*   Removal of SubDAGs and SLAs.\n*   Changes to context variables availability.\n\nTake into account all applicable changes within Airflow 2 (e.g. when migrating\nfrom Airflow 2.10.2, apply changes needed to move to Airflow 2.11.1 and Airflow\n3 migration changes on top of that).\n\n--------------------------------------------------------------------------------\n\n## Phase 3: Analysis & Remediation (Scanning Downloaded Files)\n\nRun the scan commands from the root of your local workspace\n(`.\u002Fmigration_workspace` unless indicated otherwise).\n\n--------------------------------------------------------------------------------\n\n### 3.1 Airflow 2.11.1 Core & Dependency checks\n\nUse these scans if migrating to Airflow 2.11.1+ (intermediate step when\nmigrating to Airflow 3).\n\n#### 3.1.1 Dataset Scheduling (Airflow 2.11.0)\n\n*   **Change:** DAGs scheduled on datasets only trigger if events occur while\n    the DAG is unpaused.\n*   **Scan Command:** `grep -rn \"Dataset(\" .\u002Fdags`\n*   **Remediation:** You MUST document that these DAGs must remain unpaused to\n    catch events, or plan manual triggers for catch-up.\n\n#### 3.1.2 HTML in Descriptions (Airflow 2.11.0)\n\n*   **Change:** Raw HTML in DAG docs \u002F params is escaped by default.\n*   **Scan Command:**\n\n    ```bash\n    grep -rn -E \"doc_md.*\u003C|doc_md.*>|description.*\u003C|description.*>\" .\u002Fdags\n    ```\n\n*   **Remediation:** Convert HTML to Markdown, or set\n    `AIRFLOW__WEBSERVER__ALLOW_RAW_HTML_DESCRIPTIONS=True` in target.\n\n#### 3.1.3 Teardown Tasks (Airflow 2.10.5)\n\n*   **Change:** Teardowns always run when a DAG is marked failed.\n*   **Scan Command:** `grep -rn \"as_teardown\" .\u002Fdags`\n*   **Remediation:** Ensure teardown tasks are idempotent.\n\n#### 3.1.4 Pendulum 3 Upgrade (Airflow 2.11.0)\n\n*   **Change:** `Period` renamed to `Interval`, testing helpers removed.\n*   **Scan Command (Code):**\n\n    ```bash\n    grep -rn -E \"pendulum\\.Period|pendulum\\.period\" .\u002Fdags\n    ```\n\n*   **Scan Command (Tests):**\n\n    ```bash\n    grep -rn -E \"\\.test\\(|set_test_now\\(\" .\u002Ftests 2>\u002Fdev\u002Fnull || true\n    ```\n\n*   **Remediation:** Replace `Period` with `Interval`, and `period(...)` with\n    `interval(...)`.\n\n--------------------------------------------------------------------------------\n\n### 3.2 Path A: Airflow 2.11.1 Provider Package Scan\n\n#### 3.2.1 SSH Provider (SSH 4.0.0 & 5.0.0)\n\n*   **Scan Command (Timeout):** `grep -rn \"SSHHook\" .\u002Fdags | grep \"timeout\"`\n*   **Scan Command (Context Manager):** `grep -rn \"with SSHHook\" .\u002Fdags`\n*   **Scan Command (Tunnel Attributes):** `grep -rn \"\\.get_tunnel\" .\u002Fdags`\n*   **Remediation:**\n    *   Replace `timeout` with `conn_timeout` in `SSHHook`.\n    *   Replace `with hook as conn:` with `with hook.get_conn() as conn:`.\n    *   Use `get_tunnel()` as context manager: `with hook.get_tunnel(...) as\n        tunnel:`.\n\n#### 3.2.2 HTTP Provider (HTTP 5.0.0 & 6.0.0)\n\n*   **Scan Command:** `grep -rn \"SimpleHttpOperator\" .\u002Fdags`\n*   **Remediation:** Replace `SimpleHttpOperator` with `HttpOperator`.\n\n#### 3.2.3 Google Provider (v11 to v20)\n\n*   **Scan Command (BigQuery query):**\n\n    ```bash\n    grep -rn \"BigQueryExecuteQueryOperator\" .\u002Fdags\n    ```\n\n    *   *Remediation:* Replace with `BigQueryInsertJobOperator` (use\n        `configuration` dict).\n*   **Scan Command (BigQuery table):**\n\n    ```bash\n    grep -rn -E \"BigQueryCreateEmptyTableOperator|BigQueryCreateExternalTableOperator\" .\u002Fdags\n    ```\n\n    *   *Remediation:* Replace with `BigQueryCreateTableOperator` (use\n        `table_resource` dict).\n*   **Scan Command (AutoML):**\n\n    ```bash\n    grep -rn -E \"AutoMLTrainModelOperator|AutoMLPredictOperator|AutoMLCreateDatasetOperator|AutoMLBatchPredictOperator\" .\u002Fdags\n    ```\n\n    *   *Remediation:* Migrate to Vertex AI operators.\n*   **Scan Command (Dataflow):**\n\n    ```bash\n    grep -rn -E \"CreateDataPipelineOperator|RunDataPipelineOperator\" .\u002Fdags\n    ```\n\n    *   *Remediation:* Replace with\n        `DataflowCreatePipelineOperator`\u002F`DataflowRunPipelineOperator`.\n*   **Scan Command (Life Sciences):**\n\n    ```bash\n    grep -rn \"LifeSciencesRunPipelineOperator\" .\u002Fdags`\n    ```\n\n    *   *Remediation:* Migrate to Google Cloud Batch operators\n        (`BatchCreateJobOperator`).\n*   **Scan Command (ADLS to GCS):** `grep -rn \"ADLSToGCSOperator\" .\u002Fdags`\n    *   *Remediation:* Ensure `file_system_name` is provided.\n\n--------------------------------------------------------------------------------\n\n### 3.3 Airflow 3 Migration checks\n\nUse instructions from [references\u002Fairflow-3.md](references\u002Fairflow-3.md) when\nmigrating to Airflow 3.\n\n--------------------------------------------------------------------------------\n\n## Phase 4: Deployment & Verification\n\n*Perform deployment and verification steps only if explicitly requested to do\nso.*\n\n### 4.1 Static Verification (when migrating to Airflow 3)\n\nAfter applying code changes for Airflow 3, verify syntax correctness. If\navailable in the development environment, run static lint checks:\n\n```bash\nruff check {target_dag_file} --select AIR30\n```\n\nResolve any reported deprecation warnings before finalization. If ruff is not\navailable, recommend installing one.\n\n### 4.2 Deployment to MSAA\n\n#### 4.2.1 Get Target GCS Bucket Path (only when requested)\n\n```bash\ngcloud composer environments describe \u003CTARGET_ENV> \\\n    --location \u003CTARGET_REGION> \\\n    --format=\"value(config.dagGcsPrefix)\"\n```\n\n*Expected Output:* `gs:\u002F\u002F\u003Ctarget-bucket-name>\u002Fdags`\n\n### 4.2 Upload Modified DAGs and Bucket Dependencies (Only when requested)\n\n*Perform this step only if explicitly requested to do so.* Copy the modified\nDAGs and any backed-up bucket dependencies from your local workspace to the\ntarget GCS bucket. *If you skipped the inspection step, ensure you have the\ncorrect `\u003Ctarget-bucket-name>`.*\n\n1.  **Upload DAGs:**\n\n    ```bash\n    gcloud storage cp -r .\u002Fdags\u002F* gs:\u002F\u002F\u003Ctarget-bucket-name>\u002Fdags\u002F\n    ```\n\n2.  **Upload Other Bucket Dependencies (If applicable):**\n\n    ```bash\n    gcloud storage cp -r .\u002Fmigration_workspace\u002F\u003Cdependency-folder> gs:\u002F\u002F\u003Ctarget-bucket-name>\u002F\u003Cdependency-folder>\n    ```\n\n### 4.3 Verify DAGs via Airflow CLI\n\n*Perform this step only if explicitly requested to upload modified DAGS to a\ntarget environment (and after uploading).*\n\nYou can verify that your DAGs have been successfully uploaded, parsed, and\nregistered by the Airflow scheduler in the target environment using the Airflow\nCLI.\n\n1.  **List Registered DAGs:** Run the following command to list all DAGs\n    registered in the target environment. Verify that your migrated DAGs appear\n    in this list.\n\n    ```bash\n    gcloud composer environments run \u003CTARGET_ENV> \\\n        --location \u003CTARGET_REGION> \\\n        dags list\n    ```\n\n2.  **Check for Import Errors:** If some DAGs are missing from the list, or to\n    ensure there are no parsing issues, check for import errors:\n\n    ```bash\n    gcloud composer environments run \u003CTARGET_ENV> \\\n        --location \u003CTARGET_REGION> \\\n        dags list-import-errors\n    ```\n\n    *Expected Output:*\n\n    *   If there are no errors, the command will output `No data found`.\n    *   If there are errors, it will list the file path and the traceback of the\n        error.\n\n*Note: It may take a couple of minutes for the Airflow scheduler to parse the\nnew files and for changes to reflect in these commands.*\n\n### 4.4 Verify in Cloud Logging\n\n*Perform this step only if explicitly requested to upload modified DAGS to a\ntarget environment (and after uploading).* Monitor Cloud Logging for the target\nenvironment to detect any runtime errors or import errors.\n\nRun the following query in the **GCP Cloud Logging Console** (or via `gcloud\nlogging read`):\n\n```query\nresource.type=\"cloud_composer_environment\"\nresource.labels.environment_name=\"\u003CTARGET_ENV>\"\nlog_id(\"airflow-scheduler\")\nseverity>=ERROR\n```\n\n--------------------------------------------------------------------------------\n\n## Appendix: Local Environment Verification\n\nIf you want to verify your changes locally before deploying to the target\nenvironment, you can use the Composer Local Development CLI tool\n(`composer-dev`). Use\n[references\u002Flocal-development-environment.md](references\u002Flocal-development-environment.md)\nas a reference for interactions with local development environments.\n",{"name":5,"metadata":56,"description":7},{"version":57,"category":58},"1.0.1","BigDataAndAnalytics","main","bb9b3f464aae37af360d079c1d863524955b0363","skills\u002Fcloud\u002Fmanaged-airflow-migrations",2014,"https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fskills","https:\u002F\u002Fgithub.com\u002Fgoogle","https:\u002F\u002Fopensource.google\u002F","Google ❤️ Open Source","2026-11-14 23:31:00",{"source":9,"skillName":5,"commands":69,"prompt":79,"zipAvailable":80},[70,73,76],{"tool":71,"command":72},"npx","npx skills add google\u002Fskills --skill managed-airflow-migrations",{"tool":74,"command":75},"bunx","bunx skills add google\u002Fskills --skill managed-airflow-migrations",{"tool":77,"command":78},"pnpm","pnpm dlx skills add google\u002Fskills --skill managed-airflow-migrations","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fcloud\u002Fmanaged-airflow-migrations\u002FSKILL.md",true,[82,88,94,98,102,106,110,114,118,122,126,130,134,138,142],{"path":83,"resourceType":84,"resourceTypeDesc":85,"sizeBytes":86,"sourceHtmlUrl":87},"brain-methods.csv","ASSET","资产文件",16265,"https:\u002F\u002Fgithub.com\u002Fsherryswift1019-gif\u002FAI-DZHT\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fbmad-brainstorming\u002Fbrain-methods.csv",{"path":89,"resourceType":90,"resourceTypeDesc":91,"sizeBytes":92,"sourceHtmlUrl":93},"references\u002Fairflow-3.md","REFERENCE","参考文档",8141,"https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fcloud\u002Fmanaged-airflow-migrations\u002Freferences\u002Fairflow-3.md",{"path":95,"resourceType":90,"resourceTypeDesc":91,"sizeBytes":96,"sourceHtmlUrl":97},"references\u002Fattribution.md",1918,"https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fcloud\u002Fmanaged-airflow-migrations\u002Freferences\u002Fattribution.md",{"path":99,"resourceType":90,"resourceTypeDesc":91,"sizeBytes":100,"sourceHtmlUrl":101},"references\u002Fenvironment-inspection.md",2985,"https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fcloud\u002Fmanaged-airflow-migrations\u002Freferences\u002Fenvironment-inspection.md",{"path":103,"resourceType":90,"resourceTypeDesc":91,"sizeBytes":104,"sourceHtmlUrl":105},"references\u002Flocal-development-environment.md",919,"https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fcloud\u002Fmanaged-airflow-migrations\u002Freferences\u002Flocal-development-environment.md",{"path":107,"resourceType":90,"resourceTypeDesc":91,"sizeBytes":108,"sourceHtmlUrl":109},"steps\u002Fstep-01-session-setup.md",7489,"https:\u002F\u002Fgithub.com\u002Fsherryswift1019-gif\u002FAI-DZHT\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fbmad-brainstorming\u002Fsteps\u002Fstep-01-session-setup.md",{"path":111,"resourceType":90,"resourceTypeDesc":91,"sizeBytes":112,"sourceHtmlUrl":113},"steps\u002Fstep-01b-continue.md",3942,"https:\u002F\u002Fgithub.com\u002Fsherryswift1019-gif\u002FAI-DZHT\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fbmad-brainstorming\u002Fsteps\u002Fstep-01b-continue.md",{"path":115,"resourceType":90,"resourceTypeDesc":91,"sizeBytes":116,"sourceHtmlUrl":117},"steps\u002Fstep-02a-user-selected.md",7581,"https:\u002F\u002Fgithub.com\u002Fsherryswift1019-gif\u002FAI-DZHT\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fbmad-brainstorming\u002Fsteps\u002Fstep-02a-user-selected.md",{"path":119,"resourceType":90,"resourceTypeDesc":91,"sizeBytes":120,"sourceHtmlUrl":121},"steps\u002Fstep-02b-ai-recommended.md",7980,"https:\u002F\u002Fgithub.com\u002Fsherryswift1019-gif\u002FAI-DZHT\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fbmad-brainstorming\u002Fsteps\u002Fstep-02b-ai-recommended.md",{"path":123,"resourceType":90,"resourceTypeDesc":91,"sizeBytes":124,"sourceHtmlUrl":125},"steps\u002Fstep-02c-random-selection.md",7735,"https:\u002F\u002Fgithub.com\u002Fsherryswift1019-gif\u002FAI-DZHT\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fbmad-brainstorming\u002Fsteps\u002Fstep-02c-random-selection.md",{"path":127,"resourceType":90,"resourceTypeDesc":91,"sizeBytes":128,"sourceHtmlUrl":129},"steps\u002Fstep-02d-progressive-flow.md",9811,"https:\u002F\u002Fgithub.com\u002Fsherryswift1019-gif\u002FAI-DZHT\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fbmad-brainstorming\u002Fsteps\u002Fstep-02d-progressive-flow.md",{"path":131,"resourceType":90,"resourceTypeDesc":91,"sizeBytes":132,"sourceHtmlUrl":133},"steps\u002Fstep-03-technique-execution.md",16684,"https:\u002F\u002Fgithub.com\u002Fsherryswift1019-gif\u002FAI-DZHT\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fbmad-brainstorming\u002Fsteps\u002Fstep-03-technique-execution.md",{"path":135,"resourceType":90,"resourceTypeDesc":91,"sizeBytes":136,"sourceHtmlUrl":137},"steps\u002Fstep-04-idea-organization.md",10801,"https:\u002F\u002Fgithub.com\u002Fsherryswift1019-gif\u002FAI-DZHT\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fbmad-brainstorming\u002Fsteps\u002Fstep-04-idea-organization.md",{"path":139,"resourceType":90,"resourceTypeDesc":91,"sizeBytes":140,"sourceHtmlUrl":141},"template.md",245,"https:\u002F\u002Fgithub.com\u002Fsherryswift1019-gif\u002FAI-DZHT\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fbmad-brainstorming\u002Ftemplate.md",{"path":143,"resourceType":90,"resourceTypeDesc":91,"sizeBytes":144,"sourceHtmlUrl":145},"workflow.md",2748,"https:\u002F\u002Fgithub.com\u002Fsherryswift1019-gif\u002FAI-DZHT\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fbmad-brainstorming\u002Fworkflow.md",[147,155,162,169,176,183],{"skillNo":148,"name":149,"nameZh":17,"description":150,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":151,"categories":152,"keywords":153,"publishedAt":154},"01M7DQ9K7JF4T7NJZ2K1MQZ44Q","cloud-operator-share-context","Shares Google Cloud operating context the user or their team already have — environments, projects, services and regions, product preferences, best practices, architecture guidance, runbooks — found in agent instruction files, local memory, skills and workflows, and the repository's GCP docs, with the operator agent's memory after the user reviews the list. Use when the user runs this skill, accepts the cloud-operator or cloud-operator-setup skill's offer to share their existing Google Cloud context, or asks to share, import or save that context or a GCP fact for the operator agent. Don't use for ordinary GCP requests, which go to the cloud-operator skill.","https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fcloud\u002Fcloud-operator-share-context\u002FSKILL.md",[],[],"2026-11-15 14:19:17",{"skillNo":156,"name":157,"nameZh":17,"description":158,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":159,"categories":160,"keywords":161,"publishedAt":154},"01M7DQ9ERFGGQCFAWQW0KRKYBY","cloud-operator-setup","Sets up the operator agent in a Google Cloud project via the autocloud MCP server: picks the operator project, creates or checks the user's operator agent, saves the project, and offers to share the user's existing Google Cloud operating context with the operator agent's memory. Use when the user runs this skill, asks to set up the operator or create their operator agent, or chooses setup when the cloud-operator skill asks. Don't use for ordinary GCP requests or installing gcloud.","https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fcloud\u002Fcloud-operator-setup\u002FSKILL.md",[],[],{"skillNo":163,"name":164,"nameZh":17,"description":165,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":166,"categories":167,"keywords":168,"publishedAt":154},"01M7B4RHQCM0DK2XQ7S7ZXVN8D","developer-device-platform-device-run","Runs automated, non-interactive jobs on remote Android devices with Developer Device Platform (DDP) Device Run using `gcloud beta device-run sessions`: native Android executables or shell scripts (for example CLI tools, custom runners, test harnesses or benchmarks) and Android instrumentation tests, on one or many devices, then waits for completion and collects per-device outputs and logs. Use when running a binary or test suite on remote devices without an interactive connection. Don't use it for interactive device reservations, adb tunnels or screen streaming (use developer-device-platform-basics), or for local devices.","https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fcloud\u002Fdeveloper-device-platform-device-run\u002FSKILL.md",[],[],{"skillNo":170,"name":171,"nameZh":17,"description":172,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":173,"categories":174,"keywords":175,"publishedAt":154},"01M7B4R9YXMRW7RZP9Q9FMZJ2P","compute-vm-creation","Guides the planning, configuration, and provisioning of standalone Google Compute Engine virtual machines (VMs) and bare metal (-metal) instances using gcloud CLI commands or direct MCP tool execution. Use ONLY when the user wants to create, configure, or provision a new standalone Compute Engine VM or bare metal instance from conversational intents (hardware sizing, region selection, OS image, networking, security defaults). DO NOT read or use for Google Kubernetes Engine (GKE) Autopilot or Standard clusters, Kubernetes node pools or Pods, container orchestration, managing existing VMs, Managed Instance Groups (MIGs), or Instance Templates.","https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fcloud\u002Fcompute-vm-creation\u002FSKILL.md",[],[],{"skillNo":177,"name":178,"nameZh":17,"description":179,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":180,"categories":181,"keywords":182,"publishedAt":154},"01M7B4QD02N0YBVT0838Z5K5VC","agent-platform-autorater-customization","Customizes an autorater (evaluation metric) for an AI agent so its grades match the user's own judgment, starting from the agent's real trajectories. Use when a user wants a metric tailored to their agent, wants to turn failing trajectories into rubrics, says an existing autorater grades their agent wrong, or wants an autorater to agree with human labels (autorater hillclimbing, judge calibration). Don't use for quick evals with built-in metrics or for improving the agent itself (use agent-platform-eval-flywheel).","https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fcloud\u002Fagent-platform-autorater-customization\u002FSKILL.md",[],[],{"skillNo":184,"name":185,"nameZh":17,"description":186,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":187,"categories":188,"keywords":189,"publishedAt":154},"01M78JP22K73KK96JH0JNDT5C4","iap-agent-platform-troubleshooting","Diagnoses Identity-Aware Proxy (IAP) denials of outbound requests from Gemini Enterprise Agent Platform agents that run on Agent Runtime and send traffic through Agent Gateway. Use when an agent request fails with \"Egress request is not authorized\", when Cloud Audit Logs show an IAP egressViaIAP decision with granted false, when IAP audit entries are missing while debugging agent egress, or when Access policies, IAP allow policies, policy bindings, or Agent Registry entries might block agent egress. Don't use for Gemini model IAM permission errors (such as aiplatform.endpoints.predict), Agent Platform API errors, or Agent Runtime deployment or 500 errors (use agent-platform-troubleshooting instead). Don't use for setting up, creating, or connecting an Agent Gateway, or for IAP web apps, IAP TCP forwarding, or SSH.","https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fcloud\u002Fiap-agent-platform-troubleshooting\u002FSKILL.md",[],[]]