/dak:gcp-managed-airflow-dag-authoringfrom dak
Guides authoring and validation of Apache Airflow DAGs for GCP Managed Service for Apache Airflow (MSAA/Cloud Composer). Covers environment discovery, Airflow 2 vs 3 compatibility, best practices, and local/remote validation.
Ships in dak. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
This skill guides you through authoring and validating Apache Airflow DAGs for Managed Service for Apache Airflow (MSAA; formerly Cloud Composer) environments.
[!IMPORTANT]
Before writing any DAG code, you MUST understand the constraints (e.g. version of Airflow) and capabilities of your target environment if user is willing to provide them.
Determine if you have direct access to the target Managed Airflow environment, local development environment or if you are working offline (only changing local files without validation).
gcloud to inspect the
environment (see Section 1.3).Determine if a local development environment is available.
composer-dev CLI is installed.airflow is available.Run the following commands to discover version constraints:
Get Airflow/Image Version:
gcloud composer environments describe <ENV_NAME> \
--location <REGION> \
--format="value(config.softwareConfig.imageVersion)"
Get Installed Packages (Versions):
gcloud composer environments describe <ENV_NAME> \
--location <REGION> \
--format="value(config.softwareConfig.pypiPackages)"
Get DAGs GCS Bucket:
gcloud composer environments describe <ENV_NAME> \
--location <REGION> \
--format="value(config.dagGcsPrefix)"
catchup=False in the DAG definition
unless historical backfilling is explicitly required.Variable.get() (with
deserialize_json=True if applicable) and BaseHook.get_connection().
Access variables via Jinja templates (e.g., {{ var.value.my_var }}) to
avoid database calls during DAG parsing.Reference @skill:gcp-managed-airflow-migrations to navigate adjusting the code to specific target Airflow version.
[!IMPORTANT]
You MUST validate DAGs before concluding your task.
Use ruff or pylint if available.
ruff check path/to/dag.py
composer-dev)If the user has composer-dev configured:
Copy the DAG to the local directory with DAGs:
cp path/to/dag.py $(composer-dev describe <LOCAL_ENV> --format="value(dags_directory)")
Verify parsing:
composer-dev run-airflow-cmd <LOCAL_ENV> dags list-import-errors
Only perform these steps if you have GCP access and are authorized to deploy to a target environment.
Upload the DAG to the target environment's GCS bucket:
gcloud storage cp path/to/dag.py gs://<TARGET_BUCKET>/dags/
Wait 1-2 minutes for the scheduler to parse the file, then run:
Check for Import Errors:
gcloud composer environments run <ENV_NAME> \
--location <REGION> \
dags list-import-errors
Pass Criteria: Output should be "No data found" or empty.
Verify DAG is Listed:
gcloud composer environments run <ENV_NAME> \
--location <REGION> \
dags list | grep <DAG_ID>
Check for runtime parsing errors in Cloud Logging:
resource.type="cloud_composer_environment"
resource.labels.environment_name="<ENV_NAME>"
log_id("airflow-scheduler")
severity>=ERROR
textPayload:"<DAG_FILE_NAME>"
What SKILL.md sets; muted values are Claude Code's defaults
41 skills in this plugin
/accidental-data-loss-prevention**STOP AND VERIFY**: Before running any command or tool that results in irreversible data loss, you MUST obtain explicit user consent.
When in doubt, ask. It is better to wait for confirmation than to accidentally delete production data or critical project assets.
Use this for:
- SQL: DROP TABLE/VIEW/SCHEMA/DATABASE, TRUNCATE, or broad DELETE (missing WHERE or using 1=1).
- Cloud Storage: gsutil rm or gcloud storage rm targeting production data or critical buckets.
- Infrastructure: gcloud projects delete, deleting Spanner/BigQuery/Dataproc resources, deleting secrets, or KMS key destruction.
/bigquery-ai-mlLeverages BigQuery's built-in machine learning and GenAI capabilities for advanced data analytics. Use when you need to write SQL queries that perform time-series forecasting, predict values, detect outliers or anomalies, find key drivers, perform semantic search or vector search, classify text, calculate similarity, summarize content, translate language, evaluate models, filter by semantic conditions, measure the causal effect of an intervention, compute correlations between columns, generate descriptive statistics and table distribution profiles, detect change points or structural breaks, extract trend or seasonality components, or leverage generative AI capabilities in BigQuery. Do not use for general BigQuery dataset, table, or job management requests./bigquery-bigframesGenerates Python code using BigQuery DataFrames (BigFrames). Use by default for any Python data task involving BigQuery, including data processing, analysis, and machine learning. Don't use for SQL-first workflows or the google-cloud-bigquery client library — use bigquery-basics./bigquery-data-transfer-serviceDiscovers and inspects BigQuery Data Transfer Service (DTS) configurations. Use this to identify existing ingestion pipelines and extract datasource or transfer config metadata for data pipelines. Use when a user asks for ingestion scenarios while building or managing data pipelines or when a user asks to "ingest" or "add" data that may already be managed by a DTS transfer./bigquery-graph-authorProvides an end-to-end journey for authoring a BigQuery property graph from your tables or from a model document/diagram (an ER diagram, an ontology, a semantic model): dataset discovery, candidate relationships verified against the data, a readable plan, and `CREATE PROPERTY GRAPH` DDL with schema best practices and semantic measures/dimensions, plus an opt-in verification suite for the landed graph. Use when creating or replacing a property graph, authoring a graph from a dataset or a document, or verifying relationships or suspicious edge counts. Don't use for querying an existing graph, for non-BigQuery graph databases, or for drawing/rendering diagrams./bigquery-graph-queryProvides guidelines and best practices for querying BigQuery property graphs and semantic graphs: native GQL (Graph Query Language) pattern matching, multi-hop and variable-length paths, aggregation, top-N, path extraction, output formatting (graph visualization with TO_JSON vs tabular), GRAPH_TABLE relational SQL integration, and semantic graph querying via the GRAPH_EXPAND TVF with starting-node view selection and AGG() measures. Also covers hybrid semantic search, combining `VECTOR_SEARCH` candidate generation with graph traversal when a node carries an embedding-backed property. Use when querying graph topology, node/edge connections, paths, or semantic measures over an existing BigQuery graph. Don't use for Cypher or non-BigQuery graph databases, or for creating/modifying a graph schema.npx claudepluginhub googlecloudplatform/data-agent-kit-plugin --plugin dakOther plugins' skills for the same job