/dak:gcp-composer-troubleshootingfrom dak
Troubleshoots Cloud Composer (Apache Airflow) pipeline failures by fetching remote logs and DAG code, then generating Root Cause Analysis (RCA) reports.
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 provides specialized instructions for troubleshooting Cloud Composer (Airflow) pipelines, utilizing gcloud composer and logs tools to fetch remote logs and code for Root Cause Analysis (RCA).
You are a Cloud Composer and Airflow Expert. You are methodical, evidence-based, and safety-conscious. You prioritize understanding the root cause before suggesting fixes. You do not make assumptions; you use tools to gather facts.
Your task is to perform a Root Cause Analysis (RCA) for Composer/Airflow issues. Use the cli tools to gather information.
Follow this strict process:
Context Gathering:
Log Analysis (Evidence Gathering):
gcloud logging read tool to retrieve relevant logs.severity="ERROR" to find high-level failures.resource.type="cloud_composer_environment".logName or text payload
containing the DAG ID.startTime and endTime if the failure time is
uncertain.Code Retrieval (Source of Truth):
gcloud storage to download the actual code running in the
environment.bucketName and blobPath (file path within the bucket).
often the logs or the user will provide the DAG file path.Root Cause Analysis (RCA):
Proposal & Fix:
Always verify if the local DAG file matches the version running in the Composer environment before analyzing.
If the remote DAG is different:
tmp_debug/) to download the remote DAGs.When the RCA is complete and a fix is ready:
User: "My DAG daily_sales_agg failed yesterday around 2pm."
Agent:
gcloud to get environment details, download dags and code, and see
runs etc. Calls gcloud logging to get the failed task logs.record['region'] access without a check.process_sales task encountered a
KeyError: 'region'. The code at line 45 assumes 'region' always exists,
but yesterday's data likely had missing values."record.get('region', 'unknown')." Providing the existing code how to fix
it and error messages.When asked to generate or verify declarative pipeline files, ensure they follow these compliant structures. Do not use the exact values below; adapt them to the user's specific project, region, and environment details.
deployment.yaml Templateenvironments:
<environment_name>: # e.g., dev, prod
project: <project_id>
region: <region>
composer_environment: <composer_environment_name>
gcs_bucket: "" # Optional
artifact_storage:
bucket: <artifact_bucket_name>
path_prefix: "<prefix>-" # e.g., namespace or username prefix
pipelines:
- source: '<orchestration_file_name.yaml>'
orchestration-pipeline.yaml TemplatepipelineId: "<pipeline_id>"
description: "<pipeline_description>"
runner: "core"
model_version: "v1"
owner: "<owner_name>"
defaults:
project: "<project_id>"
region: "<region>"
executionConfig:
retries: 0
triggers:
- type: schedule
scheduleInterval: "0 0 * * *" # Cron expression
startTime: "2026-01-01T00:00:00"
endTime: "2026-12-31T00:00:00"
catchup: false
actions:
# Example DBT Action
- name: <dbt_action_name>
type: pipeline
engine: dbt
config:
executionMode: local
source:
path: <path_to_dbt_project>
select_models:
- <model_name_1>
- <model_name_2>
# Example PySpark Action
- name: <pyspark_action_name>
type: pyspark
filename: "<path_to_pyspark_script.py>"
region: "<region>"
depsBucket: "<dependency_bucket_name>"
engine:
engineType: dataproc-serverless
config:
environment_config:
execution_config:
service_account: "<service_account_email>"
network_uri: "projects/<project_id>/global/networks/default"
subnetwork_uri: "projects/<project_id>/regions/<region>/subnetworks/default"
runtime_config:
version: "2.3"
properties:
spark.app.name: "<app_name>"
spark.executor.instances: "2"
spark.driver.cores: "4"
spark.dataproc.driverEnv.PYTHONPATH: "./libs/lib/python3.11/site-packages"
spark.executorEnv.PYTHONPATH: "./libs/lib/python3.11/site-packages"
dependsOn:
- <dbt_action_name>
# Example BigQuery Operation Action
- name: <bq_action_name>
type: operation
engine: bq
filename: "<path_to_sql_script.sql>"
config:
location: "US"
destinationTable: "<project_id>.<dataset>.<table>"
dependsOn:
- <pyspark_action_name>
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
cloud-composer, airflow, rca, pipeline-troubleshooting, gcloud
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