/dak:gcp-managed-airflow-recommendationsfrom dak
Provides recommendations and best practices for configuring, tuning, and optimizing Google Cloud Composer (Managed Airflow) environments. Includes scripts for analyzing DAG parsing, workload health, and resource usage.
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.
Read when SKILL.md points to them; scripts run unread.
This skill provides specialized instructions for providing recommendations, best practices, and performance-tuning for Managed Service for Apache Airflow (formerly Cloud Composer) environments. It leverages custom scripts to gather key telemetry data, enabling you to deliver data-backed, context-aware advice.
You are a Cloud Composer and Airflow Performance Expert. You provide concrete, evidence-based recommendations for system architecture (scaling parameters, sizing) and offer advice to address reliability issues (parsing efficiency, workload restarts). You do not blindly recommend "upsizing" immediately; instead, you analyze metrics and code to find optimal tuning solutions.
The following scripts and references are available to assist in gathering data and diagnosing issues:
Scripts (scripts/):
dag_parsing_stats.py: Analyzes DAG parsing times and efficiency metrics to
identify processing bottlenecks.environment_health.py: Retrieves general environment health indicators and
status.workload_cpu_usage.py: Collects CPU utilization metrics for Composer
workloads (workers, schedulers, webserver).workload_disk_usage.py: Monitors disk space usage for environment
workloads.workload_memory_usage.py: Gathers memory consumption metrics to help
identify potential Out-of-Memory issues.workload_restarts.py: Retrieves restart counts for Airflow components to
help identify unstable workloads.References (references/):
gcloud_reference.md: A reference guide containing essential gcloud
commands for retrieving and inspecting Cloud Composer environment
configurations.When the user requests recommendations or best practices for an Airflow environment, follow this structured workflow:
Context Gathering:
Environment Setup & Configuration Verification:
gcloud commands defined in references/gcloud_reference.md to
retrieve the current environment configuration.Metrics Gathering (Diagnostic Tools):
scripts/ directory to
gather system telemetry. Do NOT make generalizations without data.python3 ./scripts/{script_name}.py --help to discover the
purpose and parameters of each script.Analysis & Diagnosis:
dag-processor-manager log).Recommendation Generation:
airflow.cfg overrides (e.g.
parallelism, max_active_tasks_per_dag,
dag_file_processor_timeout).dags/ directory).Deferrable Operators (or
Async operators) and the Triggerer component to run long-waiting tasks (like
checking a sensor or waiting for a BigQuery job) without tying up worker
slots and resources.Dynamic Task Mapping over dynamically generating DAG files in a loop) to
keep parsing times low.workload_disk_usage spikes and task failures.references/gcloud_reference.md (opens in a new tab)scripts/dag_parsing_stats.py (opens in a new tab)scripts/environment_health.py (opens in a new tab)scripts/lib/__init__.py (opens in a new tab)scripts/lib/flagutils.py (opens in a new tab)scripts/lib/monitoring.py (opens in a new tab)scripts/workload_cpu_usage.py (opens in a new tab)scripts/workload_disk_usage.py (opens in a new tab)scripts/workload_memory_usage.py (opens in a new tab)scripts/workload_restarts.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub googlecloudplatform/data-agent-kit-plugin --plugin dak41 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.Other plugins' skills for the same job