/dak:dak-setupfrom dak
Walks through configuring the Google Cloud Data Agent Kit (DAK) plugin: verifies gcloud and ADC credentials, collects GCP project/region/services, and runs the bundled setup script.
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.
Walk the user through configuring the Data Agent Kit plugin, run the setup command, and tell them to restart their agent so the new configuration loads.
This skill is usually triggered by a SessionStart hook rather than by the user, so the user may not be expecting it. Open with one short sentence explaining what's happening and why ("The Data Agent Kit plugin isn't configured yet — let me get that sorted, it'll take a minute"), then start at step 1.
Run the steps in order. Each step depends on the one before it: there's no point asking for a project ID if the user can't authenticate, and no point running setup with a guessed region. If a step can't be completed, stop there, explain what's blocking, and pick up from that step once the user resolves it.
gcloud --version
If the command is found, continue silently — no need to report the version.
If it isn't found, stop. Tell the user gcloud is required and point them at the install docs: https://cloud.google.com/sdk/docs/install. Do not try to install it yourself; the right installation method depends on their OS and package manager, and a wrong guess leaves a broken SDK behind. Offer to resume setup once they've installed it and reopened their shell.
gcloud auth application-default print-access-token > /dev/null 2>&1 && echo "ADC_OK" || echo "ADC_MISSING"
Redirect the output as shown. The raw command prints a live access token, and tokens should never land in the transcript, in scrollback, or in a log file.
If the result is ADC_MISSING, tell the user you're going to open a browser
sign-in flow, then run:
gcloud auth application-default login
Notes for this command:
gcloud auth application-default login --no-launch-browser instead, which
prints a URL and waits for a verification code.First check whether gcloud already has one configured, so the user can just confirm instead of typing it out:
gcloud config get-value project 2>/dev/null
Then ask. If a project was detected, offer it as the default while making clear
they can use a different one — use whatever interactive prompt or option picker
you have available, or simply ask in chat. Either is fine, but do not proceed on
a guess. An unset value prints (unset) or nothing; treat that as "no default"
and ask outright.
Sanity-check the answer before moving on: a project ID is lowercase letters,
digits, and hyphens (6–30 characters), not the display name and not the numeric
project number. If the user gives something that looks like a display name ("My
Data Project"), ask them to confirm the ID — gcloud projects list will show
both columns if they're unsure.
Check for a configured default the same way:
gcloud config get-value compute/region 2>/dev/null
Ask for the region, offering the detected value if there is one and a few common
choices otherwise (us-central1, us-west1, us-east4, europe-west1,
europe-west3, asia-northeast1, asia-east1), plus the option to enter
something else. Show choices that are in geographically proximity to the user.
Expect a region like us-central1, not a zone like us-central1-a. If the user
gives a zone, point out the difference and confirm the region with them rather
than silently trimming the suffix.
Present this exact list of services, numbered, and ask the user to pick one or more services that Data Agent Kit should enable integration for:
Let them answer however is natural — numbers, names, or "all". Ask this as a plain numbered list in chat rather than through an option picker: the list is long enough that most pickers would force it into awkward groups, and multiple selections are easier to express in a single reply.
Two things matter when interpreting the answer:
Knowledge Catalog, not
knowledge-catalog or KnowledgeCatalog). Map whatever the user typed back
onto these canonical names. Each selected service is passed to the script as
its own quoted argument — see step 6.The setup script ships with this skill at scripts/dak-setup.js, directly
alongside this SKILL.md. Resolve that path against the directory this file was
loaded from, not against the shell's working directory — the shell almost always
starts in the user's project, not in the skill directory, so a bare
scripts/dak-setup.js will not be found. Either pass the full path to node or
cd into the skill directory first.
Show the user a one-line summary of what you collected (project, region, services), get a quick confirmation, then run:
node "<skill directory>/scripts/dak-setup.js" save --project-id "<project id>" --region "<region>" --services "<service1>" "<service2>" "<service3>"
Details that matter:
save is a subcommand and comes immediately after the script path, before
any flags.= sign
(--project-id "acme-prod", not --project-id="acme-prod").--project-id). If you're copying the
command from anywhere, check that an en dash (–) hasn't crept in — it
looks nearly identical and the command will fail to parse.--services takes a variadic list: each service is its own separately
quoted argument, space-separated, with the flag written only once. Quoting
each one individually is what keeps names like Knowledge Catalog from
being read as two services. Do not join them with commas.node "/home/ana/.claude/plugins/data-agent-kit/skills/setup/scripts/dak-setup.js" save --project-id "acme-analytics-prod" --region "us-central1" --services "BigQuery" "Cloud Storage" "Dataflow"npx dak-setup: the package
isn't published, so npx fails with a registry error that reads like a
network problem and sends the user down the wrong path entirely.When it succeeds, tell the user the plugin is configured, summarize what was enabled, and then deliver the restart notice below. When it fails, show the relevant error output and diagnose it rather than re-running the same command — common causes are a project ID typo, an unsupported region, or the ADC account lacking permission on the project.
The configuration is only picked up when the plugin loads, which happens at
session start. Nothing written by dak-setup takes effect in the session that's
currently running.
Tell the user plainly, as the last thing you say:
The Data Agent Kit is configured. Restart your agent for the changes to take effect — the plugin's tools won't be available until this session ends and a new one starts.
This applies to you as well, not just to the user. For the remainder of this session:
You can keep helping with anything unrelated in the meantime; the user doesn't have to restart immediately, only before using the plugin.
When the hook says the plugin needs to be reconfigured rather than that it's
unconfigured, the steps are the same, but mention any existing configuration you
can see when asking in steps 3–5 so the user only has to change what's actually
different. Re-running dak-setup overwrites the previous configuration, so
confirm the full set of services they want — anything omitted from the new list
is dropped, not merged with the old one.
The restart requirement in step 7 applies here too, and is easier to overlook: the plugin is already loaded with the old configuration, so it will appear to work while quietly using the previous project, region, or service set. Be explicit that the new settings are inactive until a restart.
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