gcp-managed-airflow-dag-authoring

Author and validate Apache Airflow DAGs for Google Cloud Managed Service for Apache Airflow environments.

Updated Aug 11, 2026
One-click install
npx skills add https://github.com/Yashyasik/zexca-api --skill gcp-managed-airflow-dag-authoring-yashyasik
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: gcp-managed-airflow-dag-authoring
Source: https://github.com/Yashyasik/zexca-api/tree/main/.gemini/skills/gcp-managed-airflow-dag-authoring
Command: npx skills add https://github.com/Yashyasik/zexca-api --skill gcp-managed-airflow-dag-authoring-yashyasik

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Writing Airflow DAGs for Google Cloud's Managed Service for Apache Airflow (formerly Cloud Composer) requires matching the target environment's Airflow version, installed packages, and deployment constraints, and unvalidated DAGs often fail with import errors after deployment. ## Core Features & Use Cases - Environment Context Discovery: Inspect the target Composer environment with gcloud to determine the Airflow image version, installed PyPI packages, and DAGs GCS bucket before writing code. - Authoring Best Practices: Enforce idempotent tasks, no top-level code execution, explicit catchup settings, and Airflow Variables/Connections instead of hardcoded credentials, with Airflow 2 vs 3 compatibility guidance. - Local and Remote Validation: Lint with ruff, verify parsing via composer-dev, deploy to the GCS bucket, and confirm no import errors through the Airflow CLI and Cloud Logging. - Use Case: When asked to create a new scheduled data pipeline DAG, the skill discovers the target environment runs Airflow 2, writes compatible DAG code, and validates it parses without import errors before finishing. ## Quick Start Ask the AI to create and validate an Airflow DAG for your Cloud Composer environment, providing the environment name and region.

Frequently Asked Questions about gcp-managed-airflow-dag-authoring

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create an Airflow DAG for Google Cloud Composer?▼

First inspect the target Composer environment with gcloud to get the Airflow image version and installed packages, then write the DAG following best practices like idempotency and no top-level code execution. Finally validate it locally or by deploying to the environment's GCS bucket.

How do I check Airflow DAG import errors in Cloud Composer?▼

Run gcloud composer environments run with the dags list-import-errors command against your environment after uploading the DAG to its GCS bucket. A passing result shows no data found, and you can also check Cloud Logging for scheduler errors.

Does Cloud Composer support both Airflow 2 and Airflow 3?▼

Managed Service for Apache Airflow environments run specific Airflow versions determined by their image version, which you can discover with gcloud composer environments describe. DAG code must be adjusted to match the target version's compatibility requirements.

How do I test Airflow DAGs locally before deploying to Composer?▼

Use the composer-dev CLI to run a local development environment, copy the DAG into its DAGs directory, and run dags list-import-errors to verify parsing. You can also lint the file with ruff or pylint for static analysis.

Why does my Airflow DAG slow down the Composer scheduler?▼

Top-level code execution such as database queries or API calls outside tasks runs on every DAG parse cycle and degrades performance. Move such logic inside tasks and access variables via Jinja templates instead of Variable.get at parse time.