gcp-managed-airflow-dag-authoring

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

Updated Aug 16, 2026
One-click install
npx skills add https://github.com/1919114514yasenpai-maker/focus-quest --skill gcp-managed-airflow-dag-authoring-1919114514yasenpai-maker
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: gcp-managed-airflow-dag-authoring
Source: https://github.com/1919114514yasenpai-maker/focus-quest/tree/main/.gemini/skills/gcp-managed-airflow-dag-authoring
Command: npx skills add https://github.com/1919114514yasenpai-maker/focus-quest --skill gcp-managed-airflow-dag-authoring-1919114514yasenpai-maker

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 configuration, and unvalidated DAGs often fail with import errors only after deployment. This Skill guides environment discovery, version-aware authoring, and local and remote validation so DAGs parse correctly before and after deployment. ## Core Features & Use Cases - Environment Context Discovery: Uses gcloud commands to inspect the target environment's Airflow image version, installed PyPI packages, and DAGs GCS bucket before writing code. - Best-Practice Authoring: Enforces 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: Runs ruff or pylint linting, composer-dev local parsing checks, GCS deployment, and Airflow CLI import-error verification plus Cloud Logging monitoring. - Use Case: When asked to create a new scheduled data pipeline DAG for a Cloud Composer environment, the Skill first discovers the environment's Airflow version, writes compatible DAG code, then deploys it to the DAGs bucket and confirms zero import errors. ## Quick Start Ask the assistant to create and validate a new Airflow DAG for your Managed Airflow environment, providing the environment name and region if available.

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 environment with gcloud composer environments describe to get the Airflow image version, installed PyPI packages, and DAGs GCS bucket. Then write the DAG following best practices like idempotency and no top-level code execution, and validate it before deployment.

How do I validate an Airflow DAG before deploying to Cloud Composer?▼

Run ruff or pylint for static analysis, then use composer-dev to copy the DAG into a local environment and run dags list-import-errors to verify parsing. For remote validation, upload to the GCS DAGs bucket and check import errors via gcloud composer environments run.

What is the difference between Airflow 2 and Airflow 3 for DAG authoring?▼

Airflow 2 and 3 differ in imports, operators, and configuration, so DAG code must match the target environment's version. This Skill checks the environment's image version first and references a migration guide to adjust code for the specific Airflow version.

Why does my Airflow DAG show import errors after deployment?▼

Import errors usually come from missing PyPI packages, Airflow version incompatibilities, or top-level code that fails during parsing. Check errors with gcloud composer environments run dags list-import-errors and monitor the airflow-scheduler logs in Cloud Logging.

When should I not use this Airflow DAG authoring skill?▼

Do not use it when writing general Python code unrelated to Airflow DAGs. It is scoped specifically to authoring and validating DAGs for Managed Service for Apache Airflow environments, not general-purpose Python development.