/dak:gcp-spark-observabilityfrom dak
Monitors, inventories, and assesses Google Cloud Managed Service for Apache Spark (Dataproc Serverless and Dataproc on Compute Engine) environments across regions. Use for listing workloads, auditing fleet inventory, calculating DCU-Hours, detecting idle clusters, checking quotas, and querying Cloud Monitoring/Logging telemetry.
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.
Starter guide and gcloud lookup map for monitoring, inventorying, and
assessing Google Cloud Managed Service for Apache Spark (Dataproc
Serverless batches and interactive sessions, and Dataproc on Compute
Engine clusters and jobs). For exact gcloud commands, field paths, metric
names, and log filters, see
gcloud Observability Reference.
gcp-spark-observability (this skill).sparkApplications API, GCS event logs):
@skill:gcp-spark-troubleshooting.batch_id or job_id is given (for example, "Why did
my last Spark batch fail?"), use this skill first to find the latest
failed ID, region, and stateMessage/status.details, then hand off to
@skill:gcp-spark-troubleshooting.@skill:gcp-spark-troubleshooting.runtimeConfig/softwareConfig properties. Do not propose Spark
property tuning from fleet metrics alone.gcp-spark.gcloud: Dataproc MCP list/get tools
(list_batches, get_batch, list_sessions, list_clusters,
get_cluster) return minimal summaries and omit runtimeInfo (DCU/shuffle
usage), stateMessage, creator, cluster config (machine types,
lifecycle TTLs, autoscaling), and metrics.yarnMetrics. Always run
gcloud dataproc ... list|describe --format=json when you need those
fields.clusters, jobs, batches, operations, workflow-templates, and
autoscaling-policies are GA and use --region=<REGION>.sessions and session-templates require the beta track and
--location=<REGION>
(gcloud beta dataproc sessions list --location=<REGION>).--quiet to asset, metastore, composer, and
scheduler commands so disabled APIs do not hang on interactive
prompts. Never enable APIs.--limit & respect server-side --filter restrictions:
--limit (for example --limit=20 to
--limit=200) on every gcloud ... list,
gcloud asset search-all-resources, and gcloud logging read query so
list calls stay bounded.batches list --filter: accepts state, create_time>="<RFC3339>"
(snake_case; createTime>= is rejected), and labels.<key>=<value>.jobs list --filter: status.state only accepts ACTIVE, INACTIVE,
or NON_ACTIVE (status.state=ERROR is rejected with
INVALID_ARGUMENT). Use --state-filter=inactive --limit=100 and
filter ERROR client-side.operations list --filter: status.state only accepts PENDING,
RUNNING, or DONE. Filter server-side with
operationType=CREATE AND status.state=DONE --limit=100 and filter
client-side where error.code is set.@skill:resolving-mcp-region-configs, or
gcloud config get-value dataproc/region (fallback compute/region).gcloud asset search-all-resources --asset-types="dataproc.googleapis.com/Cluster,dataproc.googleapis.com/Batch,dataproc.googleapis.com/Session,dataproc.googleapis.com/Job" --limit=200), then query each discovered region live via
gcloud dataproc (Asset Inventory states can be stale). Always state
which regions were inspected.runtimeInfo.approximateUsage (milliDcuSeconds,
shuffleStorageGbSeconds) is populated only after a batch/session
completes; running workloads expose runtimeInfo.currentUsage.RUNNING cluster is idle only when it has 0 active Jobs API
jobs AND 0 running/pending YARN applications
(metrics.yarnMetrics.yarn-apps-running and yarn-apps-pending in
clusters list), because notebooks, SSH spark-submit, and Spark
Connect bypass the Jobs API.protoPayload.status (such as
PERMISSION_DENIED) are rejected API calls, not cluster operations.batches list
(RUNNING/PENDING), beta dataproc sessions list (ACTIVE/CREATING),
clusters list (RUNNING/CREATING/UPDATING), and jobs list
(--state-filter=active) with --limit=100 across target regions.batches list --filter="state=FAILED" --sort-by=~createTime --limit=20
(append AND labels.<key>=<value> when a workload label is given; inspect
stateMessage) and jobs list --state-filter=inactive --limit=100 filtered
to status.state=ERROR (status.details).batches list --sort-by=~createTime --limit=200 grouped by
labels.airflow-dag-id / labels.airflow-task-id,
labels.goog-dataproc-workflow-template-id, or batch-ID prefix; check
median interval and runtime (stateTime - createTime).batches list --sort-by=~runtimeInfo.approximateUsage.milliDcuSeconds --limit=20 and
convert to DCU-hours and Shuffle-GB-Months.clusters list --filter="status.state=RUNNING" --limit=100 (always report
metrics.yarnMetrics, config.lifecycleConfig TTLs
idleDeleteTtl/autoDeleteTime/idleStopTtl, and recent
jobs list --cluster=<NAME> --limit=5; recommend
gcloud dataproc clusters update <NAME> --region=<REGION> --max-idle=30m or
--stop-max-idle=30m / --delete-max-idle=30m).operations list --filter="operationType=CREATE AND status.state=DONE" --limit=100 (always
specify --limit and filter client-side where error.code is set), plus
Admin Activity audit logs (--limit=50) for zonal stockouts
(does not have enough resources available).compute regions list --flatten=quotas --limit=100,
alpha services quota list --service=dataproc.googleapis.com --limit=100
(data_compute_units), and monitoring policies list --limit=100.dataproc.googleapis.com/cluster/yarn/*,
dataproc.googleapis.com/batch/spark/executors, and Cloud Logging resource
types cloud_dataproc_{batch,session,cluster,job}.See gcloud Observability Reference for all commands and field paths.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
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